Start InstalledAppDetails Activity With a Specific Package Name
This trick works. It’s really easy.
123
//Let take com.mx.browser as the package nameIntentintent=newIntent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS,Uri.parse("package:com.mx.browser"));startActivity(intent);
Here is the javadoc of android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS
Activity Action: Show screen of details about a particular application.
In some cases, a matching Activity may not exist, so ensure you safeguard against this.
Input: The Intent’s data URI specifies the application package name to be shown, with the “package” scheme. That is “package:com.my.app”.
Output: Nothing.
A glance at how InstalledAppDetails get packageName