mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-21 01:07:34 +01:00
fix: introduce basic staged alias support
This commit is contained in:
parent
e9a3993da8
commit
df3b9f7c56
@ -134,6 +134,9 @@ public class ARSCDecoder {
|
|||||||
case Header.XML_TYPE_SPEC_TYPE:
|
case Header.XML_TYPE_SPEC_TYPE:
|
||||||
readTableTypeSpec();
|
readTableTypeSpec();
|
||||||
break;
|
break;
|
||||||
|
case Header.XML_TYPE_STAGED_ALIAS:
|
||||||
|
readStagedAliasSpec();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
flag = false;
|
flag = false;
|
||||||
break;
|
break;
|
||||||
@ -161,6 +164,17 @@ public class ARSCDecoder {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void readStagedAliasSpec() throws IOException {
|
||||||
|
int count = mIn.readInt();
|
||||||
|
|
||||||
|
for (int i = 0; i < count; i++) {
|
||||||
|
/* stagedResId */mIn.skipInt();
|
||||||
|
/* finalizedResId */mIn.skipInt();
|
||||||
|
}
|
||||||
|
|
||||||
|
nextChunk();
|
||||||
|
}
|
||||||
|
|
||||||
private void readTableTypeSpec() throws AndrolibException, IOException {
|
private void readTableTypeSpec() throws AndrolibException, IOException {
|
||||||
mTypeSpec = readSingleTableTypeSpec();
|
mTypeSpec = readSingleTableTypeSpec();
|
||||||
addTypeSpec(mTypeSpec);
|
addTypeSpec(mTypeSpec);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user