diff options
author | 2024-01-25 13:55:36 -0800 | |
---|---|---|
committer | 2024-01-25 15:22:26 -0800 | |
commit | 60efb86813f318b59717fdb2cc0da82011c96112 (patch) | |
tree | f456147bb1162aadf2af1ef88a81aaf00a434a4d /framework-s/java | |
parent | db9da2066c4a780e771ef58a322803db38327b00 (diff) |
[ECM] Enforce MANAGE_ENHANCED_CONFIRMATION_STATES
Enforce the MANAGE_ENHANCED_CONFIRMATION_STATES permission in
EnhancedConfirmationService instead of MANAGE_APPOPS.
Previously, we enforced MANAGE_APPOPS. But enforcing this permission is
a leaky abstraction: callers should not need to even know we're dealing
with appops in the service. Also, this permission is too powerful: we
don't want to ask callers to use this permission. It's also hidden API.
Enforcing a new permission specific to ECM solves all of this.
Bug: 320512579
Test: atest EnhancedConfirmationManagerTest
Change-Id: I992bcff2689bc66c00d17a721ea441c70ca2d38d
Diffstat (limited to 'framework-s/java')
0 files changed, 0 insertions, 0 deletions