Intent handler for new BACKGROUND_RESTRICTIONS_SETTINGS

Use the existing battery usage screen as entry point
for ACTION_BACKGROUND_RESTRICTIONS_SETTINGS.

Bug: 320150834
Test: am start -a android.settings.BACKGROUND_RESTRICTIONS_SETTINGS
      atest ActivityManagerTest#testBackgroundRestrictionsIntent
Change-Id: I479ab666334eeb3232a9200b70a6d3ce2ddd2ad9
This commit is contained in:
Amith Yamasani
2024-02-10 11:28:43 -08:00
parent 74f8cb6eeb
commit 022a815033

View File

@@ -1704,6 +1704,12 @@
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter android:priority="1">
<action android:name="android.settings.BACKGROUND_RESTRICTIONS_SETTINGS" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="package" />
</intent-filter>
<meta-data android:name="com.android.settings.FRAGMENT_CLASS"
android:value="com.android.settings.applications.manageapplications.ManageApplications" />
<meta-data android:name="com.android.settings.HIGHLIGHT_MENU_KEY"