summaryrefslogtreecommitdiffstats
path: root/roots.h
diff options
context:
space:
mode:
authorAndres Morales <anmorales@google.com>2014-08-05 19:49:09 -0700
committerAndres Morales <anmorales@google.com>2014-08-06 09:58:55 -0700
commitee19387905650cab5da7dd97ada5502cd17ac93d (patch)
tree46f1c336bce478470cf2b45511f7a55c61db5021 /roots.h
parenta91ecc59b2753a3dcc93b2619559a980074e77bd (diff)
downloadbootable_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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/roots.h b/roots.h
index 230d9de..b62a5b1 100644
--- a/roots.h
+++ b/roots.h
@@ -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