Hey,
old question, but someone may still need this.
This is for LG TVs with WebOS. Luckily, extending Dev Mode it's fairly easy and won't require root (which I preferred).
I spent some hours now trying to identify such a way and thanks to
Neur0toxine I found an URL you can call periodically to reset the timer.
First of all, you need your session token. When you have enabled the developer mode, you have the passphrase, generated the ssh keys, etc.
Connect to your TV via ssh using
You need to set the port to 9922. -i references the ssh key. -T skips a "PTY allocation request failed on channel 0" error which might be confusing.
Enter the passphrase, when asked.
Now it probably seems that nothing has happened, as you're just in a new line and no location of execution is displayed like we're used to (maybe due to the PTY? dunno), but you can type commands. Try the ls command to check connection if you're not sure.
When connected, get the session token using:
cat /var/luna/preferences/devmode_enabled
From Neur0toxines repo I extracted two URLs.
This will check the time left in dev mode:
https://developer.lge.com/secure/CheckDevModeSession.dev?sessionToken={your_token}
This will reset the dev mode timer:
https://developer.lge.com/secure/ResetDevModeSession.dev?sessionToken={your_token}
So to keep your dev mode active, call the second URL within the 50 hours. I do so periodically using crontab on my raspberry. If you do not have a raspberry or another server, you may find a free online cronjob service for this purpose.
To call the URL every day at 3 AM I got into my raspberry, opened cronjobs using "crontab -e" and added the following line
0 3 * * * /usr/bin/curl --silent
https://developer.lge.com/secure/ResetDevModeSession.dev?sessionToken={your_token} &>/dev/null
The first five symbols are minutes, hours, day of month, month, day of week. * = any.
I verified this workflow using my browser, but I just now finished setting everything up. So tomorrow I will see if it all worked automatically using crontab, but in general this should work. Any way to periodically call the URL should (unless there's something else to think of like a change in the token at some point but currently I won't assume that).
Then install the best app: YouTube Extend for WebOS and never see ads, in video sponsors and so on.
YouTube ads you made me do this. Spending all this evening to get this running. It has become unbearable
