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
89042fbf
Commit
89042fbf
authored
Jan 20, 2018
by
KpChuck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't throw a DecodeException if dex files aren't found but --no-src is enabled
parent
fc4dcd2d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
JadxDecompiler.java
jadx-core/src/main/java/jadx/api/JadxDecompiler.java
+1
-1
InputFile.java
jadx-core/src/main/java/jadx/core/utils/files/InputFile.java
+5
-3
No files found.
jadx-core/src/main/java/jadx/api/JadxDecompiler.java
View file @
89042fbf
...
...
@@ -146,7 +146,7 @@ public final class JadxDecompiler {
inputFiles
.
clear
();
for
(
File
file
:
files
)
{
try
{
InputFile
.
addFilesFrom
(
file
,
inputFiles
);
InputFile
.
addFilesFrom
(
file
,
inputFiles
,
args
.
isSkipSources
()
);
}
catch
(
IOException
e
)
{
throw
new
JadxException
(
"Error load file: "
+
file
,
e
);
}
...
...
jadx-core/src/main/java/jadx/core/utils/files/InputFile.java
View file @
89042fbf
...
...
@@ -32,9 +32,9 @@ public class InputFile {
private
final
File
file
;
private
final
List
<
DexFile
>
dexFiles
=
new
ArrayList
<
DexFile
>();
public
static
void
addFilesFrom
(
File
file
,
List
<
InputFile
>
list
)
throws
IOException
,
DecodeException
{
public
static
void
addFilesFrom
(
File
file
,
List
<
InputFile
>
list
,
boolean
...
skipSources
)
throws
IOException
,
DecodeException
{
InputFile
inputFile
=
new
InputFile
(
file
);
inputFile
.
searchDexFiles
();
inputFile
.
searchDexFiles
(
skipSources
[
0
]
);
list
.
add
(
inputFile
);
}
...
...
@@ -45,7 +45,7 @@ public class InputFile {
this
.
file
=
file
;
}
private
void
searchDexFiles
()
throws
IOException
,
DecodeException
{
private
void
searchDexFiles
(
boolean
skipSources
)
throws
IOException
,
DecodeException
{
String
fileName
=
file
.
getName
();
if
(
fileName
.
endsWith
(
".dex"
))
{
...
...
@@ -75,6 +75,8 @@ public class InputFile {
}
return
;
}
if
(
skipSources
)
return
;
throw
new
DecodeException
(
"Unsupported input file format: "
+
file
);
}
...
...
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