Back story: I've always rooted in the past, but purely for entertainment / backup purposes. Now however, I actually NEED root for my phone to function as I believe it should due to a "glitch" in the system. Please reference the thread that I started in the google help forums here (sorry can't post outside links):
I'm a new Project Fi customer with a Nexus 6P. The phone is fantastic, but I'm having a problem making calls while at home. The Project Fi CSR that I chatted with was not very helpful and was only able to tell me what I already knew.
The problem is that one of my neighbors has a Sprint "home cell tower" device (I believe it's an Airave but no way to know for sure) that my phone connects to when I attempt to place a call. When I hit send, I hear 3 beeps followed by an automated message "We are unable to complete your call at this time, please try again later; Message 12: Switch 2195"
Currently, my only option if I want to make a call is to turn on "airplane mode" and then turn wi-fi back on so that it reconnects to my home wi-fi and then place the call. Obviously this is not ideal as it's not really practical to turn airplane mode off and on when I come and go from my house.
Is there another option that I am missing. It seems almost too obvious that there should be a "prefer wi-fi calling when available" toggle somewhere, but I don't believe there is.
Any ideas / suggestions?
Click to expand...
Click to collapse
and which I proceeded to find a solution for as detailed here (sorry can't post outside links):
I've found a better solution (or at least a more convenient one) to this problem. This solution is also workable for people who feel that wi-fi calling would be more reliable in specific places than their cellular connection for making phone calls. The only caveat: you need to root your phone for Tasker and System Settings to function as required for these tasks. I have used the apps Tasker and Secure Settings to set up a rule for my phone that will automatically turn off the cellular radios and leave wi-fi on when I'm at home. When my phone connects to my home wi-fi as identified by the SSID of my home wireless router, Tasker initiates the Task to turn the cell radios off thus forcing all incoming and outgoing calls be routed over wi-fi. When my wi-fi connection is lost (when I leave home), Tasker initiates another task to turn the cellular radios back on. This has been working flawlessly for about 3 weeks on my phone, and requires absolutely no user input after the initial setup. I highly recommend this solution as it is far more convenient than having to use separate dialer apps when at home and away.
Click to expand...
Click to collapse
Long story short, I need to use Tasker and Secure Settings to manipulate airplane mode based on my location as determined by the wifi SSID to which my phone is connected. I ALSO would like to be able to use Android Pay. Unfortunately, Android Pay doesn't work unless I remove SU from the /su/xbin_bind folder, and if I do that, then Secure Settings doesn't work.
I attempted to use tasker to automate the renaming of the SU file when the Android Pay app is started and then rename the file back to SU after Android Pay closes, but the results only work sometimes... it's flaky at best and I don't know why. Sometimes Android Pay works, sometimes not, other times Secure Settings Works, and sometimes not.
Does anyone have any suggestions for me? Is there going to be an update to Secure Settings so it will work with systemless root without having the create the symlinks? Is there a way to use Tasker to turn off the cell radios only without the need for the Secure Settings app? (I'm a relative novice with Tasker)
Thanks,
Adam
Oops! Posted in wrong section. Mods, please move.
mntnbkr said:
Does anyone have any suggestions for me? Is there going to be an update to Secure Settings so it will work with systemless root without having the create the symlinks? Is there a way to use Tasker to turn off the cell radios only without the need for the Secure Settings app? (I'm a relative novice with Tasker)
Thanks,
Adam
Click to expand...
Click to collapse
Don't bet on a Secure Settings update. It seems a dead project.
You can do it without secure settings, as you're rooted (as per this post)
In tasker, instead, set your task to perform Code -> Run shell -> Command: "settings put global airplane_mode_on 1; ; am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true" -> Check Use Root checkbox, for going into airplane, change 1 to 0 and true to false to disable and return to normal operation.
rgawenda said:
Don't bet on a Secure Settings update. It seems a dead project.
You can do it without secure settings, as you're rooted (as per this post)
In tasker, instead, set your task to perform Code -> Run shell -> Command: "settings put global airplane_mode_on 1; ; am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true" -> Check Use Root checkbox, for going into airplane, change 1 to 0 and true to false to disable and return to normal operation.
Click to expand...
Click to collapse
Thanks for the reply and info! I'm not terribly proficient with Tasker, but I'm going to give your suggestion a shot. If it works, that would be great!:good:
Related
Hi,
are there any application to control different phone profile.
i would like to have at least three profile
a) in my home phone should ring, wireless connection should be via desired wifi connection (blue tooth and data connection via tmobile should be disable)
b) when i am in the car I need blue tooth enable, wifi disable
c) when i am at work, bluetooth disable, wifi disable, and data connectin via tmobile disable.
etc...
please advice me whether there is a application to do this.
thanks
ooo7
Toggle Settings from the market seems to do most of this, although not sure about turning off the data connection. You can set it to 2G though.
I think Locale would do some too - it can be set to behave in a certain way when at a certain location - I've NEVER used it though, just read about other users using it for this kind of function so check it out
hi,
thanks for your quick responses.
yes local will do some of it, but i mainly needed to change profile as an when i needed, i.e. not based on geographical location.
if you come across any other application please let me know. i am sure this sort of application will be really useful for lot of other people.
regards
ooo7
You can also try "Ear" it does almost everything except the data connection part
the 5 widgets you can get (hold finger on empty space -> htc widget -> settings) will do this... sure, you don't get the benefit of pre-sets (there _will_ be an app that will do this, somewhere) but it's totally flexible
you can certainly do the "wifi on / bluetooth & data off" and vice versa for leaving the house via locale... might be able to get by with manual toggles after that (or also have a location for work)
location works great!
try it!
ive found some where on this forum on how to turn off the data connection
here our to steps
Try this:
1. Type *#*#4636#*#* on your dial pad
2. Select "Phone Information"
3. Press "Menu" soft key
4. Select "More"
5. Select "Disable Data on Boot"/ or just disable data
6. Reboot
Now data should be disabled (you won't see E/3G icons in the notification bar) and you can use WiFi whenever you want.
Credit doesn't go to me some one eles on the forum just wanted to repost as i cant find and some people might find this useful
i do it that way to, but it only works until you do Reboot
it doesn't save the changes
after the phone reboots, you have to go back into the menu to manually turn data off.
So much work. Use APNdroid and a widget on your homescreen to endable/disable. And yes, it does save even after reboots.
Still worthwhile
Here's a good reason why an automated way of using this service menu option would be a good idea:
APNDroid (and similar programs) 'disable' data connection by adding additional characters to the APN information of your phone. They, therefore, don't disable data connection, they merely invalidate the APN information.
What happens though is that the phone still tries to connect to the GPRS/3G network, using the invalidated information. On my network, Vodafone UK, enabling the APN later again (i.e., putting the valid information back) does not lead to switching the GPRS/3G connection back!! Only switching on/off the airplane mode switches back on the cellular data connection!
My guess why: invalidating the APN information (and the phone using this information to attempt connecting) leads to a sequence of GPRS attachment requests being sent to the (cellular) network. Some operators might react to these requests by disabling any future attempt of attaching to the network - a denial-of-service prevention, if you will. When you switch APNdroid (or similar) back on, the cellular attachment has been disabled on the operator side (since you've been sending invalid attachment requests). Switching airplane mode on/off re-attaches you from scratch to the cellular network - GPRS/3G will work again!
I observe this behaviour on my and my wife's phone consistently IF the cellular connectivity has been disabled for more than 60 minutes (possibly a timeout set by Vodafone UK). We tried several APN switching programmes.
When using the service menu switch, you can use your connectivity at any time - no airplane mode switching required. Problem though is that the menu selection is far more complicated than the airplane mode switching ;-)
So what's required is a programmer's work to create an automated (widget-based) switch, using this menu!!!!
BTW: my friend's Hero has an HTC-provided widget, doing exactly that. He's never observed any issues with it, as described above.
Has anyone tried DCswitch+ it supposedly doest exactly that - disabling the dta connection via service menu.
blublub said:
Has anyone tried DCswitch+ it supposedly doest exactly that - disabling the dta connection via service menu.
Click to expand...
Click to collapse
Yes, tested it work like advertised.
thanks man.
That's very handy. Thanks for the tip.
Hi,
I don't know if it uses the service menu but Smoda widget doesn't change the apn string and does switch off the data connection, saving me great amount of battery time. I'll have a look at DCswitch+ and try to compare.
there is an even easier method just install the app APN on-off Widget
link here
http://forum.xda-developers.com/showthread.php?t=765081
AllGamer said:
there is an even easier method just install the app APN on-off Widget
link here
http://forum.xda-developers.com/showthread.php?t=765081
Click to expand...
Click to collapse
But this also only renames the apn, right? It is mentioned in the comments... If so, it will not help to save battery, like the method of the first post.
you can use SP if the goal is to save battery
http://forum.xda-developers.com/showthread.php?t=807989
I'm on froyo and you just long press the power button and one of the options is disable data connection !
Sent from my X10i using XDA App
So my work has banned all cellphones and wifi capable devices. I work graveyards and absolutely DEPEND on my Nook for reading all night long. Is there a way with Root Explorer or ADB that I can totally kill Wifi?
I want to be able to hit the wifi toggle and show a supervisor that it won't work.
Hopefully someone can help...
You can do it quite easily with Tasker. Disclaimer: the way I did it, each time you hit the toggle, it will show the hollow (not connected) wifi bars for half a second, then nothing. This is on cm7 by the way.
There is a 2 week trial of Tasker if you want to try it. There may well be a better way to do it in Tasker too.
Context: State > Net > Wifi Connected (any time wifi tries to connect it will do the following)
Task: Net > Wifi > Set to Off (it sets wifi off)
Exit Task: Net > Wifi > Set to Off (this sets it off so it doesn't continuously attempt to reconnect)
Only a few clicks in Tasker to re-enable wifi if you need it too.
Thanks for the reply, I figured out a way with Root Explorer while I was at work last night. I navigated to /system/lib/modules and renamed the only file there (something like wlan.ko but longer) with an added .kill suffix to the end. No need to reboot or anything. Hitting the wifi toggle now does nothing, going into wireless settings and pressing the wifi on toggle shows ERROR where it would normally say TURNING ON or SCANNING or whatever. Easy to reverse when needed.
Thanks again!
Hi,
Backstory:
I have an Asus TF700 (running Cromi-X) and recently got the Asus Connect Dock, which has on-board ethernet. When connected, a previously hidden 'Ethernet' On/Off setting is exposed. When switched to 'on' it allows use of the Ethernet port. Downside -- when undocked, it continues to consume battery as it polls for the interface, but the setting goes away again, so it can't be disabled until the unit is re-docked and the setting turned off. Very inconvenient.
I did a lot of looking around and found that it is a setting in the com.android.providers.settings/databases/settings.db. I even managed to update it via SQLite3 via terminal, and it worked -- sort of -- only after a reboot did the setting take. Very inconvenient.
Punchline:
I'm looking to automate shutting the setting off via a tasker context, but I'm blocked on how to apply the setting without rebooting the tablet. So, in desperation, asking this community if there is a way (or app) to apply the setting so I don't have to restart the device.
Help?
acraigl said:
Hi,
Backstory:
I have an Asus TF700 (running Cromi-X) and recently got the Asus Connect Dock, which has on-board ethernet. When connected, a previously hidden 'Ethernet' On/Off setting is exposed. When switched to 'on' it allows use of the Ethernet port. Downside -- when undocked, it continues to consume battery as it polls for the interface, but the setting goes away again, so it can't be disabled until the unit is re-docked and the setting turned off. Very inconvenient.
I did a lot of looking around and found that it is a setting in the com.android.providers.settings/databases/settings.db. I even managed to update it via SQLite3 via terminal, and it worked -- sort of -- only after a reboot did the setting take. Very inconvenient.
Punchline:
I'm looking to automate shutting the setting off via a tasker context, but I'm blocked on how to apply the setting without rebooting the tablet. So, in desperation, asking this community if there is a way (or app) to apply the setting so I don't have to restart the device.
Help?
Click to expand...
Click to collapse
The problem you describe here is that the service probably doesn't poll the database for changes and instead is probably triggered by UI change within its preferences. Without calling the context of the preference, you can't force it. That's bad service handling imo.
You may be able to kill the service manually however. Since we are linux devices you may be able to get the pid from the service via pidof <packagename> and then just send a kill signal to it.
Another theory maybe that the service doesn't poll the database until there is a DOCK event broadcasted. If you have root, you could probably edit that setting that you have found and then have your app send a broadcast DOCK event. Not sure if that will work.
zalez said:
Another theory maybe that the service doesn't poll the database until there is a DOCK event broadcasted. If you have root, you could probably edit that setting that you have found and then have your app send a broadcast DOCK event. Not sure if that will work.
Click to expand...
Click to collapse
Better yet, send the DOCK broadcast yourself. You might be able to do this with some nifty reflection if it's exposed.
Take some dex2jar to it and find out.
Workout an XPOSED mod it will let u do this
Sent from my GT-S5302 using Tapatalk 2
Hi there, before now some people were having issues with the hotspot workarounds, where they could enable the hotspot but attached devices received no actual internet. I didn't do any polling but it seemed to be mostly a Sprint phenomenon, as after doing the magic hotspot trick most other people had no issues.
I just tested it, and the new root will get you functioning hotspot on Sprint, and possibly for other people too who were having the same problem. I ran the following code while the hotspot happened to be off, and after turning it back on I was able to get internet through it on other devices. If you try this with the hotspot already enabled please report back so we know if it needs to be either particular setting. Use a normal command line where you have adb.exe and run this command while the phone is on and no further action should be needed once you turn on the hotspot.
Code:
adb shell content insert --uri content://settings/system --bind name:s:tether_dun_required --bind value:i:0
Just having root itself has not enabled the normal hotspot switch locations, like in the notification drawer or in the tethering settings, and I still had to use the network refresh trick to get them to work. This may need another command to insert/change the correct protection setting, or something else entirely.
I also went back to the APN settings through the shortcut maker and received the same error I had before, about this user not being able to access them.
On a related note, I saw some people mention that their hotspot would automagically turn off after 10-20 minutes, so I'll post this now and keep an eye on whether it does so here, as I never watched before.
lafinjack said:
Hi there, before now some people were having issues with the hotspot workarounds, where they could enable the hotspot but attached devices received no actual internet. I didn't do any polling but it seemed to be mostly a Sprint phenomenon, as after doing the magic hotspot trick most other people had no issues.
I just tested it, and the new root will get you functioning hotspot on Sprint, and possibly for other people too who were having the same problem. I ran the following code while the hotspot happened to be off, and after turning it back on I was able to get internet through it on other devices. If you try this with the hotspot already enabled please report back so we know if it needs to be either particular setting. Use a normal command line where you have adb.exe and run this command while the phone is on and no further action should be needed once you turn on the hotspot.
Just having root itself has not enabled the normal hotspot switch locations, like in the notification drawer or in the tethering settings, and I still had to use the network refresh trick to get them to work. This may need another command to insert/change the correct protection setting, or something else entirely.
I also went back to the APN settings through the shortcut maker and received the same error I had before, about this user not being able to access them.
On a related note, I saw some people mention that their hotspot would automagically turn off after 10-20 minutes, so I'll post this now and keep an eye on whether it does so here, as I never watched before.
Click to expand...
Click to collapse
This didn't work for me. Any other ideas. Says hotspot service not provided? I can't even switch it on?
An easier command to type that does the same thing is:
Code:
adb shell settings put global tether_dun_required 0