提交 b4472fd7 编写于 作者: 齐振芳

delete comments

上级 467f729f
文件已添加
...@@ -12,8 +12,6 @@ Command line and GUI tools for produce Java source code from Android Dex and Apk ...@@ -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) ![jadx-gui screenshot](http://skylot.github.io/jadx/jadx-gui.png)
### add by qi
add: check file's type by file header
### Downloads ### Downloads
- [unstable](https://drone.io/github.com/skylot/jadx/files) - [unstable](https://drone.io/github.com/skylot/jadx/files)
......
...@@ -106,7 +106,6 @@ public class FileUtils { ...@@ -106,7 +106,6 @@ public class FileUtils {
return file; return file;
} }
//add by qi
public static String bytesToHex(byte[] bytes) { public static String bytesToHex(byte[] bytes) {
char[] hexArray = "0123456789abcdef".toCharArray(); char[] hexArray = "0123456789abcdef".toCharArray();
if (bytes == null || bytes.length <= 0) { if (bytes == null || bytes.length <= 0) {
...@@ -121,7 +120,6 @@ public class FileUtils { ...@@ -121,7 +120,6 @@ public class FileUtils {
return new String(hexChars); return new String(hexChars);
} }
//add by qi
public static boolean isZipfile(File file) { public static boolean isZipfile(File file) {
boolean isZipfile = false; boolean isZipfile = false;
InputStream is = null; InputStream is = null;
...@@ -149,7 +147,6 @@ public class FileUtils { ...@@ -149,7 +147,6 @@ public class FileUtils {
return isZipfile; return isZipfile;
} }
//add by qi
public static List<String> getZipfileList(File file) { public static List<String> getZipfileList(File file) {
List<String> filelist = new ArrayList<String>(); List<String> filelist = new ArrayList<String>();
ZipFile zipFile = null; ZipFile zipFile = null;
...@@ -170,7 +167,6 @@ public class FileUtils { ...@@ -170,7 +167,6 @@ public class FileUtils {
return filelist; return filelist;
} }
//add by qi
public static boolean isApkfile(File file) { public static boolean isApkfile(File file) {
boolean isApkfile = false; boolean isApkfile = false;
if (isZipfile(file)) { if (isZipfile(file)) {
...@@ -182,7 +178,6 @@ public class FileUtils { ...@@ -182,7 +178,6 @@ public class FileUtils {
return isApkfile; return isApkfile;
} }
//add by qi
public static boolean isZipDexfile(File file) { public static boolean isZipDexfile(File file) {
boolean isZipDexFile = false; boolean isZipDexFile = false;
if (isZipfile(file)) { if (isZipfile(file)) {
......
...@@ -54,7 +54,7 @@ public class InputFile { ...@@ -54,7 +54,7 @@ public class InputFile {
addDexFile(loadFromClassFile(file)); addDexFile(loadFromClassFile(file));
return; return;
} }
//modifed by qi:add isApkfile() and isZipdexfile()
if (fileName.endsWith(".apk") || fileName.endsWith(".zip") || isApkfile(file) || isZipDexfile(file)) { if (fileName.endsWith(".apk") || fileName.endsWith(".zip") || isApkfile(file) || isZipDexfile(file)) {
loadFromZip(".dex"); loadFromZip(".dex");
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册