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
a841d0eb
Commit
a841d0eb
authored
Dec 22, 2018
by
Skylot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: use '$' for inner classes also in methods and fields (#415)
parent
e0624ce9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
5 deletions
+15
-5
DeobfPresets.java
jadx-core/src/main/java/jadx/core/deobf/DeobfPresets.java
+7
-5
FieldInfo.java
jadx-core/src/main/java/jadx/core/dex/info/FieldInfo.java
+4
-0
MethodInfo.java
jadx-core/src/main/java/jadx/core/dex/info/MethodInfo.java
+4
-0
No files found.
jadx-core/src/main/java/jadx/core/deobf/DeobfPresets.java
View file @
a841d0eb
...
...
@@ -116,14 +116,16 @@ class DeobfPresets {
}
}
for
(
FieldInfo
fld
:
deobfuscator
.
getFldMap
().
keySet
())
{
list
.
add
(
String
.
format
(
"f %s = %s"
,
fld
.
getFullId
(),
fld
.
getAlias
()));
list
.
add
(
String
.
format
(
"f %s = %s"
,
fld
.
get
Raw
FullId
(),
fld
.
getAlias
()));
}
for
(
MethodInfo
mth
:
deobfuscator
.
getMthMap
().
keySet
())
{
list
.
add
(
String
.
format
(
"m %s = %s"
,
mth
.
getFullId
(),
mth
.
getAlias
()));
list
.
add
(
String
.
format
(
"m %s = %s"
,
mth
.
get
Raw
FullId
(),
mth
.
getAlias
()));
}
Collections
.
sort
(
list
);
FileUtils
.
writeLines
(
deobfMapFile
,
MAP_FILE_CHARSET
,
list
);
list
.
clear
();
if
(
LOG
.
isDebugEnabled
())
{
LOG
.
debug
(
"Deobfuscation map file saved as: {}"
,
deobfMapFile
);
}
}
private
static
void
dfsPackageName
(
List
<
String
>
list
,
String
prefix
,
PackageNode
node
)
{
...
...
@@ -140,11 +142,11 @@ class DeobfPresets {
}
public
String
getForFld
(
FieldInfo
fld
)
{
return
fldPresetMap
.
get
(
fld
.
getFullId
());
return
fldPresetMap
.
get
(
fld
.
get
Raw
FullId
());
}
public
String
getForMth
(
MethodInfo
mth
)
{
return
mthPresetMap
.
get
(
mth
.
getFullId
());
return
mthPresetMap
.
get
(
mth
.
get
Raw
FullId
());
}
public
void
clear
()
{
...
...
jadx-core/src/main/java/jadx/core/dex/info/FieldInfo.java
View file @
a841d0eb
...
...
@@ -57,6 +57,10 @@ public final class FieldInfo {
return
declClass
.
getFullName
()
+
"."
+
name
+
":"
+
TypeGen
.
signature
(
type
);
}
public
String
getRawFullId
()
{
return
declClass
.
makeRawFullName
()
+
"."
+
name
+
":"
+
TypeGen
.
signature
(
type
);
}
public
boolean
isRenamed
()
{
return
!
name
.
equals
(
alias
);
}
...
...
jadx-core/src/main/java/jadx/core/dex/info/MethodInfo.java
View file @
a841d0eb
...
...
@@ -68,6 +68,10 @@ public final class MethodInfo {
return
declClass
.
getFullName
()
+
"."
+
shortId
;
}
public
String
getRawFullId
()
{
return
declClass
.
makeRawFullName
()
+
"."
+
shortId
;
}
/**
* Method name and signature
*/
...
...
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