Add parent check on DevicePolicyManager.isSafeOperation()
Test: atest ManagedProfileTest#testParentProfileApiDisabled Fixes: 180922138 Change-Id: I8b709edca8bd96569484be2f14bd7cb9768fa54e
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