Merge "Add a null home activity to Shell.apk"

This commit is contained in:
Treehugger Robot
2020-02-07 07:59:39 +00:00
committed by Gerrit Code Review
3 changed files with 103 additions and 0 deletions

View File

@@ -282,6 +282,22 @@
android:excludeFromRecents="true"
android:exported="false" />
<!--
The following is used as a no-op/null home activity when
no other MAIN/HOME activity is present (e.g., in CSI).
-->
<activity android:name=".NullHome"
android:excludeFromRecents="true"
android:label=""
android:screenOrientation="nosensor">
<!-- The priority here is set to be lower than that for Settings -->
<intent-filter android:priority="-1100">
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<receiver
android:name=".BugreportReceiver"
android:permission="android.permission.DUMP">