Merge "Remove the package name restriction of ACTION_UNINSTALL_PACKAGE" into main

This commit is contained in:
Jason Chiu
2024-04-18 01:49:09 +00:00
committed by Android (Google) Code Review
5 changed files with 1 additions and 10 deletions

View File

@@ -443,8 +443,7 @@ public class ToggleAccessibilityServicePreferenceFragment extends
final ApplicationInfo appInfo =
a11yServiceInfo.getResolveInfo().serviceInfo.applicationInfo;
final Uri packageUri = Uri.parse("package:" + appInfo.packageName);
final Intent uninstallIntent = new Intent(Intent.ACTION_UNINSTALL_PACKAGE, packageUri)
.setPackage(getString(R.string.config_package_installer_package_name));
final Intent uninstallIntent = new Intent(Intent.ACTION_UNINSTALL_PACKAGE, packageUri);
return uninstallIntent;
}