if (mContext.checkCallingOrSelfPermission("android.permission.MASTER_CLEAR") !=
PackageManager.PERMISSION_GRANTED) {
Log.e(TAG, "Permission Denial: can't invoke masterClear from "
+ "pid=" + Binder.getCallingPid() + ", "
+ "uid=" + Binder.getCallingUid());
return;
}
// Save the android ID so the new system can get it erased.
try {
RecoverySystem.rebootAndWipe();
} catch (IOException e) {
Log.e(TAG, "Reboot for masterClear() failed", e);
}