commit | b90d4d01e1bfaacae0e1f144075f72b1fb036799 | [log] [tgz] |
---|---|---|
author | Evan Severson <evanseverson@google.com> | Thu Aug 08 17:20:47 2024 -0700 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Mar 12 16:49:20 2025 -0700 |
tree | a3aa78679bc6bdcf72527450e63b7d43175dbc8c | |
parent | 22a375717e61f3f6c2ddf9a6ad974f248ed9624e [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 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:991ca43e14ff06b8d290ac0dd1ef758d4826b61a) Merged-In: Ia23c0f5b79fa194539151ffbd04a36891e06361b Change-Id: Ia23c0f5b79fa194539151ffbd04a36891e06361b