Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autostart option #6

Open
Informatic opened this issue May 6, 2021 · 8 comments
Open

Autostart option #6

Informatic opened this issue May 6, 2021 · 8 comments

Comments

@Informatic
Copy link
Contributor

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

@NguyenASang
Copy link

Sounds good, it will improve the experience :D

@Informatic
Copy link
Contributor Author

Informatic commented Sep 6, 2021 via email

@delphir-com
Copy link

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",

@Informatic
Copy link
Contributor Author

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.

@delphir-com
Copy link

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 \"/\""
}

@Informatic
Copy link
Contributor Author

This has been (partially) implemented in webosbrew fork here:
https://github.com/webosbrew/youtube-webos#autostart

@NguyenASang
Copy link

@Informatic Nice works :D

@delphir-com
Copy link

@Informatic perfect! I was able to root my TV since my last message, and your trick solved the auto-start issue I described above!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants