aboutsummaryrefslogtreecommitdiffstats
path: root/device.h
diff options
context:
space:
mode:
authorTom Marshall <tdm@cyngn.com>2015-11-06 10:19:13 -0800
committerTom Marshall <tdm@cyngn.com>2015-11-25 15:34:35 -0800
commite1ba5bc721daf65598feb2b5c46d1c06fac63ec4 (patch)
tree4ed3fec9743008ac96b2f71de075c51a18cae247 /device.h
parent40b9e54a3c05111a64159645170f67a9153dbcd5 (diff)
downloadbootable_recovery-e1ba5bc721daf65598feb2b5c46d1c06fac63ec4.zip
bootable_recovery-e1ba5bc721daf65598feb2b5c46d1c06fac63ec4.tar.gz
bootable_recovery-e1ba5bc721daf65598feb2b5c46d1c06fac63ec4.tar.bz2
recovery: datamedia support
Change-Id: I4cef82973a15111bee92cd7c81f0e1db8d211991
Diffstat (limited to 'device.h')
-rw-r--r--device.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/device.h b/device.h
index d761d2a..c11f52e 100644
--- a/device.h
+++ b/device.h
@@ -64,10 +64,11 @@ class Device : public VoldWatcher {
// APPLY_ADB_SIDELOAD was 4.
WIPE_DATA = 5,
WIPE_CACHE = 6,
- REBOOT_BOOTLOADER = 7,
- SHUTDOWN = 8,
- VIEW_RECOVERY_LOGS = 9,
- MOUNT_SYSTEM = 10,
+ WIPE_MEDIA = 7,
+ REBOOT_BOOTLOADER = 8,
+ SHUTDOWN = 9,
+ VIEW_RECOVERY_LOGS = 10,
+ MOUNT_SYSTEM = 11,
};
// Return the list of menu items (an array of strings,
@@ -104,6 +105,9 @@ class Device : public VoldWatcher {
virtual bool PreWipeData() { return true; }
virtual bool PostWipeData() { return true; }
+ virtual bool PreWipeMedia() { return true; }
+ virtual bool PostWipeMedia() { return true; }
+
// Called before reboot
virtual char const* GetRebootReason() { return ""; }