From 617cc51bdbde9939fdb4983e6164547c73729049 Mon Sep 17 00:00:00 2001 From: David Jacobo Date: Tue, 18 Mar 2025 16:41:09 -0700 Subject: [PATCH] settings: Set explicit intent for legal info This CL sets the full component for the Settings intent that opens "Legal information->Third-party...". Bug: 300111126 Test: make -j64 SettingsRoboTests Test: create ika environment, manually open legal info. Flag: EXEMPT bug fix Change-Id: I3169620c0f2ff78a39b456597384a9738bc38a9f --- src/com/android/settings/SettingsLicenseActivity.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/android/settings/SettingsLicenseActivity.java b/src/com/android/settings/SettingsLicenseActivity.java index 598c97394c1..a0c7b63ae54 100644 --- a/src/com/android/settings/SettingsLicenseActivity.java +++ b/src/com/android/settings/SettingsLicenseActivity.java @@ -17,6 +17,7 @@ package com.android.settings; import android.content.ActivityNotFoundException; +import android.content.ComponentName; import android.content.ContentResolver; import android.content.Intent; import android.net.Uri; @@ -103,6 +104,9 @@ public class SettingsLicenseActivity extends FragmentActivity implements | Intent.FLAG_GRANT_PREFIX_URI_PERMISSION); } intent.addCategory(Intent.CATEGORY_DEFAULT); + ComponentName componentName = new ComponentName( + "com.android.htmlviewer", "com.android.htmlviewer.HTMLViewerActivity"); + intent.setComponent(componentName); intent.setPackage("com.android.htmlviewer"); try {