Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
J
jadx
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
jadx
Commits
b4472fd7
Commit
b4472fd7
authored
May 02, 2016
by
齐振芳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete comments
parent
467f729f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
8 deletions
+1
-8
.DS_Store
.DS_Store
+0
-0
README.md
README.md
+0
-2
FileUtils.java
jadx-core/src/main/java/jadx/core/utils/files/FileUtils.java
+0
-5
InputFile.java
jadx-core/src/main/java/jadx/core/utils/files/InputFile.java
+1
-1
No files found.
.DS_Store
0 → 100644
View file @
b4472fd7
File added
README.md
View file @
b4472fd7
...
...
@@ -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
)
...
...
jadx-core/src/main/java/jadx/core/utils/files/FileUtils.java
View file @
b4472fd7
...
...
@@ -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
))
{
...
...
jadx-core/src/main/java/jadx/core/utils/files/InputFile.java
View file @
b4472fd7
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment