[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

@@ -29,7 +29,8 @@ public class SafetyInfoPreferenceController extends AbstractPreferenceController
PreferenceControllerMixin {
private static final Intent INTENT_PROBE =
new Intent("android.settings.SHOW_SAFETY_AND_REGULATORY_INFO");
new Intent("android.settings.SHOW_SAFETY_AND_REGULATORY_INFO")
.setPackage("com.android.safetyregulatoryinfo");
private final PackageManager mPackageManager;