From 5d4c68e40700424b65a4331be75620706a0dd49c Mon Sep 17 00:00:00 2001 From: Ken Sumrall Date: Sun, 30 Jan 2011 19:06:03 -0800 Subject: Have vold grab a partial wakelock when encrypting The Progress bar UI grabs a full wakelock when encrypting, but we've seen a case where it looks like the progress bar UI crashes, and the wakelock is lost, and then all hell breaks loose. The enablecrypto command has a lot of work to do, and it will take some time, so it should grab a wakelock to ensure it can finish without being interrupted and put to sleep. It grabs a partial wake lock, as it doesn't need the screen to be on to do its work. If the UI wants to keep it on, it should also grab a full wakelock, which it does. If the UI crashes, the screen may turn off, but the encryption will keep going, and vold will reboot the device when it's done. Change-Id: I51d3a72b8c77383044a3facb1604c1ee510733ae --- Android.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'Android.mk') diff --git a/Android.mk b/Android.mk index 3b96aab..48df613 100644 --- a/Android.mk +++ b/Android.mk @@ -33,6 +33,7 @@ common_shared_libraries := \ libsysutils \ libcutils \ libdiskconfig \ + libhardware_legacy \ libcrypto include $(CLEAR_VARS) -- cgit v1.2.3