Add restricted settings UI in Settings accessibility screeen
If OP_ACCESS_RESTRICTED_SETTINGS is rejected, it means accessibility page
for that app is gray out and app info won't show "unlock restricted settings menu"
If OP_ACCESS_RESTRICTED_SETTINGS is ignored, it means accessibility page
for that app is gray out, but app info shows "unlock restricted settings menu"
If OP_ACCESS_RESTRICTED_SETTINGS is allowed(default), it means users can
access accessibility page for that app.
OP_ACCESS_RESTRICTED_SETTINGS will be changed to ignored if user visited
the restricted settings dialog.
OP_ACCESS_RESTRICTED_SETTINGS will be changed to allowed if user passes
the confirmation screen.
Bug: 202130031
Test: Tested the UI and it works correctly
Change-Id: I3dfb94cee440658b4726a1c3f7265f93cd19ed3e
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 7d47fef..20d399a 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -3618,6 +3618,18 @@
</intent-filter>
</activity>
+ <activity android:name=".ActionDisabledByAppOpsDialog"
+ android:theme="@style/Theme.AlertDialog"
+ android:taskAffinity="com.android.settings.appops"
+ android:excludeFromRecents="true"
+ android:exported="false"
+ android:launchMode="singleTop">
+ <intent-filter android:priority="1">
+ <action android:name="android.settings.SHOW_RESTRICTED_SETTING_DIALOG" />
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
+ </activity>
+
<activity
android:name="Settings$ManageExternalStorageActivity"
android:exported="true"