yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] aiurs.fury:
There you go. I don't have 0.3.0 but the 2 newer ones. But they both should work alright. I'm sure TheMasterBaron will supply us with a comprehensive version soon...
[Android Apps and Games] spupuz:
Thanks I need version 0.3.0 update zip if someone have it.

thanks in advance

Inviato dal mio Galaxy Nexus con Tapatalk 2
[Android Apps and Games] TheMasterBaron:
0.3.4 is out and should fix the bug where it was switching back to 3G when phone was off.

Sorry for breaking this, I've been away from this code too long. Its taking me some time to my head around it again.
[Android Apps and Games] aiurs.fury:
Can't install the new version, installation aborts when hitting install. Flashing the .zip lets the app disappear as if it was uninstalled.

Tapatalked with my Galaxy S3
[Android Apps and Games] TheMasterBaron:
I rebuilt and uploaded the packages again. Try it again.
[Android Apps and Games] aiurs.fury:
It seems to be working now, will report back if I encounter any bugs. Thanks a bunch!

Tapatalked with my Galaxy S3
[Android Apps and Games] 93ae8074:
Working here too.
[Android Apps and Games] TheMasterBaron:
And thank you for working with me on fixing them!
[Android Apps and Games] Martinhdk:
Hi. Does not show up in app drawer anymore. Did on version . 3 but now... Nope. I am on JellyBam with cm10 kernel.
[Android Apps and Games] spupuz:
Seems to work for me too

Inviato dal mio Galaxy Nexus con Tapatalk 2
[Android Apps and Games] TheMasterBaron:
Try and re-download again, something went wrong with the original upload of 0.3.4.
[Android Apps and Games] tloc:
As of 0.3.4, the app is working well on my GSM Galaxy Nexus running stable CM10. Thank you!
[Android Apps and Games] blinkin:
Hi there!

Great tool but unfortunately toggle app disappeared after first reboot... I tried to install .zip again in recovery mode (I re-downloaded it few minutes ago) but it didn't help. And when I try to install the .app it gives me "App not installed" after I confirm installation.

I'm on CM10 FXP148 Xperia T...
[Android Apps and Games] TheMasterBaron:
Try placing the apk in the system/app folder on the phone.
[Android Apps and Games] 93ae8074:
It doesn't come back to 3G using 3.4 how can I help you to track the possible bug down?
[Android Apps and Games] Martinhdk:
Hi. Thanks. But its still a nogo... I will flash a new version of my rom later and see if it works then.
[Android Apps and Games] blinkin:
The app was already there, I replaced it manually but still no success.
[Android Apps and Games] Crash:
Hi first of all thanks for this great job

have a question here before the update for the apk 0.3.4 i was running the 0.2.4 but i notice that when i Resign my rom now the new apk won´t ask for superuser permissions since 0.2.4 ask for.

the problem that i have is look at the new app since not working fine for example i chek the option 2g when wifi on 0.2.4 works fine now in 0.3.4 dosen´t work

thanks ;)
[Android Apps and Games] TheMasterBaron:
Sounds like a cert issue. Try booting the phone at the same time as capturing the logcat. then Search the output for toggle2g to see if there are any errors that's preventing it from being loaded.

Root is no longer required. I'll need some logcat to help troubleshoot this: adb logcat -s Toggle2G
[Android Apps and Games] Crash:
Sent from my GT-N7100
[Android Apps and Games] 93ae8074:
Hi there,

Not working here, I tried again all the process:

1) Made a zip file of /system including directory structure and *.apk and *.zip files.

2) Resigned Zip file.

3) Unzipped and substituted original files with resigned ones.

4) Factory Reset.

5) Reboot and enabled Toggle2G.

6) Reboot and in Recovery I installed v3.4

After all that I configured Toggle2G to ignore charging and I've got the logcat that I've attached. Did I make anything wrong? I'm in 4.2.1 stock odexed.

Cheers.
[Android Apps and Games] TheMasterBaron:
The phone is rejecting a switch to "GSM Only (2G)" network:

I/Toggle2G( 2721): switching from 0 to 1
E/Toggle2G( 2721): Error Setting: com.android.internal.telephony.CommandException: GENERIC_FAILURE

Try and enable the "Data off to switch" option and try again. If it still does not work, try and use the "GSM auto" network setting for 2G.
[Android Apps and Games] skipped:
Not working on my Huawei u8800pro with Kalos ROM..

I followed all the instructions.. the tool shows me all the process but at the end it just closes, and 4 files are created:

pem.tmp

pk8.tmp

resigned-rom.tmp

resigned.tmp

original.tmp

What am I doing wrong? I am on windows xp sp2. Java version 7.0.70.11..
[Android Apps and Games] TheMasterBaron:
In the same folder

as your ROM file there should be a new ROM file for you to flash.
[Android Apps and Games] skipped:
Thanks for the answer.. There is only the original rom zip file.. I am trying another computer now..

EDIT: I tryed another computer and got an error at the beggining

---------- Post added at 10:34 PM ---------- Previous post was at 10:15 PM ----------

Nope, its definitely not working.. Maybe if you could try.. here is the link to the rom.. http://xdaforums.com/showthread.php?t=1553705

Size: 80mb
[Android Apps and Games] 93ae8074:
Thank you very much, you're very kind, I'll try it.
[Android Apps and Games] spupuz:
nexus room stock with busy box preinstalled rooted, resigned with your tool and and dirty flashed the resigned rom, the toggle2g file is in /system/app but does not appear in application drawer, what to do?

---------- Post added at 11:11 PM ---------- Previous post was at 11:02 PM ----------

shell@android:/ $ logcat | grep Toggle

I/PackageManager( 251): /system/app/Toggle2G.apk changed; collecting certs

---------- Post added at 11:11 PM ---------- Previous post was at 11:11 PM ----------

after that nothing else

---------- Post added at 11:17 PM ---------- Previous post was at 11:11 PM ----------

E/PackageManager( 251): Package com.mb.toggle2g has no signatures that match those in shared user android.uid.system; ignoring!
[Android Apps and Games] TheMasterBaron:
Sounds like the dirty flash is your problem. Android caches apk certs somewhere so doing a dirty flash won't work.
[Android Apps and Games] spupuz:
It is my wife phone if for she is not a problem i will procede in the next days with a full wipe clean flash

Inviato dal mio Galaxy Nexus con Tapatalk 2
[Android Apps and Games] TheMasterBaron:
If you use Titanium Backup to backup all apps and system data, you should be able to restore the phone after the wipe.
[Android Apps and Games] skipped:
TheMasterBaron I tried the Resign tool with another rom file, and it works great.. but I cant get Kalo Rom to work.. I tried putting system folder in a different zip file, but there is still something that is making the tool to crash.. (I think it is when it reaches TelephonyProvider.apk).. The tool runs normaly, but can generate output rom file..

Help please..
[Android Apps and Games] TheMasterBaron:
Are you using the GUI and it's closing on you? Can you provide a link to the ROM so I can try?
[Android Apps and Games] skipped:
Yes, the GUI closes and all the output I get for Kalo Rom are those files:

pem.tmp

pk8.tmp

resigned-rom.tmp

resigned.tmp

original.tmp

The link to the rom is here:

http://xdaforums.com/showthread.php?t=1553705

and the download link provided in that thread is; http://code.google.com/p/kalo/downloads/list

(choose the file B876_KALO_Extreme.zip)

Thanks for your help!
[Android Apps and Games] 93ae8074:
Tried and the result is no good. In the first case I've got the same error. In the second case it doesn't switch to 2G. I'm attaching my logs. Any suggestion?

UPDATE: Enabling WiFi sets 2G fine and came back to 3G fine. At least as I can see it in logs (wifionoff file).

Cheers.
[Android Apps and Games] TheMasterBaron:
Thanks, I'll take a look at these tonight after work.
[Android Apps and Games] 93ae8074:
Don't waste your time, it's working now. I think that Smart WiFi Toggler was interfering with it. I did freeze it and now it seems to work. Any idea why.

Cheers.
[Android Apps and Games] skipped:
TheMasterBaron, its definitely an error with the Resign tool.. I took another ROM (for my phone), resigned it with no problem.. Then I analized which apk files changed (in the resigning process with your tool).

Next, I took Kalo ROM zip, and deleted all apk files EXCEPT those that changed in the other ROM.

Then I tried the resign tool and it worked.. but when I flashed the new Kalo ROM zip, my phone doesnt boots..

I think I deleted some apk that also needed to be resigned..

So, this is definitely an apk file from Kalo ROM zip that has to change, but is making the Resign Tool crash..

Thanks and hope you fix this.
[Android Apps and Games] spupuz:
Flashed cover aokp nightlies flashed clean not working

Inviato dal mio Galaxy Nexus con Tapatalk 2
[Android Apps and Games] TheMasterBaron:
Looks like system/app/ToolBox.apk is corrupt in this ROM. I suggest removing it from the ZIP, resign the ROM without it in it, then put in back into the resigned version or the ROM before flashing.
[Android Apps and Games] TheMasterBaron:
So you resigned the AOKP ROM and flashed it, plus did a factory reset? Is not not showing up or is it not working able to switch networks?
[Android Apps and Games] skipped:
Thank you very much for your help.. sorry if I made you loose your time, but I think this can be useful, because in your next release you can add a msgbox when there is a corrupted file..
[Android Apps and Games] spupuz:
Not resigning aokp is cyano based, not showing up
[Android Apps and Games] skipped:
Worked fine now! (on Huawei U8800-51)..
[Android Apps and Games] TheMasterBaron:
You need to resign it. The AOKP project is likely to be using different certs than CyanogenMod uses.
[Android Apps and Games] TheInVisibleGoD:
Hum... seriously!? I have AOKP 4.2.1 and used the Toggle2G-Update.zip and Toogle2G is showing up in the app drawer... Or that doesn't mean anything?

If I really still need to resign it with AOKP, that actually would explain some things, because Toogle2G is not working at 100% for me!

Can I brake something, if I resign it, even when not necessary? I'm assuming not...

TheMasterBaron, please clarify this to me, do I need to have Data always enabled in order to Toogle2G work fine?

Thanks and keep up the excellent work! ;)
[Android Apps and Games] TheMasterBaron:
Not all builds are built by the same people. My guess is that your're AOKP is build by someone who used the certs from CM, but the build for spupuz's phone was done by someone else using a different cert.

Basically the rule is if Toggle2G does not show up, you need to resign. If it shows up, then you don't.

You do not need Data enabled for Toggle2G to work. It should properly handle the data flag changes.
[Android Apps and Games] abbz123:
Testing on s3 CM10

been looking for this for months! :good:

edit: I bet this has been addressed, It takes time switching networks? from say 2g - LTE or even 3g/HSPA > LTE. I have grey bars on my network indicator as this process is changing. Also 2G next to computers/speakers makes that awesome interference :(
[Android Apps and Games] TheMasterBaron:
What exactly is not 100%?
[Android Apps and Games] TheInVisibleGoD:
I have the following options checked:

- 2G when Wifi enabled

- 2G when Data is off

- 2G when screen off

When switching from Data to Wifi, doesn't switch from 3G to 2G! Basically, it's always at 3G, no matter which state the phone is at the moment (screen off, Data on and Wifi on).

But when I manually switch to 2G, sometimes it switches automatically to 3G when I enable Data, but not all times...

Can I help you with some kind of log? Maybe a logcat...
[Android Apps and Games] TheMasterBaron:
Yes, a logcat filtering on Toggle2G.
[Android Apps and Games] Stryder5:
This sounds like what I've been looking for! Which file do I download if I just want a plugin feature for Tasker?

EDIT: Nevermind, downloaded the update zip and it worked great with Paranoid Android on the Nexus 4. Thanks!
[Android Apps and Games] TheInVisibleGoD:
Ooops... got it now! It didn't switch to 2G because I was charging with the option "Switch to 2G while charging" unchecked! :o

The times it changed to 2G, probably I wasn't charging... Just made some tests, with Wifi On/Off, Data On/Off and screen on/off (2min), and it always changed to 2G and 3G when necessary!

Just noticed that it takes some more time to switch to 2G when I enable wifi when data is already enabled ("2G when Wifi enabled" option is checked), is it normal behaviour or something is preventing it to switch to 2G sooner?
[Android Apps and Games] TheMasterBaron:
Good to hear its actually working. The delay is actually intentional as it allows WiFi to get connected before switching to 2G since doing so kills the radio the data while switching.
[Android Apps and Games] tobitronics:
How do I install this? I've read the OP and I tried flashing the zip, however nothing appeared in the app drawer. The app was present in the system/app folder. After wiping the install using data manager and cleanup software (TiBU didnt recognize the app) I tried installing the apk, however it fails to install. I'm running an unlocked GNex on stock 4.2
[Android Apps and Games] bafu:
Hey,

first of all, thanks for the great app/plugin!

I have resigned the Android Revolution HD SGS3 17.0 rom without any problems.

And after flashing the rom I had the Toggle2G app in my app list.

Toggle2G is working fine. (WiFi -> 2G...)

Sorry, It can be found under Add Task - Plugin... :(

Thanks!
[Android Apps and Games] TheMasterBaron:
As the OP states, if Toggle2G does not show up, you will need to resign your ROM using the ResignUpdate tool.
[Android Apps and Games] nxb:
I got it installed but toggle2g won't switch anything.

Log says:

error setting: com.android.internal.telephony

&

general failure.

Samsung R760 with a resigned 2.3.6
[Android Apps and Games] ShojisXperia:
Can this app be installed on my stock gingerbread rom? Rooted and unlocked.
[Android Apps and Games] spupuz:
you have to resign and reflash the rom
[Android Apps and Games] roberpao:
+1 I have the same problem with AOKP 4.1.2 rom, in galaxy i9001 telephone.

Rergards.
[Android Apps and Games] TheMasterBaron:
The "error setting: com.android.internal.telephony general failure" is caused by the radio refusing to switch to the selected network. Make sure you have the correct 2G and 3G networks selected in the properties. Also you can try to enable the option that turns off data when switching.
[Android Apps and Games] nxb:
In ##debug I have the selection between:

Hybryd

CDMA only

EVDO only

In Toggle2G I have CDMA only selected for 2g and CDMA auto PRL selected for 3g.

Turning off data while switching doesn't help. Doesnt switch in juice defender either (says can't get 2g/3g state).
[Android Apps and Games] TheMasterBaron:
You should check that the network is switchable. Dial *#*#4636#*#* in the phone dialer and you should enter a menu. Select Phone Information from the menu. Then locate the network drop-down menu and try and pick the networks.
[Android Apps and Games] aylians:
many thanks!!!! great done!!!

---------- Post added at 05:29 PM ---------- Previous post was at 04:49 PM ----------

hmm this could be a very useful app 10 minutes is a while to wait and see if it works
[Android Apps and Games] Michael2907:
Da bin ich nochmal. Bin jetzt auf die omega v 34 umgestiegen Rom vorher signiert. Alles super, aber als ich mods installieren wollte klappte dies nicht mehr. Oberfläche wird abgehalten. Sehr schade. Vielleicht ist da ja in Zukunft was zu machen?

Gesendet von meinem GT-I9300 mit Tapatalk 2
[Android Apps and Games] TheMasterBaron:
Yes, mods are a problem since they are designed for the original un-resigned rom.

You can try 2 things:

1. Try and resign the mod

2. If the resign fails, copy the /system/app/Phone.apk into the mod's zip file. Make sure it's in the /system/app folder. Then try and resign the mod.
[Android Apps and Games] Ok_Kaleidoscope5109:
OP, how's the disconnect/reconnect when switching from 2G to 3G for you on the Nexus 4? I assume you're using it with CM 10.1 nightlies?
[Android Apps and Games] TheMasterBaron:
Yes, I am using CM 10.1 nighties. It's just as slow as my other phones. I use the manual option with the notification, so I only switch to 3G when I really need the speed.
[Android Apps and Games] nxb:
I can switch all networks just fine from the ##debug section. Just not from Toggle2g. Does it need SU permission somehow? I have supersu and it won't let me just add stuff.

I don't have this USSD code. In CM7 all my codes were broken and so I went back to stripped carrier rom otherwise I'd be there. Any other ideas?
[Android Apps and Games] marcogtt:
Hi masterBaron I'm using this app longtime.

I saw you released a rootless application is this somehow faster in the switch?

Other question is there a way to read the toggle status from tasker to know which is the active status at the moment or write s variable status somehow anytime a switch is succeful?

Thanks

Inviato dal mio GT-I9300 con Tapatalk 2
[Android Apps and Games] Michael2907:
Hi,

leider ist das möglich, da in dem Falle meiner Mods, nur die Systemui.apk verändert wird, und so auch kein resignen möglich ist.

Schade drum, muss ich es halt immer per hand machen.

Trotzdem danke für deine Arbeit
[Android Apps and Games] TheMasterBaron:
Sorry, I'm out of ideas :(

It's not faster. Root was only used to save Toggle2G preferences. I found a better way to do it.

Currently there is no query for the current network state that Toggle2G exposes.

If you know that the Systemui.apk needs to be resigned you can resign the Mod by doing:

-keyapk /system/app/Systemui.apk
[Android Apps and Games] Michael2907:
Wo mache ich das denn genau?

Gesendet von meinem GT-I9300 mit Tapatalk 2
[Android Apps and Games] TheMasterBaron:
In the GUI there is a place to put the keyapk. Here is a screenshot
[Android Apps and Games] metaldood:
Is ATT s3 radio locked? I tried changing networks and it reverts back to LTE.
[Android Apps and Games] marcogtt:
I think this is somehow the same problem I'm facing with the widget functionality.

What's happening is that that most of the time I'm finding the widget unresponsive, or switching but reverting back to the previous setting, only few times the manual switch operation is leading to the correct result.

This seems to be a recurrent issues since a long time. I had the same in my s2 too.

Every ROM I used is a Samsung stock.

I remember in hd2 with a cm7 was working more flawlessly.

Any clue about this master Baron?

Inviato dal mio GT-I9300 con Tapatalk 2
[Android Apps and Games] TheMasterBaron:
No, I haven't had a phone that prevented me from switching. There are so many variants of phones its impossible to say what manufactures or carriers have done.
[Android Apps and Games] inFECT:
Strange enough, i have the same problem on the Nexus S with latest CM10 Nightly. Logcat shows not really a problem if i filter Toggle2G, but in the debug file i have some write errors, no connection errors.

Any clue? http://pastebin.com/y90xuXyK
[Android Apps and Games] TheMasterBaron:
I will fix the NullPointerException error, but that isn't causing the data connection problem. I really can't say why data is lost when switching back to 3G. My only thought is that the 3G setting in Toggle2G is not set to the best network for your carrier.
[Android Apps and Games] inFECT:
i've checked this too and he toggles the correct network state numbers. basicly the same as i would switch manually without T2G. Is the NullPointerException causing the write error within the data directory?
[Android Apps and Games] rickylcp:
Thanks buddy!

This is the beauty of the Android world!!!
[Android Apps and Games] TheMasterBaron:
No, the write error is because Toggle2G doesn't have permissions to write to it's own preferences file due to the fact it's running in the com.google.phone memory space. It's harmless.
[Android Apps and Games] inFECT:
Well, in that case i don't know what else i should try. Thanks for trying to help. If i find a solution, i'll let you know.
[Android Apps and Games] TheMasterBaron:
Thanks, anything to help fix switching on some phones will be most welcome.
[Android Apps and Games] marvasten:
Hello Javi,

I'm wondering if you was able to use this Toggle without re-flashing the ROM. I'm on firmware .55 (rooted, cwm) and I wanna try this but without lost any data. Please your comments.

Thank you, Marco
[Android Apps and Games] killian32:
Have you tryed flashing the update in the first post ?
[Android Apps and Games] TheMasterBaron:
Wow, I never thought about making it that easy! ;)

Seriously though, get Titanium Backup and use it to backup your apps/data including your system data. Then re-flash with a wipe and restore from the backup made using Titanium.
[Android Apps and Games] Javi22:
I wanna know if the mod is compatible with my rom. If I flash the update zip am I taking any risk? What would happen if is not compatible?

I just wanna the mod to be used with tasker, it must be very useful! :) thanks
[Android Apps and Games] TheMasterBaron:
There is no risk. It just won't show up on your phone.
[Android Apps and Games] Javi22:
Ok, thank you! I just flashed and didn't work, but no problem at all.

Btw I wanna ask something: if I disable mobile data, still being relevant what to choose between 3g or 2g, or it doesn't matter? I mean, is 3g/2g also related to voice network or just data network? :)
[Android Apps and Games] flipim:
There is any to Unninstall this APP in case that it is not compatible with our ROM ? Currently Im using one based on AOKP
[Android Apps and Games] TheMasterBaron:
Restore the backup you made before installing. Or, delete /system/app/Toggle2G.apk
[Android Apps and Games] akshat24:
Can u change minimum screen off time from 2minutes to immediate..it would really be very helpful...:)
[Android Apps and Games] TheMasterBaron:
Yea, while I wouldn't us it due to the fact I often turn off and on my screen when doing something (for instance texting with someone), other people might not.
[Android Apps and Games] akshat24:
It works flawlessly man...great work..was looking for it for a long time.. :)
[Android Apps and Games] SONIVIPUL:
Has any body tried this toggle on sgs3? I am on wanam liye rom.
[Android Apps and Games] doenersoldat:
Works on WanamLite V5.1 (LKC) with SGS 3 (I9300)

Resigned the ZIP vom Wanam with the Resign-Tool after resigning it, installed the ZIP via CWM.

Without Wipe it doesn't work, after wipe all works great!

Hope that helps.
[Android Apps and Games] marcogtt:
MB I have another question.

My setup 4.1.1 dlj5 on s3.

2g -> only 2g

3g -> only 3g

Auto disable and using tasker.

When I travel abroad I'm not able to connect to roaming network. I have to put 2g and 3g auto mode and reboot several times. When crossing the boarder by car....again...

Inviato dal mio GT-I9300 con Tapatalk 2
[Android Apps and Games] TheMasterBaron:
I wish I could be more help. I'm starting to get the impression that some phones are more problematic than others when switching networks.
[Android Apps and Games] marcogtt:
Don't worry. Full respect.

That far day when u decided to create this patch you saved a lot of us.

Me I can live with all this minus I'm spotting out but I'll never be able to survive my provider choices without this patch.

I'm in h3g ita. They have poor nw somewhere.and their nw are 3g only. They offer a national roaming too on the flagship provider with some limitation. By using tasker and few rules I can really have a very good service.

And thanks to u...

Inviato dal mio GT-I9300 con Tapatalk 2
[Android Apps and Games] _drone_:
Hi.

Thanks for great app. Sorry for possibly stupid question, but is there any way to resign stock ROM? The problem is that my phone (motorola atrix 2 MB865) isn't supported by Cyanogenmod and I tried your app using unnoficial buggy port which isn't good for everyday use. I tried Update.zip but on stock but it didn't help. When I tried to use ResigneUpdate app he didn't find files into stock ZIP, probably because there are .img files instead of folders. Should I try install CWM, backup ROM via CWM and then use ResignUpdate onto obtained backup? Or maybe there are some other way?