yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] huuub:
You can do it in tasker, disable (put off) your data, switch, turn back on. You will come to the conclusion tasker takes much resources, wakelocks.

Juicedefender ultimate does a pretty good job. (also causing wakelocks but it is ok for me)
[Android Apps and Games] TheMasterBaron:
I am working to fix Toggle 2G so that it can first turn data off before switching networks. Hope to have it ready soon
[Android Apps and Games] Vepo:
Juice defender has an option for this and didn't help with bug with sgs2. It could turn 3g back on but worked very randomly (didn't swich to 2g everytime that it was supposed to).
[Android Apps and Games] TheMasterBaron:
Version 0.2.0 is up!

Here are the highlights:

Option to wait for phone unlock before switching to 3G

Option to turn data off to switch networks

Option to switch to 2g when data is off

Improved French translations (Thanks to mooondark)
[Android Apps and Games] wucinac:
Where is download link?

Sent from my Mini
[Android Apps and Games] huuub:
+1 and some chars
[Android Apps and Games] mooondark:
+1, I thought I was blind :D
[Android Apps and Games] huuub:
I think he found a bug :)
[Android Apps and Games] ron_gangte:
Can someone please tell me how to use Toggle2G on MIUI..??

Thank You! :-)
[Android Apps and Games] mooondark:
Hello,

what is your phone model ?
[Android Apps and Games] ron_gangte:
LG Optimus 2X P990.
[Android Apps and Games] mooondark:
Like me :)

Here's what I did (full wipe is necessary):

- take the full ROM update from MIUI,

- resign the update using themasterbaron tool,

- flash the resigned ROM,

- don't reboot and flash directly the Toogle2G update zip.

- restart.

It's working fine since 3 months on my P990 MIUI ;)
[Android Apps and Games] TheMasterBaron:
Sorry, attachments didn't take :eek:
[Android Apps and Games] dingolino:
Hi,

many thanks for the new update!

Is the new setting "Data off to switch" also active if I am in manual mode?

So I have not activated Toggel2G but want to use the widged switch?

Best regards,

dingolino
[Android Apps and Games] ron_gangte:
Thanks.

Am I supposed to have the MIUI zip file in the same folder as the *.sh file?
[Android Apps and Games] TheMasterBaron:
Yes, that option works when manually switching with the widget or with the Tasker/Locale plugin.
[Android Apps and Games] dingolino:
Just trying it out - it looks like that after the network change data is not switched on again - here on my end it stays off and I need to manually switch it on again

Both on manual and automatic mode

Best regards

dingolino

Gesendet von meinem GT-N7000 mit Tapatalk
[Android Apps and Games] TheMasterBaron:
Might be a timing issue, I'll up the delay between switching networks and re-enabling data.
[Android Apps and Games] huuub:
Resigned version for : [ROM][XWLA4][FEB 23] CheckROM RevoHD™ V6

http://dl.dropbox.com/u/7888275/Android/XWLA4_CheckromRevo_HD_V6.zip-Toggle2G-resigned.zip

Have fun!!!

Don't have dropbox yet? 2Gb free : http://db.tt/KJhFNln
[Android Apps and Games] wyumhk:
I am trying the Toggle 2G/3G in Defy ICS, I upgrade my ROM frequently. If the settings can be backup/restored, it will be very convenient.

On the other hand, it seems that networking switching is slower in the new version (v.0.2.0). During switching : screen on .. data off ....... wait longer ....... 3G data up.

Is this true ? or this is just my feeling ?
[Android Apps and Games] huuub:
Seems to be fully working automatic now on SGS2!!! This is a really nice app Baron :). Thanks for implementing the disconnect option for SGS2!

Now I want my money back from Juicedefender!!! :).

No really. Does safe me more juice then 15 updates of kernels and modems.

My device actually is behaving now like I want it to!

Together with Phenomenal extreme 4 and swiftkey x one of my favs!
[Android Apps and Games] wucinac:
I download toggle2g.apk and wen i want to install it says v0.0.20 not v0.2.0.
[Android Apps and Games] TheMasterBaron:
Updated to v0.2.1

If you were having switching network issues or data not coming back on, please try this one.
[Android Apps and Games] dingolino:
Have you uploaded the new version already?

Could you add the version number to your file names?

Best regards

dingolino

Gesendet von meinem GT-N7000 mit Tapatalk
[Android Apps and Games] TheMasterBaron:
Yes, they have been updated. And yes, I will start adding versions numbers..
[Android Apps and Games] TheMasterBaron:
Sorry for another update, but just noticed that if you are already in 3g when you turn on, it could try to switch to 3g again and thus you would have a short data outage for no reason.

Fixed with 0.2.2 and uploaded...
[Android Apps and Games] klaudyuxxx:
is there hope for this to work with a stock gingerbread on lg optimus one ? thank you
[Android Apps and Games] ViNNNtalik:
Thanks for new version and for implementing my russian locales

As you have added new features I made translation for it into russian

You will find it in attachment
[Android Apps and Games] TheMasterBaron:
Sweet thanks!
[Android Apps and Games] krinet:
Italian

Italian translation for new features.

Thanks to update your great app.
[Android Apps and Games] mooondark:
Hello,

Here's the French translation update for the new features.

Really nice app !
[Android Apps and Games] huuub:
Did the Resignupdate change also to fix this, because only with the updated apk it still doesn't seem to work?
[Android Apps and Games] huuub:
Sorry man I think it still is not able to switch :(
[Android Apps and Games] Sckank:
Nope no switch ...
[Android Apps and Games] d3l1:
Does it work with a stock ROM SGS2? Can I just install the apk or flash the zip, or do I have to resign it?

And if it works with my S2, is it really able to switch between networks because non of the old apps works anymore (they say it's because of gingerbread)?

Gesendet von meinem GT-I9100 mit Tapatalk
[Android Apps and Games] Vepo:
Using SGS2 and MiuiAndroid 2.3.7 (GB) 2.3.2

Doesn't switch to 2g at all so facing same problems as huuub

Thanks for the work so far and hope you can fix this. Could really use the program!
[Android Apps and Games] Flyview:
Just flashed this on my CM7 alpha 10 HTC Sensation.

Always wondered, doesn't 3G come off when wifi is on anyway? And what does 2G with data turned off do? I thought my phone only uses 3G for data anyway ... on Fido / Rogers network in Canada.

What's the point of these options?

EDIT: My phone signal is dropped whenever a switch is made. Help?
[Android Apps and Games] bernard134:
Hi, is there another method to install the Toggle 2G/3G on CheckROM V6 without re-flashing my phone?
[Android Apps and Games] Vepo:
No if flashing the Toggle2G-0.2.2-Update.zip doesn't work directly
[Android Apps and Games] bernard134:
Flashing this version of CheckROM, do i need to backup my phone? It's wipe or non-wipe if im flashing on my SGS2 with CheckROM installed?
[Android Apps and Games] Vepo:
It's always better to wipe just to be safe
[Android Apps and Games] bernard134:
Okay. I just try it but it doesn't works. Thanks anyway!:)

Edit:

Then i will do it next time when i'm free. Thanks for the fast respond!
[Android Apps and Games] Vepo:
The you have to flash the resigned rom
[Android Apps and Games] flash5000:
For me it worked to copy the toggle2g.apk file to /system/app/ with a root explorer and /system mounted. No need to reflash the ROM.
[Android Apps and Games] bernard134:
The toggle2g.apk you mean is the Toggle 2G Notification Plugin.apk or Toggle2G-0.2.2.apk? And also, what do you mean by mounted? Is it copy and paste?
[Android Apps and Games] flash5000:
The Toggle2G-0.2.2.apk is the one needed.

If you use ES File Explorer, you need to go to settings and enable root explorer as well as the option to mount /system.

Then just copy & paste the apk file to /system/app/ and edit its permissions to rw-r-r and the Toggle2G app should show in your app drawer (maybe you need to reboot your phone first).
[Android Apps and Games] Aiakio:
@TheMasterBaron

Updated german translation:
[Android Apps and Games] bernard134:
I just did the same thing you told me and reboot my phone too. But i still didn't see the app appearing on my app drawer.
[Android Apps and Games] flash5000:
Not sure if it works for you in this case. I'm using a HTC Sensation with a custom rom, and for me it's working the way I described it above...
[Android Apps and Games] bernard134:
Okay. Im using Samsung Galaxy S 2 with CheckROM V6. Maybe i really have to re-flash my ROM again.
[Android Apps and Games] TheMasterBaron:
If you are still having issues switching even with the Turn Data Off flag, can you please post some logs. I don't have a phone that has a ROM that requires this. So I need to try and figure out that's not working right.

logcat -s Toggle2G
[Android Apps and Games] TheMasterBaron:
Lots of questions!

Some ROMs support the easy way (Toggle2G-Update.zip) and won't require a wipe. It's harmless to try.

While others require the hard way (ResignUpdate.zip) and will need more work and finally a wipe.

This is from the opening post:

Installation:

The easiest way to see if Toggle2G works on your ROM is flash the Toggle2G-Update.zip from the recovery. If your ROM is compatible, Toggle2G will show up in your app drawer.

If it does not work, then you can try the ResignUpdateV2 java application to convert your ROM. Download the ResignUpdate.zip and read the included readme-first.txt file.
[Android Apps and Games] Flyview:
Does anyone else's signal drop while a change from 2g to 3g or vice versa is made?
[Android Apps and Games] TheMasterBaron:
Yes, my Nexus One did that. Some phones do and other do not.
[Android Apps and Games] Flyview:
Hmm still advisable to use this then?

Also, doesn't data (3G) automatically turn off when on wifi anyway? What's the point of that option?
[Android Apps and Games] Vepo:
This is what I get in terminal emulator on this:

"Unable to open log device '/dev/log/main': Permission denied"
[Android Apps and Games] Sckank:
I think it doesnt work on samsung s2 at all. :( Sorry.
[Android Apps and Games] Vepo:
It has device spesific problems with sgs2.

He will try to figure it out if some of us gives him logs.
[Android Apps and Games] TheMasterBaron:
You can use the manual switch option with the plugin. I would keep my phone on 2G most of the time and only manually switch when I really need faster speeds. (Which really wasn't that often)

The radio is on even when WiFi is enabled. That's how you are still able to get calls.
[Android Apps and Games] TheMasterBaron:
Thanks for trying. But if you want to pull logs using just your phone you can search for logcat apps on the market.
[Android Apps and Games] Vepo:
Here's a short of log. Tried to keep it simple&clean. Let me know if you need more!
[Android Apps and Games] TheMasterBaron:
Thanks,

And now to figure out what OP_NOT_ALLOWED_BEFORE_REG_NW means...
[Android Apps and Games] huuub:
Actually don't flash it. Toggle 2g doesn't work on our device

Verstuurd van mijn GT-I9100 met Tapatalk
[Android Apps and Games] TheMasterBaron:
flipdee (or anyone for that matter), if you wouldn't mind trying the attached version. I'm hoping there is a timing issue that this version will solve. My guess that there may need to be a delay between turning data off and begin able to tell it to switch.

Thanks!
[Android Apps and Games] Flyview:
Right, but since I am on a 2G network for voice, I thought 3G would only be on during data on.

So there's no fix for losing signal during a switch on this phone?
[Android Apps and Games] Vepo:
Tried it out. Weird.

First it didn't swap to 2g. Tried again and 2g swap was succesfull, however it failed to swap back to 3g (did this few times switching back to 3g manually after every attempt).

Next I tried it with screen on trigger instead of unlock trigger and it somehow lost data connection completely. Tried it again with same setup and now it switched to 2g but failed to switch back to 3g.

Lastly I switched it manually back to 3g -> rebooted -> phone started with data off and 2g mode on. After that I did one last attempt and same results, 2g went on but 3g didn't.

Some logs attached.
[Android Apps and Games] stuart0001:
What's the recommended way of uninstalling this app.
[Android Apps and Games] TheMasterBaron:
I'm not seeing that you have "Data off to switch" flag enabled. Can you make sure that's enabled and try again.
[Android Apps and Games] TheMasterBaron:
Just delete the Toggle2G.apk from the /system/app folder.
[Android Apps and Games] bernard134:
Master Baron, is this true?
[Android Apps and Games] TheMasterBaron:
Looks that way from the reports. Though, my Galaxy S II is T-Mobile and works fine. Not sure if it's a hardware or a ROM issue and I'm still waiting on someone to post some logs showing the failure.
[Android Apps and Games] bernard134:
Okay. Thanks for creating this mod, really hope it can work on the international Samsung Galaxy S 2. :)
[Android Apps and Games] TheMasterBaron:
I've decided to go ahead an post in the OP 0.2.3 with code changes that tries a little harder to make the phone switch networks. SGS II users, let me know if fixes your problem.
[Android Apps and Games] bernard134:
I will try once you post it.
[Android Apps and Games] huuub:
Baron, I will try to give you the logs today!

I checked my former Tasker task to do this. I had 2 tasks for it.

To 2G:

Set mobile data off

wait 2 sec

Switch network: 2G GSM only

wait 2 sec

Set Mobile data on

To 3G:

Set mobile data off

wait 1 sec

Switch network: WCDMA preferred

wait 1 sec

Set Mobile data on

(so 1 sec should work also)

---------- Post added at 10:20 AM ---------- Previous post was at 10:07 AM ----------

Tried to install the update package in CMW but I get: "Installation aborted".
[Android Apps and Games] jocaferlo:
I think it's a ROM issue. I have a SGS2. I tried this app with MIUI roms and it worked ok. But the problems began when I changed to the stock roms.
[Android Apps and Games] huuub:
Hey Baron, I think I have good news. Resigned the CheckRom V6.0. And I think it is fully working now!

Installing the zip over the previous version did not work as I already stated.

But with a clean install and a resigned ROM it works!

I uploaded the new working version for checkRom V6.0.

So :

"[ROM][XWLA4][FEB 23] CheckROM RevoHD™ V6 | Kitchen Pro v2.4 a Masterpiece again!" with installed/working Toggle 2G/3G :

http://dl.dropbox.com/u/7888275/Android/XWLA4_CheckromRevo_HD_V6.zip-Toggle2G-resigned.zip

If you don't have dropbox: please use this link (free with 2GB online storage) : http://db.tt/KJhFNln

Thanks Baron!!!!

edit added dutch version of values : http://dl.dropbox.com/u/7888275/Android/strings_dutch(BE-NL).xml
[Android Apps and Games] Vepo:
Getting ever weirder. The "Data off to switch" flag was enabled in the program already. However I just managed to get few successful cycles of disabling and enabling 2g/3g. The settings were exactly same as yesterday the phone was just in airplane mode overnight.

After these cycles problems started again and it failed to switch. Seems to be working randomly.

Guessing it's close but not quite there. Logs attached again.

E: I flashed the new Toggle2G-0.2.3-Update.zip directly on the previously signed rom. You think signing the rom again with the new version would give different results?

@jocaferlo I've tried it with 2 miui builds without success so far.

E2: resignUpdate v2.1.3 : Toggle2G v0.2.2

This doesn't even automatically install the 0.2.3 version so I guess resigning wouldn't make any difference?
[Android Apps and Games] 4l3gU:
Uauuuu on my sgs2 work perfect with only 2g and prefer wcdma (3g/2g). The best app for android. Great job Master Baron. Finally... I cry for this... Ahaha A kiss from Italy

Mas Memento Audere Semper
[Android Apps and Games] Vepo:
Which rom?
[Android Apps and Games] 4l3gU:
V3rtr3ma 4.8

Mas Memento Audere Semper
[Android Apps and Games] klaudyuxxx:
On a scale from 1 to 10 how safe is to convert our stock ROM ?:D What does it involve?
[Android Apps and Games] Vepo:
So I tried huuubs signed checkrom version (http://dl.dropbox.com/u/7888275/Android/XWLA4_CheckromRevo_HD_V6.zip-Toggle2G-resigned.zip)

Didn't do any good. Worked pretty much same way as miui. Got one successful swapping cycle 3g->2g->3g and plenty of failed attempts. Going back to miui from nandroid backup now as the checkrom didn't work either.

Attaching another log... If it helps the cycle which worked timed between 15:22 and 15:26
[Android Apps and Games] Sckank:
Damn I had high hopes for that one :-\ What do you say masterbaron?
[Android Apps and Games] huuub:
Weird it it was working for me... Wil send my log this evening...
[Android Apps and Games] TheMasterBaron:
I think the problem your having is that your turning the screen on when it busy trying to switch to 2g. Toggle 2G will try for several times over 5 seconds to make the switch, but you tuned the screen on when it was still trying and that makes it give up.

I think your watching the logs since your timing of turning on the screen while its switching. Wait for the "Enabling Data Setting" to show up before turning the screen on.

Otherwise I think its working.
[Android Apps and Games] Vepo:
Been testing it with 5+ minutes screen on delays now (with 2min switching delay) and definately seems to be working much better this way.

There were 2 times in like 10 that it didn't swap back to 3g automatically though.

So I'd say it's working but maybe can be still improved for sgs2

Anyways thanks for the great work so far!

E: Been working flawlessly more than 10 times in a row now so looks promising!

E2: Been using this hours now without almost any problems. Once it messed up the connection but that might have been kind of my fault again if I switched the screen on while it was changing networks. My conclusion based on few hours of testing: it probably can be improved but by this experience it's working pretty much like it should (using MIUI 2.2.24).

Btw does this work with ics?
[Android Apps and Games] TheMasterBaron:
Thanks for the feedback!

Some people have reported the is does not. Until I get ICS on one of my phones, I'll start digging in.
[Android Apps and Games] xsycox:
Does this work with CheckROM Revolution (v4)?

... and how do I uninstall it, if it does not work or if I do not like to have it anymore?
[Android Apps and Games] TheMasterBaron:
I looked at the ICS source and didn't see any changes to prevent switching so I found an ICS ROM for my old Nexus One, resigned it, and had no issues with switching! From what I can tell, Toggle 2G is compatible with ICS.
[Android Apps and Games] bobetto2008:
I've used it for a while on Owain's P990 CM9 kangs with no issues with switching.

Getting the notifications to work was a bit of a battle though, took a good few uninstall/reinstalls to get it working. Can't put my finger on what cured it.

Thanks for your great work :thumbup:
[Android Apps and Games] stuart0001:
Absoluteky love this app. Working perfectly on ICS on Sensation

A small feature request. Would it be possible to add an optional delay after screen on before it enables 3g.
[Android Apps and Games] elandune:
Im lost with this...

Im using build17 of teamhacksung, went to CWM, flash this zip (Toggle2G-0.2.3-Update.zip), download what it need from market but it doesnt work.

If i remember good from MIUI times it need to have compilated inside the rom or smth like that?

what am I making wrong? do I need to flash other files like resingupdate,zip?
[Android Apps and Games] huuub:
Let's take a look at the 1st post in the first 10 lines :

The easiest way to see if Toggle2G works on your ROM is flash the Toggle2G-Update.zip from the recovery. If your ROM is compatible, Toggle2G will show up in your app drawer.

If it does not work, then you can try the ResignUpdateV2 java application to convert your ROM. Download the ResignUpdateV2.zip and read the included readme-first.txt file.This java application resigns the phone.apk and all other apks that share the same cert as the phone.apk to the same one used by CyanogenMod. This allows Toggle2G to be injected into the system.
[Android Apps and Games] elandune:
no idea how to do what the txt said
[Android Apps and Games] huuub:
In that case it is not for you I guess :s.
[Android Apps and Games] elandune:
sad, but have to agree. ty aniway
[Android Apps and Games] Vepo:
You can use the Checkrom V6 presigned and uploaded by huuub:

http://xdaforums.com/showpost.php?p=23184427&postcount=842

E: Assuming you're using SGS2 ofc ^^
[Android Apps and Games] elandune:
im using sgs1 with teamhacksung. I will continue changing manually :D
[Android Apps and Games] wucinac:
can some one upload toggle2g v0.2.2.zip?
[Android Apps and Games] krinet:
ok, toggle2g v0.2.2 ;)
[Android Apps and Games] wucinac:
Thanks:)

Sent from my Mini
[Android Apps and Games] longthanh:
i get this error : com.android.internal.telephony.CommandException: GENERIC_FAILURE
[Android Apps and Games] gado45:
How to uninstall this? just removing the apk will make not to switch to 2g anymore?
[Android Apps and Games] huuub:
Signed versions for gingermod 0.8 and update 0.8.5 from luca:

http://xdaforums.com/showpost.php?p=23525705&postcount=2514
[Android Apps and Games] svenvaeth91:
Thank you, works fine for me on CM9 SelfKANG3 @ Optimus 2x :D
[Android Apps and Games] bigkay:
How can I get this all to work with the custom ICS
[Android Apps and Games] Vepo:
See the first post for instructions:

Installation:

The flashable Toggle2G-Update.zip is signed using the CyanogenMod certs so by default this will work with most CM based ROMS.

The easiest way to see if Toggle2G works on your ROM is flash the Toggle2G-Update.zip from the recovery. If your ROM is compatible, Toggle2G will show up in your app drawer.

If it does not work, then you can try the ResignUpdateV2 java application to convert your ROM. Download the ResignUpdateV2.zip and read the included readme-first.txt file.This java application resigns the phone.apk and all other apks that share the same cert as the phone.apk to the same one used by CyanogenMod. This allows Toggle2G to be injected into the system.
[Android Apps and Games] browngeek:
I am having problems trying to get this to work. I have tried searching the interwebs, tried reading pretty much all of this post, but still to no avail. I bet you the problem is really easy to solve, but for the life of me, I can't figure it out.

I'm trying to use the ResignUpdateV2 java application. The phone connects to adb no problem. I type in "resignupdate.bat [rom name].zip". I then get this error: "Error: unable to access jarfile D:\Data".

I've got the android SDK manager updated and I also have Java JDK installed.

I think what is throwing me is in the readme-first.txt file where it says: "java should be in your path so if you type java from the command line it runs". Now I have no idea what this means. Any help would be appreciated, however fully understand if I can't understand the instructions in the txt file I probably shouldn't be attempting this.
[Android Apps and Games] jochy2525:
I had the same problem, I reinstall Java on C:\java and modified the .bat

@echo off
C:\java\bin\java.exe java -jar ResignUpdate.jar %*

---------- Post added at 05:20 PM ---------- Previous post was at 05:04 PM ----------

C:\java\bin>ResignUpdate.bat Toggle2G-0.2.3-Update.zip
Exception in thread "main" java.lang.NoClassDefFoundError: java
Caused by: java.lang.ClassNotFoundException: java
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: java. Program will exit.

I got this error.
[Android Apps and Games] asantaga:
Didnt work on JIBWich

Just tried this on ICS JibWich For DesireZ, didnt work.

It basically keeps saying "different sim inserted" need to reboot...

:-(