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

Commit e8fe3cb1 authored by Philip P. Moltmann's avatar Philip P. Moltmann
Browse files

Rename ACTION_CONFIRM_PERMISSIONS -> ACTION_CONFIRM_INSTALL

The old name never really made sense. Now that installations get
confirmed on first start of the app, the old name doesn't make sense at
all anymore.

Test: Installed app via PackageInstallSession (gts-tradefed run
commandAndExit gts-dev -m GtsPackageInstallTestCases)
Change-Id: I3701d34068e2c30002a3b1dddf4aacead8bafaa2
parent 28b22636
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -121,8 +121,7 @@ public class PackageInstaller {
            "android.content.pm.action.SESSION_COMMITTED";

    /** {@hide} */
    public static final String
            ACTION_CONFIRM_PERMISSIONS = "android.content.pm.action.CONFIRM_PERMISSIONS";
    public static final String ACTION_CONFIRM_INSTALL = "android.content.pm.action.CONFIRM_INSTALL";

    /**
     * An integer session ID that an operation is working with.
+3 −3
Original line number Diff line number Diff line
@@ -947,9 +947,9 @@ public class PackageInstallerSession extends IPackageInstallerSession.Stub {
        Preconditions.checkNotNull(mResolvedBaseFile);

        if (needToAskForPermissionsLocked()) {
            // User needs to accept permissions; give installer an intent they
            // can use to involve user.
            final Intent intent = new Intent(PackageInstaller.ACTION_CONFIRM_PERMISSIONS);
            // User needs to confirm installation; give installer an intent they can use to involve
            // user.
            final Intent intent = new Intent(PackageInstaller.ACTION_CONFIRM_INSTALL);
            intent.setPackage(mContext.getPackageManager().getPermissionControllerPackageName());
            intent.putExtra(PackageInstaller.EXTRA_SESSION_ID, sessionId);
            try {