Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Support dynamic-feature #7336

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -116,6 +116,9 @@ public ResTable_lib_header asResTable_lib_header() {
public ResTable_lib_entry asResTable_lib_entry() {
if (header_size() >= ResTable_lib_entry.SIZEOF) {
return new ResTable_lib_entry(device_chunk_.myBuf(), device_chunk_.myOffset());
} else if (header_size() > 0) {
return new ResTable_lib_entry(
device_chunk_.myBuf(), device_chunk_.myOffset() + header_size());
} else {
return null;
}
Expand Down
Expand Up @@ -44,7 +44,16 @@ public static Package callParsePackage(Path apkFile) {
if (RuntimeEnvironment.getApiLevel() >= Build.VERSION_CODES.Q) {
QHelper.setCallback(packageParser);
}
thePackage = packageParser.parsePackage(apkFile.toFile(), 0);
// thePackage = packageParser.parsePackage(apkFile.toFile(), flags);
thePackage = packageParser.parsePackage(apkFile.toFile().getParentFile(), 0);
System.out.println("Package : " + thePackage.toString());
System.out.println(" code : " + thePackage.baseCodePath);
for (int i = 0; i < thePackage.splitNames.length; i++) {
String splits = thePackage.splitNames[i];
String codepath = thePackage.splitCodePaths[i];
System.out.println("Split Package : " + splits);
System.out.println("Split code : " + codepath);
}
} else { // JB -> KK
thePackage =
reflector(_PackageParser_.class, packageParser)
Expand Down