yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] TheMasterBaron:
I don't have a evo so I can't say for sure. However, Toggle 2G should be setting the network to whatever is specified in the options. You can see what network it's using by going to settings->about phone->status->Mobile network type.
[Android Apps and Games] System of a pWne!^:
It also works with MoDaCo R8 (I'm using a custom cooked MoDaCo R8 with the help of the online-kitchen for "premium users" there if that matters)

What a luck that I switched to a ROM which has resigned the system-apps.
[Android Apps and Games] PseudoReal:
I can't install 2G toggle.both downloads fail, the market and the direct download. From the market, the download fails, the direct download cannot be installed.

I am running modaco r8 and people reported to have it running on modaco.

Any idea?

Regards
[Android Apps and Games] TheMasterBaron:
If the install fails, its because the ROM has a different cert. Did you get your ROM from here as the user before your post has linked to?
[Android Apps and Games] grasvater:
Work perfectly with Villain Froyd 1.4.4. Thanks. :)
[Android Apps and Games] PseudoReal:
Yes, I am just not sure it they took the pre-bakes as I did it via the online kitchen....
[Android Apps and Games] System of a pWne!^:
I got one using the online-kitchen and it works.

Also:

Request for toggle 2g

I would like to have an option where toggle 2g does not switch to 2G automatically, if a specific app is still running (but not idle) if that's possible. I think it should be possible.

Reason: I'm listening to shoutcast-streams with Xiia-Live and there I generally have my screen turned off.

I have not tested it yet, but I'm quite sure when it switches to 2G, the connection will drop. So adding a "whitelist" for apps which delays toggle 2G for one more "2G Delay"-period until the app is "off" would be great.

Also: May you add a version-info to the footer of the app or similar?
[Android Apps and Games] Ty07allstar:
I am using a Droid Eris running KaosFroyo which is based off of CM6. I am wondering what network I should set my 2G on and what network my 3G should be set on? Thanks
[Android Apps and Games] akxak:
Hi!

Your app is a very nice addition to Locale and has the potential to save quite some battery drain.

One thing: Does it check (when being called from Locale) whether the requested state is already current. As a 3G/2G change requires a radio reset, I have the impression that this check is not performed and radio resets occur much more often than it would be necessary.
[Android Apps and Games] ZiCoN:
Works nicely on MCR r8...

One thing though (maybe stupid question, but...) wouldn't it be possible to use the 2g/3g handover instead of it loosing network intirely when, eg turning on the screen?
[Android Apps and Games] akxak:
Is this a good idea... at least on my Desire, I observe a short gsm network cut on such a switch. That does not only affect the data connection, it affects the mobile connection (and therefore also voice) at all.

At least, I would appreciate if I could disable such an automatic, perhaps in an "advanced settings" part of the configuration.

It remains an awesome tool, i searched quite a lot and found nothing compareable. Excellent work.
[Android Apps and Games] akxak:
You could do that via Locale (as long as the automatic switch to 2G on standby/screen off is deactivated). Locale has a plugin which detects whether a certain app is running (I use this to activate GPS on startup of Maps).
[Android Apps and Games] akxak:
As far as I read from this thread, a radio reset is required to disable/reenable 3G. But then, an network loss is unavoidable.
[Android Apps and Games] MarcinXDA:
Mrmrmrmr,

install java sdk.
[Android Apps and Games] Tyfighter:
I'm having nothing but trouble trying to run this on OSX 10.5. I'm pretty new at using Mac terminal (the only thing I've used it for before is ADB) and I've never used Java SDK, so whenever I've googled to try and figure it out, I end up way over my head. I followed all the instructions in the OP but can't get the script to actually run. I'm guessing that the bat file won't work on Mac, but I can't even get the others to run.

Last login: Tue Nov 20 01:21:10 on ttys000
tylers-macbook:~ Tyler$ cd /users/tyler/desktop/res
tylers-macbook:res Tyler$ ./resignupdate.sh literom.zip
-bash: ./resignupdate.sh: Permission denied
tylers-macbook:res Tyler$ sudo ./resignupdate.sh literom.zip
Password:
sudo: ./resignupdate.sh: command not found
tylers-macbook:res Tyler$ sudo ./resignupdate.jar literom.zip
sudo: ./resignupdate.jar: command not found
tylers-macbook:res Tyler$

I tried both the .sh and the .jar because I wasn't sure which one I was supposed to use... Also, I'm pretty sure that its not that I need to install the JDK because according to the Apple site, this version of OSX ships with "a full JDK" (1.5 I believe).

Anyone have any insight into this?
[Android Apps and Games] mrmrmrmr:
Hi,

On my 64bit Windows 7 PC , I have Java SE Development Kit 6.

Which Java SDK should I install ?
[Android Apps and Games] marcogtt:
64bit could be the culprit?

Inviato dal mio GT-I9300 con Tapatalk 2

---------- Post added at 05:34 PM ---------- Previous post was at 05:32 PM ----------

What about granting SU permissions before running the executable?

Inviato dal mio GT-I9300 con Tapatalk 2
[Android Apps and Games] Tyfighter:
I had thought that's what sudo did. Will try regular su though.
[Android Apps and Games] marcogtt:
Should be but did u notice that after putting sudo it didn't find the program? Sudo is superuser for only the command you are running in that line

Inviato dal mio GT-I9300 con Tapatalk 2
[Android Apps and Games] Tyfighter:
That makes sense. I've activated root user in os x and terminal has stopped throwing me the "su: sorry" line, so I think it looks like it worked, but now I'm getting "permission denied" again.

Thank you for bearing with me on this.

Last login: Wed Nov 21 12:37:32 on ttys000
tylers-macbook:~ Tyler$ su
Password:
sh-3.2# /Users/Tyler/Desktop/Res/ResignUpdate.jar /Users/Tyler/Desktop/Res/literom.zip
sh: /Users/Tyler/Desktop/Res/ResignUpdate.jar: Permission denied
sh-3.2#
[Android Apps and Games] marcogtt:
Can be something like the ownership of the directory where u are trying to right the patched zip file?

Or try to run from the res directory the command plain :

Resignupdate.jar literom.zip

Inviato dal mio GT-I9300 con Tapatalk 2
[Android Apps and Games] w.v.raaij:
Thnx
[Android Apps and Games] mrmrmrmr:
Hi,

Finally I've managed to resign my ROM and install it.

Then I've installed the app with CWM, however, I still can't see the app in the app list.

What might be the issue ?

(I see it under /system/app/toggle2g.apk)
[Android Apps and Games] mrmrmrmr:
I had only used SecPhone.apk and SecSettings.apk as the keyapk parameters.

Wouldn't they be enough for the resign operation ?
[Android Apps and Games] marcogtt:
Yes. Go to check if t2g is in the list of SU apps. U have to grant permission s

Inviato dal mio GT-I9300 con Tapatalk 2
[Android Apps and Games] encik_racun:
anyone try on galaxy y yet?
[Android Apps and Games] encik_racun:
:( not working on galaxy y deodexed....tested it
[Android Apps and Games] bimasakti85:
Want to report a bug, that if we plug the phone to a charger and then unplug it, this toggle wont work until the phone rebooted.
[Android Apps and Games] mrmrmrmr:
Ok. How can I do that ?

I have superSu and I dont see toggle2g in its list.

Now what ?

---------- Post added at 06:05 PM ---------- Previous post was at 05:59 PM ----------

I believe my problem is about resigning of the rom because i dont see the app in app list although it is available under /system/app

But resign process didnt give any errors.

What is it then ?
[Android Apps and Games] mrmrmrmr:
ohI didn't full wipe after installing resigned rom.

could that be the problem ?

but I really don't want to lose data. How can I go on ?

should I just delete data of phone and settings ?

is it a MUST ?
[Android Apps and Games] marcogtt:
Nand backup and try full wipe.

Inviato dal mio GT-I9300 con Tapatalk 2
[Android Apps and Games] mrmrmrmr:
and then ?

how shall I have my data back ?
[Android Apps and Games] marcogtt:
To have your data back use titanium backup but this is not the place to talk bout this.

I feel like wood will solve our issues...

Inviato dal mio GT-I9300 con Tapatalk 2
[Android Apps and Games] mrmrmrmr:
Ok; I am just trying to understand why we need to delete data if we just resign the apps in a rom.
[Android Apps and Games] marcogtt:
Full wipe will not format your memory.

You will loose all your apps and settings though

Inviato dal mio GT-I9300 con Tapatalk 2
[Android Apps and Games] encik_racun:
resign without any error on galaxy y, but still cant...
[Android Apps and Games] mrmrmrmr:
Hi,

I wiped data and re-installed the resigned ROM.

Then the Toggle2G app appeared in my apps.

After that, I restored all apps and system data with TitaniumBackup.

Toggle2G remains :)

But does that ("restoring all system data with TitaniumBackup" ) have any negative affects ?

It seems that all my settings are there :)

I just noticed that the accounts are not set to syncronize.
[Android Apps and Games] Michael2907:
hello. my problem is, this is no substitution for the data to unlock back longer possible.
[Android Apps and Games] encik_racun:
thia project seems abandon :(
[Android Apps and Games] TheMasterBaron:
Starting using Toggle2G with my new Nexus 4 so I made some updates.

ResignUpdate Change Log:

v3.0.0 - Automatic SecPhone.apk and SecSettings.apk detection | Running ResignUpdate.bat/sh without any parameters pops up a GUI so you can pick the ROM.zip file (Should help with path issues). You can still use the command line options if you want and it will bypass the GUI.

Toggle 2G Change Log:

v0.3.0 Added LTE networks and removed the need for ROOT (You will need to re-setup Toggle2G after upgrade)
[Android Apps and Games] TheMasterBaron:
That's how I do it. I haven't had issues doing it yet.
[Android Apps and Games] TheMasterBaron:
Did you do a full wipe when installing the resigned ROM?
[Android Apps and Games] spupuz:
For aokp 4.2 cm based i have to resign?

Inviato dal mio Galaxy Nexus con Tapatalk 2
[Android Apps and Games] TheMasterBaron:
No need to resign on any CyanogenMod ROMs
[Android Apps and Games] Michael2907:
Das ist ja eine feine Sache, nur bekomme ich zwar wieder eine 3 g Verbindung angezeigt, nur ist bei mir data nicht verfügbar. Nur ein Neustart hilft mir weiter.

Omega 4.2 aopk Rom

Gesendet von meinem GT-I9300 mit Tapatalk 2
[Android Apps and Games] yaatzek:
Any help Master? I'm a little noobish :D Java installed, win7 32bit, rom jb deodexed (omega) for s2. and I am getting these errors:
[Android Apps and Games] TheMasterBaron:
The phone.apk isn't in the usual place so.......

add this to the command line:

-keyapk preload/symlink/system/app/SecPhone.apk

Or, in the GUI, put preload/symlink/system/app/SecPhone.apk in the -keyapk field.

Cheers,

MB
[Android Apps and Games] yaatzek:
Will try in a minute. Thanks.
[Android Apps and Games] TheMasterBaron:
Are you sure you properly picked the 3G network setting?

Have you tried enabling the Data off to switch option?
[Android Apps and Games] eozen81:
Can someone please create a flashable zip or apk for Galaxy S3 Omega ROM v33.2?
[Android Apps and Games] TheMasterBaron:
are you having trouble running the resign tool?
[Android Apps and Games] spupuz:
Hey red Baron is better to switch off data when switch 2g/3g?

Inviato dal mio Galaxy Nexus con Tapatalk 2
[Android Apps and Games] TheMasterBaron:
No.

Some phones require that you use that option. Don't use it unless you have a phone that needs it.
[Android Apps and Games] eozen81:
Yes, because I could not make the "bat" file to work. I believe it's because my Java settings, I am not sure.
[Android Apps and Games] TheMasterBaron:
Have you tried the latest version. If you run it without any parameters it opens a GUI. Should make it a lot easier.
[Android Apps and Games] eozen81:
It extracted the zip file "ResignUpdateV3.0.0.zip" at the first message. Then I tried to run bat file in that. Did not work. :eek:
[Android Apps and Games] TheMasterBaron:
What message are you getting?

What OS?

Do you have the latest Java installed? You need version 7 of Java http://www.java.com/en/download/index.jsp
[Android Apps and Games] Michael2907:
Also data ist jetzt wieder da nach entsperrung des Bildschirms. Aber ist es normal das ich wenn der Bildschirm aus ist und kein WLAN an die data Verbindung nicht mehr funktioniert?

Da 2g doch normaler weise mit data funktioniert?

Danke für die Antwort

Gesendet von meinem GT-I9300 mit Tapatalk 2
[Android Apps and Games] TheMasterBaron:
If you are not getting data when the screen is off, then it could be your phone or carrier does not support 2G. Are you certain you can get data when using 2G?
[Android Apps and Games] spupuz:
I'm on galaxy Nexus with aokp 4.2 cm 10.1 based

Inviato dal mio Galaxy Nexus con Tapatalk 2
[Android Apps and Games] TheMasterBaron:
You don't need it.
[Android Apps and Games] Michael2907:
Yep. Habe es gerade getestet wenn nur 2 g an ist ist data möglich.

Gesendet von meinem GT-I9300 mit Tapatalk 2
[Android Apps and Games] TheMasterBaron:
Sorry, I'm not sure what is wrong then :(
[Android Apps and Games] yaatzek:
Worked. Thank You very much!
[Android Apps and Games] killian32:
Is it possible "manually resign" the stock ROM ? I mean, could I copy the needed file (ex. SecPhone.apk) from my phone to PC, resign them using the tool and the replace the original one on phone ?

(the flashable zip isn't working for me and I'd like to stay on stock rom)
[Android Apps and Games] yaatzek:
You can probably find here on forum stock deodexed rom (zip) which you can easily resign.
[Android Apps and Games] Michael2907:
Hätte nur länger warten müssen. Dauert bis er eine 2 g Daten Verbindung aufbaut.

Läuft jetzt rund. Vielen dank für die geile app:thumbup:

Gesendet von meinem GT-I9300 mit Tapatalk 2
[Android Apps and Games] spupuz:
Could you please all speak English?

Inviato dal mio Galaxy Nexus con Tapatalk 2
[Android Apps and Games] TheMasterBaron:
I did this with the stock rooted Nexus 4 when I got it before there were flashable zips.

0. Backup your phone

1. Create a zip file that mimics the /system file structure, but only include the APK and ZIP files. You need all of them becuase more than one APK or ZIP might get resigned.

2, Resign the zip file

3. Copy all the files in the resigned zip back onto the phone.

4. reboot and wipe.
[Android Apps and Games] TheMasterBaron:
:highfive:
[Android Apps and Games] spupuz:
anyway it worker like a charm also without switch data off enabled.
[Android Apps and Games] killian32:
What I need to wipe ? Just cache or all ?
[Android Apps and Games] TheMasterBaron:
All
[Android Apps and Games] eozen81:
@TheMasterBaron, thank you for your appreciated help here but I think a detailed guide or video will help all people hande with this kind of problems instead of asking again and again here.

In my opinion first message is not good enough for people to understand what to do exactly.
[Android Apps and Games] schurl85:
thx for sharing so a wonderful app, but i do have some problems.

i resigned the rasbeanjelly rom for nexus s and installed it. i have the app in the app drawer and activated it. it does indeed switch to 2g when connected to wifi, or when the screen is some time off. but when i disconnect the wifi or turn on the screen, i see it go from 2g to 3g, but the dataconnection is not working.

is there anything i can do? also tried the disconnect when switching between 2g and 3g.

thx!!

edit: does a logcat help or any other log? if logcat, what options should i specify
[Android Apps and Games] TheMasterBaron:
If you're not getting data after switching back to 3G, make sure you have the correct 3G network selected in the Toggle2G options.
[Android Apps and Games] sharp87:
http://xdaforums.com/showthread.php?t=739530

Toggle 2G ROM Resigner v3.0.0

Processing ROM update zip: C:\Users\NDuke\Documents\GT-I9100_WanamLite.XXLSJ.V13.0.NO-WIPE.zip

Locating apk's to convert....

WARNING: no default APK found for auto keying

java.lang.RuntimeException: Failed to find any apk with a key

at com.mb.resign.Resign.main(Resign.java:388)

at com.mb.gui.ResignRomApplication$2$1.run(ResignRomApplication.java:118)

***********************************

I had tried the third method and it didnt work and got this error

samsung galaxy s2 : JB 4.1.2
[Android Apps and Games] aiurs.fury:
Ive been trying to use this on Galaxy S3, Omega Rom 32.2 but encountered weird behaviour. First of all the toggling basically works, but when using manual switching back to 3G the notification works only once if i manually turn off data and back on. To bring the notification back to life I need to deactivate toggle2g and activate it again. Any ideas? Ive experienced other bugs but will stick to this one for now.
[Android Apps and Games] TheMasterBaron:
Same solution as this: http://xdaforums.com/showpost.php?p=34715264&postcount=1415
[Android Apps and Games] TheMasterBaron:
I'll need some logcat logs. Be sure to enable the option to switch while charging so that the phone will switch while you have it plugged in to the usb for log viewing.

adb logcat -s Toggle2G
[Android Apps and Games] aiurs.fury:
I've never used adb before (now you're probably asking how I got this far in the first place lol), tried to google and stuff, but stuck at " - waiting for device -" and dont know what to do next. Help greatly appreciated.

Edit: The above happened when running from shell. When running without "shell" first I get "Unable to open log device '/dev/log/main': No such file or directory"

Edit2: I figured it out, Siyah Kernel has logging turned off by default. 2 Logfiles attached. First one for the notification not being shown, second one for the auto-toggling back to 3G not working.
[Android Apps and Games] TheMasterBaron:
The reason you are not see the switch back to 3G is because data is off. When data is off, it does not show the switch back to 3G notification message, because why would you want to switch if data is off. I can see data being turned on and off. Are you running another app that's changing the data setting? Maybe something like Juice Defender?
[Android Apps and Games] aiurs.fury:
I'm not running any app that changes data setting. Yes I did switch data off but I also switched it back on. Doing this the second time leads to the notification not being shown. In case auto toggling is on it does not switch to 3G at all when manually turning off data and then turning it back on.

Tapatalked with my Galaxy S3
[Android Apps and Games] tloc:
I've been trying to use this app on a GSM Galaxy Nexus running CM10 stable, but it doesn't seem to work properly. Every time Toggle2G switches networks, the data connection drops completely and I can't restore it without rebooting. At least one other user in this thread experienced this (post 1207). Attached is a logcat - I set the "sleep delay" to 2 minutes, turned the screen off and let the phone sit for 3 minutes, then turned the screen back on. Data off to switch was enabled, but the issue occurs regardless of the setting.
[Android Apps and Games] TheMasterBaron:
The phone is throwing an error on the change to 2G. I can't say why, it's just being rejected. I assume your able to manually switch to 2G in the settings?

Error Setting: com.android.internal.telephony.CommandException: GENERIC_FAILURE
[Android Apps and Games] TheMasterBaron:
Thanks, that was a great description that set me straight on what you were doing. v.0.3.1 is uploaded. Let me know if that fixes you issue.
[Android Apps and Games] tloc:
Yes, data connection works fine if I manually switch to 2G networks.
[Android Apps and Games] 93ae8074:
Do you imply all the apps and data? A clean slate?
[Android Apps and Games] TheMasterBaron:
Yes, a factory reset
[Android Apps and Games] TheMasterBaron:
Is it able to switch from 2G to 3G, or does the same thing happen?
[Android Apps and Games] tloc:
I'm not sure if by "it" you mean Toggle2G or system settings.

Toggle2G never seems to recover once the data connection drops. The logcat I attached a few posts back covered a moment when the app should have switched back to 3G.

Switching in the settings, the Testing app or CM's notification drawer works fine both ways.
[Android Apps and Games] TheMasterBaron:
I meant Toggle2G.

The log you posted shows that it was in 3G trying to switch to 2G. Can you get the latest version (it has more logging) and try and capture Toggle2G trying to switch to 3G. The log should say "switching from 1 to 0" when moving from 2G to 3G
[Android Apps and Games] tloc:
Here's the log. There's no "switching from 1 to 0", but there is a "set3gNow ..." that appeared the moment I turned the screen back on.

Thank you for your support so far.
[Android Apps and Games] aiurs.fury:
Thanks for the new version MasterBaron!

I've been testing it and the notification seems to work now. However a couple of times when I used the notification it tried to switch to 3G but failed somehow and went back to 2G and stayed this way. I hope log 04 helps to pin this problem down. Maybe it was because data was being transfered while switching?

Auto toggling to 3G when coming from turned off data still doesnt work though, when turning on data t just stays on 2G. See log 05 for that.
[Android Apps and Games] TheMasterBaron:
OK, I fixed the code that was suppose to retry switching a couple of times. Can you verify that the 3G network that is selected in the Toggle2G settings is the same network that your phone uses when you boot it up? You can get to the menu by dialing *#*#4636#*#* in the phone dialer, selecting Phone Information, and then look at the Set Preferred Network Type field.

I had one other bug that I cleaned up. Try it again.

Thanks to both of you helping me with this. I've uploaded 0.3.2 with more fixes.
[Android Apps and Games] aiurs.fury:
Same sympton for auto toggling with 0.3.2, after turning on data it wont toggle to 3G. By the way, if I turn on Wifi and turn if back off, it will toggle to 3G. When coming from turned off data it wont. The Wifi thing isnt new though, old version behaved the same. It will also toggle to 3G if the screen-off time reaches its limit and it is supposed to switch to 2G. Although it already is in 2G, it will then switch to 3G when screen is unlocked.

Within toggle2G app it still says 0.3.1, but I guess it just hasnt been changed?
[Android Apps and Games] TheMasterBaron:
Thanks for pointing out that I forgot to change the version number.

I was so focused on manual switching I didn't realize you where talking about having that off when switching for this last bug. But, now I see what you mean. 0.3.3 uploaded that will automatically re-enable 3G when you re-enable data if your not using manual switching.
[Android Apps and Games] tloc:
Thank you for the updates. 0.3.3 is able to toggle 2G/3G properly! However, it never stays on 2G for long: shortly after the switch to 2G (usually within 3 or so seconds), the app prints "set3g because phone state changed" and does just that. This seems to reset the "sleep delay", so the phone is on 2G maybe 15% of the time, even though the screen is never on.

Attached is a logcat of the app going back and forth between 2G and 3G because "phone state changed". The setting "data off to switch" was disabled.
[Android Apps and Games] 93ae8074:
I knew it, sh*t! Ok, let's do it.
[Android Apps and Games] aiurs.fury:
Similar problem here, see the attached log. When screen if off it seems to switch to 2G but then back to 3G while screen is off. When I turned the screen back on it switched to 2G and immediately back to 3G.
[Android Apps and Games] spupuz:
I'm on wifi and it does not switch to 2g on this version does someone as a previous version like 0.31 0.32 or 0.30?

Inviato dal mio Galaxy Nexus con Tapatalk 2

---------- Post added at 01:30 PM ---------- Previous post was at 01:22 PM ----------

Version 0.3.0 would be better

Inviato dal mio Galaxy Nexus con Tapatalk 2