fix: introduce basic staged alias support

This commit is contained in:
Connor Tumbleson 2022-03-13 08:34:45 -04:00
parent e9a3993da8
commit df3b9f7c56
No known key found for this signature in database
GPG Key ID: C3CC0A201EC7DA75

View File

@ -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);