I have an Android app that should list all installed apps on a device (no root). I have tried both getInstalledApplications(0)
and getInstalledPackages(0)
methods of PackageManager
, but on some devices, which do apparently have too many apps installed, I'm getting "Package manager has died" RuntimeException
(I receive them via error reporting service of Google Play). This is due to a well-known limitation of 1MB per 1 call in IPC used internally by Android.
How to workaround this? I don't mind to request the long list by chunks, but I don't see any means for that. Only 2 abovementioned methods are available.
getInstalledPackages(0)
. AFAIK from Internet/Google groups, the limit of 1MB is for a single call. – Straightout