Add aggressive activity fallback for apps missing Leanback intent#34
Add aggressive activity fallback for apps missing Leanback intent#34evanofficial wants to merge 1 commit into
Conversation
Some third-party apps (e.g. telecom/provider apps) omit the standard CATEGORY_LEANBACK_LAUNCHER intent, causing QuickBars to fail with "no launchable activity". This adds a new fallback step that queries PackageManager for all declared activities and picks the best entry point by scanning for common names like main, splash, tv, or launcher. Fixes Trooped#31
|
Is there a way i can assist in this? |
Thanks for offering! If you can sideload apps on your Chromecast, you could test by installing an app that's known to crash at launch (OdidoTv is the one mentioned in the issue). If it opens successfully after this fix, that's the validation I need. No coding required — just install and launch. |
|
Hi i feel so stupid but where (or how) can i download the QB apk with the fix to test? |
@evanofficial can you point me in the right direction? |
|
No worries! There's no automated build for PRs on this repo, so there isn't an APK to download yet. I'll build one from this branch and attach it to a release on my fork — give me a bit and I'll drop a link here you can install directly on your Chromecast. |
Summary
getBestLaunchIntent()that queriesPackageManager.GET_ACTIVITIESto scan all declared activities when standard intent resolution failsmain,splash,tv,leanback,launcher,home) before falling back to the first available activitygetPackageInfo(Tiramisu+ vs legacy)Testing notes
I don't have an Android TV device to verify the fix end-to-end with a problematic app like OdidoTv. Would appreciate if someone with access to a device and a known-failing app could validate.
Fixes #31