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
02a97bcb
Commit
02a97bcb
authored
Dec 26, 2014
by
skylot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #37 from NeoSpb/fix_gui_save_manifest
fix save AndroidManifest.xml when jadx-gui used
parents
716db8b9
fd4289aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
14 deletions
+19
-14
JadxDecompiler.java
jadx-core/src/main/java/jadx/api/JadxDecompiler.java
+18
-14
JadxWrapper.java
jadx-gui/src/main/java/jadx/gui/JadxWrapper.java
+1
-0
No files found.
jadx-core/src/main/java/jadx/api/JadxDecompiler.java
View file @
02a97bcb
...
...
@@ -108,7 +108,25 @@ public final class JadxDecompiler {
parse
();
}
public
void
parseAndSaveXML
()
{
if
(
this
.
args
.
isXMLTest
())
{
InputFile
inf
=
inputFiles
.
get
(
0
);
try
{
byte
[]
buffer
=
InputFile
.
loadXMLBuffer
(
inf
.
getFile
());
if
(
buffer
!=
null
)
{
File
out
=
new
File
(
outDir
,
"AndroidManifest.xml"
);
BinaryXMLParser
bxp
=
new
BinaryXMLParser
(
root
);
bxp
.
parse
(
buffer
,
out
);
}
}
catch
(
Exception
e
)
{
LOG
.
info
(
"Decompiling AndroidManifest.xml failed!"
,
e
);
}
}
}
public
void
save
()
{
parseAndSaveXML
();
try
{
ExecutorService
ex
=
getSaveExecutor
();
ex
.
shutdown
();
...
...
@@ -204,20 +222,6 @@ public final class JadxDecompiler {
root
=
new
RootNode
();
LOG
.
info
(
"loading ..."
);
root
.
load
(
inputFiles
);
if
(
this
.
args
.
isXMLTest
())
{
InputFile
inf
=
inputFiles
.
get
(
0
);
try
{
byte
[]
buffer
=
InputFile
.
loadXMLBuffer
(
inf
.
getFile
());
if
(
buffer
!=
null
)
{
File
out
=
new
File
(
args
.
getOutDir
(),
"AndroidManifest.xml"
);
BinaryXMLParser
bxp
=
new
BinaryXMLParser
(
root
);
bxp
.
parse
(
buffer
,
out
);
}
}
catch
(
Exception
e
)
{
LOG
.
info
(
"Decompiling AndroidManifest.xml failed!"
,
e
);
}
}
}
void
processClass
(
ClassNode
cls
)
{
...
...
jadx-gui/src/main/java/jadx/gui/JadxWrapper.java
View file @
02a97bcb
...
...
@@ -42,6 +42,7 @@ public class JadxWrapper {
public
void
run
()
{
try
{
decompiler
.
setOutputDir
(
dir
);
decompiler
.
parseAndSaveXML
();
ThreadPoolExecutor
ex
=
(
ThreadPoolExecutor
)
decompiler
.
getSaveExecutor
();
ex
.
shutdown
();
while
(
ex
.
isTerminating
())
{
...
...
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