Allow to open Content Protection settings externally
Test: adb root && adb shell aflags enable android.view.contentprotection.flags.exported_settings_activity_enabled && adb reboot && sleep 60 && adb shell am start -a android.settings.CONTENT_PROTECTION_SETTINGS
Bug: 385310040
Flag: android.view.contentprotection.flags.exported_settings_activity_enabled
Change-Id: I1a5e33196051de88ceaddb638edab702f762fe5d
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index a673920..f172795 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -5531,6 +5531,21 @@
android:value="true" />
</activity>
+
+ <activity android:name=".Settings$ContentProtectionSettingsActivity"
+ android:label="@string/content_protection_preference_title"
+ android:exported="true"
+ android:featureFlag="android.view.contentprotection.flags.exported_settings_activity_enabled">
+ <intent-filter>
+ <action android:name="android.settings.CONTENT_PROTECTION_SETTINGS" />
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
+ <meta-data android:name="com.android.settings.FRAGMENT_CLASS"
+ android:value="com.android.settings.security.ContentProtectionPreferenceFragment"/>
+ <meta-data android:name="com.android.settings.HIGHLIGHT_MENU_KEY"
+ android:value="@string/menu_key_system"/>
+ </activity>
+
<!-- This is the longest AndroidManifest.xml ever. -->
</application>
</manifest>