Merge "Add parent check on DevicePolicyManager.isSafeOperation()" into sc-dev
This commit is contained in:
@@ -2997,6 +2997,7 @@ public class DevicePolicyManager {
|
|||||||
*/
|
*/
|
||||||
// TODO(b/173541467): should it throw SecurityException if caller is not admin?
|
// TODO(b/173541467): should it throw SecurityException if caller is not admin?
|
||||||
public boolean isSafeOperation(@OperationSafetyReason int reason) {
|
public boolean isSafeOperation(@OperationSafetyReason int reason) {
|
||||||
|
throwIfParentInstance("isSafeOperation");
|
||||||
if (mService == null) return false;
|
if (mService == null) return false;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user