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 --- gui/devices/landscape/res/landscape.xml | 29 +++++++++++++++++++++++++---- gui/devices/portrait/res/portrait.xml | 29 +++++++++++++++++++++++++---- gui/devices/watch/res/watch.xml | 29 +++++++++++++++++++++++++---- 3 files changed, 75 insertions(+), 12 deletions(-) (limited to 'gui/devices') diff --git a/gui/devices/landscape/res/landscape.xml b/gui/devices/landscape/res/landscape.xml index cee7c1553..b8803026a 100644 --- a/gui/devices/landscape/res/landscape.xml +++ b/gui/devices/landscape/res/landscape.xml @@ -1057,10 +1057,7 @@ - - - - + @@ -1071,6 +1068,30 @@ + + + + + + + + + Wipe Encryption + + + tw_back=wipe + tw_action=wipe + tw_action_param=DATAMEDIA + tw_has_action2=0 + tw_text1=Wipe Encryption from Data? + tw_text2= + tw_action_text1=Formatting Data... + tw_complete_text1=Data Format Complete + tw_slider_text=Swipe to Format Data + confirm_action + + + diff --git a/gui/devices/portrait/res/portrait.xml b/gui/devices/portrait/res/portrait.xml index 9a9571012..a7fbbf460 100644 --- a/gui/devices/portrait/res/portrait.xml +++ b/gui/devices/portrait/res/portrait.xml @@ -769,10 +769,7 @@ - - - - + @@ -783,6 +780,30 @@ + + + + + + + + + Wipe Encryption + + + tw_back=wipe + tw_action=wipe + tw_action_param=DATAMEDIA + tw_has_action2=0 + tw_text1=Wipe Encryption from Data? + tw_text2= + tw_action_text1=Formatting Data... + tw_complete_text1=Data Format Complete + tw_slider_text=Swipe to Format Data + confirm_action + + + diff --git a/gui/devices/watch/res/watch.xml b/gui/devices/watch/res/watch.xml index d3ddc5417..23795695f 100644 --- a/gui/devices/watch/res/watch.xml +++ b/gui/devices/watch/res/watch.xml @@ -712,10 +712,7 @@ - - - - + @@ -726,6 +723,30 @@ + + + + + + + + + Wipe Encryption + + + tw_back=wipe + tw_action=wipe + tw_action_param=DATAMEDIA + tw_has_action2=0 + tw_text1=Wipe Encryption from Data? + tw_text2= + tw_action_text1=Formatting Data... + tw_complete_text1=Data Format Complete + tw_slider_text=Swipe to Format Data + confirm_action + + + -- cgit v1.2.3