Developer mode extend session time - WebOS Software and Hacking General

Ive used developer mode to install my own custom app, however, the session time runs for 50 hours then removes my app, I can if I remember try to go back to dev mode and click extend but is there any way to leave this on permanently so that I can us my app without having to constantly extend the session? TV Software version is 03.01.06, thanks in advance.
Badger

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
Code:
ssh -p 9922 -i ~/.ssh/{your_webos_key_file} [email protected]{ip_of_tv} -T
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

Another option, if they should ever close the possibility to extend dev mode via this URL, would be installing their CLI to a raspberry and periodically execute the ares-extend command.
Till now I have not found any option to just permanently activate dev mode when connected via SSH for example by disabling the counter or whatever. This would be best for everyone not having a raspberry or else.
But as I'm quite happy with my current solution I have no motivation looking any deeper

Thank you very much! I
can confirm that your solution works. I have set up a cron job on my PiHole and can now enjoy YouTube ad-free without manually resetting the devmode time every day.

Glad to hear that!

works great, thank you. let me know when u find a fix for the screensaver issue on ltt vids

Awesome. It worked for me today very well. Because of an error in domain name resolution i used ip adress instead:
0 3 * * * /usr/bin/curl --insecure https://52.78.120.149/secure/ResetDevModeSession.dev?sessionToken=<your Token> &>/dev/null
Thx.

I configured Github actions with a private repo for this purpose.

When I call Check URL I see 38 hours remaining like in DevApp, so I call Reset URL and after that Check URL again and I get back 59 hours remaining, but I still see 38 hours remaining in DevApp even after killing the app and restarting TV. Does it work then?

So apparently, the timeout in the DevApp won't get updated, but as long as it's updated on LG's backend its ok and dev session won't timeout even if the app shows 00:00:00 time remaining...

ns6000 said:
So apparently, the timeout in the DevApp won't get updated, but as long as it's updated on LG's backend its ok and dev session won't timeout even if the app shows 00:00:00 time remaining...
Click to expand...
Click to collapse
Ok good to hear. Was a bit confused when I realized it's not updated in the DevApp though backend is updated and wanted to dig deeper. So maybe it's a bug in the DevApp after an update because some time ago it reflected the time correctly.

Hello,
I have an old LG TV with WebOS 3.5.5. Is there a way to extend the Developer Mode while the TV is off ?
For example, the Developer Mode is on for 50h, and from time to time I will leave my TV off for more than 2 days. When I' turn it on, the Developer Mode is disabled.
It works by calling "ares-extend-dev" command while the TV is on, it brings up the DeveloperMode app and extends the time, which is fine..

inugoliath91 said:
Hello,
I have an old LG TV with WebOS 3.5.5. Is there a way to extend the Developer Mode while the TV is off ?
For example, the Developer Mode is on for 50h, and from time to time I will leave my TV off for more than 2 days. When I' turn it on, the Developer Mode is disabled.
It works by calling "ares-extend-dev" command while the TV is on, it brings up the DeveloperMode app and extends the time, which is fine..
Click to expand...
Click to collapse
Well, yes. The way described above should work just fine. It calls the web-api on the lge server to extend the the time which seems to be checked by the developer app.
So I was away for like several weeks last year and had my rasperberry cronjob resetting session time each day and it was still active when I came back.
I think when I got my LG tv it also had some WebOS 3.xx Version at the beginning.

schnills said:
Well, yes. The way described above should work just fine. It calls the web-api on the lge server to extend the the time which seems to be checked by the developer app.
So I was away for like several weeks last year and had my rasperberry cronjob resetting session time each day and it was still active when I came back.
I think when I got my LG tv it also had some WebOS 3.xx Version at the beginning.
Click to expand...
Click to collapse
It works perfect! Thank you for your quick response!

schnills said:
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
Code:
ssh -p 9922 -i ~/.ssh/{your_webos_key_file} [email protected]{ip_of_tv} -T
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
Click to expand...
Click to collapse
Thanks so much for this, crontab works like a charm!
However, after almost i month, the developer mode loses login and asks again for it, thus losing all the app installed. Is there a way to keep the login?

gunther82 said:
Thanks so much for this, crontab works like a charm!
However, after almost i month, the developer mode loses login and asks again for it, thus losing all the app installed. Is there a way to keep the login?
Click to expand...
Click to collapse
Hello,
I would like to bring to your attention that recent changes have been made to the system, and as a result, the developer mode has been extended to 999 hours. I kindly suggest that you attempt to resolve any issues by performing a new login and updating the key. Please note that this recommendation is not a guarantee of resolving the issue, but merely an attempt to determine the cause.

inugoliath91 said:
Hello,
I would like to bring to your attention that recent changes have been made to the system, and as a result, the developer mode has been extended to 999 hours. I kindly suggest that you attempt to resolve any issues by performing a new login and updating the key. Please note that this recommendation is not a guarantee of resolving the issue, but merely an attempt to determine the cause.
Click to expand...
Click to collapse
Yes, I've seen that now the developer mode has been extended to 999, and with the crontab script I reset it every day, but my issue is that after almost a month the developer mode loses the login, and thus all the apps I installed via webos-dev-manager. I have to login again in the developer mode of the TV and then install again the apps, and update the script with the new key.
Is there a way to avoid losing the login?

Related

[Q] Tasker profiles?

Not being of mathematical mind im having trouble understanding the settings in a tasker profile i want to create.
What i need is a rule that would
a) switch on wifi when the screen is switched on
b) switch off wifi 2 minutes after screen turns off
Help would be appreciated!
android does that automatically. when the screen is of wifi goes to sleep after a certain timeout (you can change that timeout using OCLF)
Tasker meh!
I brought Tasker with nearly the same enthusiasm as I had when I got my Android phone. I couldn't wait to start making it my personal butler, alas this wasn't the case.
Yes I maybe I'm a retard and I'm sure I'm going to burn in forum flames of hell, and I'm sure the developer has worked very hard on this and he/she should be congratulated as I would never be able to do what they have done. That aside I'm a paying customer so I am entitled to my opinion. Unless we have all turned into Apple pricks
I'm really disappointed with how poor this is. I feel the UI is very unintuitive, cheap and kind of ugly, I have no idea how to use it and haven't the time or patience to sit in for a week to learn how to. Even the website is the same tatty thing that I saw back in the early part of the year.
I feel a great improvement would be that I could just scroll through all the different pre-made tasks and profiles (in the app not a broswer) created by Joe public and approved by the developer and with a tap of a finger and bit of personalizing, bob is your uncle! away we go!
Just my penny as being a very satisfied customer.
I find it very useful, and not very difficult to understand.
It is simply a tool that will trigger an (set of) action(s) on a set (combination of) event(s), nothing more, nothing less, make it as complex as you want.
@ftgg99, if ou take a look at the tasker website, especially the Wiki, there are enough examples.
I am using tasker now for awhile, and have been able to setup a lot of useful profiles, like
- Auto switch on/off Wifi when i am near my home (based on Cell tower location)
- Auto switch off Wifi after 10 min of a lost connection
- Auto switch off Wifi 10 min after being switched on and no connection was made
- Start skype when wifi is connected, logout skype on wifi disconnect
- Have a incoming SMS read aloud when phone is connected to carkit
- Auto mute between 23:00 and 06:00 except for favourite contacts
- Auto mute when in a meeting
- Disable Auto rotate for certain apps (Ebook reading in bed is annoying otherwise)
- Auto Enable GPS for specific apps and disable afterwards
- Auto switch on Bluetooth when WiFi connection lost (probably going to my car)
- Auto switch off Bluetooth after 10 min of a lost connection
- Auto switch off Bluetooth 10 min after being switched on and no connection was made
stinkypete said:
I brought Tasker with nearly the same enthusiasm as I had when I got my Android phone. I couldn't wait to start making it my personal butler, alas this wasn't the case.
Yes I maybe I'm a retard and I'm sure I'm going to burn in forum flames of hell, and I'm sure the developer has worked very hard on this and he/she should be congratulated as I would never be able to do what they have done. That aside I'm a paying customer so I am entitled to my opinion. Unless we have all turned into Apple pricks
I'm really disappointed with how poor this is. I feel the UI is very unintuitive, cheap and kind of ugly, I have no idea how to use it and haven't the time or patience to sit in for a week to learn how to. Even the website is the same tatty thing that I saw back in the early part of the year.
I feel a great improvement would be that I could just scroll through all the different pre-made tasks and profiles (in the app not a broswer) created by Joe public and approved by the developer and with a tap of a finger and bit of personalizing, bob is your uncle! away we go!
Click to expand...
Click to collapse
When I first bought Tasker, I felt the same way. The UI felt difficult to understand and I couldn't really get it to do what I wanted. Every few weeks, I would redownload it and give it another try, then quickly give up. At some point, it started to make sense and I figured out how it all works.
Yes, Tasker has a large learning curve and the UI needs work, but the time it took to figure it out has been so well worth it.
stinkypete said:
<snip>
I feel a great improvement would be that I could just scroll through all the different pre-made tasks and profiles (in the app not a broswer) created by Joe public and approved by the developer and with a tap of a finger and bit of personalizing, bob is your uncle! away we go!
Click to expand...
Click to collapse
Part of the attraction of Tasker for me is that it's not centred around loading and personalising profiles from a public 'bank'. Yes there are profiles that people have shared, both on the Tasker website and in numerous threads on various forums. I treated these as learning examples, 'tutorials', and used them to gain an understanding of how to start writing my own profiles.
I've had Tasker about 3 / 4 months and have written approximately 15 profiles that have significantly changed how I interact with my N1, and how it interacts with my environment. These range from the very simple (reduce media volume when a wired headset is plugged in), to the horrendously complicated (workaround an issue with my bluetooth connection to my car kit).
I doubt whether I would have bothered to experiment to this extent if the focus had been on loading up and personalising publicised profiles.
I agree that the UI is perhaps less polished than other apps, however at most I would suggest that the dev has concentrated first on function over form. As a software developer who cut his teeth on mainframe COBOL I approve of that, particularly given the number of pretty but buggy apps on the market. Personally I care more about Tasker working correctly - I don't want my phone to ring during meetings if it's set not to - than looking pretty, as (in between tweaking profiles) I don't really see the app itself.
Sorry it took a while to read these replies!
Anywho, i now have had a different idea - tasker should switch on wifi, check if a known network exists and if it does connect. If not it should switch wifi off.
ftgg99 said:
tasker should switch on wifi, check if a known network exists and if it does connect. If not it should switch wifi off.
Click to expand...
Click to collapse
Which is exactly what the WiFi Near Profile does,
with the time interval for each check being possible to set to your own liking.
However, you adding additional restrictions based on the cell-near could save some useless scanning. Usually Wifi Access points have a fairly static location don't they, so why do a WiFi Near scan if you are not at your home/work/collage anyway.
daoth said:
- Start skype when wifi is connected, logout skype on wifi disconnect
Click to expand...
Click to collapse
How did you achieve the logout on wifi disconnect? I can't get Tasker to kill apps, which is said to be a common problem under the latest FroYo stock ROMs (at least for my Desire HD)
I don't have root access btw, since that requires me to downgrade my ROM first, which would cause me to loose my warranty...
daoth said:
Just my penny as being a very satisfied customer.
I find it very useful, and not very difficult to understand.
It is simply a tool that will trigger an (set of) action(s) on a set (combination of) event(s), nothing more, nothing less, make it as complex as you want.
@ftgg99, if ou take a look at the tasker website, especially the Wiki, there are enough examples.
I am using tasker now for awhile, and have been able to setup a lot of useful profiles, like
- Auto switch on/off Wifi when i am near my home (based on Cell tower location)
- Auto switch off Wifi after 10 min of a lost connection
- Auto switch off Wifi 10 min after being switched on and no connection was made
- Start skype when wifi is connected, logout skype on wifi disconnect
- Have a incoming SMS read aloud when phone is connected to carkit
- Auto mute between 23:00 and 06:00 except for favourite contacts
- Auto mute when in a meeting
- Disable Auto rotate for certain apps (Ebook reading in bed is annoying otherwise)
- Auto Enable GPS for specific apps and disable afterwards
- Auto switch on Bluetooth when WiFi connection lost (probably going to my car)
- Auto switch off Bluetooth after 10 min of a lost connection
- Auto switch off Bluetooth 10 min after being switched on and no connection was made
Click to expand...
Click to collapse
How did you get wifi to switch off when its not connected to any network, occasional i leave the house and i forget to switch wifi off. I tried location based wifi off but it wont be as fast or accurate as switching off wifi when theirs no connection after lets say 1-2 minutes. I considered getting another app to do this after i tried to get it to work with tasker, but i have enough apps running in the background.
Do any of you leave gps turned on always so that tasker works better with locations? for me with just network location it can take some time to update and to turn on a profile.
arielc said:
Do any of you leave gps turned on always so that tasker works better with locations? for me with just network location it can take some time to update and to turn on a profile.
Click to expand...
Click to collapse
That may be linked to timings of background context checks when the screen is off.
Personally I always leave GPS on, but only use Net location / Cell IDs for my Tasker location contexts.
If anyone wants any ideas on Tasker profiles or want to know how to do something just go to my blog at http://dbilliter.blogspot.com. I update it regularly and will continue to try and improve the Profiles.
dbilliter said:
If anyone wants any ideas on Tasker profiles or want to know how to do something just go to my blog at http://dbilliter.blogspot.com. I update it regularly and will continue to try and improve the Profiles.
Click to expand...
Click to collapse
Thanks for the work...
The tasker website have some codes
http://tasker.wikidot.com/step-throughs
People please post more codes... would love to see more
drgopoos said:
Thanks for the work...
The tasker website have some codes
http://tasker.wikidot.com/step-throughs
People please post more codes... would love to see more
Click to expand...
Click to collapse
I am posting one everyday this week and I think I have a couple more. I will post even more whenever I either come up with new ideas or someone gives me a new idea.
Ok, I have a very basic understanding of tasker. I actually was able to make my gps app turn on the gps when being executed. I only added gps off exit task after reading the wiki. However, I'm trying to find a way to do the following:
when selecting pandora icon (I say icon, as I may need a pointer to the actual app)
verify wifi connection status - if connected, then load pandora app; if not connected, kill pandora app (might be redundant but just in case)
I also need to create a general wifi connection status, such that if connection is lost, kill specific running apps (such as pandora; could add more later)
I tend to fall asleep using headphones and pandora. I'd REALLY hate to find out that my cable/wifi went down while asleep and I've just been listening to pandora using cell data for several hours.
Now, making a profile to turn on wifi is easy enough, but not sure how to do the above. I'd imagine it'd be something like:
If [pandora app] initiated
wifi_connected = 1 (or yes or whatever)
then load [pandora app]
any help would be appreciated
EDIT: Nevermind. Though knowing more about how variables are used in TASKER would be interesting (I'll play around with them some more), I found out that with wifi ON, cell data usage is cut off. I disconnected my cable connection and with wifi still on, I couldn't connect to anything. So worry was unfounded, it turns out.
dbilliter said:
If anyone wants any ideas on Tasker profiles or want to know how to do something just go to my blog at http://dbilliter.blogspot.com. I update it regularly and will continue to try and improve the Profiles.
Click to expand...
Click to collapse
thanks once again.. am testing out a few of them
drgopoos said:
thanks once again.. am testing out a few of them
Click to expand...
Click to collapse
No problem. It is a hobby for me. I love doing it so I thought I would create a blog with the focus on Tasker to help people along. I know there are a number of other sites but I have been trying to make mine as basic as possible so that anyone could figure it out.
Some actual description of what the tasker profiles do would be very helpful... also less tit shots so that I don't catch crap for looking at the site from work would be nice.
dbilliter said:
No problem. It is a hobby for me. I love doing it so I thought I would create a blog with the focus on Tasker to help people along. I know there are a number of other sites but I have been trying to make mine as basic as possible so that anyone could figure it out.
Click to expand...
Click to collapse
I was trying to make 2 profiles
Profile 1 - I have set up a profile so that when i plug in a headphone with no mic ( and no mic in options ) , it opens the music app
Profile 2 - i have also set up another profile , when i plug in a Headset with mic ( and mic in options) , it opens the dialer.
However when i plug in the headset it opens both the Dialer and music app . Is there a way to prevent the music app from opening.
drgopoos said:
I was trying to make 2 profiles
Profile 1 - I have set up a profile so that when i plug in a headphone with no mic ( and no mic in options ) , it opens the music app
Profile 2 - i have also set up another profile , when i plug in a Headset with mic ( and mic in options) , it opens the dialer.
However when i plug in the headset it opens both the Dialer and music app . Is there a way to prevent the music app from opening.
Click to expand...
Click to collapse
Sorry for the delay. I don't know of a way personally. I can only work with what I got and I don't have a headset with a mic so I have no way of testing. One option you could do though is have a menu pop up and ask you which you want.

Phone Hacked... Again.

I have a Galaxy SIII mini which has been hacked 4 times in the last 8 months that I have had it. Usually, the first 3 times, were kids doing pranks, turning on my bluetooth,etc but this last hack was malicious. Started turning on my GPS, bluetooth, and camera flash light then progressed to changing my system language and finally making it so that my sim couldn't connect to any cell towers. I have tried app locks, but this last time inspite of two seperate app locks, he succeed with ease to change my settings. I also subscribed to a VPN with a NAT firewall and that didn't help at all either. Now I have redid the OS again, this time installing CM 11 and I welcome any suggestions on how I can stop this from happening all of the time. Thank you.
Gaon101 said:
I have a Galaxy SIII mini which has been hacked 4 times in the last 8 months that I have had it. Usually, the first 3 times, were kids doing pranks, turning on my bluetooth,etc but this last hack was malicious. Started turning on my GPS, bluetooth, and camera flash light then progressed to changing my system language and finally making it so that my sim couldn't connect to any cell towers. I have tried app locks, but this last time inspite of two seperate app locks, he succeed with ease to change my settings. I also subscribed to a VPN with a NAT firewall and that didn't help at all either. Now I have redid the OS again, this time installing CM 11 and I welcome any suggestions on how I can stop this from happening all of the time. Thank you.
Click to expand...
Click to collapse
what kind of hack are you talking about? is someone using your phone, or remotely accesing it?
remotely accessing it. no one has physical access to my phone.
You should set a encryption password for your phone and use the app : Lockdown pro to restrict access to everyone who don't know the password.
Stay tuned for my first CM11 theme soon.
What do you mean by encryption password? You mean to encrypt my phone?
I did install that app. One thing that I really like about it is it's ability to stop the installation of apps which is what I think that the hacker is doing: installing some sort of app on my phone.
Settings > Security Settings - Encrypt phone > see instructions there .
@Gaon101
Stay tuned for my first CM11 theme soon.
After doing more reading online, I believe that the hacker(s) may have their own 'cell network' and may be exploiting my phone whenever it connects to it. How can I prevent this from happening if that is the case?

[Guide] Connect to public wifi hospots with captivity portal from Android Wear Watch.

First of all, if your watch doesn't have wifi then this guide is not for you. This guide while it tries to go more into details, it requires some previous knowledge of using console commands.
According to the official google website. [1]
Not all watches have a Wi-Fi feature. Try using the directions below to connect to Wi-Fi. If you don’t see Wi-Fi settings under “Settings” on your watch, Wi-Fi is not available on your watch.
When your watch uses Wi-Fi, the “Open on phone” feature is disabled.
Your watch can’t connect to Wi-Fi networks that use captive portals, which are web pages you have to visit before connecting.
Click to expand...
Click to collapse
There is a way to bypath that limitation by installing Android version of firefox on your watch. However, its not enough to just install firefox. You also need to change lcd density parameter to make UI fit on the tiny screen AND you'll need some sort of keyboard to be able to input characters into firefox.
You will need to download tools to be able to connect to your watch.
1. [TOOL] [WINDOWS] ADB, Fastboot and Drivers - 15 seconds ADB Installer v1.4.2
Your watch needs to have USB debugging enabled. Follow this youtube guide. Since UI is the same on all android wear, this method will work on all android wear watches. Note that the person in the video has a Mac. So the console will be different. On windows you just fire up the cmd. You can ignore the Android SDK and Eclipse stuff she is doing as we don't need it for this.
2.
This tool has a list of supported devices, but since we are going to be using only one function of it, you can probably get away with picking the wrong android wear watch from the list.
3. Download [TOOL] WinDroid Universal Android Toolkit v2.4 | Unlock | Root | Flash | 90+ Devices
From previous steps make sure your watch is connected and the WinDroid tool is able to detect it. If all is good download APKs and then in WinDroid go to "Commands" tab and click on "Install App". Find your firefox and minuum wear apk files. Install both of them by installing one at a time.
Once apks are installed you need to open cmd terminal and type some commands:
To make keyboard work you need to type
Code:
adb shell ime enable com.whirlscape.minuum/.MinuumKeyboardService
And then
Code:
adb shell ime set com.whirlscape.minuum/.MinuumKeyboardService
To make firefox UI more usable, we need to change the LCD density.
In the same terminal first type
Code:
adb shell
then
Code:
cat /system/build.prop | grep "lcd"
You will then see something like this on the screen
Code:
ro.sf.lcd_density=280
Write down this value and keep it save in case you want to restore to normal LCD density.
To change density type
Code:
wm density 200
It will immediately change LCD density on your watch. Everything will become smaller. I recommend that you enable "Large Font" in Accessibility menu on your watch to make the font size bigger.
Now try connecting to the public wifi on your smartphone. Wait a few seconds for information to sync with your watch. Disable bluetooth on your phone and your watch should automatically try to connect to wifi hotspot. Alternatively you can select wifi AP from a list of wifi on your watch without needing to use your phone. You will still need to disable bluetooth on your phone though.
Finally, fire up firefox on your watch, try to go to any website. The captivity webpage of your public wifi will show up and just press accept/I agree/etc as you normally would. After that you can close firefox by swiping to the right. I recommend you install task manager for android wear to be able kill firefox from memory. And try not to leave firefox or wifi open for too long as it will drain your battery really quick.
Now sit back and enjoy your wifi sync over the public wifi hotspot connection.
This lets your watch and phone to automatically stay synced at any distance over the Internet.
Click to expand...
Click to collapse
Here how it all looks on my watch.
Sadly video doesn't start, it just keeps on buffering.
That's a great effort. I'm happy to report that we now have a much easier option by using wear browser.
I posted my experience with it here.
sirrelevant said:
That's a great effort. I'm happy to report that we now have a much easier option by using wear browser.
I posted my experience with it here.
Click to expand...
Click to collapse
Yea, it does seems easier. However, I am thinking of writing a tiny program that would attempt to automatically click on "I accept/Connect" button. Not sure how to approach this problem quite yet, as there are so many different captive portals and some might have multiple checkboxes and buttons. Also, a program that would allow you to connect to wifi AP with a password without phone.(Its possible with es filemanager)
If you connect to an open wifi on your phone then your watch auto connects, but you use a VPN on your phone for security the watch is still using everything un encrypted right?
frigidazzi said:
If you connect to an open wifi on your phone then your watch auto connects, but you use a VPN on your phone for security the watch is still using everything un encrypted right?
Click to expand...
Click to collapse
It only connects to wifi when bluetooth is turned off or your phone is our of range. But, yes, you are correct. VPN will only encrypt phone's traffic since the watch will directly connect to wifi AP. So, you would need to run a separate VPN client on the watch.(which might be not possible atm)
Sorry to bring up an old thread but I am wondering if this still works with the very latest version of Android Wear 2?
I have a Huawei watch 2 and need to get onto a WiFi network (at work) that requires you to hit a confirm button on a webpage the first time you login. Can't seem to get it working on the watch.
mupet0000 said:
Sorry to bring up an old thread but I am wondering if this still works with the very latest version of Android Wear 2?
I have a Huawei watch 2 and need to get onto a WiFi network (at work) that requires you to hit a confirm button on a webpage the first time you login. Can't seem to get it working on the watch.
Click to expand...
Click to collapse
The last time I tried it on Huawei watch 2, when I still had it it also didn't work. They probably removed some system libraries in wear 2.0 and broke all of those apps.

My phone is eating through its own Hotspot

I have the LG G5 through T-Mobile, running the stock ROM. Sometimes, when I download a torrent file, it is downloaded through my hotspot data. My hotspot is not turned on, but I check my usage through the T-Mobile app, and the data used for my hotspot goes up in correlation with the download. This didn't happen on my HTC One M8, also with stock ROM. I don't use my hotspot much, I mainly have the plan for unlimited high speed data, but it is annoying. Especially since my downloads slow once my hotspot is gone. I've tried searching online to see if this is happening to anyone else. All I get is "can my phone connect to its own hotspot?" Any help with this is greatly appreciated.
Also, this is my first time posting here, so I apologize if I did anything wrong.
Siggy_13 said:
I have the LG G5 through T-Mobile, running the stock ROM. Sometimes, when I download a torrent file, it is downloaded through my hotspot data. My hotspot is not turned on, but I check my usage through the T-Mobile app, and the data used for my hotspot goes up in correlation with the download. This didn't happen on my HTC One M8, also with stock ROM. I don't use my hotspot much, I mainly have the plan for unlimited high speed data, but it is annoying. Especially since my downloads slow once my hotspot is gone. I've tried searching online to see if this is happening to anyone else. All I get is "can my phone connect to its own hotspot?" Any help with this is greatly appreciated.
Also, this is my first time posting here, so I apologize if I did anything wrong.
Click to expand...
Click to collapse
Nothing done wrong, no, you did finely! Meanwhile, I have no idea why you're having this issue. It sounds really strange. I doubt I'll be able to really help you with this one, but someone who can would likely want to know...
1) The app you're using to torrent
2) If your hotspot is turned on or not
3) Root status, any mods you think may be relevant
Aaaand I'm not sure if I've got everything here, so if anyone else knows better, please chime in!
I'm using BitTorrent Pro, my hotspot is turned off, and my phone is not, nor has it ever been rooted. Nor has the bootloader been unlocked.
Also having a YouTube issue that several people on other devices are having. Most videos are limited to 480p, despite showing higher resolutions on the desktop site, and other Android devices.
I've been using Flud through 4g/wifi and my hotspot only when I need to use RDP to my desktop(first hotspot through 4g, then VPN on my device then RDP) and the only usage I see reflected on the hotspot is when it is on.
Just so I'm understanding this correctly, you are using a torrent app and regardless if the hotspot is on or not it will go through your hotspot data @Siggy_13?
Yes. My hotspot is turned off. Somehow my phone still downloads the torrent data through its own hotspot, something countless forums and articles say is impossible. So, every time I start a torrent, I open my T-Mobile app to monitor my hotspot usage. If it goes up, I pause the torrent, exit BitTorrent, and turn Airplane mode on, then off. If this doesn't work, I do the same thing, but turn my phone off (not restart) instead of airplane mode. If this fails, I pull the battery. So far, these have corrected it, but it shouldn't be happening in the first place.
Siggy_13 said:
Yes. My hotspot is turned off. Somehow my phone still downloads the torrent data through its own hotspot, something countless forums and articles say is impossible. So, every time I start a torrent, I open my T-Mobile app to monitor my hotspot usage. If it goes up, I pause the torrent, exit BitTorrent, and turn Airplane mode on, then off. If this doesn't work, I do the same thing, but turn my phone off (not restart) instead of airplane mode. If this fails, I pull the battery. So far, these have corrected it, but it shouldn't be happening in the first place.
Click to expand...
Click to collapse
yeah that shouldn't be happening, it sounds like the hotspot itself isn't actually closing and has something set up that reports it AS tethering. you might wanna call t-mobile just to let them know it's acting up(you can replace torrenting with remoting so they won't get all high and mighty on you) so if you accidentally blow through your data you can talk them up and they might work with you... if you're rooted I'd recommend following this next time it acts up so you can see what is exactly going on
https://danielpocock.com/android-betrays-tethering-data
basically a simple how-to for routes on your phone
edit: check if something like 0.0.0.0 is set to forward to the interface for your hotspot or what. Also does this happen when your torrent client is started before the hotspot or after the hotspot or just doesn't matter?
fatapia said:
yeah that shouldn't be happening, it sounds like the hotspot itself isn't actually closing and has something set up that reports it AS tethering. you might wanna call t-mobile just to let them know it's acting up(you can replace torrenting with remoting so they won't get all high and mighty on you) so if you accidentally blow through your data you can talk them up and they might work with you... if you're rooted I'd recommend following this next time it acts up so you can see what is exactly going on
https://danielpocock.com/android-betrays-tethering-data
basically a simple how-to for routes on your phone
edit: check if something like 0.0.0.0 is set to forward to the interface for your hotspot or what. Also does this happen when your torrent client is started before the hotspot or after the hotspot or just doesn't matter?
Click to expand...
Click to collapse
It doesn't matter. This happens when to hotspot isn't started at all, before or after. I thought at first it might be because I was using a different APN, but I deleted it and was using the locked T-Mobile APN, and it happened again.
Also, Idk what you're talking about here: "check if something like 0.0.0.0 is set to forward to the interface for your hotspot or what."
Siggy_13 said:
It doesn't matter. This happens when to hotspot isn't started at all, before or after. I thought at first it might be because I was using a different APN, but I deleted it and was using the locked T-Mobile APN, and it happened again.
Also, Idk what you're talking about here: "check if something like 0.0.0.0 is set to forward to the interface for your hotspot or what."
Click to expand...
Click to collapse
have you tried using a different torrent application? is it being reported on your tmobile bill as hotspot data as well or only on android?
and the 0.0.0.0 forwarding to an interface is just a technical step that would tell us how your phone is handling any outbound/inbound traffic, and possibly tell us why it's doing it.
I will install Flud, and switch to it the next time BitTorrent starts using hotspot.
It's not just my phone. The hotspot usage us being reported by my T-Mobile app. So T-Mobile thinks I'm actually using the hotspot. Once the app says it's been used up, it throttles to dial up speeds.
I don't know how to check the inbound/outbound traffic thing.
Siggy_13 said:
I will install Flud, and switch to it the next time BitTorrent starts using hotspot.
It's not just my phone. The hotspot usage us being reported by my T-Mobile app. So T-Mobile thinks I'm actually using the hotspot. Once the app says it's been used up, it throttles to dial up speeds.
I don't know how to check the inbound/outbound traffic thing.
Click to expand...
Click to collapse
try that link I sent you, all you need is to be rooted and download a terminal emulator, run those commands and there is an explanation about what interface is what on the device. According to that blog port, your data is being routed out a virtual interface that is being marked as your hotspot data. So from what I am gathering is the application knows it has a connection through that interface and is choosing that no matter what, changing apps should help.
here's an excerpt, sorry for it not being formatted, I'm busy at work so it'll have to do.
"As my device is rooted and as it is my device and I will do what I want with it, I decided to have a look inside.
The ip command revealed that there are now two network devices, rmmnet_usb0 and rmmnet_usb1. The basic ip route command reveals that traffic from different source addresses is handled differently and split over the different network devices:
[email protected]:/ # ip route
0.0.0.0/1 dev tun0 scope link
default via 100.66.150.89 dev rmnet_usb0
83.224.66.138 via 100.87.31.214 dev rmnet_usb1
83.224.70.94 via 100.87.31.214 dev rmnet_usb1
100.66.150.88/30 dev rmnet_usb0 proto kernel scope link src 100.66.150.90
100.66.150.89 dev rmnet_usb0 scope link
100.87.31.212/30 dev rmnet_usb1 proto kernel scope link src 100.87.31.213
100.87.31.214 dev rmnet_usb1 scope link
128.0.0.0/1 dev tun0 scope link
192.168.42.0/24 dev rndis0 proto kernel scope link src 192.168.42.129
I then looked more closely and found that there is also an extra routing table, it can be found with ip rule
[email protected]:/ # ip rule show
0: from all lookup local
32765: from 192.168.42.0/24 lookup 60
32766: from all lookup main
32767: from all lookup default
[email protected]:/ # ip route show table 60
default via 100.87.51.57 dev rmnet_usb1
100.87.51.57 dev rmnet_usb1
192.168.42.0/24 dev rndis0 scope link
In this routing table, it is obvious that data from the tethering subnet (192.168.42.0/24) is sent over the extra device rmnet_usb1."
if you can view your routing table you can see exactly how android is handling the data, also this excerpt is just showing the route of his data, you will need something such as 0.0.0.0 as the origin to indicate that it isnt a specific space of addresses but all traffic.

prevent android being "smart" about wifi connectivity

when I connect to a captive wifi, I want to use the connection as is (maybe I want to login without telling google - since the builtin authenticator uses their gstatic domain, or maybe I want to probe the network as it is being redirected, or maybe I just want firefox to manage my password to the portal, etc)
but after I select "use wifi as is" on the android webview builtin auth screen, android starts to route all and every traffic to my 3g/4g data connection instead, until I disable and re-enable wifi.
it will only ever redirect traffic to wifi after it successfully got the correct 204 from gstatic.com
is there anyway to work around this?
I am on android6, but I think I has always been like that.
gcbxda said:
when I connect to a captive wifi, I want to use the connection as is (maybe I want to login without telling google - since the builtin authenticator uses their gstatic domain, or maybe I want to probe the network as it is being redirected, or maybe I just want firefox to manage my password to the portal, etc)
but after I select "use wifi as is" on the android webview builtin auth screen, android starts to route all and every traffic to my 3g/4g data connection instead, until I disable and re-enable wifi.
it will only ever redirect traffic to wifi after it successfully got the correct 204 from gstatic.com
is there anyway to work around this?
I am on android6, but I think I has always been like that.
Click to expand...
Click to collapse
Do you have any kind of Linux ide? Have you tried making a tunnel?
Or is that what your looking for. I'm not 100% sure what your looking for. If your trying to skip Hotspot authentication? Or anything like that Then a tunnel would work fine.
Sorry I can't be of much else help
If your phone is rooted or has a custom ROM (Which would obviously indicate that the phone is rooted), there is a solution that you can try using a terminal (Or ADB shell).
Issue the command: "settings put global captive_portal_detection_enabled 0" That should prevent captive portal detection and gstatic confirmation. This should work, I haven't tried it personally though.
Additionally, you can setup a captive server.
Issue the command: "settings put global captive_portal_server g.cn"
Restart your phone, and you should have access to the pages.
Basically, connecting as is, requires you to reach a site that does not require 204 confirmation and afterward other sites should be accessible. Let me know if this helps.
Josh Ross said:
If your phone is rooted or has a custom ROM (Which would obviously indicate that the phone is rooted), there is a solution that you can try using a terminal (Or ADB shell).
Issue the command: "settings put global captive_portal_detection_enabled 0" That should prevent captive portal detection and gstatic confirmation. This should work, I haven't tried it personally though.
Additionally, you can setup a captive server.
Issue the command: "settings put global captive_portal_server g.cn"
Restart your phone, and you should have access to the pages.
Basically, connecting as is, requires you to reach a site that does not require 204 confirmation and afterward other sites should be accessible. Let me know if this helps.
Click to expand...
Click to collapse
no root on the phone (damn blackberry priv) and no control of the portal.
this is so infuriating. This is trivial, banal even, on any device i control. Feel like a kid on training wheels every time i touch my phone.

Categories

Resources