Upgraded system apps could be mono or cluster.
Derive old-style paths for monolithic installations, otherwise assume cluster installation. Bug: 16163776 Change-Id: I03f1a12f9c07f6177a5c09be2bfe967416c07652
This commit is contained in:
@@ -6151,8 +6151,11 @@ public class PackageManagerService extends IPackageManager.Stub {
|
||||
File packLib64 = new File(lib64, apkName);
|
||||
File libDir = (packLib64.exists()) ? lib64 : new File(apkRoot, LIB_DIR_NAME);
|
||||
nativeLibraryPath = (new File(libDir, apkName)).getAbsolutePath();
|
||||
} else if (isApkFile(codeFile)) {
|
||||
// Monolithic install
|
||||
nativeLibraryPath = (new File(mAppLibInstallDir, apkName)).getAbsolutePath();
|
||||
} else {
|
||||
// Upgraded system app; derive its library path by inspecting.
|
||||
// Cluster install
|
||||
// TODO: pipe through abiOverride
|
||||
String[] abiList = Build.SUPPORTED_ABIS;
|
||||
NativeLibraryHelper.Handle handle = null;
|
||||
|
||||
Reference in New Issue
Block a user