spocky / miproja1

362 stars 10 forks source link

GoogleTV updated today and broke launcher override #155

Closed SlicingKnife closed 3 weeks ago

SlicingKnife commented 2 months ago

GoogleTV version 1.0.660160223 update stops Projectivity Launcher from auto launch.

SlicingKnife commented 2 months ago

I have Projectivy Launcher version 4.54 and today now have GoogleTV version 1.0.660160223. This new GoogleTV version seems to offer more commercials and apps on their home screen. In it's settings, I have uninstalled updates, cleared cache and restarted the TV without success. The 'HOME' button on the remote launches GoogleTV's home and upon restart too. It appears GoogleTV's 'update' was to prevent Projectivity from auto launching. Projectivity Launcher does launch using it's icon.

spocky commented 2 months ago

I suppose you're using the accessibility service to override the stock launcher. Make sure it's still running (in Projectivy's "accessibility service" entry, you can see if it's currently running, don't trust what's in the stock settings accessibility menu, it might be enabled but not running. If it shows as enabled, try to disable it and then reenable it. (I've just updated my ccwgtv to 1.0.66 and it seems to work as before).

SlicingKnife commented 2 months ago

Yes, I see the Accessibility Service is not enabled as shown in Projectivity Launcher. When I visit Accessibility in Android I have selected Projectivity Laucher: ON. Previously, this enabled Accessibility, after this GoogleTV that no longer works. To clarify: In Android Settings/System/Accessibility/Projectivy Laucher: ON In Projectivity Launcher/Settings/Accessibility service/Enabled: NO <-- this should display YES because of the line above.

I have uninstalled and reinstalled both this GoogleTV update and Projectivity Launcher without success. Is there a service_config.xml, or similar file, I need to manually edit after this GoogleTV update? I have attached a short video to illustrate settings in both Projectivy and GoogleTV. Projectivy_GoogleTV.zip

SlicingKnife commented 2 months ago

FIXED. I downloaded the apk file from APKPure into the TV's "DOWNLOAD" folder and launched the install from there. Instantly the Accessibility service is now Enabled. \o/ It appears Projectivy does not install correctly from PlayStore.

SlicingKnife commented 2 months ago

Dang, I turned the TV on again and Accessibility service is OFF! I stopped the process, cleared data, uninstalled and reinstalled from the previous download and Accessibility service remains OFF. It appears GoogleTV does not want another launcher. :/

Thorfinn66 commented 1 month ago

Best option is to disable Google launcher (You need to disable 2 apps) Then set Projectivy Launcher as your default launcher.

SlicingKnife commented 1 month ago

That sounds good. You mentioned I need to disable 2 apps, which are those?

Thorfinn66 commented 1 month ago

That sounds good. You mentioned I need to disable 2 apps, which are those?

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

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.

XBadFellaX commented 1 month ago

I was going crazy over this, thought its just me, but after the September update launcher override has not been working. You go to settings to enable accessibility but as soon as you turn the tv off and turn it back on, accessibility is turned off. Not sure what changed after the update, it was working fine before the update.

Thorfinn66 commented 1 month ago

I have similar problem with other apps, where accessibility settings won't stick.

I read here, that it could be because app listens for HOME button.

https://stackoverflow.com/questions/78622011/accessibility-service-in-android-tv-app-disabled-automatically-showing-enabled

If you set Projectivy Launcher as default launcher, you don't need accessibility turned on.

SlicingKnife commented 3 weeks ago

I just upgraded my 2nd HISENSE TV's built-in GoogleTV and once again Projectivy Launcher no longer controls the Home button. I need to uninstall the recent GoogleTV. Accesssibility is OFF once again, even though I have Accessibility Projectivy Launcher ON, it's shown as OFF.

SlicingKnife commented 3 weeks ago

Thanks for the replies Thorfinn66 but your suggested fix is beyond my skillset. I'll just use GoogleTV and hope a future release of Projectivy Launcher overcomes this latest GoogleTV issue.

SlicingKnife commented 3 weeks ago

FIXED - I unstalled the updates for GoogleTV and reinstall Projectivy Launcher. The HOME button now brings me to the Projectivy Launcher Home. I am keeping the APK file in the TV's download folder so I can reinstall Projectivy Launcher again easily.