mirror of
https://github.com/revanced/Apktool.git
synced 2024-11-06 12:47:03 +01:00
fix: handle duplicate res entries during a complex resource (#3347)
This commit is contained in:
parent
aea1d68dbc
commit
f63bbc0be2
@ -415,6 +415,12 @@ public class ARSCDecoder {
|
||||
resId = mIn.readInt();
|
||||
resValue = readValue();
|
||||
|
||||
// #2824 - In some applications the res entries are duplicated with the 2nd being malformed.
|
||||
// AOSP skips this, so we will do the same.
|
||||
if (resValue == null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!(resValue instanceof ResScalarValue)) {
|
||||
resValue = new ResStringValue(resValue.toString(), resValue.getRawIntValue());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user