delete comments
This commit is contained in:
@@ -12,8 +12,6 @@ Command line and GUI tools for produce Java source code from Android Dex and Apk
|
||||
|
||||

|
||||
|
||||
### add by qi
|
||||
add: check file's type by file header
|
||||
|
||||
### Downloads
|
||||
- [unstable](https://drone.io/github.com/skylot/jadx/files)
|
||||
|
||||
@@ -106,7 +106,6 @@ public class FileUtils {
|
||||
return file;
|
||||
}
|
||||
|
||||
//add by qi
|
||||
public static String bytesToHex(byte[] bytes) {
|
||||
char[] hexArray = "0123456789abcdef".toCharArray();
|
||||
if (bytes == null || bytes.length <= 0) {
|
||||
@@ -121,7 +120,6 @@ public class FileUtils {
|
||||
return new String(hexChars);
|
||||
}
|
||||
|
||||
//add by qi
|
||||
public static boolean isZipfile(File file) {
|
||||
boolean isZipfile = false;
|
||||
InputStream is = null;
|
||||
@@ -149,7 +147,6 @@ public class FileUtils {
|
||||
return isZipfile;
|
||||
}
|
||||
|
||||
//add by qi
|
||||
public static List<String> getZipfileList(File file) {
|
||||
List<String> filelist = new ArrayList<String>();
|
||||
ZipFile zipFile = null;
|
||||
@@ -170,7 +167,6 @@ public class FileUtils {
|
||||
return filelist;
|
||||
}
|
||||
|
||||
//add by qi
|
||||
public static boolean isApkfile(File file) {
|
||||
boolean isApkfile = false;
|
||||
if (isZipfile(file)) {
|
||||
@@ -182,7 +178,6 @@ public class FileUtils {
|
||||
return isApkfile;
|
||||
}
|
||||
|
||||
//add by qi
|
||||
public static boolean isZipDexfile(File file) {
|
||||
boolean isZipDexFile = false;
|
||||
if (isZipfile(file)) {
|
||||
|
||||
@@ -54,7 +54,7 @@ public class InputFile {
|
||||
addDexFile(loadFromClassFile(file));
|
||||
return;
|
||||
}
|
||||
//modifed by qi:add isApkfile() and isZipdexfile()
|
||||
|
||||
if (fileName.endsWith(".apk") || fileName.endsWith(".zip") || isApkfile(file) || isZipDexfile(file)) {
|
||||
loadFromZip(".dex");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user