fix: introduce basic staged alias support
@@ -134,6 +134,9 @@ public class ARSCDecoder {
case Header.XML_TYPE_SPEC_TYPE:
readTableTypeSpec();
break;
+ case Header.XML_TYPE_STAGED_ALIAS:
+ readStagedAliasSpec();
+ break;
default:
flag = false;
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 {
mTypeSpec = readSingleTableTypeSpec();
addTypeSpec(mTypeSpec);
