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

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

Only kill when needed when changing permissions

Only kill app when an app-op actually changed.

Do not call revokePermission if permission is already revoked. Even
when the permission is alrady revoked, calling this method will kill the
app the permission belongs to.

Also, apply all device policy state and then perist the state for the
whole app at one. Before we persisted after every individual permission
which caused permissions to be temporarily revoked and then re-granted.

Test: Set up device with device-owner, set up work-profile
Fixes: 126185337, 126326421
Change-Id: Id28caebd36d0c66e83ee6ab4299f0ccb3bc6b488
parent 3af151de
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment