Include external storage in remote wipe
* Apparently, this is required via Microsoft specifications, though there had been an earlier decision not to do this Bug: 5384246 Change-Id: I05b6c2d21d3b295ad696f26a7a13cba6f1974e83
This commit is contained in:
parent
ccfff56cd8
commit
c82c1caf01
|
@ -544,12 +544,12 @@ public class SecurityPolicy {
|
|||
|
||||
/**
|
||||
* API: Remote wipe (from server). This is final, there is no confirmation. It will only
|
||||
* return to the caller if there is an unexpected failure.
|
||||
* return to the caller if there is an unexpected failure. The wipe includes external storage.
|
||||
*/
|
||||
public void remoteWipe() {
|
||||
DevicePolicyManager dpm = getDPM();
|
||||
if (dpm.isAdminActive(mAdminName)) {
|
||||
dpm.wipeData(0);
|
||||
dpm.wipeData(DevicePolicyManager.WIPE_EXTERNAL_STORAGE);
|
||||
} else {
|
||||
Log.d(Logging.LOG_TAG, "Could not remote wipe because not device admin.");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue