README: explain why the default-launcher picker cannot work on Google TV - #130
Open
williavs wants to merge 1 commit into
Open
README: explain why the default-launcher picker cannot work on Google TV#130williavs wants to merge 1 commit into
williavs wants to merge 1 commit into
Conversation
The stock Google TV launcher declares its HOME intent filter with priority 2. Android resolves the Home intent by priority before consulting the preferred activity or the HOME role, and non-system apps are capped at priority 0, so Method 1 records the choice and the system keeps ignoring it. Point people at Method 2 and give the dumpsys commands to confirm it on their device. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Method 1 cannot work on Google TV, and the README currently recommends it first. The reason is not a settings quirk:
com.google.android.apps.tv.launcherxdeclares its HOME intent filter withpriority=2(setupwraith's recovery activity uses 1). Android's resolver (PackageManagerService.chooseBestActivity) returns the higher-priority candidate before it ever consults the preferred activity or the HOME role, andComponentResolver.adjustPrioritycaps non-system apps at 0. So the picker records LTvLauncher as the HOME role holder and the Home key still launches Google TV. Same forcmd package set-home-activity.Checked on a Hisense Google TV, Android 12:
Home key with the picker set to LTvLauncher:
START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] ... cmp=com.google.android.apps.tv.launcherx/.home.HomeActivity} from uid 0.This adds a short note under Method 1 pointing Google TV users at Method 2, with the two dumpsys commands to confirm it on their own device. Docs only.