Add fallback encryption-aware home screen.
When the home screen selected by the user isn't encryption aware, we
still need to put something on the ActivityStack. For now, let's use
an empty activity that knows how to dismiss itself when the
credential-encrypted storage is unlocked; that's enough for the
system to re-resolve the home intent and find the real home screen.
Also follow method refactoring.
Bug: 22358539
Change-Id: Iebc4ad8d2dd62ada079cab03d5765f7631fd4beb
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index a71821f..37edca7 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -2148,6 +2148,17 @@
</intent-filter>
</activity>
+ <!-- Triggered when user-selected home app isn't encryption aware -->
+ <activity android:name=".FallbackHome"
+ android:excludeFromRecents="true"
+ android:theme="@android:style/Theme.Translucent.NoTitleBar">
+ <intent-filter android:priority="-10">
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.HOME" />
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
+ </activity>
+
<activity android:name=".CryptKeeper$FadeToBlack"
android:immersive="true"
android:launchMode="singleTop"