Skip to content

Commit

Permalink
Compare AXML attribute name by resource ID
Browse files Browse the repository at this point in the history
  • Loading branch information
nonnonstop committed Sep 2, 2022
1 parent eeaa424 commit 84f200f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public static Pair parseManifestFile(String filePath) {
int attrCount = parser.getAttributeCount();
for (int i = 0; i < attrCount; i++) {
String attrName = parser.getAttributeName(i);
int attrNameRes = parser.getAttributeNameResource(i);

String name = parser.getName();

Expand All @@ -50,7 +51,7 @@ public static Pair parseManifestFile(String filePath) {
}

if ("application".equals(name)) {
if ("name".equals(attrName)) {
if ("name".equals(attrName) || attrNameRes == 0x01010003) {
applicationName = parser.getAttributeValue(i);
}
}
Expand Down

0 comments on commit 84f200f

Please sign in to comment.