Open Informatic opened 3 years ago
Sounds good, it will improve the experience :D
After some research I didn't note down, it may be a little hard to properly carry this out - YouTube TV app runs in limited "netcast" sandbox which doesn't have access to Luna bus, which means it can register itself as an input app. Adding "supportGIP" flag would allow for manual single-command (over telnet/ssh) enabling of autostart, but this is not very user-friendly :/
On Mon, 6 Sep 2021, 06:52 NguyenASang, @.***> wrote:
Sounds good, it will improve the experience :D
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/FriedChickenButt/youtube-webos/issues/6#issuecomment-913336836, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIUEXUDBQO6IRILS7OI233UARCIDANCNFSM44H2DBXA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
btw, one thing which I noticed on my non-rooted (is there a way to do it on my versions?) TV is that original youtube app was autostarted where it was left after the power-up, while after installing this youtube-replacement (devmode) this functionality has gone away.
"hardware_id": "HE_DTV_W19P_AFADABAA",
"product_id": "49UM7100PLB",
"core_os_release": "4.9.3-5390409",
"webos_manufacturing_version": "05.10.25",
btw, one thing which I noticed on my non-rooted (is there a way to do it on my versions?) TV is that original youtube app was autostarted where it was left after the power-up, while after installing this youtube-replacement (devmode) this functionality has gone away.
"hardware_id": "HE_DTV_W19P_AFADABAA", "product_id": "49UM7100PLB", "core_os_release": "4.9.3-5390409", "webos_manufacturing_version": "05.10.25",
Sounds interesting. Can you please remove adfree youtube, reinstall the original one that seemingly supports autostart, and show us the result of the following command:
luna-send-pub -n 1 -f "luna://com.webos.service.applicationmanager/getAppInfo" '{"id":"youtube.leanback.v4"}'
Thanks.
this is for adFree, I guess there is no reason to uninstall it then, right? my TV is not rooted
$ luna-send-pub -n 1 -f "luna://com.webos.service.applicationmanager/getAppInfo" '{"id":"youtube.leanback.v4"}'
{
"errorCode": -1,
"returnValue": false,
"errorText": "Denied method call \"getAppInfo\" for category \"/\""
}
This has been (partially) implemented in webosbrew fork here: https://github.com/webosbrew/youtube-webos#autostart
@Informatic Nice works :D
@Informatic perfect! I was able to root my TV since my last message, and your trick solved the auto-start issue I described above!
We've just discovered a way to register an arbitrary app as an "input" app, which means it can also be remembered as "last active input" and thus will be automatically relaunched when turning on a TV.
https://gist.github.com/Informatic/1983f2e501444cf1cbd182e50820d6c1#registering-an-app-as-an-input-can-be-used-to-autostart-an-app