spocky / miproja1

364 stars 10 forks source link

[Feature Request] ADB option to set default launcher #158

Open jhedfors opened 2 months ago

jhedfors commented 2 months ago

Rather than use the Accessibility function to change my default launcher (as enabling Accessibility causes other issues for me), I currently use LAUNCHER MANAGER (Android TV) to set my default launcher to Projectivity (using ADB). https://xdaforums.com/t/app-firetv-noroot-launcher-manager-change-launcher-without-root.4176349/

It would be great to have this type of functionality built into Projectivity rather than installing a separate app which is not available in the Play Store.

TeutonJon78 commented 1 month ago

You can easily use an app like ADB TV to disable the two needed packages from a nice on-device GUI. Usually better to have a separate app do something like that than cram a lot of functionality into the launcher where the required apps might be different on a lot of devices.

Thorfinn66 commented 1 month ago

Install ADB TV app (For TV) or atvTools app (for phone) Both gives you access to ADB shell (You can also use them to disable/uninstall apps)

Get current launcher (Save that value case you want to revert): cmd shortcut get-default-launcher.

Set Projectivy Launcher as default: cmd package set-home-activity com.spocky.projengmenu/com.spocky.projengmenu.ui.home.MainActivity

Disable original Google TV launcher. (Different apps if you use other OS) pm disable-user --user 0 com.google.android.apps.tv.launcherx pm disable-user --user 0 com.google.android.tungsten.setupwraith

Make sure you set the new launcher before you disable the original Google TV launcher. After this, you dont need to use Accesibility Mode for Projectivy Launcher.

jhedfors commented 1 month ago

Install ADB TV app (For TV) or atvTools app (for phone) Both gives you access to ADB shell (You can also use them to disable/uninstall apps)

Get current launcher (Save that value case you want to revert): cmd shortcut get-default-launcher.

Set Projectivy Launcher as default: cmd package set-home-activity com.spocky.projengmenu/com.spocky.projengmenu.ui.home.MainActivity

Disable original Google TV launcher. (Different apps if you use other OS) pm disable-user --user 0 com.google.android.apps.tv.launcherx pm disable-user --user 0 com.google.android.tungsten.setupwraith

Make sure you set the new launcher before you disable the original Google TV launcher. After this, you dont need to use Accesibility Mode for Projectivy Launcher.

While I appreciate the effort, my original post clearly stated that I have a separate method to do this (Launcher Manager). My suggestion was to potentially build in this ALTERNATE method to using Accessibilty (as it is not designed to be used for this purpose).

Thorfinn66 commented 4 weeks ago

You can already set it as default launcher within the settings. But it can't disable the original launcher. For that you need ADB. And there's lots of different setups, so it would be overkill to add that to the pp. As It's a one time thing.