Loading core/java/android/os/RecoverySystem.java +18 −0 Original line number Diff line number Diff line Loading @@ -1258,6 +1258,24 @@ public class RecoverySystem { bootCommand(context, "--wipe_ab", filenameArg, reasonArg, localeArg); } /** * Reboot into recovery and wipe the data partition with ext4 * * @throws IOException if something goes wrong. * * @hide */ @RequiresPermission(allOf = { android.Manifest.permission.RECOVERY, android.Manifest.permission.REBOOT }) public void wipePartitionToExt4() throws IOException { // Reformat /data partition with ext4 String command = "--wipe_data\n--reformat_data=ext4"; rebootRecoveryWithCommand(command); } /** * Reboot into the recovery system with the supplied argument. * @param args to pass to the recovery utility. Loading Loading
core/java/android/os/RecoverySystem.java +18 −0 Original line number Diff line number Diff line Loading @@ -1258,6 +1258,24 @@ public class RecoverySystem { bootCommand(context, "--wipe_ab", filenameArg, reasonArg, localeArg); } /** * Reboot into recovery and wipe the data partition with ext4 * * @throws IOException if something goes wrong. * * @hide */ @RequiresPermission(allOf = { android.Manifest.permission.RECOVERY, android.Manifest.permission.REBOOT }) public void wipePartitionToExt4() throws IOException { // Reformat /data partition with ext4 String command = "--wipe_data\n--reformat_data=ext4"; rebootRecoveryWithCommand(command); } /** * Reboot into the recovery system with the supplied argument. * @param args to pass to the recovery utility. Loading