Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 69eef8a0 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "Support cluster-style installs for bundled apps." into lmp-dev

parents f8cf71d7 1e9189a2
Loading
Loading
Loading
Loading
+21 −28
Original line number Diff line number Diff line
@@ -6231,12 +6231,11 @@ public class PackageManagerService extends IPackageManager.Stub {
        info.nativeLibraryDir = null;
        info.secondaryNativeLibraryDir = null;
        if (isApkFile(codeFile)) {
            // Monolithic install
            if (bundledApp) {
            // Monolithic bundled install
            // TODO: support cluster bundled installs?
            final boolean is64Bit = (info.primaryCpuAbi != null)
                    && VMRuntime.is64BitAbi(info.primaryCpuAbi);
                final boolean is64Bit = VMRuntime.is64BitInstructionSet(
                        getPrimaryInstructionSet(info));
                // This is a bundled system app so choose the path based on the ABI.
                // if it's a 64 bit abi, use lib64 otherwise use lib32. Note that this
@@ -6245,17 +6244,13 @@ public class PackageManagerService extends IPackageManager.Stub {
                final String libDir = is64Bit ? LIB64_DIR_NAME : LIB_DIR_NAME;
                info.nativeLibraryRootDir = Environment.buildPath(new File(apkRoot), libDir,
                        apkName).getAbsolutePath();
            info.nativeLibraryRootRequiresIsa = false;
            info.nativeLibraryDir = info.nativeLibraryRootDir;
                if (info.secondaryCpuAbi != null) {
                    final String secondaryLibDir = is64Bit ? LIB_DIR_NAME : LIB64_DIR_NAME;
                    info.secondaryNativeLibraryDir = Environment.buildPath(new File(apkRoot),
                            secondaryLibDir, apkName).getAbsolutePath();
                }
        } else if (isApkFile(codeFile)) {
            // Monolithic install
            if (asecApp) {
            } else if (asecApp) {
                info.nativeLibraryRootDir = new File(codeFile.getParentFile(), LIB_DIR_NAME)
                        .getAbsolutePath();
            } else {
@@ -6271,10 +6266,8 @@ public class PackageManagerService extends IPackageManager.Stub {
            info.nativeLibraryRootDir = new File(codeFile, LIB_DIR_NAME).getAbsolutePath();
            info.nativeLibraryRootRequiresIsa = true;
            if (info.primaryCpuAbi != null) {
            info.nativeLibraryDir = new File(info.nativeLibraryRootDir,
                        VMRuntime.getInstructionSet(info.primaryCpuAbi)).getAbsolutePath();
            }
                    getPrimaryInstructionSet(info)).getAbsolutePath();
            if (info.secondaryCpuAbi != null) {
                info.secondaryNativeLibraryDir = new File(info.nativeLibraryRootDir,