Adding a fallbackHome activity so that if there's no available launcher, this light weight activity will take over the screen
Bugs: 73470808
Fixes: 117109259
Test: manually removed launcher to verify this acitivity will show up on screen
Change-Id: I5bb5beeec7810c30299c895ce727487e7765bc60
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 2be6686..a7a83f8 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -132,6 +132,20 @@
android:windowSoftInputMode="adjustResize">
</activity>
+ <!-- This logic is copied from phone.-->
+ <!-- Ensures there's lightweight fallback activity when no other MAIN/HOME activity is present.-->
+ <activity android:name=".FallbackHome"
+ android:excludeFromRecents="true"
+ android:label=""
+ android:screenOrientation="nosensor"
+ android:theme="@style/FallbackHome">
+ <intent-filter android:priority="-1000">
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.HOME" />
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
+ </activity>
+
<service android:name=".bluetooth.BluetoothPairingService" />
<receiver android:name=".bluetooth.BluetoothPairingRequest">