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

Commit 93a8e2c7 authored by Todd Kennedy's avatar Todd Kennedy Committed by Android (Google) Code Review
Browse files

Merge "remove app-ephemeral"

parents bf92b812 4eb7cea5
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -310,11 +310,6 @@ public class Environment {
        return new File(getDataDirectory(volumeUuid), "app");
    }

    /** {@hide} */
    public static File getDataAppEphemeralDirectory(String volumeUuid) {
        return new File(getDataDirectory(volumeUuid), "app-ephemeral");
    }

    /** {@hide} */
    public static File getDataUserCeDirectory(String volumeUuid) {
        return new File(getDataDirectory(volumeUuid), "user");
+0 −3
Original line number Diff line number Diff line
@@ -787,9 +787,6 @@ public class PackageInstallerService extends IPackageInstaller.Stub {
    }

    private File buildStagingDir(String volumeUuid, boolean isEphemeral) {
        if (isEphemeral) {
            return Environment.getDataAppEphemeralDirectory(volumeUuid);
        }
        return Environment.getDataAppDirectory(volumeUuid);
    }

+0 −6
Original line number Diff line number Diff line
@@ -630,7 +630,6 @@ public class PackageManagerService extends IPackageManager.Stub {
    /** Directory where installed third-party apps stored */
    final File mAppInstallDir;
    final File mEphemeralInstallDir;
    /**
     * Directory to which applications installed internally have their
@@ -2291,7 +2290,6 @@ public class PackageManagerService extends IPackageManager.Stub {
            File dataDir = Environment.getDataDirectory();
            mAppInstallDir = new File(dataDir, "app");
            mAppLib32InstallDir = new File(dataDir, "app-lib");
            mEphemeralInstallDir = new File(dataDir, "app-ephemeral");
            mAsecInternalPath = new File(dataDir, "app-asec").getPath();
            mDrmAppPrivateInstallDir = new File(dataDir, "app-private");
            sUserManager = new UserManagerService(context, this,
@@ -2595,10 +2593,6 @@ public class PackageManagerService extends IPackageManager.Stub {
                        | PackageParser.PARSE_FORWARD_LOCK,
                        scanFlags | SCAN_REQUIRE_KNOWN, 0);
                scanDirLI(mEphemeralInstallDir, mDefParseFlags
                        | PackageParser.PARSE_IS_EPHEMERAL,
                        scanFlags | SCAN_REQUIRE_KNOWN, 0);
                /**
                 * Remove disable package settings for any updated system
                 * apps that were removed via an OTA. If they're not a