diff --git a/BoardConfig.mk b/BoardConfig.mk index d57a706e0..e2f0385e9 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -47,6 +47,9 @@ TARGET_RECOVERY_FSTAB := device/google/wahoo/fstab.hardware BOARD_USES_RECOVERY_AS_BOOT := true BOARD_BUILD_SYSTEM_ROOT_IMAGE := true +# Partitions (listed in the file) to be wiped under recovery. +TARGET_RECOVERY_WIPE := device/google/wahoo/recovery.wipe + ENABLE_CPUSETS := true TARGET_COPY_OUT_VENDOR := vendor diff --git a/recovery.wipe b/recovery.wipe new file mode 100644 index 000000000..03e5e18b1 --- /dev/null +++ b/recovery.wipe @@ -0,0 +1,10 @@ +# All the partitions to be wiped (in order) under recovery. +/dev/block/bootdevice/by-name/system_a +/dev/block/bootdevice/by-name/system_b +/dev/block/bootdevice/by-name/vendor_a +/dev/block/bootdevice/by-name/vendor_b +/dev/block/bootdevice/by-name/userdata +# Wipe the boot partitions last so that all partitions will be wiped +# correctly even if the wiping process gets interrupted by a force boot. +/dev/block/bootdevice/by-name/boot_a +/dev/block/bootdevice/by-name/boot_b