Remove the package name restriction of ACTION_UNINSTALL_PACKAGE
PackageInstaller has protected the intent action by setting "android:priority=1". Test: manual Fix: 332228634 Change-Id: If0794e5957366d8b26acd0362b59c6c9076a0c4f
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user