mirror of
https://github.com/revanced/Apktool.git
synced 2025-02-01 22:57:41 +01:00
AndrolibResources.loadFrameworkPkg(): added check for loaded pkg id.
This commit is contained in:
parent
28d4457481
commit
ce9c6304af
@ -82,8 +82,14 @@ final public class AndrolibResources {
|
|||||||
"Arsc files with zero or multiple packages");
|
"Arsc files with zero or multiple packages");
|
||||||
}
|
}
|
||||||
|
|
||||||
resTable.addPackage(pkgs[0], false);
|
ResPackage pkg = pkgs[0];
|
||||||
return pkgs[0];
|
if (pkg.getId() != id) {
|
||||||
|
throw new AndrolibException("Expected pkg of id: " +
|
||||||
|
String.valueOf(id) + ", got: " + pkg.getId());
|
||||||
|
}
|
||||||
|
|
||||||
|
resTable.addPackage(pkg, false);
|
||||||
|
return pkg;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void decode(ResTable resTable, ExtFile apkFile, File outDir)
|
public void decode(ResTable resTable, ExtFile apkFile, File outDir)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user