Skip to content
Commit 3e402188 authored by Kevin Han's avatar Kevin Han
Browse files

Do not auto-revoke if permission changed recently

Introduce PermissionChangeStorageImpl which stores the day when a
package's permissions are changed by the user. This data is retained for
90 days.

When we auto-revoke, check if the permissions were changed within the
last 90 days and if so, do not auto-revoke any of the package
permissions.

For CTS testing coverage, we also add a setting to allow the storage to
store exact times (so we aren't stuck waiting days in the CTS test)

Bug: 205642821
Test: atest PermissionChangeStorageImplTest
Test: atest AutoRevokeTest
Test: manual
Change-Id: I7866a1209bcb388d8efa6522cad9e57b280b1996
parent dafe1334
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment