diff options
author | Fabian Kozynski <kozynski@google.com> | 2020-07-09 09:23:37 -0400 |
---|---|---|
committer | Fabian Kozynski <kozynski@google.com> | 2020-07-20 16:02:19 -0400 |
commit | fd89d72b13e23087fabdfeddb99d9d97727dd785 (patch) | |
tree | c258d6d53edea8a5e1cd62392876763cb74ab146 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | d074a544353287572ee6877cb336b25f6463ee4e (diff) |
Restricts notified app ops based on flags
AppOps that are received by SystemUI and notified to listeners of
AppOpsControllerImpl are filtered based on the permission flag
PackageManager.FLAG_PERMISSION_USER_SENSITIVE_WHEN_GRANTED.
As calls to obtain this flag require an IPC, three things are done to
mitigate impact:
* PermissionFlagsCache keeps track of requested flags and will update
those (in a background thread), when a change is notified for a given
uid.
* Calls to getActiveAppOps/getActiveAppOpsForUser should be made from a
background thread.
* notifySubscribers is always called in the background thread.
Bug: 160966908
Test: atest PermissionFlagsCacheTest AppOpsControllerTest
Change-Id: I871094c32ce5ec940d779626333caa0ca500a4e3
Merged-In: I871094c32ce5ec940d779626333caa0ca500a4e3
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions