Merge "Fixed wipeData() so it doesn't depend on device_admin." into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
72ca552528
@@ -6832,7 +6832,7 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
|
||||
@Override
|
||||
public void wipeDataWithReason(int flags, String wipeReasonForUser,
|
||||
boolean calledOnParentInstance) {
|
||||
if (!mHasFeature) {
|
||||
if (!mHasFeature && !hasCallingOrSelfPermission(permission.MASTER_CLEAR)) {
|
||||
return;
|
||||
}
|
||||
final CallerIdentity caller = getCallerIdentity();
|
||||
|
||||
Reference in New Issue
Block a user