mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-21 09:17:35 +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");
|
||||
}
|
||||
|
||||
resTable.addPackage(pkgs[0], false);
|
||||
return pkgs[0];
|
||||
ResPackage pkg = 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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user