[Safer intents] Device info

To avoid implicit intents, make intents launch explicitly.

Bug: 323061508
Test: build
Change-Id: I053372e15f6353578b7646e17f0a8205728945be
This commit is contained in:
Jason Chiu
2024-03-25 15:39:44 +08:00
parent 67bfb4141f
commit 2dc76ee9fe
3 changed files with 9 additions and 5 deletions

View File

@@ -78,7 +78,8 @@
android:key="regulatory_info"
android:order="16"
android:title="@string/regulatory_labels">
<intent android:action="android.settings.SHOW_REGULATORY_INFO"/>
<intent android:action="android.settings.SHOW_REGULATORY_INFO"
android:targetPackage="${applicationId}"/>
</Preference>
<!-- Safety & regulatory manual -->
@@ -207,7 +208,8 @@
android:key="manual"
android:order="50"
android:title="@string/manual">
<intent android:action="android.settings.SHOW_MANUAL"/>
<intent android:action="android.settings.SHOW_MANUAL"
android:targetPackage="${applicationId}"/>
</Preference>
<!-- Feedback on the device -->