Merge "[Safer intents] Permission controller" into main

This commit is contained in:
Jason Chiu
2024-03-29 09:20:28 +00:00
committed by Android (Google) Code Review
22 changed files with 182 additions and 49 deletions

View File

@@ -921,7 +921,9 @@ public class ManageApplications extends InstrumentedFragment
.setResultListener(this, ADVANCED_SETTINGS)
.launch();
} else {
Intent intent = new Intent(Settings.ACTION_MANAGE_DEFAULT_APPS_SETTINGS);
Intent intent = new Intent(Settings.ACTION_MANAGE_DEFAULT_APPS_SETTINGS)
.setPackage(getContext()
.getPackageManager().getPermissionControllerPackageName());
startActivityForResult(intent, ADVANCED_SETTINGS);
}
return true;