From 1b5cc427f06019936e40ee8e43ae931b8752eb11 Mon Sep 17 00:00:00 2001 From: Fyodor Kupolov Date: Mon, 8 Dec 2014 16:13:11 -0800 Subject: [PATCH] Disable CryptKeeper activity for secondary users For secondary users, disable CryptKeeper activity in a broadcast receiver of USER_INITIALIZE intent. This change has the following benefits for guest user switching: - The code will be executed earlier in the user switching flow, when the screen is frozen by WindowManager. - Initialization of CryptKeeperActivity is skipped Bug:18670536 Change-Id: I60300198b605c26ad15afe2c874d5f1be7da5087 --- AndroidManifest.xml | 6 +++++ src/com/android/settings/CryptKeeper.java | 29 +++++++++++++++++++---- 2 files changed, 30 insertions(+), 5 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 80092b27b4f..f9f259b66fb 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1726,6 +1726,12 @@ + + + + + +