listInstalledApplications
suspend fun listInstalledApplications(excludingNatives: Boolean = false): Sequence<ApplicationMetadata>
Retrieve the list of installed applications
Starting from Android 11 (API level 30) or higher, the system filters the information about the other apps that are installed on a device by default.Some packages are visible automatically, but if you want to list all installed application, you'll need to declare the QUERY_ALL_PACKAGES permission in your manifest.
While using this permission, if you publish your app on Google Play, your app's use of this permission is subject to approval.
🔑 Minimum required license level: Core.
📝 Permissions needed in the manifest:
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
<queries>
<intent>
<action android:name="android.intent.action.MAIN" />
</intent>
</queries>
Content copied to clipboard
Return
Sequence<ApplicationMetadata>
— List of applications metadata
Since
v1.4.0 - New excludingNatives
parameter
Parameters
excludingNatives
to exclude non-system apps, by default to false