Merge "Fixed wipeData() so it doesn't depend on device_admin." into sc-dev am: 72ca552528
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14949624 Change-Id: Ie8796953e95a67942b8ce8c304f3e250aaf771f9
This commit is contained in:
@@ -6832,7 +6832,7 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
|
|||||||
@Override
|
@Override
|
||||||
public void wipeDataWithReason(int flags, String wipeReasonForUser,
|
public void wipeDataWithReason(int flags, String wipeReasonForUser,
|
||||||
boolean calledOnParentInstance) {
|
boolean calledOnParentInstance) {
|
||||||
if (!mHasFeature) {
|
if (!mHasFeature && !hasCallingOrSelfPermission(permission.MASTER_CLEAR)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
final CallerIdentity caller = getCallerIdentity();
|
final CallerIdentity caller = getCallerIdentity();
|
||||||
|
|||||||
Reference in New Issue
Block a user