Commit b4472fd7 authored by 齐振芳's avatar 齐振芳

delete comments

parent 467f729f
File added
......@@ -12,8 +12,6 @@ Command line and GUI tools for produce Java source code from Android Dex and Apk
![jadx-gui screenshot](http://skylot.github.io/jadx/jadx-gui.png)
### 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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment