yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] dave1213:
So basically you would use this app to switch to 2G based on your observation of the power usage at different times of the day... so you would switch to 2G at evenings/night when there's lots of people on 3G?
[Android Apps and Games] cyben76:
i would switch to 2G when i'm at home. 3G reception in my home is low, it does improve during the day when everyone goes to work.. I want to use it with Tasker to create time/location base profile for 2G and 3G, but it does not work on the ROM i'm using currently, MIUI.
[Android Apps and Games] trosa001:
does this mean we can install this on a vodafone HD that is using the new permaroot now?
[Android Apps and Games] duckredbeard:
[Sorry to do this. I can't find this thread using XDA app. Posting here to make it add to "participated" so I can set it as favorite]
[Android Apps and Games] greglord:
I have an idea for the future version of this app:

1) Disable 2G/3G completely if phone in sleep (screen off) more than XX minutes.

2) Enable 2G/3G when:

* screen ON

* you unlock phone.

What do you say?
[Android Apps and Games] cyben76:
There's a program called Ultimate Juice and also Tasker that does all that you need.. There are a number of programs that disable/enable data. Toggle 2G can integrate with Tasker so you can set multiple variables..
[Android Apps and Games] greglord:
JuiceDefender / UlimateJuicer has the exact bug with this, that's why i'm looking for alternative. Currently, I'm using SuperPower...

thank you for your reply.
[Android Apps and Games] sundar2012:
Doesn't seem to work on cm 6.1 rc2 on g2
[Android Apps and Games] EthanG_1988:
Not saving settings

Hello so i have not been able to find an answer to my problem and have googled a bunch and read on here a significant amount. Toggle 2g reverts to default settings after reboot. I do not have it installed on the sd card. I wipe the cache before every nightly as well. Please help. My phone is the original droid running cm 6.1 nighly 209. Slayher Lfv 800 kernel. Latest superuser. I also noticed that toggle 2g does not seem to be asking for root access at any point. thanks
[Android Apps and Games] EthanG_1988:
toggle 2g settings

Just to clarify my problem is that toggle 2g does work properly. It just reverts to default settings after reboot and that is slightly annoying. Thanks
[Android Apps and Games] shahulvm:
Clarification Pls..

Hi,

Appreciate your responses

Requirement : Basically, I want 3g to be diabled when screen goes off and enabled when screen is turned on except when listening to streaming music.

What I have :I am using tasker app to switch data-off when my display goes blank and enable data when screen is woken up. Also I had setup another task to enable data when headset is plugged in to listen to streaming music.

My questions:

1. Does this app perform the functionality which I had put into tasker.

2. Does switching data-on/off affect the call function ie call drop when the switch happens.

3. whats the difference interms connectivity of data and call for the below :

i. Switching on/off 3G

ii. APN enable/disable -using APNDROID

iii. Mobile data switch on/off

4. Whats the difference in tasker - mobile data vs mobile apn. (though i am on GSM i use mobile data to toggle and it works fine. As I find toggling Data APN takes long time.)

Thanks a ton.
[Android Apps and Games] TheMasterBaron:
AS other posters have stated, there are other apps that can do this. Toggle 2G is to cover 2g/3g toggling that other apps don't have access to do. Personally, I would never want my data to be blocked.

Try completely uninstalling and rebooting, then re-install. This should re-create the setting folder (using root) and allow setting to be saved.

1. If you looking to switch between 2g and 3g instead of turning data on/off, then yes, you can do the same thing. You can continue to use tasker to set the radio to 2g when the screen is off and 3g when on. You won't need the headset task anymore since 2g will stream music just fine.

2. Yes, but Toggle 2g never switches radios while in a call even if tasker tells it to

3.

i. 2g is slower

ii. and iii. Not sure. I think APN blocking blocks at the radio hardware level, while mobile data blocking is the OS blocking data.

4. see 3 ii and iii
[Android Apps and Games] EthanG_1988:
2g toggle

That completely fixed my settings being forgotten!! Thank you its so nice not to have to set that every time.:D
[Android Apps and Games] lordevol:
Thanks for this app. With an unrooted android-phone I could get batteryfu to save juice,

but this auto-2g application saves a lot (A LOT) more.

Why can't google make this on stock android?! People love long-life battery, right?
[Android Apps and Games] the orange bandit:
On the T-Mobile G2 permrooted with the Virtuous Desire Z ROM, this won't even install from the market. I made sure I could install other apps, so it's definitely something weird with this one.

For those wondering about a use-case for this plugin, here's mine:

At my desk at work, my phone constantly switches between EDGE and 3G - this is true on both AT&T and T-Mobile, and other coworkers have the same issue. The EDGE signal is decent, but since the phone is programmed to prefer 3G, whenever it gets a sniff of 3G, it switches, then loses it and drops back down, constantly. I already have a 'work' profile on Locale that does a few things, so if I could have it automatically disable 3G when I get to work, I'd not only save battery, but have a more stable connection (cause it wouldn't be constantly searching for that elusive 3G connection).

Right now I have to use Extended Control widget, and that's fine, but it requires several clicks (the 2G/3G button only launches the settings page, it doesn't toggle it for you).
[Android Apps and Games] perif:
Hello,

i have a little question that might sound stupid and must have probably been answered very often but i couldn't find information about it.

Is it possible to install the unsigned version of Toggle2G on a rooted HTC stock Rom (HTC Vision) even if tricky ? Using superuser ?

Thank you :)

Edit: sorry, this question has been previously answered, it is not possible on stock roms.
[Android Apps and Games] kleinermundvoll:
Hi,

I successfully installed the Toggle 2g/3g App under G.O.T. 2.2.1 for Motorola Milestone. Works pretty well in automatic mode :rolleyes:

Greetz,

kleinermundvoll
[Android Apps and Games] Se7enair:
I use this app under modaco r9 and it works fine.

And the option to swtich to 2g when phone is sleeping and/or wifi is on, woah!

If I do absolutely nothing with my desire, in the middle i only need 1-2% battery PER HOUR.

So i can reach durations up to more than 36hours without charging. Before i only reach 18-20h
[Android Apps and Games] FourHumboldt:
It would be nice if Toggle 2G would make its way into other builds as well. Designgears' Cognition, for example. CM on the Galaxy S is not exactly prime time right now, to phrase it nicely.

http://xdaforums.com/showthread.php?t=786532
[Android Apps and Games] nenadr:
Toggle 2G and WiFi "semi-issue" ;)

Hi folks !

After bit of struggling, I have managed to install Toggle2G on HTC_Froyo_Bravo_2.29.405.2 official Desire update from HTC.

It is necessary to re-pack ROM in kitchen (i have used dsixda kitchen) and it is crucial to re-sign system apks (except QuickOffice - it won't install if its signature is changed) and Toggle2G with test-keys provided in kitchen. Then it installs and works like charm, and so far I didn't saw any side-effects of re-signing.

I'm using Toggle 2G now for about a week, and I'm very pleased how it works, except for one small issue: I keep WiFi enabled so my phone so it can connect either to my office or my home WiFi when they are availible, and when it connects to those APs, Toggle2G switches to GSM mode (2G) as it should.

Problem arises when phone goes to sleep mode for a longer period and there is no application running that keeps WiFi enabled in sleep mode.

System then turns off the Wifi during sleep, and when I wake my phone, WiFi needs a bit of time to re-connect to access-point. During that period Toggle2G has already "saw" that phone is awake and initiated switch to a 3G mode, and after less then a minute, it sees that Wifi is connected and switches back to a 2G again (two unnecessary switchovers).

It would be nice to modify Toggle2G to somehow "remember" was the Wifi connected before phone went to sleep, and if it was connected to delay switching to 3G upon wake-up of phone thus allowing WiFi to reconnect.

The other approach can be to monitor the state of WiFi after wake-up. If it gets to a connected state during some interval upon wakeup, than not to try to switch to 3G and leave it on 2G.

Hope this idea helps improving a great, and in my case very needed application (very bad 3G reception in my home and inside the offce :(, so i'm often unreachable to a callers even phone indicates that i'm connected to a 3G network).
[Android Apps and Games] TheMasterBaron:
Delaying the switch to 3G will only be an annoyance because you will turn on your phone, open something tht requires network to lookup something, only to have the network cut as it switches from 2G to 3G. I suggest you use the Plugin so that you can choose when to switch back to 3G. I leave my phone in 2G most of the time and only switch to 3G when I browse the web or need the speed for some other rare task.
[Android Apps and Games] nenadr:
Thank you very much for your reply.

In general I agree with you, and at the moment I use 2GNotification widget to turn 3G back on "on demand", but I was talking of automation of this case bellow, for those of us that __keep the WiFi constatly running__:

Phone is in a sleep long enough to Toggle2G switch it to 2G mode and for WiFi to get disconnected. I wake it up just to see what the time and weather (no special need for Net access) ! Phone starts to connect to a WiFi as soon as it is woken, but in a meanwhile Toggle2G is alerady started to switch to a 3G (and thus cut the GSM network and my phone availibility for a couple of seconds). I have saw what I was looking for, and put phone back to sleep, and thus after a while, Toggle2G will start to switch it back to 2G mode (and again, cut GSM network, and phone availibility for a couple of seconds). Result is 2 times of couple of seconds, where phone is unreachable, just because I was curious what's the time :).

On the other hand, if I wake phone to access something on the Internet, I usualy look is the WiFi connected and start browsing from moment I see it is.
[Android Apps and Games] TheMasterBaron:
Using the Plugin solves your problem where wifi is being used because it prevent switching to 3g automatically.

Now lets say your in a location where there is no wifi, and you switch on your phone to check the time and maybe see who sent you an email or read a text. Sounds to me like you don't want it to switch to 3g if your just checking the time or weather. That's exactly what the plugin is for. Prevents switching to 3g until you need it.
[Android Apps and Games] nenadr:
OK then, the notification it is :-) !
[Android Apps and Games] Fmstrat:
Confirmed working on:

[BUILD][18.12.2010] darkstone SuperRAM FroYo v1.5 [kernel: Hastarin custom]

Just place in /sdcard/Android/root/system/app and reboot, change settings, reboot again.
[Android Apps and Games] Jinson7:
Anybody know of a sense rom for the desire this will run on that is still getting updates? Really need this app - just what I was looking for :D
[Android Apps and Games] paratox:
anyone knows how to get this working on galaxy s? i use doc`s jpy rom.

i`ve tried to sign it with apk tool and push it into /system/app but this also wont work.
[Android Apps and Games] Easemypain:
Hey developer I wish you a happy new year.

I found your awesome tool via google and I hope you can help me.

I'm using this mod JDMS 1.6.1 Ultimate Droid 2.5 on my hd2. It's supports ASOP. I installed your tool but it doesn't work. It is possible to add some code to get it working ^^?
[Android Apps and Games] zamana:
FYI: works with "AOSP - THEFroyoMOD 2.2.0" on my Motoronga/#Motofail Milestone.

Thanks!
[Android Apps and Games] kindiboy:
Just wanted to say I LOVE YOU! lol...

thanks a lot
[Android Apps and Games] glf74:
Master Baron,

first of all thanx for your app.

Works perfectly on my old G1.

I have some question for you, if you don't mind.

I'm developing a little app that responds to external queries with some network info. I'm interested in to be sure that the phone is under GSM, so I thought to the possibility to programmatically force the GSM mode. I saw that the classes that controls the network mode are internal and are not exposed to the SDK.

I think that this is a problem that you solved developing you app.

Can I ask you how did you solved?

Any hint could be appreciated.

Many thanx in advance.

glf
[Android Apps and Games] Tomdroid:
Great app, thanks!

Not sure if it fits your idea and yes, other apps offer this already (but this is part of CM and so it could be all I need) but how about switching from 2G to 3G after the screen gets actually unlocked instead of just activated?

Or if there's no easy / effective ways to differ between sceen on and screen unlocked, how about a Wake Delay setting?

Many just quickly check the lockscreen for time, missed calls/sms/mail, controlling the media playback aso. In all those cases, the switch to 3G is unnecessary.
[Android Apps and Games] TheMasterBaron:
I LOVE YOU TOO MAN!

Four things:

1. In the manifest, set the android:sharedUserId="android.uid.system"

2. In the manifest, make the activity run in the same process as the phone app using android: process="com.android.phone"

3. Reverse engineer how to call the setPreferredNetworkType method

3. Sign the apk using the platform cert using something like this

java -jar SignApk.jar platform.x509.pem platform.pk8 toggel2g.apk toogle2g-signed.apk

Good luck!

Use the plugin so that YOU can decide when 3G is needed. Delaying the switch only gets in the way. You don't want the 2G to 3G switch to happen just as your about to make a call or use an app that only need a little amount of data for the web.
[Android Apps and Games] bagers:
Is it normal, that the widget doesn't start if the phone isn't rooted?
[Android Apps and Games] BryanChung:
I've decided to try this app on my phone. :) And then I saw work in progress for "not changing to 2G while tethering", hope that feature is up soon! but I shall still go on and try this app! :)

I'm on Cronos ROM btw. :D
[Android Apps and Games] DeepDay:
I'm a bit confused.

So is this app working on stock ROMs/not rooted devices, like Desire Z/HD, or not?
[Android Apps and Games] DeepDay:
Ok, I see it now. It won't work with stock roms... Too bad.. :(
[Android Apps and Games] snope:
Switching to Gsm Auto prl would be nice!
[Android Apps and Games] TheMasterBaron:
You can do this. Toggle 2g allows you to pick what network to switch to when in either the 2g or 3g modes.
[Android Apps and Games] Tomdroid:
Thanks but that doesn't fit my habits. Besides, I've been using JuiceDefender before and never had any issues coming out of 2G + APN-off when unlocking the screen. 9 out of 10 times it's simply quicker than me opening a 3G traffic requiring app.

But the real issues for me were that a) the widget seemed to stop working after about the 4th tap on it. Repeatedly. The only way I found to get it to work again was be removing and readding it to the screen. Issue b) was that at some point my phone simply didn't come out of 2G any more, only after I had used the manual switch (through CM6's notification bar energy control).

Also there was another issue where I was forced to reboot in order for the market, gmail, sync et al to work again. 3G and APN was there (e.g. browsing the web would work) but all Google stuff reported no connection. Not 100% sure if it's related to your app though.

So yeah, went back to JuiceDefender, suits my needs better.

But still, thanks for your effort! :cool:
[Android Apps and Games] atomizasser:
We need to work on MIUI Rom? should only be signed for MIUI? can do it yourself or should be the developer of the ROM?

Thanks
[Android Apps and Games] ampia:
Works on Rooted Huawei IDEOS U8150

I was able to install it on my rooted Huawei IDEOS U8150 without a problem.

Works great! Thanks!
[Android Apps and Games] snope:
DHD Support!!!!

Hey,

will the Desire HD ever be supported?

so long
[Android Apps and Games] onesolo:
Hi guys,

When I try to install the main apk, the signed or the unsigned, I never get to install this...

My Desire HD is only rooted with the official latest rom...

Any ideas??
[Android Apps and Games] TheMasterBaron:
Root is not enough, you will need a custom ROM like CyanogenMod. Not all ROMs use the same certification keys so I can't say for sure that others for the Desire HD will work outside of the CyanogenMod ROM.
[Android Apps and Games] onesolo:
I know that, but I read Rooted "Froyo HTC Sense ROM" on the first post, I thought that it was about the official htc rom...
[Android Apps and Games] snope:
Well i think many Desire HD Users use mikes Android revolution or leedroids Rom.

Would it be possible to fit it to these roms. Or is it possible to do it by myself?

Thx in advance
[Android Apps and Games] PIRATA!:
Is there a way to have something like this working on stock roms for Galaxy S (or even coocked roms at least) so to have the REAL capability to switch from 2G to automatic 3G/2G with only a touch on a widget??
[Android Apps and Games] Bycek:
Good job! Works great on my HTC Desire with Oxygen RC7 ROM
[Android Apps and Games] helmutiffe:
This sounds like a great app. My house gets inconsistent 3G coverage but reasonable 2G, due to a house with a metal roof. I only ever use wifi at home, so something like this would be a great auto-switcher to keep a good voice signal available at all times.

Is it possible to sign this apk for the Fission ROM for the Droid 2 Global? I know this is a bit of a "weird" ROM due to the need for circumventing the locked bootloader; is it possible for the apk to be signed for the Fission ROM, or would it need to be signed with the (unavailable) Motorola kernel certificate?
[Android Apps and Games] zeppelinrox:
Does 2G work on Telus with Milestone?

I'm currently using CM 6.1.2 on my Milestone.

If I switch to 2G mode in the mobile network settings, I have no connection.

If I use the Toggle 2G app, it doesn't seem to really do anything because if I set it to use one of the options that don't disconnect me (WCDMA, CDMA or GSM 2g/3g), the H is still in the status bar so I'm not sure if I should use the Toggle 2G app.

Maybe 2g is not possible on Telus?
[Android Apps and Games] ralphclark:
Android Revolution HD

I second that!
[Android Apps and Games] TheMasterBaron:
Just not going to happen. Stock ROMs use unpublished private keys so Toggle 2G can't be signed using them.

If the Fission ROM has been signed using keys available to the ROM builder, then you can ask the ROM builder to sign the unsigned version of the Toggle 2G apk.

If it's not working for you, then yes, it possible 2G is not possible on Telus.
[Android Apps and Games] grotesque02:
Baron, is possible make your app compatible with THIS rom??
[Android Apps and Games] TheMasterBaron:
You have to ask the ROM creator to sign Toggle 2G apk using the ROM's platform keys.
[Android Apps and Games] grotesque02:
Ok, thanks for the info!
[Android Apps and Games] bg_man:
I follow your steps but haven't succeeded.

I've add Toggle2G to systems\apps folder and then sign all the system apps and the package. Then flash it. But Toggle wasn't appear in the apps.

Then I've removed Toggle from system apps and I've tried to install signed file thru Astro. "Application not installed" was the result.

Any hints?

And question for the developer?

Why the app needs access to:

Personal information

Services that cost you money

Messages

Accounts

Phone calls
[Android Apps and Games] TheMasterBaron:
Try installing using the adb install command and see what error it gives you.

I've answered this already here:

http://xdaforums.com/showpost.php?p=7461372&postcount=45
[Android Apps and Games] bg_man:
1086 KB/s (34486 bytes in 0.031s)

pkg: /data/local/tmp/Toggle2G.apk

Failure [INSTALL_FAILED_SHARED_USER_INCOMPATIBLE]
[Android Apps and Games] TheMasterBaron:
Means the toggle 2g apk isn't signed using the same keys as the platform. Did you resign the apk using the kitchen's provided test keys?
[Android Apps and Games] bg_man:
I resign all system apps (option 22 in kitchen) and Toggle2G.

I do something wrong but can't figure what.
[Android Apps and Games] grotesque02:
Baron, finally your app is compatible with THIS rom, but the most of time I can't see the red 2G on notification bar, and the plugin don't work :-( why?
[Android Apps and Games] TheMasterBaron:
What exactly do you mean the plugin doesn't work?

You will not see the 2G notification if:

1. If you're on WiFi, you will not see the 2G notification since there is no reason to switch to 3G.

2. If you're on 3G, you also will not see the 2G notification since you're already on 3G
[Android Apps and Games] TheMasterBaron:
OP Updated with v0.0.15. Fixes issue where setting were being lost on reboot.
[Android Apps and Games] grotesque02:
This is my problem!

Thanks for notice me!

The plugin problem is like this (example because I have limited english, sorry):

after sleep I'm in 2g, plugin say A, I press and say E, press again and say 3G, and this is ok, right?

But some times I press and the "A-E-3G" don't change, but maybe in toggle 2G settings go away the first V (automanage ecc),hope is clear what I mean.
[Android Apps and Games] TheMasterBaron:
Ugg, yea, that's a bug that I haven't spent time hunting down. I'll try to find some time to squash that bug once and for all.
[Android Apps and Games] Break Action:
Please help, where i can download Toggle2G app?
[Android Apps and Games] grotesque02:
Ok, I wait for news :-D

Thanks!
[Android Apps and Games] TheMasterBaron:
Sorry, looks like I didn't upload the new versions :)

Anyway, OP updated with latest version.
[Android Apps and Games] MkScorpion:
I have tested on Samsung sgh i9000 2.3.3 but when i install signed apk the telephone reply "application not intalled".....have solution ? anyone have tested on I9000 2.3.3 .darky 10 ....I hope on solution...:(

Very compliments TheMasterBaron VERY NICE JOB.

SORRY FOR MY ENGLISH
[Android Apps and Games] Bieniu:
I'm using Toggle 2G/3G on HTC Hero with Cronos Ginger 2.0.1 (CM7 based rom). Switching 2G/3G working properly. Unfortunately, after a reboot I lose settings of the program. This happens in version 0.0.14 and 0.0.15. Could you fix that?
[Android Apps and Games] TheMasterBaron:
Try uninstalling, then reinstall. And be sure to give it root access.
[Android Apps and Games] Bieniu:
I tried four times and still forgets the settings after a reboot.
[Android Apps and Games] TheMasterBaron:
Check that it has root permissions. Maybe the superuser app is set to always deny it root.
[Android Apps and Games] Bieniu:
Root permission is set to allow in Superuser.
[Android Apps and Games] :
I can confirm that this (amazing!) app works with HyperDroidGBX v12...

Saves a lot of battery (still testing tho)...

I have a n00b question regarding radio modes, etc...

As you stated, changing network takes a second or so... well, that's exactly what happens.

I've noticed that when I turn the screen on and it activates 3G, in the status bar shows a "G" first, then "3G" and finally "H".

Is there a way to force it to remain in "G" mode? That I believe is GSM mode?

Or the fact that goes in WCDMA uses more battery even when in "G" mode?

I hope I made myself clear.

Thanks in advance for you answer!

P.S. I have an HTC HD2
[Android Apps and Games] TheMasterBaron:
WCDMA always tries to get the fastest network. So what your seeing is it upgrading as it finds a better signal. There is no way to tell it to stop and is why a network change is needed to GSM only to keep it at 2g
[Android Apps and Games] Harshwardhan:
there is a built in toggle for this in Cm7 too, right?
[Android Apps and Games] :
Got it! =)