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
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 80092b2..f9f259b 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -1726,6 +1726,12 @@
</intent-filter>
</activity>
+ <receiver android:name=".CryptKeeper$UserInitBroadcastReceiver" >
+ <intent-filter>
+ <action android:name="android.intent.action.USER_INITIALIZE" />
+ </intent-filter>
+ </receiver>
+
<activity android:name=".CryptKeeper$FadeToBlack"
android:immersive="true"
android:launchMode="singleTop"