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

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

Document delayed permission backup mechanism

Test: n/a
Fixes: 127545019
Change-Id: I62494048e2eeda733fabfddc53898b88827d92ef
parent ba5f1299
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