commit | d390ae9c7e2b115c47bee8a9cac924fd76e22c65 | [log] [tgz] |
---|---|---|
author | Tony Mak <tonymak@google.com> | Thu Dec 28 13:23:10 2017 +0000 |
committer | Tony Mak <tonymak@google.com> | Thu Jan 04 13:11:50 2018 +0000 |
tree | 10175298357694ed511b1f99da719137a270f5b8 | |
parent | 7efb442ab4deab0b91d525ea8e9f4fad204bea92 [diff] |
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