[AAPM] Add advanced protection dialog according to API feedback
This change also updates ActionDisabledByAdminDialog because the
AdvancedProtectionManager#createSupportIntent method is now static.
Bug: 378968840
Bug: 352420507
Test: ActionDisabledByAdminDialogTest
Test: WepNetworksPreferenceControllerTest
Test: manual
Flag: android.security.aapm_api
Change-Id: I8443742aadead45091fee757cbdf715d28eee495
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 2295ee3..37a2340 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -4443,6 +4443,19 @@
</intent-filter>
</activity>
+ <activity android:name=".security.ActionDisabledByAdvancedProtectionDialog"
+ android:theme="@style/Theme.AlertDialog"
+ android:taskAffinity="com.android.settings.security"
+ android:excludeFromRecents="true"
+ android:exported="false"
+ android:launchMode="singleTop"
+ android:featureFlag="android.security.aapm_api">
+ <intent-filter android:priority="1">
+ <action android:name="android.security.advancedprotection.action.SHOW_ADVANCED_PROTECTION_SUPPORT_DIALOG" />
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
+ </activity>
+
<activity
android:name="Settings$ManageExternalStorageActivity"
android:knownActivityEmbeddingCerts="@array/config_known_host_certs"