diff options
author | Doug Zongker <dougz@android.com> | 2009-06-19 00:07:14 +0200 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2009-06-19 00:07:14 +0200 |
commit | b128f54d0daa749d301b99a6637f42aa35822a76 (patch) | |
tree | 889519250f40824c6df6ea197a8edee75cf95e10 /recovery_ui.h | |
parent | am 47cace98: add file_getprop() to updater (diff) | |
download | android_bootable_recovery-b128f54d0daa749d301b99a6637f42aa35822a76.tar android_bootable_recovery-b128f54d0daa749d301b99a6637f42aa35822a76.tar.gz android_bootable_recovery-b128f54d0daa749d301b99a6637f42aa35822a76.tar.bz2 android_bootable_recovery-b128f54d0daa749d301b99a6637f42aa35822a76.tar.lz android_bootable_recovery-b128f54d0daa749d301b99a6637f42aa35822a76.tar.xz android_bootable_recovery-b128f54d0daa749d301b99a6637f42aa35822a76.tar.zst android_bootable_recovery-b128f54d0daa749d301b99a6637f42aa35822a76.zip |
Diffstat (limited to 'recovery_ui.h')
-rw-r--r-- | recovery_ui.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/recovery_ui.h b/recovery_ui.h index 86f540b6e..671fe40ce 100644 --- a/recovery_ui.h +++ b/recovery_ui.h @@ -48,6 +48,14 @@ extern int device_handle_key(int key, int visible); // information to the screen. extern int device_perform_action(int which); +// Called when we do a wipe data/factory reset operation (either via a +// reboot from the main system with the --wipe_data flag, or when the +// user boots into recovery manually and selects the option from the +// menu.) Can perform whatever device-specific wiping actions are +// needed. Return 0 on success. The userdata and cache partitions +// are erased after this returns (whether it returns success or not). +int device_wipe_data(); + #define NO_ACTION -1 #define HIGHLIGHT_UP -2 |