Merge "Add parent check on DevicePolicyManager.isSafeOperation()" into sc-dev am: d42e4a6771
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13765254 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I67cb3a9317e7b8bb9a029370a1187100e30b278b
This commit is contained in:
@@ -2997,6 +2997,7 @@ public class DevicePolicyManager {
|
||||
*/
|
||||
// TODO(b/173541467): should it throw SecurityException if caller is not admin?
|
||||
public boolean isSafeOperation(@OperationSafetyReason int reason) {
|
||||
throwIfParentInstance("isSafeOperation");
|
||||
if (mService == null) return false;
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user