Adjust permission checking of ensureCanModifyQuietMode
Two changes: 1. Verify caller package matches with calling UID before checking is it default launcher. 2. If IntentSender is specified, only caller with MANAGED_USERS can call through it. Test: run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.QuietModeHostsideTest Bug: 70212757 Change-Id: Iac118d988eb05097a56f343552c0b8845cf96749
Loading
Please register or sign in to comment