From d79d9bceb36cebbcb926e414155489c6ce8fb741 Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Sat, 20 Dec 2014 15:38:29 -0600 Subject: Allow non datamedia devices to wipe encryption With 5.0 L, we decrypt automatically if the default_password is used. Non datamedia devices do not get the format data button so they cannot wipe encryption off the device. This patch add a wipe encryption button where the format data button would normally be located on the Wipe page. This patch also attempts to remove / delete the dm-crypt block device before formatting. Change-Id: I100d5d154d6c49254fd48e23279df973db5f23ae --- crypto/lollipop/cryptfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/lollipop/cryptfs.c') diff --git a/crypto/lollipop/cryptfs.c b/crypto/lollipop/cryptfs.c index c6586cc49..496b960ad 100644 --- a/crypto/lollipop/cryptfs.c +++ b/crypto/lollipop/cryptfs.c @@ -725,7 +725,7 @@ errout: return retval; } -static int delete_crypto_blk_dev(char *name) +int delete_crypto_blk_dev(char *name) { int fd; char buffer[DM_CRYPT_BUF_SIZE]; -- cgit v1.2.3