diff options
author | Andres Morales <anmorales@google.com> | 2014-08-05 19:49:09 -0700 |
---|---|---|
committer | Andres Morales <anmorales@google.com> | 2014-08-06 09:58:55 -0700 |
commit | ee19387905650cab5da7dd97ada5502cd17ac93d (patch) | |
tree | 46f1c336bce478470cf2b45511f7a55c61db5021 /roots.h | |
parent | a91ecc59b2753a3dcc93b2619559a980074e77bd (diff) | |
download | bootable_recovery-ee19387905650cab5da7dd97ada5502cd17ac93d.zip bootable_recovery-ee19387905650cab5da7dd97ada5502cd17ac93d.tar.gz bootable_recovery-ee19387905650cab5da7dd97ada5502cd17ac93d.tar.bz2 |
Erase PST partition if its marked to be erased.
We need to wipe the challenges on this partition
if OEM unlock is enabled, as this is a signal that
the user has opted out of factory reset protection.
go/factory-reset
Bug: 16633064
Change-Id: Icb8f1433bf99ca57813f5b72d5a3dd15fa94a263
Diffstat (limited to 'roots.h')
-rw-r--r-- | roots.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -46,6 +46,11 @@ int format_volume(const char* volume); // mounted (/tmp and /cache) are mounted. Returns 0 on success. int setup_install_mounts(); +// Conditionally wipes the /persistent partition if it's marked +// to wipe. Returns -1 on failure, 1 if the partition was wiped +// and 0 if the partition was not wiped. +int erase_persistent_partition(); + #ifdef __cplusplus } #endif |