Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Set external storage flag on wipe #623

Merged
merged 2 commits into from Nov 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -192,7 +192,6 @@ public void onSuccess(String data) {
// -------------------------------
MqttData cache = new MqttData(activity);
cache.setInvitationToken("");
cache.setUserToken("");

presenter.enrollSuccess();
}
Expand Down
Expand Up @@ -31,6 +31,7 @@
import android.os.Build;
import android.os.PowerManager;
import android.provider.Settings;
import static android.app.admin.DevicePolicyManager.WIPE_EXTERNAL_STORAGE;

import org.flyve.mdm.agent.receivers.FlyveAdminReceiver;
import org.flyve.mdm.agent.ui.LockActivity;
Expand Down Expand Up @@ -141,7 +142,7 @@ public void resetPassword(String newPassword) {
* Erase all data of the device
*/
public void wipe() {
mDPM.wipeData(0);
mDPM.wipeData(WIPE_EXTERNAL_STORAGE);
}

/**
Expand Down