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.h | 1 + 1 file changed, 1 insertion(+) (limited to 'crypto/lollipop/cryptfs.h') diff --git a/crypto/lollipop/cryptfs.h b/crypto/lollipop/cryptfs.h index 8cb8a7a32..bc8b463ee 100644 --- a/crypto/lollipop/cryptfs.h +++ b/crypto/lollipop/cryptfs.h @@ -213,6 +213,7 @@ extern "C" { int cryptfs_check_passwd(char *pw); int cryptfs_verify_passwd(char *newpw); int cryptfs_get_password_type(void); + int delete_crypto_blk_dev(char *name); #ifdef __cplusplus } #endif -- cgit v1.2.3