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

Commit 9906f00f authored by Philip P. Moltmann's avatar Philip P. Moltmann Committed by Android (Google) Code Review
Browse files

Merge "Document delayed permission backup mechanism"

parents b0569733 4198dd1c
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -112,6 +112,9 @@ public abstract class PermissionControllerService extends Service {
    /**
     * Restore a backup of the runtime permissions.
     *
     * <p>If an app mentioned in the backup is not installed the state should be saved to later
     * be restored via {@link #onRestoreDelayedRuntimePermissionsBackup}.
     *
     * @param user The user to restore
     * @param backup The stream to read the backup from
     */
@@ -120,7 +123,8 @@ public abstract class PermissionControllerService extends Service {
            @NonNull InputStream backup);

    /**
     * Restore a delayed backup of the runtime permissions.
     * Restore the permission state of an app that was provided in
     * {@link #onRestoreRuntimePermissionsBackup} but could not be restored back then.
     *
     * @param packageName The app to restore
     * @param user The user to restore