commit | 781c51ac95fa8493dd22ee09f615864e7c8120c4 | [log] [tgz] |
---|---|---|
author | Yuting Fang <yutingfang@google.com> | Fri Jan 26 07:36:34 2024 +0000 |
committer | Yuting Fang <yutingfang@google.com> | Thu Feb 08 04:46:12 2024 +0000 |
tree | 486b9112dfaa9e19e032a18ad68ba1e5d4c0db1c | |
parent | a84693eec09c00c293e2c02fda0a7d4cc4542e3b [diff] |
Create a system API to check permission by persistent device Id The new system Api in PermissionManager is used to check permission against a persistent device Id. It uses the same cache sPackageNamePermissionCache as the one used by PackageManager#checkPermission, but changes the cache to use persistentDeviceId in the cache key instead of VDID. Bug: b/315356442 Test: ag/26168815 atest DevicePermissionsTest Change-Id: I6043229a70b30b71652466fed07fd151aff8883c