Add a feature flag for the special access to the long background task
The entry should be hidden if the RUN_LONG_JOBS can't be toggled.
Bug: 255821578
Test: atest AppFilterRegistryTest
Test: make -j RunSettingsRoboTests \
ROBOTTEST_FILTER="LongBackgroundTasksDetailsTest|
LongBackgroundTasksDetailsPreferenceControllerTest"
Test: Manually check the Settings page
Change-Id: Ib1c58d93b40afefdf3ca666c661e213d01c542c6
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index a794d8e..03bcfe1 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -853,7 +853,7 @@
android:exported="true"
android:label="@string/long_background_tasks_label">
<intent-filter android:priority="1">
- <action android:name="android.settings.MANAGE_APP_LONG_JOBS" />
+ <action android:name="android.settings.MANAGE_APP_LONG_RUNNING_JOBS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<meta-data android:name="com.android.settings.FRAGMENT_CLASS"
@@ -869,7 +869,7 @@
android:exported="true"
android:label="@string/long_background_tasks_label">
<intent-filter android:priority="1">
- <action android:name="android.settings.MANAGE_APP_LONG_JOBS" />
+ <action android:name="android.settings.MANAGE_APP_LONG_RUNNING_JOBS" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="package" />
</intent-filter>