yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] theboundless:
works on lg optimus v

Hey themasterbarron

Just wanted you to know, your mod is awesome and works on my Lg optimus v (virgin mobile) with aospcmod cm7 (2.3.3). In fact, your mod is the main reason I switched my rom to a cyanogen based one :)
[Android Apps and Games] twixyz:
Hi,

Since 3G is the biggest power consumer on my device, this is my saviour. Thank you for that!

But I have a slight problem I read earlier about. My settings too are not saved after rebooting. I have tried all the suggestions mentioned before, with no luck.

Is there a way I can fix this myself, or will it be fixed in a new release?

Thanks a lot,

Gerard

The Netherlands
[Android Apps and Games] twixyz:
Any word on this? I'd really like to use this app without having to apply it myself every day. If I forget, I might be out of juice before the end of the day ;-(

In fact, some time ago I started switching manually to save power, because my 3G uses so much power compared to Wi-Fi and 2G. But that was such a hassle, I gave up on it.

So it would be great if this app could automate that process, I'm eagerly awaiting the fix!

Thanks a lot,

Gerard
[Android Apps and Games] maximang:
Permissions

Why this application ask for a lot of permissions ? I didn't read all the topic, sorry if someone already answered (and sorry for my English).
[Android Apps and Games] TheMasterBaron:
I hope you know how to use the terminal/console. Try typing the following commands in the console and let me know what the results are. The problem with saving values is a permissions issue. Toggle 2G runs these two commands to give the permissions to the app to save it's properties.

Type these two commands:

su
chmod -R 777 /data/data/com.mb.toggle2g
[Android Apps and Games] TheMasterBaron:
Read the notes in the first post or search this thread for "permission"
[Android Apps and Games] Bieniu:
Not working for me. After reboot settings are gone.
[Android Apps and Games] TheMasterBaron:
It may take 2 reboots to kick in.

Did you get any messages running the chmod?

What does the output of these 3 commands look like:

ls -l /data/data | grep toggle2g
ls -l /data/data/com.mb.toggle2g
ls -l /data/data/com.mb.toggle2g/shared_prefs
[Android Apps and Games] john99teg:
Whats your setting

whats the 2g settings and 3g settings to make it work? Is it wcdma (3g/2g) for both 2g network and 3g network settings? I also have a optimus v and aosp rom. I dont know if its working or not because when I turn on the screen the 3g icon still shows.Thanks alot
[Android Apps and Games] TheMasterBaron:
Set 2G to "GSM Only" and 3G to "WCDMA preferred". These are the default settings.
[Android Apps and Games] john99teg:
Even for a cdma phone? Mine is an optimus v from virgin mobile
[Android Apps and Games] TheMasterBaron:
Removed because I misspoke.
[Android Apps and Games] ctomgee:
Wait until screen unlocked?

MasterBaron,

If I could make a suggestion, perhaps a good addition would be to wait until the screen is fully unlocked before making the switch from 2G to 3G, instead of right when the screen has been woken up. Or at least to add an option in the preferences for this. As someone mentioned in an earlier post, if you just wake the screen to look at the time or check for notifications, but don't go so far as to actually unlock the screen, then there is really no need to make the switch from 2G to 3G at that point, IMO.

Otherwise, the app works brilliantly on my Milestone w/CM7.

Thanks for your work! :D
[Android Apps and Games] john99teg:
possible of having a toggle for ev-do and 3g? lol
[Android Apps and Games] TheMasterBaron:
Everyone should be using the plug-in. That way it won't switch until you decide you actually need it. I find the auto-switching pointless. Do you need 3G if you're using the calculator or replying to a text message?
[Android Apps and Games] Bieniu:
I tried 3 times. The third time I've done this:

- uninstall the program

- restart the system

- install program

- commands from the terminal (su, chmod)

- configuration of the program

- restart the system

And it's working. The program remembers the settings after a reboot.

Thanks for your help.
[Android Apps and Games] TheMasterBaron:
I'm glad you got it working. Seems strange you had to uninstall/reboot to get the permissions set.
[Android Apps and Games] theboundless:
themasterbarron

I'm on a cdma network, and the 2g/3g toggle works just fine. For sprint, the 2g has to be set to "cdma only" and the 3g is set to "cdma auto (prl)." I've recently started messing around with tasker and your plugin, and have a great setup.

Any news on when (or if possible) you can make this app work for non cyanogenmod roms?
[Android Apps and Games] ra5849:
Thank you very much.
[Android Apps and Games] TheMasterBaron:
Thanks, I guess not having a CDMA phone makes me a bit dumb on the subject :)

Also thanks for posting the info for others users to use.
[Android Apps and Games] n2rjt:
This is a great app. I have used it for six months or more, I cannot remember when I first found it. I wanted to report that it works fine on Fresh Froyo for Kaiser/Vogue/Polaris.
[Android Apps and Games] SwimmerBoy:
Does this app works in froyo? 2.2?
[Android Apps and Games] twixyz:
Hi all,

I tried this chmod-thing, and that did the trick! All settings stick after a reboot. Great!

I have another question though. Most people say that Wi-Fi is the biggest power consumer. On my device however it's 3G. I even preferably use Wi-Fi to save power. Since 2G uses least power, I've set the app to toggle to 2G, even when Wi-Fi is turned on.

Now the most recommended setting for the Wi-Fi sleep policy is "never", because switching from Wi-Fi to 2G/3G itself consumes a lot of power.

But given my situation, couldn't it be more power saving if I set the Wi-Fi sleep policy to "screen off"? That way, when I let the device go to sleep, Wi-Fi shuts down and Toggle2G steps in with 2G, the most power saving mode available!

Does this make sense, or am I missing something?

Thanks a lot,

Gerard

The Netherlands
[Android Apps and Games] TheMasterBaron:
That's how I have it setup on my phone. Eventually WiFi shuts down leaving the phone connected in 2G.
[Android Apps and Games] twixyz:
Okay, so I'm onto something here. But, there's always a but.

After I left my device asleep and I turn the screen on, I expect to see the 2G symbol for a moment before Wi-Fi takes over again.

But I don't. There's always the Wi-Fi symbol, no matter what. So now I'm wondering if Wi-Fi does shutdown when the screen is turned off. According to it's settings it should, but is there a way to check this?

Thanks,

Gerard
[Android Apps and Games] magillos:
Hi, I cannot install toggle 2g on zde blade device with cyanogen 2.3.4 installed on it. ADB install gives me:

709 KB/s (42145 bytes in 0.058s)
pkg: /data/local/tmp/Toggle2G.apk-signed.apk
Failure [INSTALL_FAILED_INVALID_INSTALL_LOCATION]

Any possible solution for that?
[Android Apps and Games] The-Kevster:
Same problem with Typhoons 2.3.4 ROM for the HD2.
[Android Apps and Games] TheMasterBaron:
Looks like 2.3.4 adds some extra protection that prevents Toggle 2G from installing.

The workaround is to copy the Toggle 2G apk into the /system/app folder. Uninstall Toggle 2G before doing this. I will have to figure out how to make an update.zip as it seems its going to need to be on the system partition from now on.

i.e.

adb remount
adb push c:\downloads\Toggle2G.apk-signed.apk /system/app
[Android Apps and Games] TheMasterBaron:
OK, so if you have 2.3.4, I have added a update zip in the OP called "Toggle2G-Update.zip" that you can download and flash in the recovery.
[Android Apps and Games] The-Kevster:
I did try putting it into the system/app folder without success. It seems android doesn't like the name programname.apk-signed.apk. renaming to programname.apk worked though.

Thanks, great app!
[Android Apps and Games] Selebrity:
does this work with MIUI?
[Android Apps and Games] ejhollin:
Can't install update

I get an error when using Clockworkmod 3.0.2.7 with CM7 nightly 61. It says:

"Amend scripting (update-script) is no longer supported.......

.... please switch to Edify scripting to create working update zip packages."
[Android Apps and Games] Selebrity:
This in fact does not work with MIUI I tried and it didn't work T_T
[Android Apps and Games] magillos:
Master Baron, that would be great to have setting like:

"2g when data is disabled"

2g seems to be enough for talks.
[Android Apps and Games] theboundless:
themasterbarron

I was wondering, since I turn on the phone quite frequently (100+ times a day) for text messages, is all the toggling back and forth between 2g and 3g draining a lot of power?

How much power is actually drained from a 2g to 3g switch, and vice versa (3g to 2g)?
[Android Apps and Games] Maringer:
Yep, same problem here.
[Android Apps and Games] magillos:
Just copy toggle 2g apk to /system/app and reboot. Update zip is created for older clockwork versions.
[Android Apps and Games] Aztriltus:
Holy. Sir you're a genius! Thanks a million for this information!

For others who still don't get it,

1) Old toggle 2g should already been installed before flashing 2.3.4 for my case if it was of any help.

2) toggle 2g wouldn't be recognized so go use root explorer and from /data/app, move toggle 2g apk to /system/app and paste it there.

3) reboot your phone and toggle 2g should be found in your app drawer.
[Android Apps and Games] TheMasterBaron:
OK, so I've updated the Toggle2G-Update.zip with a version that will now work with ClockworkMod Recovery 3+
[Android Apps and Games] ctomgee:
I agree with you in principle; I was just saying that if the plug-in is NOT installed and being used, then the default behavior of the switch from 2G to 3G is when the screen turns on, instead of when the screen is unlocked. If you choose NOT to use the plug-in, then waking the screen to check the time would switch from 2G to 3G, right? That switching saps a bit of juice. I would think that ALL users would benefit from a change like this, as this maximizes battery savings by preventing a 2G to 3G switch when it's definitely not necessary.

In any case, I AM using the plug-in, as I like controlling when 3G is reactivated. It was just a suggestion.

Cheers!
[Android Apps and Games] TheMasterBaron:
Its a trade-off. The problem is that if your in a hurry to make a phone call or look something up, delaying the switch till you unlock the phone wastes time. You're then stuck waiting for the switch to 3g to occur before you can use the internet or make a phone call.
[Android Apps and Games] ejhollin:
Brilliant, thank you. For some reason I couldn't install it manually. I had installed it before then changed ROMS (as I do every other day!) and something got messed up. This method worked perfectly.
[Android Apps and Games] Jip-Hop:
I'd love to see a working version for the Samsung i9000 running MIUI :)
[Android Apps and Games] labsin:
Nice app, really works. But could it be possible to include something like that it stays on 2g when data is disabled or if you were on this if you put your phone to sleep.
[Android Apps and Games] magillos:
I would love to have that feature too.
[Android Apps and Games] bg_man:
I've switched to InsertCoin 25 rom.

Toggle2g is working w/o any issues.

Thanks MB!
[Android Apps and Games] yatbond:
How to install in Galaxy s2

Dear Master Baron,

I am wondering how to install in Galaxy s2. I tried copying into the System/App folder with a new name as Toggle2g.apk (I renamed it)

BUt it hasn't shown up in the app drawer. My phone is running Gingerbread, 2.3.3

THanks
[Android Apps and Games] TheMasterBaron:
You can't run this on a stock rom. You need cm7 or some other compatable custom rom.
[Android Apps and Games] labsin:
Is it possible to include this? It's no good to disable the app every time I disable data from powermenu.

Sent from my MB525
[Android Apps and Games] TheMasterBaron:
Seems like a reasonable feature. I'll take a look.
[Android Apps and Games] boonhoong:
I'm disappointed that this doesn't work for stock ROM. What would it take to get it to work? I believe this is the killer app that will extend all android devices' battery life without compromising push notifications from gtalk, fring, etc...

I am ditching my milestone running CM7, and migrating to a defy (where CM7 is still in beta). My milestone has developed a nasty habit of freezing when I slide open the keyboard (some strange hardware failure), and it's past its warranty period. So, I'll most likely be running stock froyo for awhile until the CM7 on defy hits RC1. I'm going to miss your Toggle 2G app so much :(
[Android Apps and Games] crazyC:
I am trying this on the Insertcoin port to the G2/Desire Z.

I have the same issue that someone did some pages back with the widget becoming unresponsive and needing the be removed from the screen and added back - did anyone find out what might be causing it or a fix (as I assume it doesn't affect everyone).

Also, I would ideally like to use this with PhoneWeaver, so it switched to 2G when at work. The issue is when I am at home, and using wifi for data, I still need a 3g connection as I run a Vodafone Suresignal (Femtocell) which conencts on 3G only.

During the working day however the phone mostly just sits there.....

Anyway, is there a way to 'toggle' by creating a script or command that could be run a a programme on a profile change?

Alternatively if anyone could give me some relatively simple instructions on how this integrates with tasker (I thought I read about a plugin?) that would be great?

Cheers.
[Android Apps and Games] kecinzer:
So I can't apply this on Nexus S with stock rooted 2.3.4 ROM?
[Android Apps and Games] wakaru:
I can see both points of view. Personally I consider that swithching from 2G to 3G when waking the phone just to check the time defeats the purpose of the app itself by draining the battery unnecessarily mainly because I do that a lot of times during the day. Perhaps for those users who do not do like me this would not be a problem.

What do you say to providing with an option called "Delay switching 2G to 3G after wake" ?, so that the user can set a number of seconds based on their phone usage i.e. inactive (0 seconds) to active (5 seconds, 10 seconds, user defined ...). That way the user can choose between a quick phone call access or a compromised additional battery saving.
[Android Apps and Games] torchedlh:
First off, just want to say, thanks so much for your hard work! This app is awesome and does wonders for my battery life!

I'm having issues with getting this app running with CM 7.0.3:

I was on CM 7.00 running this app without issue (installed on ext partition, i use darktremors a2sd)

I upgrade to CM 7.0.3 and the app is no longer found

I go to reinstall toggle2g-unsigned.zip, it fails.

I find this thread, i flash toggle2g-update.zip and i still cannot find it in my app launcher or manage applications.

Please help. Thanks!
[Android Apps and Games] TheMasterBaron:
I first suggestion to to make sure toggle 2G apk is no longer in the /data/app folder.
[Android Apps and Games] TheMasterBaron:
The idea behind making it a Tasker/Locale plugin is so you can do this type of customization in those apps. Just setup the rules to your liking. In this case, setup tasker to watch for a screen unlock, then wait x seconds, then use Toggle 2G plugin to enable 3G, followed by setting it back to auto mode. Be sure to enable the manually activate option in toggle 2g settings so it does not activate 3G for you when the screen comes on.

Cheers,

John
[Android Apps and Games] torchedlh:
Just did and there is isnt. What's the next step?
[Android Apps and Games] ivangs1:
I have the same question : i have set Wi-Fi policy to When screen turns off - but it looks like it doesn't turn off?

Thank you for great app.
[Android Apps and Games] onesolo:
x2|!!!

Don't get why this doesn't work for stock based roms...
[Android Apps and Games] pcphobic:
It works on Motorola Milestone running Cronos Ginger ver.14

Thank you for this wonderful app.

It works on Motorola Milestone running Cronos Ginger ver.14
[Android Apps and Games] SoftWord:
on oxygen 2.1.3 can't see on app drawer, I have used root explorer to install it.
[Android Apps and Games] igor.tonky:
this would be great, please have a look when you have time and inspiration :)
[Android Apps and Games] jdagreek:
if this does not work, how do you uninstall ?
[Android Apps and Games] SwimmerBoy:
Anyone tested in froyo-final (as in my signature)?
[Android Apps and Games] crokdh:
Hi, Fusionideos 2.2 was released! How can I insert Toggle2g in this new fantastic ROM?

Thanxs!!!!!
[Android Apps and Games] torchedlh:
Since upgrading to CM7 i cannot get Togge2G working. I flash in recovery per the instructions but nothing shows up in my app drawer or settings/manage applications. I've tried searching thru my apps directory (system/apps and data/app) using root explorer but nothing shows up there.
[Android Apps and Games] MRSOFT:
:____________( me too
[Android Apps and Games] elementalfusion:
On CM7.1 RC1 here, got it working by copying it manually to system/app and manually setting the permissions using root explorer

The only annoying thing is the radio will disconnect and reconnect again when switching between 2g/3g. Is there anyway to switch without disconnecting and reconnecting the radio?

On Nexus One btw
[Android Apps and Games] wakaru:
I believe this is the normal behaviour in every ROM, or at least this is in my case.

I also believe that the amount of time disconnected between disconnecting/reconnecting again can vary depending on the mobile operator. For me, on T-Mobile (UK) it's about second and a half.
[Android Apps and Games] TheMasterBaron:
by default, your wifi connection times out 15 minutes after you put your phone to sleep. Once your wifi connection times out it will set your phone to 2G.
[Android Apps and Games] TheMasterBaron:
Great, I'll add it to the list. Any idea how to poll this data?
[Android Apps and Games] :
Nope, but I know you can view the values through menu > settings > about phone > status

If that helps? :o
[Android Apps and Games] TheMasterBaron:
Yes it does, thsnks
[Android Apps and Games] velazcod:
Cool, it'd be nice to take a look, and also consider implementing it into Cm parts
[Android Apps and Games] djstoffe:
Yay! Finally! :)

Also waiting for a locale plugin.

But how is this working, let's say if you stream radio? Would it be possible to add an option for it to keep 3g when using a certain amount of data?
[Android Apps and Games] jtech:
What about

if phone g sensor is not moving for certian time (10 min) goto 2g, once the phone is picked up, move to 3g?

then it could switch before you on the screen.. possibly a way to reduce the delay
[Android Apps and Games] MontAlbert:
thought i recognised the name- thanks for this great app masterbaron- i loved your dxtop home replacement (started boycotting it when the new owners removed all support for 3rd party themes).

good to see you back
[Android Apps and Games] TheMasterBaron:
Thanks MontAlbert
[Android Apps and Games] bobtentpeg:
Hmm, used it and overnight I was without signal 48% of the time. That number tends to be 0 or at most 2 when at home
[Android Apps and Games] JeepFreak:
Great ideas!

And many thanks for the app Dev!

Billy
[Android Apps and Games] TheMasterBaron:
Much improved version uploaded with bug fixes and improved processing.

After looking at the radio status while wifi is on, it looks like the radio remains active! Armed with this knowledge, I have made an update so that when wifi is on, 2G will be selected even when the phone is awake.
[Android Apps and Games] TheMasterBaron:
I'm afraid that activating and monitoring those sensors would negate most of the savings gained by switching to 2G.
[Android Apps and Games] BrooklynAvi:
I have been looking to write this forever but was never able to get it to work properly. I manually do it. It can literally add 30% to battery life, even for a heavy user. Thanks for writing this. Anyone try this with MCR 21?
[Android Apps and Games] minderbinder106:
Seems like a great idea, but why does it require permissions for: access to my personal information, ability to directly call phone numbers, modify and read emails, full internet access, change audio settings and all system tools?
[Android Apps and Games] nurre:
Great app, You should put this on market to be honest, it's cheap to post app's there and you'll get great stats. Maybe you'll get a phone from google next time they give one out to developers.

Suggestions:

* Enable 3g if screen stays on for more than X seconds (I often turn my display on to check if I have any messages, if I could set it to 20 seconds I wouldn't have to worry about it).

* When switching back to 3g, allow us to select the mode. For example WCDMA Only / WCDMA prefered.
[Android Apps and Games] TheMasterBaron:
I don't explicitly have those permissions in this app. Android is showing all the permissions inherited from the system because this app will be running in the same program space and by default inherits all the permissions of the system.

Thanks for the suggestions. Was going to wait to put on the market until I was sure things were working correctly and smoothly.
[Android Apps and Games] :
Masterbaron,

Hey, I saw you struck out the 3g thing. I guess I didn't explain it too well.

My thoughts are that if you are in a low 3g area, chances are you'll at least have 2g, and if you're in a high 3g area you'll probably have moderate to high 2g as well.

So if the phone is in 3g with say less than -105 db (configurable), then switch to 2g only.

Then if in 2g only mode, if your signal is more than, say, -85 db (configurable), then switch on 3g.
[Android Apps and Games] TheMasterBaron:
When I'm in 3g I get a strength of 102, but in 2g I get 91. I don't think they are related. You may be right next to a tower that does 2g only and get a huge signal strength, but have no or poor 3g coverage. The app would end up flip flopping all over the place.
[Android Apps and Games] rekrapg:
this is an awesome app, thanks ;)

One thing that I would find useful in addition the the already good stuff, would be ability to set 2g mode when a particular app is on - for example, reading on Kindle or fbreaderj I have no need for 3g
[Android Apps and Games] sebx_g1:
Hello , is it work on Motorola DEFY with stock Froyo ROM ? I can't install apk , before flashing update I need to know if it works ?
[Android Apps and Games] the gladiator:
I'm reading a lot of people (like myself) who has the same effect after flashing the zip file: the app doesn't show up in the app drawer nor anywhere else.

My question is: is there a manual procedure to install the app (may be using root explorer) ? Or a workaround to have the flashing method working ?
[Android Apps and Games] TheMasterBaron:
Sorry I've been busy these past weeks and haven't had time to respond.

I'll try and sneak some time in here and there to help with some issues.

1. What recovery are people using where it's failing to flash using the update.zip?

2. You can manually open the update.zip and copy the apk from the /system/app folder to the /system/app folder on your phone.

3. If that still does not work, then try doing an ADB install using the apk and post what the error message is.

I'll try and get back later this evening.
[Android Apps and Games] the gladiator:
Thanks a lot for your prompt reply. My answers to you:

1) UltraJack Recovery 6.2.2 in my case. Just to be 100% sure: it doesn't fail (last message from the recovery is: "Zip file correctly flashed" or something like that), it doesn't install the app and it's hard to understand what it did (the apk file is nowhere).

2) done (also changing the flags permissions to rw-r--r--), switched off and on. No joy

3) could you please give more details or point me to the right direction please ?
[Android Apps and Games] TheMasterBaron:
What ROM are you running?

Do you know what ADB is? If not it too complicated to explained here.

If the APK is in the right place then you should see an error in the logcat at boot as to why its not loading it