From b128f54d0daa749d301b99a6637f42aa35822a76 Mon Sep 17 00:00:00 2001 From: Doug Zongker Date: Thu, 18 Jun 2009 15:07:14 -0700 Subject: add function for device-specific wipe data features Some devices want to do special things when recovery wipes data (eg, wipe data in their baseband processor as well). Add a hook in the device-specific recovery library that gets called when data is wiped. Also add an amend root for the "mbm" partition. --- recovery_ui.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'recovery_ui.h') 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 -- cgit v1.2.3