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:
Marc Blank 2011-09-28 09:41:44 -07:00
parent ccfff56cd8
commit c82c1caf01
1 changed files with 2 additions and 2 deletions

View File

@ -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.");
}