First of all this is not my work. This mod was originally created by @paul2112. Send him a PM and thank him. I'm simply a guy brave enough to try this on the Note 8. I'm using tethering right now on my Note 8 to type this. It works.
That said follow the steps below to enable both the USB tether and the Wireless Hotspot tethering:
1. Enable developer mode:
a. Go to settings
b. Scroll down to about phone
c. Repeatedly tap "Build number" until developer access is granted
2. Get ADB installed w/ drivers
a. Click me.
3. Enable USB Debugging
a. Go to settings
b. Go down to developer options
c. Scroll down to USB Debugging and turn it on
d. Connect phone with USB to PC
4. Get into ADB shell
a. Open a command prompt (windows key + R , type "cmd" in the box and press enter is my favorite way)
b. Run:
Code:
adb shell
5. Enable the bypass
a. Disable the DUN requirement
Code:
settings put global tether_dun_required 0
b. Overwrite the DUN APN
Code:
settings put global tether_dun_apn "APNDUN,n.ispsn,,,,,,,,,310,120,,default,mms,dun"
6. Turn off Mobile Data
7. Turn on HotSpot
8. Turn on Mobile Data
Every time that you want to use the hotspot you have to turn data off; turn hotspot on; turn data back on. When you disconnect your hotspot you need to do the following:
1. Turn Hotspot Off
2. Turn Mobile Data Off
3. Turn Mobile Data On
People will complain, but after you run the code the first time, turning hotspot on and off literally takes just seconds.
Credits:
@paul2112 -- Hotspot Fix
@Snoop05 -- ADB Fast Installer
rawintellect said:
First of all this is not my work. This mod was originally created by @paul2112. Send him a PM and thank him. I'm simply a guy brave enough to try this on the Note 8. I'm using tethering right now on my Note 8 to type this. It works.
That said follow the steps below to enable both the USB tether and the Wireless Hotspot tethering:
1. Enable developer mode:
a. Go to settings
b. Scroll down to about phone
c. Repeatedly tap "Build number" until developer access is granted
2. Get ADB installed w/ drivers
a. Click me.
3. Enable USB Debugging
a. Go to settings
b. Go down to developer options
c. Scroll down to USB Debugging and turn it on
d. Connect phone with USB to PC
4. Get into ADB shell
a. Open a command prompt (windows key + R , type "cmd" in the box and press enter is my favorite way)
b. Run:
Code:
adb shell
5. Enable the bypass
a. Disable the DUN requirement
Code:
settings put global tether_dun_required 0
b. Overwrite the DUN APN
Code:
settings put global tether_dun_apn "APNDUN,n.ispsn,,,,,,,,,310,120,,default,mms,dun"
6. Turn off Mobile Data
7. Turn on HotSpot
8. Turn on Mobile Data
Every time that you want to use the hotspot you have to turn data off; turn hotspot on; turn data back on. When you disconnect your hotspot you need to do the following:
1. Turn Hotspot Off
2. Turn Mobile Data Off
3. Turn Mobile Data On
People will complain, but after you run the code the first time, turning hotspot on and off literally takes just seconds.
Credits:
@paul2112 -- Hotspot Fix
@Snoop05 -- ADB Fast Installer
Click to expand...
Click to collapse
Might try this sometime. Thanks.
Didn't work for me... Verizon model.
rawintellect said:
First of all this is not my work. This mod was originally created by @paul2112. Send him a PM and thank him. I'm simply a guy brave enough to try this on the Note 8. I'm using tethering right now on my Note 8 to type this. It works.
That said follow the steps below to enable both the USB tether and the Wireless Hotspot tethering:
1. Enable developer mode:
a. Go to settings
b. Scroll down to about phone
c. Repeatedly tap "Build number" until developer access is granted
2. Get ADB installed w/ drivers
a. Click me.
3. Enable USB Debugging
a. Go to settings
b. Go down to developer options
c. Scroll down to USB Debugging and turn it on
d. Connect phone with USB to PC
4. Get into ADB shell
a. Open a command prompt (windows key + R , type "cmd" in the box and press enter is my favorite way)
b. Run:
5. Enable the bypass
a. Disable the DUN requirement
b. Overwrite the DUN APN
6. Turn off Mobile Data
7. Turn on HotSpot
8. Turn on Mobile Data
Every time that you want to use the hotspot you have to turn data off; turn hotspot on; turn data back on. When you disconnect your hotspot you need to do the following:
1. Turn Hotspot Off
2. Turn Mobile Data Off
3. Turn Mobile Data On
People will complain, but after you run the code the first time, turning hotspot on and off literally takes just seconds.
Credits:
@paul2112 -- Hotspot Fix
@Snoop05 -- ADB Fast Installer
Click to expand...
Click to collapse
I literally just got finished with this from the original article...lol. My tether was working great on my unlocked version until last night so I was forced to find another way...I wad going to try a method for the Note 7 until I saw this which is similar...
snwbrdr852 said:
Didn't work for me... Verizon model.
Click to expand...
Click to collapse
Did you cycle off Mobile data before enabling the hotspot? Then turn mobile data back on when the hotspot is enabled? Takes a little bit for the Internet to show up. I don't know about Verizon but I can definitely confirm that this works on my phone with Sprint.
rawintellect said:
Did you cycle off Mobile data before enabling the hotspot? Then turn mobile data back on when the hotspot is enabled? Takes a little bit for the Internet to show up. I don't know about Verizon but I can definitely confirm that this works on my phone with Sprint.
Click to expand...
Click to collapse
Yep, did it exactly as described.
My hotspot will not turn on when mobile data is off, and it gives the "subscription required" error when mobile data is on.
This bypass must not have been intended for grandfathered UDP.
snwbrdr852 said:
Yep, did it exactly as described.
My hotspot will not turn on when mobile data is off, and it gives the "subscription required" error when mobile data is on.
This bypass must not have been intended for grandfathered UDP.
Click to expand...
Click to collapse
Sorry to hear that. All is well on the sprint side. Perhaps someone else can confirm or deny this works on Verizon? Heck, any feedback would be appreciated.
Can confirm this works on T-Mobile.
snwbrdr852 said:
Yep, did it exactly as described.
My hotspot will not turn on when mobile data is off, and it gives the "subscription required" error when mobile data is on.
This bypass must not have been intended for grandfathered UDP.
Click to expand...
Click to collapse
Try this method.
Soft reset the phone, and once the phone boots up go directly to hotspot and turn it on..
it should turn on and remain on for as long as you want, once you turn it off it will not work again until next reboot.
Team DevDigitel said:
Try this method.
Soft reset the phone, and once the phone boots up go directly to hotspot and turn it on..
it should turn on and remain on for as long as you want, once you turn it off it will not work again until next reboot.
Click to expand...
Click to collapse
Just tried this. Same exact results, unfortunately.
I even tried turning mobile data off prior to rebooting and turning on hotspot immediately upon startup, but no go.
The sim eject method works for me, but that's too inconvenient to be useful for my purposes. I'm really looking for something that will just allow it to work normally while bypassing the subscription check.
On my s7, the only way to get tethering with Verizon is to slightly eject the SIM, wait a second, pop the SIM back in, wait another second, then enable hotspot. Works every time once you get then hang of it.
Try this method and report Back? It took me a few tries to get it, but it definitely works on the s7.
I only tether with Vz very rarely. My tmobile plan gives 10gb LTE tethering so I don't have much need. It's a pain in the a$$ because my s7 is in an otterbox defender too but it's nice to know I can when I need it.
Sent from my SM-N950U using Tapatalk
For Verizon, I was able to get WiFi tether working by disabling the Mobile Hotspot app in BK Disabler.
sixtythreechevy said:
For Verizon, I was able to get WiFi tether working by disabling the Mobile Hotspot app in BK Disabler.
Click to expand...
Click to collapse
What is the name of the app? I could not find it searching for 'mobile' or 'hotspot'
kiwiguy99 said:
What is the name of the app? I could not find it searching for 'mobile' or 'hotspot'
Click to expand...
Click to collapse
2nd app in screenshot highlighted by checkbox.
sixtythreechevy said:
2nd app in screenshot highlighted by checkbox.
Click to expand...
Click to collapse
Hmmm.......I don't have that app installed. I have the unlocked N8 and I think that may be a Verizon app.
I still have a section under settings called 'Mobile hotspot and tethering' . I was going to try to use BK to disable that and see if FoxFi worked.
sixtythreechevy said:
2nd app in screenshot highlighted by checkbox.
Click to expand...
Click to collapse
After disabling this, where do you go to turn on wifi tethering?
Bizmaniz said:
After disabling this, where do you go to turn on wifi tethering?
Click to expand...
Click to collapse
Under Settings , Connections or Mobile tether like in my screenshot. I have simple settings on due to Bixby
Well my fix worked once but now it is not. Odd...
EDIT: Enabled the Hotspot app again and performed the steps in the OP and this is working at least for now. I did not have to turn off mobile data first.
So if you are on Verizon, you simply need to do the steps in the OP. Hopefully it sticks.
2nd EDIT: Rebooted and it stuck.
So I wanted to share my experience with this. I just recently changed my Tmobile plan to one that doesn't include hotspot, only unlimited internet. I did have a Nexus 6 that was rooted so of course getting my hotspot to work was easy. When I upgraded to the Note8 I was afraid of losing my hotspot especially with no root. So what I ended up doing was creating a new Apn because they won't let you edit the first one. After making a new apn I pretty much copied the same settings with the exception of adding dun to apn type, and changing the apn protocol to ipv4... After those changes my hotspot works perfectly, unlimited!!!
Sent from my SM-N950U using Tapatalk
DaMyth said:
So I wanted to share my experience with this. I just recently changed my Tmobile plan to one that doesn't include hotspot, only unlimited internet. I did have a Nexus 6 that was rooted so of course getting my hotspot to work was easy. When I upgraded to the Note8 I was afraid of losing my hotspot especially with no root. So what I ended up doing was creating a new Apn because they won't let you edit the first one. After making a new apn I pretty much copied the same settings with the exception of adding dun to apn type, and changing the apn protocol to ipv4... After those changes my hotspot works perfectly, unlimited!!!
Sent from my SM-N950U using Tapatalk
Click to expand...
Click to collapse
This is great if your screen isn't grayed out by your carrier. My sprint APN screen looks like this. What you've done is exactly what the command through adb is doing. It's also removing the DUN requirement altogether.
Related
Im trying to make my tab use wifi only becuase i don't have t-mobile service anymore. Is there anyway to get it to stop saying "searching" all the time? I have factory reset my tab but unlike other devices, there is no initial setup so i can choose WIFI only. Anyone have any ideas?
I use;
https://market.android.com/details?id=myc.phone.PhoneInfo&feature=search_result
then turn off the radio.
(also popped the sim out as I was getting occasional SIM Detached messages and reboots, so figured it was simpler to just take the SIM out and turn off the radio)
jadamson145 said:
Im trying to make my tab use wifi only becuase i don't have t-mobile service anymore. Is there anyway to get it to stop saying "searching" all the time? I have factory reset my tab but unlike other devices, there is no initial setup so i can choose WIFI only. Anyone have any ideas?
Click to expand...
Click to collapse
Go into Airplane mode, and then turn on the wifi.
Thats what I do. It uses less battery.
Also deactiveate "Data network mode"
captirwin said:
Go into Airplane mode, and then turn on the wifi.
Thats what I do. It uses less battery.
Also deactiveate "Data network mode"
Click to expand...
Click to collapse
Me too, same as above, but then bluetooth headsets, printers, and keyboards won't work.
rangercaptain said:
Me too, same as above, but then bluetooth headsets, printers, and keyboards won't work.
Click to expand...
Click to collapse
Rangercaptain...where do you think I got the idea from? YOU.
THANKS.
Well, thanks for sharing! You have a good answer!
I disconnect my data plan and using tab as phone. join wifi at work and home and enjoy phone and tab same time lol.
jadamson145 said:
Im trying to make my tab use wifi only becuase i don't have t-mobile service anymore. Is there anyway to get it to stop saying "searching" all the time? I have factory reset my tab but unlike other devices, there is no initial setup so i can choose WIFI only. Anyone have any ideas?
Click to expand...
Click to collapse
Just flash overcome! Then follow simple instructions to turn off radio.. I its really simple.
Edit:
(copy/pasted directly from Overcome tweaks guide)
"Turning the 3G-based Tab into a "Wi-Fi only" device (Disabling the GSM Radio!)
To disable the GSM Radio:
- Bring up your Phone/Dialer program
- Enter: *#*#4636#*#*
- Select Device Information
- Scroll to the bottom
- Tap the "Turn Off Radio"
This will disable all Cell/GSM/EDGE connections – should only be used for those who do not subscribe to a data/cell package. This will leave Bluetooth/Wi-Fi (I think) on so you can still connect Bluetooth devices etc., as opposed to switching to Airplane mode which turns everything off! "
Thanks team Overcome. I have done this on two tabs and this works perfectly. Hope it helps?
Sent from my GT-P1000 using XDA Premium App
I use this:
https://market.android.com/details?id=net.geekherd.airplanemode
You can turn off the radio, use wifi and I believe it allows you to use bluetooth as well.
Sorry to dig up an old thread, but I wanted to offer an alternative solution for anybody still trying to find a persistent solution to creating a Wifi only Galaxy Tab. I use Llama to set up a start up event that turns Airplane mode on, waits 1 minute, and enables Wifi. It has worked well for me for the past several months. Here's the run down of my Llama configuration:
Event Name > Start Up
Conditions -
Phone reboot > After start up
Actions -
Toggle Airplane Mode > Airplane Mode On
Queue Another Event >
Event Name > WiFi On
Event delay > 1 minute
Actions -
Toggle WiFi > WiFi On
I hope this helps someone out.
DISCLAIMER: This is my first thread on XDA, so hopefully I'm not posting in the wrong place/format/context/whatever. If I am, sorry.
For those of you with AT&T plans that don't include Tethering, I came across a simple way to bypass this with root and allow you to run the built in tethering instead of having to use FoxFi.
What you'll need:
Xposed Framework
X Tether Module (Xposed Module)
Root (towelroot method)
Titanium Backup
Root Explorer/ES File Explorer
Step 1:
Install Xposed Framework.
Once installed, launch Xposed Installer, go to Downloads and search for X Tether
Install X Tether, Activate the Module, and reboot.
Step 2:
Open Titanium Backup and find TetheringProvision 4.06.72
Press the App and select 'Freeze !'
Step 3:
Open Root Explorer and navigate to:
/system/app/
Now rename TetheringProvision.apk and TetheringProvision.odex
to TetheringProvision.apk.bak and TetheringProvision.odex.bak
Step 4:
Reboot, Set up Hotspot and Enjoy!
BTC: 1DuoTdxs6ZGgeWrMPCFERKMeBiBhf2Pk3
Tried this, when I attempt to activate the HotSpot it says "Unfortunately, Settings has stopped."
After following the updated instructions, my hotspot appears to be working. Thank you!
Yea, that looked too easy. Usually you would swap the tethering provision files with hacked ones.
Sent from my SAMSUNG-SM-G900A using XDA Premium 4 mobile app
I see you changed the instructions in the thread. That just renaming the file like you suggested earlier, well AT&T caught on to that, and now that doesn't work anymore.
shortydoggg said:
I see you changed the instructions in the thread. That just renaming the file like you suggested earlier, well AT&T caught on to that, and now that doesn't work anymore.
Click to expand...
Click to collapse
Hi shortydoggg,
You're right, I left out the most important part, the Xposed Module.
X Tether (or Moto Tether) is what actually clears out the array that stores the provision varification data (config_mobile_hotspot_provision_app)
Just running this module didn't work for me at first but after renaming the Tether Provisioning files it worked fine.
I also had trouble renaming the files until I froze the Tether Provisioning apk file.
I just ran another test and the built in wifi hotspot is still working great with my 3GB monthly plan.
Works awesome!!!!
BTW, I have the Grandfathered Unlimited Data Plan.
Thanks!
Did this yesterday, worked fine. THANKS!
Also another grandfathered unlimited plan here; they provisioned the plan on my new GS5 but couldn't enable tethering. This solves that!! Awesome!!
Trekboy said:
Tried this, when I attempt to activate the HotSpot it says "Unfortunately, Settings has stopped."
Click to expand...
Click to collapse
Open the Xposed network on your phone and check that the tethering module is activated, and that the xposed network actually installed. You may need to do another step (hint)
Wifi tether speed
I was able to allow mobile hot spot on my Att S5 using the S4 method of replacing the tetherprovision.apk, problem is the speed of the devices connected is terrible. Fine for checking email on one device but not for streaming netflix on multiple like I need. Anyone know of a way to change this? Is it some config file that is set purposely to limit tethered devices?
Note 3 4.4.2
works, thanks
having trouble with the settings also
B][/B]
Trekboy said:
Tried this, when I attempt to activate the HotSpot it says "Unfortunately, Settings has stopped."
After following the updated instructions, my hotspot appears to be working. Thank you!
Click to expand...
Click to collapse
How can I fix the settings for the tether to work
Works like a charm!
Great work, great share....Thanks forever!
:cyclops:
AT&T Note 3 on T-Mobile
It works great.
Question - will T-mobile know when I'm tethering? If so, is there a way... ?
Thanks
Nikon5400 said:
It works great.
Question - will T-mobile know when I'm tethering? If so, is there a way... ?
Thanks
Click to expand...
Click to collapse
They shouldn't notice. I've been tethering on my s2 for years without any issues.
Some developers will say it is technically possible. If your concerned, a VPN service will hide all of your online habits from Tmobile.
I have a subscription through PrivateInternetAccess, I havent hand any issues with their app.
It works!!! I'm also on the grandfathered unlimited plan!
Thanks!!
Post a bitcoin addy, you deserve a tip .
Note 3 AT&T on T-Mobile, never used hotspot before
A few questions -
1. Phone gets hot when hotspot is on. Is that normal?
2. Connection drops from time to time. IPv6 connectivity shows "no internet access", but then works without me doing anything. Is that T-Mobile's fault?
3. When I received a call the icon changed from LTE to 4g, but while hotspot is on and pc connected, the signal never changed back to LTE. Is that how it supposed to be? I have to turn hotspot off and on after every phone call to get LTE back? Or is that T-Mobile not being happy (I have not used the 3gb hotspot limit on my unlimited data plan)
Thanks
Hi, first off a major thanks to OP for posting an excellent tutorial on how to do this. I was really hoping to get tethering enabled on my grandfather unlimited data plan before vacation and am so excited to not have to pay $15 a day for WiFi.
I've been having a lot of lag with the phone lately. Its very slow to respond to typing, switching apps, and even waking and putting to sleep takes 5-10 seconds longer than normal. Any suggestions? I followed all of the directions to the letter and aside from this massive amount of lag, everything is perfect.
elgrecoFL said:
It works!!! I'm also on the grandfathered unlimited plan!
Thanks!!
Post a bitcoin addy, you deserve a tip .
Click to expand...
Click to collapse
Thanks elgrecoFL!
Bitcoin Tips are always welcome!
BTC: 1DuoTdxs6ZGgeWrMPCFERKMeBiBhf2Pk3
Nikon5400 said:
Note 3 AT&T on T-Mobile, never used hotspot before
A few questions -
1. Phone gets hot when hotspot is on. Is that normal?
2. Connection drops from time to time. IPv6 connectivity shows "no internet access", but then works without me doing anything. Is that T-Mobile's fault?
3. When I received a call the icon changed from LTE to 4g, but while hotspot is on and pc connected, the signal never changed back to LTE. Is that how it supposed to be? I have to turn hotspot off and on after every phone call to get LTE back? Or is that T-Mobile not being happy (I have not used the 3gb hotspot limit on my unlimited data plan)
Thanks
Click to expand...
Click to collapse
Hey Nikon,
Hopefully someone with a little more knowledge on the subject can help out but here are my thoughts.
1. My s2 always got hot while tethering for long periods of time and my s5 seems to do the same as well.
This is normal and caused by the 4G antenna and WiFi antenna running simultaneously.
2. Perhaps IPv6 is not working but IPv4 is? I'm seeing the same thing on my AT&T connection.
3. I never had this issue. You might want to double check your APN settings, it could be a t-mobile thing but I really don't think they're targeting people who tether, it sounds more like the connection can't re-establish after connecting to a phone call.
RSCTurner20 said:
Hi, first off a major thanks to OP for posting an excellent tutorial on how to do this. I was really hoping to get tethering enabled on my grandfather unlimited data plan before vacation and am so excited to not have to pay $15 a day for WiFi.
I've been having a lot of lag with the phone lately. Its very slow to respond to typing, switching apps, and even waking and putting to sleep takes 5-10 seconds longer than normal. Any suggestions? I followed all of the directions to the letter and aside from this massive amount of lag, everything is perfect.
Click to expand...
Click to collapse
Hey RSCTurner20,
I haven't notice any lag since doing this, does the lag go away if you turn off the X Tether Module and reboot?
edit: most likely cause and a quick fix: http://forum.xda-developers.com/showthread.php?t=2784945
that's right - if you get a call or access phone settings while client is connected phone cannot re-establish lte connection.
I know when you get a call (hotspot off) on Nexus 5 it takes anywhere from 15 seconds to up to 5 minutes to get lte back
Is there a way to force phone to refresh frequencies?
I'm getting annoyed that every time I turn off wifi the wifo callind feature keeps bugging me to connect to wifi even if I'm not at home or near any wifi... Any way to shut it up so I can still use it at home but it doeant bug me when im not on a wifi area?
Sent from my 831C using XDA Free mobile app
Anyone?
Sent from my 831C using XDA Free mobile app
There is no current way to do this as far as I know as I don't believe there is a tasker plugin for wifi calling. The only thing you could do is set up key presses in tasker so basically a macro to emulate what you want to do. I used this technique to set it up so when I connected to wifi, it would automatically detect that and switch the phone to CDMA only so the phone is not hanging on to a weaker LTE signal for no reason wasting battery. When wi-fi would drop it would go back and set it to LTE. It actually works fairly well and much better battery life especially since I have a repeater in my office.
Found a way!
This breaks ALL notifications from wifi calling but it doesn't break the functionality of calling itself. So when you're on wifi you just gotta trust that wifi calling is connected (or go into settings to see if it's on). Also it DOES break address confirmation but since this should only be a one time deal for most people you can just reenable the service when you need to confirm your address if you're adding a new network or simply want to re-confirm it. You also wont be able to turn the service on and off in settings, but since it's not a radio itself turning of wifi will kill any battery usage by wifi calling:
1. Get ROMtoolbox (I have the pro version so idk if it works on the free version)
2. Go into app manager
3. Find and open wifi calling (make sure its NOT the one from htc)(also dont just select it, make sure you go into the menu)
4. Go right to the advanced section
5. Select advanced freeze
6. Find the service "vowifiservice"
7. Click on it to disable it and agree to the promt
8. *optional* Reboot the phone or refresh the setting to clear any notifications currently showing
9.???
10. Profit
Sent from my 831C using XDA Free mobile app
Android Marshmellow + rooted.
I'm using (like so many) a few profiles/taks to switch from Mobile Data to Wifi when i get home and back when i leave home. Works pretty nice but... not all the time.
The reason behind this is the difference on how Wifi and Mobile Data are activated.
If changed both manually (via the drop down menu) both act as a toggle.
But within tasker this behaviour changes. Wifi has an On / Off option, Mobile Data has to but that doesn't work anymore since Google changed the activation for Mobile Data which means that you can only set it with the help of Active Input and that turns it into a toggle.
And this creates a syncronisation problem between Wifi and Mobile Data.
I'll explain the difference:
If i set Wifi to ON Wifi goes ON.
If i set Wifi again to ON, Wifi stays ON. It will only go OFF when i set it to OFF.
It behaves as a physical switch.
Mobile Data however does not.
If i activate Mobile Data through Active Input and it's OFF, it will go ON. And when it's ON it will go OFF.
It behaves a toggle.
Now this works OK as long as everything is in sync.
If Mobile Data is ON and i reach home, Wifi is turned ON, i get the connected signal and Mobile Data is turned OFF. Same goes the other way, if i leave home, Wifi connection is lost and Wifi is turned Off. When the connection is lost Mobile Data is turned On again. Works nice.
But this can get out of sync because of the switch/toggle behaviour.
Example:
If i'm home, Wifi is ON and Mobile Data is OFF. If i turn Wifi OFF manually , the connection is lost and Mobile Data comes ON. If i turn Wifi back ON, Mobile Data goes OFF again.
But the other way there is a problem. If i'm not home and turn Mobile Data OFF somewhere and reach at home, tasker sees this, turns on Wifi and "toggles" Mobile Data to be OFF but since it's a toggle action, Mobile Data will come ON instead and both are then ON. And from then on the nice syncronisation between Wifi and Mobile Data is gone.
This manual override (like i like to call it) also doesn't update the variable i use which is logical since the Mobile Data wasn't "toggled" through Tasker.
I tried to solve this with a double variable check together with a variable i set when Mobile Data is connected (2G,3G,or 4G) and then toggle Mobile Data according to this and set/reset the variables but while this should work better in theory, it still doesn't work all the time because indoors, Mobile Data connection can be lost and then the Mobile Data toggles again to a state i don't want again setting a desyncronisation between Wifi and Mobile Data. In fact, due to this the syncronisation has become more unstable. So i removed the Mobile Data connected part again.
Questions:
- Is there a way to make Mobile Data work as a switch instead of a toggle?
- If not, is there a way to detect is the Mobile Data button has been touched (which i could then use in a variable)?
I'm using shell commands to switch mobile data on/off.
If your selinux is permissive, simply run a shell command with this:
Code:
svc data enable;
or
Code:
svc data disable;
If your selinux is enforcing, you need to add two lines, so it looks like this:
Code:
setenforce permissive;
svc data enable;
setenforce enforcing;
and respectively
Code:
setenforce permissive;
svc data disable;
setenforce enforcing;
Needless to say, you need root access for this.
I'm afraid that's currently above my head...
To add a shell command:
Code > Run Shell
Tick "root"
Put the codes from above in "Command"
Sukarn said:
To add a shell command:
Code > Run Shell
Tick "root"
Put the codes from above in "Command"
Click to expand...
Click to collapse
Exactly. [emoji106]
If i do that, can you then explain at least what it does exactly?
I guess it will turn on/off mobile data but on what basis?
How do these commands know when to turn it on or off depending on my wifi state?
What does " if your selinix is enforcing" means?
Edit: Got it partly working with the shell commands. Mobile data doesn't always turn off when wifi comes back on and is connected. It still can get out of sync.
It does not check the state of the mobile data if i interact and turn it on/off manually because it doesn't seem to know in what state is after playing around with it manually.
Also, tasker sometimes seems to get stuck somewhere in the middle of the code for disabling the mobile data.
Need to look a bit more into why tommorow...
Update:
Got it fully working with the shell commands and sync between Wifi and Mobile Data seems OK (for now at least).
I'm using the settings get global mobile_date command to put the status into a variable and then work with this and the wifi status variable to toggle Mobile Data on and off.
One thing i haven't found yet is what the settings get mobile_data exactly returns, the state of the toggle button in the notification screen or the state of the mobile data being connected?
Does anyone know of an app that will automatically turn off mobile data when i'm successfully connected to a WiFi connection have have internet access through it.
The app should do something like this...
1. Check for WiFi connection
2. If WiFi = connected, then test WiFi connection
3. If connection = Good, then turn off Mobile Data, else leave Data connection ON
If you suggest Tasker, then you better follow it up with a full write-up on how to set it up on Tasker.
I believe (someone will correct me if I'm wrong) that Android is programmed to use wifi when it's available, even though your data connection looks as if it's on.
If you're not happy with that, Automate It should be able to do something for you. I have Automate It Pro set to turn off wifi & data at midnight, for example, to avoid the nuisance of emails pinging me in the middle of the night. And it switches wifi & sync on at 09:00 each day. Very useful tool, simpler than Tasker, so no tutorial from me...
There are a few Automate apps in the Play Store - it's this one:
https://play.google.com/store/apps/details?id=AutomateIt.mainPackage
This free version allows you 3 (as I recall) triggers - if you need more it's not too expensive to buy Pro.
I use RadioControl to handle that for me.
https://play.google.com/store/apps/details?id=com.nikhilparanjape.radiocontrol&hl=en
It requires root, and it's not perfect. But it works well enough for me.
[NG]Owner
Try smart radio xposed module.
pr0ndigy said:
Does anyone know of an app that will automatically turn off mobile data when i'm successfully connected to a WiFi connection have have internet access through it.
The app should do something like this...
1. Check for WiFi connection
2. If WiFi = connected, then test WiFi connection
3. If connection = Good, then turn off Mobile Data, else leave Data connection ON
If you suggest Tasker, then you better follow it up with a full write-up on how to set it up on Tasker.
Click to expand...
Click to collapse
Tasker does it pretty simply, but it needs root access..
Set up (2) tasks - I called mine Data Off & Data On. You will need to select "Net/Mobile Data" and then set "On" or "Off" respectively. Next set up your profile. Select "State/Net/Wifi Connected", and leave everything empty and save. This will trigger the profile when any wifi is connected. (Optionally, you could set it to your home or work wifi, etc). Your "task" will be "Data Off", then add an "exit task" for "Data On" (by long pressing the Data On and selecting "exit task").
dahawthorne said:
I believe (someone will correct me if I'm wrong) that Android is programmed to use wifi when it's available, even though your data connection looks as if it's on.
Click to expand...
Click to collapse
^^^^ This. Android has done this for years. Some devices have the ability to keep mobile data on with wifi, but those usually default to OFF.
Note in the screenshot below that my Cellular network state (mobile data) is "Disconnected"
Pkt_Lnt said:
^^^^ This. Android has done this for years. Some devices have the ability to keep mobile data on with wifi, but those usually default to OFF.
Note in the screenshot below that my Cellular network state (mobile data) is "Disconnected"
Click to expand...
Click to collapse
Interestingly, I bring up the same screen on my phone (when connected to wifi) and it shows cellular is still connected??
jbaumert said:
Interestingly, I bring up the same screen on my phone (when connected to wifi) and it shows cellular is still connected??
Click to expand...
Click to collapse
Do you have a ROM that has that option and it is enabled?
Pkt_Lnt said:
Do you have a ROM that has that option and it is enabled?
Click to expand...
Click to collapse
Running SIX ROM - Just checked, that option is disabled in the Dev Settings / connected to good wifi / and cellular is active...
¯\_(ツ)_/¯
Now it is a question for that rom dev.