diff options
| author | 2022-04-12 17:36:41 -0700 | |
|---|---|---|
| committer | 2023-05-18 22:15:06 +0000 | |
| commit | 3b3110b5455b9323ecc33a2283ef890b921c8e72 (patch) | |
| tree | 01d419fe0616d86a272f6cb90b4ae94ff87a8dea /libs/androidfw/StringPool.cpp | |
| parent | 3f4d138a91fb5c2b79e4284f351c1366770c9506 (diff) | |
Watch uid proc state instead of importance for 1-time permissions
The system process may bind to an app with the flag
BIND_FOREGROUND_SERVICE, this will put the client in the foreground
service importance level without the normal requirement that foreground
services must show a notification. Looking at proc states instead allows
us to differentiate between these two levels of foreground service and
revoke the client when not in use.
This change makes the parameters `importanceToResetTimer` and
`importanceToKeepSessionAlive` in PermissionManager#startOneTimePermissionSession
obsolete.
Test: atest CtsPermissionTestCases + manual testing with mic/cam/loc
Bug: 217981062
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:0be78fbbf7d92bf29858aa0c48b171045ab5057f)
Merged-In: I7a725647c001062d1a76a82b680a02e3e2edcb03
Change-Id: I7a725647c001062d1a76a82b680a02e3e2edcb03
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions