getLaunchIntentForPackage is null for some apps
Since Android 11 there is a behavior change that some apps will not provide this info unless you add queries tag to the AndroidManifest like <queries> <package android:name=”app.i.want.to.query” /> </queries> Refer here for more info