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
This commit is contained in:
David Jacobo
2025-03-18 16:41:09 -07:00
parent 4bc471f61e
commit 617cc51bdb

View File

@@ -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 {