Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


1258 posts

Uber Geek
+1 received by user: 20


Topic # 193556 15-Mar-2016 08:17
Send private message

I need to automate a process as follows.....

 

 

 

At Home, switch 2g on, wifi on.

 

Leave Home, switch 3g/4g on, wifi off.

 

Tasker and others will do the wifi on/off but I cant find a way of switching between 2g and 3g/4g.

 

 

 

Any suggestions?


Create new topic

Stu

Hammered
5045 posts

Uber Geek
+1 received by user: 1062

Moderator
Trusted
Lifetime subscriber

  Reply # 1513470 15-Mar-2016 08:22
Send private message

What android version? I believe Lollipop and above are going to give you grief switching mobile data.




Keep calm, and carry on posting.

 

 

 

Click to see full size Click to see full size




1258 posts

Uber Geek
+1 received by user: 20


  Reply # 1513477 15-Mar-2016 08:36
Send private message

6.01 I dont want to switch mobile data as such, I want to switch the radio between 2g and 3 or 4g.

 

Settings/More/Mobile Networks/Preferred Network Type.

 

 


2782 posts

Uber Geek
+1 received by user: 120


  Reply # 1513479 15-Mar-2016 08:37
Send private message

Yeah, without root access + the Secure Settings plugin you can forget it unfortunately, which is super annoying. Thanks Google.

 

 







1258 posts

Uber Geek
+1 received by user: 20


  Reply # 1513480 15-Mar-2016 08:40
Send private message

I am not opposed to rooting so will I be able to do what I want with Tasker and Secure Settings and Root?


Stu

Hammered
5045 posts

Uber Geek
+1 received by user: 1062

Moderator
Trusted
Lifetime subscriber

  Reply # 1513482 15-Mar-2016 08:44
Send private message

That would be the only option that *may* work. Without root I don't think there's a way. I haven't seen the setting in the Secure Settings plug-in, but I don't have root access on the S7 to try it out anyway.

Good luck!




Keep calm, and carry on posting.

 

 

 

Click to see full size Click to see full size


2782 posts

Uber Geek
+1 received by user: 120


  Reply # 1513486 15-Mar-2016 08:56
Send private message

Tasker + Root + https://play.google.com/store/apps/details?id=com.cygery.togglenetworktype

 

You may also be able to do it with the Secure Settings plugin.

 

 







1258 posts

Uber Geek
+1 received by user: 20


  Reply # 1513490 15-Mar-2016 09:02
Send private message

That app looks good, may be on a mission here, thanks.smile


614 posts

Ultimate Geek
+1 received by user: 80

Trusted
Subscriber

  Reply # 1513506 15-Mar-2016 09:30
Send private message

If you'd like a non-root solution, try AutoInput - you can use it to simulate touch events to toggle 3G/4G.

Although I'd highly recommend rooting your device if you can - it just makes automation tasks so much more easier.


Stu

Hammered
5045 posts

Uber Geek
+1 received by user: 1062

Moderator
Trusted
Lifetime subscriber

  Reply # 1513552 15-Mar-2016 10:16
Send private message

 Things used to be so much simpler before Lollipop! 





Keep calm, and carry on posting.

 

 

 

Click to see full size Click to see full size


36 posts

Geek
+1 received by user: 8


  Reply # 1513728 15-Mar-2016 14:11
Send private message

Nobody's asked yet, but what are you trying to achieve with that Tasker profile? If you're trying to save battery, you probably wont notice much between switching from 3G/4G down to 2G because all the data will be going via wifi at home anyway. The radios sleep pretty well on most phones when they're not active. I used to run a profile like this on the old galaxy Nexus, and later on the Nexus 4 with root+secure settings as mentioned. It does work, but I personally found it didn't really save any battery, if anything the Tasker profile waking the phone up used more.

How are you planning on detecting location? If wifi is off, you need to do location based tracking to work out when to turn on wifi. If you use cell tower location, I believe that's still the lowest battery usage, but I found leaving wireless on again barely used much battery.

Something to think about anyway, it's a fun experiment getting it all going and encourage you to give it a go if you're interested in doing so; but don't expect it to magically give you much battery savings




1258 posts

Uber Geek
+1 received by user: 20


  Reply # 1513750 15-Mar-2016 14:39
Send private message

I have no 3g or 4g reception at home, only 2g. When I leave home and wifi I want 3g or 4g on for data. Battery save is not the issue.

614 posts

Ultimate Geek
+1 received by user: 80

Trusted
Subscriber

  Reply # 1513809 15-Mar-2016 16:11
Send private message

peejayw: I have no 3g or 4g reception at home, only 2g. When I leave home and wifi I want 3g or 4g on for data. Battery save is not the issue.

 

Your phone should automatically connect to 2G if you don't have any 3G or 4G reception. If it's not doing this already, you might need to set the preferred network type in your phone's service menu.

 

To access the service menu, dial *#*#4636#*#* -> Phone information -> Set preferred network type.

 

Select LTE/gsm auto(PRL) and press back till you exit the menu.

 

You might want to give the other options a try as well (eg: gsm auto (PRL)) and see if it works better.




1258 posts

Uber Geek
+1 received by user: 20


  Reply # 1513849 15-Mar-2016 16:27
Send private message

Well its a little more complicated, didnt want to muddy the water with too much detail initially. I do get a strong (4 bars) signal on 3g but it will suddenly drop completely out and then back to full strength after a few minutes, so when you are on a phone call the call will drop, guaranteed. This is not a phone issue, it happens to everyone in the house. It happens if the phone is sitting stationary on my desk full signal one moment, zilch the next. I have monitored the connection and it doesn't decrease, it drops out totally.

 

If I use 2g it never drops but when I leave the house I need to have it back to 4g for fastest data connection as I need to remotely monitor some home devices. Invariably, after being away from home with 3/4g connected, I come home, take a call and have it drop because I have not switched it back to 2g, very annoying.


14052 posts

Uber Geek
+1 received by user: 2512

Trusted
Subscriber

  Reply # 1513885 15-Mar-2016 17:37
Send private message

Root + LLama + Secure Settings = simple win . I can't say 100% sure you can do 2G/3G/4G but anything you can do with secure settings you can do with Llama. It's also good on battery, can do cell tower location based ring profiles, switch phone to airplane mode at night, all kinds of stuff.





AWS Certified Solution Architect Professional, Sysop Administrator Associate, and Developer Associate
TOGAF certified enterprise architect
Professional photographer


Create new topic

Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Intel introduces new NUC kits and NUC mini PCs
Posted 16-Aug-2018 11:03


The Warehouse leaps into the AI future with Google
Posted 15-Aug-2018 17:56


Targus set sights on enterprise and consumer growth in New Zealand
Posted 13-Aug-2018 13:47


Huawei to distribute nova 3i in New Zealand
Posted 9-Aug-2018 16:23


Home robot Vector to be available in New Zealand stores
Posted 9-Aug-2018 14:47


Panasonic announces new 2018 OLED TV line up
Posted 7-Aug-2018 16:38


Kordia completes first live 4K TV broadcast
Posted 1-Aug-2018 13:00


Schools get safer and smarter internet with Managed Network Upgrade
Posted 30-Jul-2018 20:01


DNC wants a safer .nz in the coming year
Posted 26-Jul-2018 16:08


Auldhouse becomes an AWS Authorised Training Delivery Partner in New Zealand
Posted 26-Jul-2018 15:55


Rakuten Kobo launches Kobo Clara HD entry level reader
Posted 26-Jul-2018 15:44


Kiwi team reaches semi-finals at the Microsoft Imagine Cup
Posted 26-Jul-2018 15:38


KidsCan App to Help Kiwi Children in Need
Posted 26-Jul-2018 15:32


FUJIFILM announces new high-performance lenses
Posted 24-Jul-2018 14:57


New FUJIFILM XF10 introduces square mode for Instagram sharing
Posted 24-Jul-2018 14:44



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.