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:
Jeff Sharkey
2014-07-09 13:10:55 -07:00
parent 9b72700036
commit dbbf07a5c7

View File

@@ -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;