When I run my app on certain physical devices, the Android PackageManager seems to only detect system apps. For example, I have the Facebook app installed, but calling PackageManager.getPackageInfo
on com.facebook.katana
results in a NameNotFoundException
. getInstalledPackages(PackageManager.GET_META_DATA)
returns a list of what appears to be system apps only (i.e. the package name starts with com.android
, com.samsung
, etc). Again, this only seems to occur on physical devices that I have tested. On my emulator, everything works as expected (i.e. all apps are detected).
Any ideas why this is happening?