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
156c9798
Commit
156c9798
authored
May 03, 2019
by
Skylot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: search smali class by original name
parent
f846df53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
JadxDecompiler.java
jadx-core/src/main/java/jadx/api/JadxDecompiler.java
+3
-4
No files found.
jadx-core/src/main/java/jadx/api/JadxDecompiler.java
View file @
156c9798
package
jadx
.
api
;
package
jadx
.
api
;
import
java.io.File
;
import
java.io.File
;
import
java.io.IOException
;
import
java.io.StringWriter
;
import
java.io.StringWriter
;
import
java.nio.file.Path
;
import
java.nio.file.Path
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
...
@@ -35,6 +34,7 @@ import jadx.core.dex.nodes.RootNode;
...
@@ -35,6 +34,7 @@ import jadx.core.dex.nodes.RootNode;
import
jadx.core.dex.visitors.IDexTreeVisitor
;
import
jadx.core.dex.visitors.IDexTreeVisitor
;
import
jadx.core.dex.visitors.SaveCode
;
import
jadx.core.dex.visitors.SaveCode
;
import
jadx.core.export.ExportGradleProject
;
import
jadx.core.export.ExportGradleProject
;
import
jadx.core.utils.Utils
;
import
jadx.core.utils.exceptions.JadxRuntimeException
;
import
jadx.core.utils.exceptions.JadxRuntimeException
;
import
jadx.core.utils.files.InputFile
;
import
jadx.core.utils.files.InputFile
;
import
jadx.core.xmlgen.BinaryXMLParser
;
import
jadx.core.xmlgen.BinaryXMLParser
;
...
@@ -308,8 +308,7 @@ public final class JadxDecompiler {
...
@@ -308,8 +308,7 @@ public final class JadxDecompiler {
void
generateSmali
(
ClassNode
cls
)
{
void
generateSmali
(
ClassNode
cls
)
{
Path
path
=
cls
.
dex
().
getDexFile
().
getPath
();
Path
path
=
cls
.
dex
().
getDexFile
().
getPath
();
String
className
=
cls
.
getAlias
().
makeRawFullName
();
String
className
=
Utils
.
makeQualifiedObjectName
(
cls
.
getClassInfo
().
getType
().
getObject
());
className
=
'L'
+
className
.
replace
(
'.'
,
'/'
)
+
';'
;
try
{
try
{
DexBackedDexFile
dexFile
=
DexFileFactory
.
loadDexFile
(
path
.
toFile
(),
Opcodes
.
getDefault
());
DexBackedDexFile
dexFile
=
DexFileFactory
.
loadDexFile
(
path
.
toFile
(),
Opcodes
.
getDefault
());
boolean
decompiled
=
false
;
boolean
decompiled
=
false
;
...
@@ -326,7 +325,7 @@ public final class JadxDecompiler {
...
@@ -326,7 +325,7 @@ public final class JadxDecompiler {
if
(!
decompiled
)
{
if
(!
decompiled
)
{
LOG
.
error
(
"Failed to find smali class {}"
,
className
);
LOG
.
error
(
"Failed to find smali class {}"
,
className
);
}
}
}
catch
(
IO
Exception
e
)
{
}
catch
(
Exception
e
)
{
LOG
.
error
(
"Error generating smali"
,
e
);
LOG
.
error
(
"Error generating smali"
,
e
);
}
}
}
}
...
...
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