Skip to content
Commit 60efb868 authored by Jay Thomas Sullivan's avatar Jay Thomas Sullivan
Browse files

[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
parent db9da206
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment