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

Commit f8dc339a authored by Kenny Root's avatar Kenny Root Committed by Android Git Automerger
Browse files

am 625b92fc: am f27f2f8f: Merge "Delete old forward-locked apps on upgrade" into jb-dev

* commit '625b92fc':
  Delete old forward-locked apps on upgrade
parents 940524f5 625b92fc
Loading
Loading
Loading
Loading
+16 −1
Original line number Diff line number Diff line
@@ -6185,7 +6185,22 @@ public class PackageManagerService extends IPackageManager.Stub {

    private InstallArgs createInstallArgs(int flags, String fullCodePath, String fullResourcePath,
            String nativeLibraryPath) {
        if (installOnSd(flags) || installForwardLocked(flags)) {
        final boolean isInAsec;
        if (installOnSd(flags)) {
            /* Apps on SD card are always in ASEC containers. */
            isInAsec = true;
        } else if (installForwardLocked(flags)
                && !fullCodePath.startsWith(mDrmAppPrivateInstallDir.getAbsolutePath())) {
            /*
             * Forward-locked apps are only in ASEC containers if they're the
             * new style
             */
            isInAsec = true;
        } else {
            isInAsec = false;
        }

        if (isInAsec) {
            return new AsecInstallArgs(fullCodePath, fullResourcePath, nativeLibraryPath,
                    installOnSd(flags), installForwardLocked(flags));
        } else {