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
2fdb2614
Commit
2fdb2614
authored
Dec 21, 2014
by
YASME-Tim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactored attribute value printing.
parent
b87d1a7f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
BinaryXMLParser.java
...-core/src/main/java/jadx/core/xmlgen/BinaryXMLParser.java
+9
-8
No files found.
jadx-core/src/main/java/jadx/core/xmlgen/BinaryXMLParser.java
View file @
2fdb2614
...
...
@@ -204,16 +204,17 @@ public class BinaryXMLParser {
System.out.println("ai["+i+"] d: " + attrValData);
*/
if
(
attributeNS
!=
-
1
)
writer
.
print
(
nsPrefix
+
":"
);
//
writer.print(strings[attributeName] + "=\"");
if
(
attrValDataType
==
0x3
)
writer
.
print
(
strings
[
attr
ibuteName
]
+
"=\""
+
strings
[
attrValData
]+
"\""
);
else
if
(
attrValDataType
==
0x10
)
writer
.
print
(
strings
[
attributeName
]
+
"=\""
+
attrValData
+
"\""
);
writer
.
print
(
strings
[
attributeName
]
+
"=\""
);
if
(
attrValDataType
==
0x3
)
writer
.
print
(
strings
[
attr
ValData
]
);
else
if
(
attrValDataType
==
0x10
)
writer
.
print
(
attrValData
);
else
if
(
attrValDataType
==
0x12
)
{
// TODO: data is always -1, FIXME
if
(
attrValData
==
0
)
writer
.
print
(
strings
[
attributeName
]
+
"=\"false\""
);
else
if
(
attrValData
==
1
||
attrValData
==-
1
)
writer
.
print
(
strings
[
attributeName
]
+
"=\"true\""
);
else
writer
.
print
(
strings
[
attributeName
]
+
"=\"UNKNOWN\""
);
}
else
if
(
attrValDataType
==
0x1
)
writer
.
print
(
strings
[
attributeName
]
+
"=\"0x"
+
Integer
.
toHexString
(
attrValData
)
+
"\""
);
else
writer
.
print
(
strings
[
attributeName
]
+
" = UNKNOWN DATA TYPE: "
+
attrValDataType
);
if
(
attrValData
==
0
)
writer
.
print
(
"false"
);
else
if
(
attrValData
==
1
||
attrValData
==-
1
)
writer
.
print
(
"true"
);
else
writer
.
print
(
"UNKNOWN_BOOLEAN_TYPE"
);
}
else
if
(
attrValDataType
==
0x1
)
writer
.
print
(
"0x"
+
Integer
.
toHexString
(
attrValData
));
else
writer
.
print
(
"UNKNOWN_DATA_TYPE_"
+
attrValDataType
);
writer
.
print
(
"\""
);
if
((
i
+
1
)<
attributeCount
)
writer
.
print
(
" "
);
}
//writer.println(">");
...
...
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