diff options
author | Doug Zongker <dougz@android.com> | 2011-07-19 12:45:09 -0700 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2011-07-19 12:45:09 -0700 |
commit | 33651201375d3670672964503994c410b8eeed7b (patch) | |
tree | 2350c67d93932b3bf274207a4db69ad41329bbe7 /core | |
parent | 7dde1c8ccce049378b8aa9e757b6f907040c8640 (diff) | |
download | frameworks_base-33651201375d3670672964503994c410b8eeed7b.zip frameworks_base-33651201375d3670672964503994c410b8eeed7b.tar.gz frameworks_base-33651201375d3670672964503994c410b8eeed7b.tar.bz2 |
add rebootWipeCache call to RecoverySystem API
Also remove the never-used encrypted-filesystem-via-recovery stuff
that was stripped out of recovery a while ago.
Change-Id: I3349cba83daa9bc4765bd9b3f96d15000a801824
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/os/RecoverySystem.java | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/core/java/android/os/RecoverySystem.java b/core/java/android/os/RecoverySystem.java index ae605fb..73e8d98 100644 --- a/core/java/android/os/RecoverySystem.java +++ b/core/java/android/os/RecoverySystem.java @@ -357,20 +357,11 @@ public class RecoverySystem { } /** - * Reboot into the recovery system to wipe the /data partition and toggle - * Encrypted File Systems on/off. - * @param extras to add to the RECOVERY_COMPLETED intent after rebooting. + * Reboot into the recovery system to wipe the /cache partition. * @throws IOException if something goes wrong. - * - * @hide */ - public static void rebootToggleEFS(Context context, boolean efsEnabled) - throws IOException { - if (efsEnabled) { - bootCommand(context, "--set_encrypted_filesystem=on"); - } else { - bootCommand(context, "--set_encrypted_filesystem=off"); - } + public static void rebootWipeCache(Context context) throws IOException { + bootCommand(context, "--wipe_cache"); } /** |