Skip to content

Commit 84f200f

Browse files
committed
Compare AXML attribute name by resource ID
1 parent eeaa424 commit 84f200f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

xpatch/src/main/java/com/storm/wind/xpatch/util/ManifestParser.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public static Pair parseManifestFile(String filePath) {
4040
int attrCount = parser.getAttributeCount();
4141
for (int i = 0; i < attrCount; i++) {
4242
String attrName = parser.getAttributeName(i);
43+
int attrNameRes = parser.getAttributeNameResource(i);
4344

4445
String name = parser.getName();
4546

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

5253
if ("application".equals(name)) {
53-
if ("name".equals(attrName)) {
54+
if ("name".equals(attrName) || attrNameRes == 0x01010003) {
5455
applicationName = parser.getAttributeValue(i);
5556
}
5657
}

0 commit comments

Comments
 (0)