diff options
author | 2024-08-08 17:20:47 -0700 | |
---|---|---|
committer | 2024-12-05 19:35:33 -0800 | |
commit | c1b8ec5b8b79251289599f0bcd8fce9f355a3649 (patch) | |
tree | 9d90cbf10c7c97520276a33503ca6f5e305840e3 /tools/aapt2/ResourceTable.cpp | |
parent | 361f663370dc915607b4b9e17bc0a49d43cb799e (diff) |
Delay appop revocation when only capability is lost
On proc state changes, if the proc state doesn't change the uid state
over the restriction threshold and if no new capabilities are added then
delay the uid state commit. This fixes cases such as going from
UID_STATE_TOP -> UID_STATE_FOREGROUND, we shouldn't be revoking appop
access right away.
Test: AppOpsUidStateTrackerTest
Bug: 347891382
Bug: 290086710
Fixes: 382531813
Merged-In: Ia23c0f5b79fa194539151ffbd04a36891e06361b
Change-Id: Ia23c0f5b79fa194539151ffbd04a36891e06361b
Diffstat (limited to 'tools/aapt2/ResourceTable.cpp')
0 files changed, 0 insertions, 0 deletions