yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] TheMasterBaron:
The only thing making it CyanogenMod 6 specific is that I signed it using the CyanogenMod 6 system cert. Technically, anyone can take the apk and simply resign it for another ROM and it should work.

I may post a new special version with extra logging enabled around phone status. Sounds like the phone state isn't reporting that the phone is in use so the code is switching.
[Android Apps and Games] B1ny:
I can confirm this.
[Android Apps and Games] System of a pWne!^:
May you resign it for a HTC Stock 2.2 ROM? I just found out it's not like "removing META-INF and using a jarsigner" like for modified apks. At least my android refuses to install it in the last step (Yes, third party sourced OFC allowed)
[Android Apps and Games] cmarti:
Awesome! Looking forward to that version- BTW- At least I am not the only one having the issues, I saw another member posting same issue.
[Android Apps and Games] TheMasterBaron:
Yea, It's more than just using jarsigner. I doubt the platform cert for a stock ROM is available to the public.

In any case, the command looks more like this:

java -jar SignApk.jar platform.x509.pem platform.pk8 toggle2g.apk toggle2g.apk-signed.apk

I just posted v.0.0.3. I think this is a problem of timing where the screen would come on before the phone state was changed. I moved some code around and put some extra logging in. If you still have trouble send me the phone log using an app like aLogcat.
[Android Apps and Games] TheMasterBaron:
I'll take a look...

EDIT: lemaxxx, new version of ResignUpdate is uploaded and will now convert this ROM.

Cheers,

MB
[Android Apps and Games] starbase64:
Same here.

With your new update 2.0.2:

Processing ROM update zip: D:\Handy\HTC Desire HD\CM7\2G-3G Toggle\Toggle2G-unsigned.apk

Locating apk's to convert....

WARNING: system/app/phone.apk not found

WARNING: system/app/settings.apk not found

Exception in thread "main" java.lang.RuntimeException: Failed to find any apk with a key

at com.mb.resign.Resign.main(Resign.java:313)
[Android Apps and Games] TheMasterBaron:
Ooops, Looks like you ran it against Toggle2G-unsigned.apk instead of Gr5-update-modacocustomrom-2x-core.zip! :eek:
[Android Apps and Games] starbase64:
my mistake, now I have understood
[Android Apps and Games] TheMasterBaron:
Please make sure the current folder is the one ResignUpdate.bat is in. Currently, you can't run ResignUpdate from a different folder.

EDIT: Also make sure the inject folder under the ResignUpdate folder contains Toggle2G.apk
[Android Apps and Games] starbase64:
Hi,

can't flash XWKJ3_CheckromRevolutionHD_V3.1.1.zip-Toggle2G-resigned.zip > CWM > Installation aborted.

with friendly greet

starbase64
[Android Apps and Games] lemaxxx:
Thanks. I'll try it later.
[Android Apps and Games] starbase64:
Hi,

now i have this:
[Android Apps and Games] TheMasterBaron:
Maybe try disabling signature verification in CWM
[Android Apps and Games] starbase64:
now i have this:
[Android Apps and Games] TheMasterBaron:
2.0.3 is posted that skips unreadable apk files so the process can finish. Try it again.
[Android Apps and Games] starbase64:
Hi,

that's worked, but i can not find 2GToggle in app drawer.

with friendly greet

starbase64
[Android Apps and Games] TheMasterBaron:
I'm pulling the ResignUpdate as it seems I borked something...will upload when I get it fixed...
[Android Apps and Games] nikzDHD:
Was wondering where it had gone just came to use this lol!
[Android Apps and Games] TheMasterBaron:
OK, ResignUpdate 2.0.4 is back up!
[Android Apps and Games] nikzDHD:
Thanks again mate, updated resign worked perfectly for SGS2 for ROM: WajkIUI 1.11.18.2 :D
[Android Apps and Games] PartyBent:
a little help

Im trying to resignupdate so i can use this :)

But when i come to step 4. i got a problem i type in"

"ResignUpdate.bat miuiandroid_Optimus2x-1.11.18" and java is an unknowed comand :/

when i try use "ResignUpdate.sh miuiandroid_Optimus2x-1.11.18" it run in cmd but it says could not find the main class C:\ResignUpdateV2.0.4Beta\resignupdate.sh program will exit
[Android Apps and Games] nikzDHD:
You need to add the extension of the file to the end of the filename, try it with .zip.
[Android Apps and Games] PartyBent:
Haha ofc thx :)
[Android Apps and Games] lemaxxx:
Testing on Modaco Gr5

Hi,

with last release resign work fine with core zip.

After full wipe, with vanilla version of the rom, I've encountred force close and system is unusable.

Made another full wipe and try with stock version.

System boot fine, but I'm not able to run the Android initial setup (setting account, time, ecc).

Toggle 2G is present e usable in system app home menu

Go back to previous nandroid backup.
[Android Apps and Games] soCram:
Hey,

is there any possibility to get the "2G-Notification" white instead of red? I can't find any icon inside the apk...

Greetings

socram
[Android Apps and Games] triku:
I have a little trouble...when I inject the toggle2g in a MIUI ROM everithing it´s ok, but when I flash the ROM all the time it´s givinme FC´s in Storage of the calendar. Someone else more happens this?? Any solution?

Thanks to everybody!
[Android Apps and Games] TheMasterBaron:
The red 2G icon is the the notification plugin apk, not the Toggle2G.apk.

Try adding this to the ResignUpdate command line:

-keyapk system/app/CalendarProvider.apk

This will include the CalendarProvider.apk in the resign process along with any other apks that are signed using the same key.

Cheers,

MB
[Android Apps and Games] lemaxxx:
seem to be solved on modaco gr5

Hi,

seem to be solved.

Resign both, core and stock zip. Only doubt on registering account, ask two time before working.

Now on testing.
[Android Apps and Games] soCram:
I modified the 2G-Icon to white because it fits better in my MIUI-Skin. For everyone else who doesn't like the red 2G-Notification-Icon. I hope you are fine with it TheMasterBaron?

Greetings

socram
[Android Apps and Games] bgx:
Hmm getting this error with cognition777 and my modded framework?

Resigning: system/framework/framework-res.apk
WARNING: Failed Reading Key from: system/framework/framework.jar
Skipping: system/framework/framework.jar
Exception in thread "main" java.util.zip.ZipException: invalid LOC header (bad s
ignature)
at java.util.zip.ZipFile.read(Native Method)
at java.util.zip.ZipFile.access$1200(Unknown Source)
at java.util.zip.ZipFile$ZipFileInputStream.read(Unknown Source)
at java.util.zip.ZipFile$1.fill(Unknown Source)
at java.util.zip.InflaterInputStream.read(Unknown Source)
at java.io.FilterInputStream.read(Unknown Source)
at com.mb.resign.Resign.copy(Resign.java:92)
at com.mb.resign.Resign.scanUpdate(Resign.java:132)
at com.mb.resign.Resign.main(Resign.java:353)
[Android Apps and Games] soCram:
I tried to use your newest resign-tool via sh-script on Mac OS 10.6.8. It doesn't include any Toggle2G.apk file into the ROM. I had to move the Toggle2G.apk of the signed update.zip it to system/app after the installation of the rom. Is this a Mac issue or is there a fault in the implementation of the Toggle2G.apk in the jar-file?

greetings

socram
[Android Apps and Games] sshark:
Tried reading most of the pages but couldnt find a clear reference...does this work on CDMA networks, especially on Sprint in US?

I am so tempted just to flash the zip and see if it works or not, but don't want to loose the current set up.
[Android Apps and Games] da_anton:
feature request

Hi,

first thanks for this great piece of software! It improves my standby time a lot and I love it!

I have a small feature request which came into my mind today:

It would be great to have the possibility to set a delay before the switch to 3g is actually performed. Usually I just wake up my phone to check what time it is or if there are any new mails. That takes maximum 2 sec. But Toggle 2G switches immediately to 3G. A GUI-Option to set this would also be nice.
[Android Apps and Games] bgx:
Try it with tasker! ;-)
[Android Apps and Games] Aiakio:
U can try the Notification Plug In
[Android Apps and Games] da_anton:
I like the automatic switching feature so the notification plugin is not what I want. Just a small delay would be great to prevent unnecessary switching.

Of course tasker could do that but why have another app running and consuming ram/cpu? ;)
[Android Apps and Games] astoncheah:
Hi all,

my gs2 is running on Check RevolutionHD Rom v3.1.1. i am very interested in this app. i tried to flash Toggle2G-Update.zip with CWM but Toggle not showed up in my app drawer. then i wanted to try the "ResignUpdateV2 java application to convert your ROM" but have no idea how to do, anyone can help? thanks.
[Android Apps and Games] nikzDHD:
How to use ResignUpdate:

1) Ensure you have java SDK installed, if not google it and install it.

2) Download resignupdate and extract it.

3) Download your desired rom and place the file into resignupdate directory.

4) Open command prompt and change directory to where resign update is.

Example, cd C;\ResignUpdate

5) Run the script, Resignupdate.bat xx.zip

Ensure you leave a space after bat xx = name of rom

Example, Resignupdate.bat Hyperdroid_Androimeda.zip

6) Keep a look out while script is running to ensure there are no errors, once complete you will have another zip file in the resign directory labeled something like rom name Toogle2G-resigned.zip.

7) Copy onto phone and flash away using CWM.

8) Enjoy the benefits.
[Android Apps and Games] macray76:
When I used ResignUpdate on CheckRom 3.1.1 and installed the resigned app I couldn't use JKay Deluxe Settings which meant that I got the awful full battery notification. I also didn't see Toggle 2G/3G switch to 3G only even though I set it to 3G only.

This is a shame as I really want the functionality but I can't live without the full charge hack.

Is there a way to ensure JKay continues to work after flash?
[Android Apps and Games] astoncheah:
mine CRR3.1.1 just works fine with jkay

thanks, with you helps, i made it..
[Android Apps and Games] macray76:
I've reinstalled JKay and KitchenPro successfully but when I use Tasker to manually change the network, according to the phone settings it is still set to auto mode.

Is there a delay before the network is changed?
[Android Apps and Games] triku:
How can i include this line in te resign process? I´m tryng but I don´t know how to do this!! I need any program to modificate the resignupdate.bat or something?

What i did is in the compilated ROM with the toggle erase de calendarprovider befor flash the rom, but if I can resign the aplication it´s better!

Sorry and thanks!

P.D.: Solved!! thx!!!!
[Android Apps and Games] macray76:
I'm getting the GENERIC_FAILURE issue in the logcat so to fix it I had to use Tasker.

I've set a profile up that switches between 2G and 3G when required but before it uses Toggle2G to change the network I first disable mobile data, wait 2 seconds, and then reenable mobile data after Toggle2G has done it's stuff.

Seems to work fine but I think this means I can't use the automated element of Toggle2G if it doesn't disable mobile data before hand.
[Android Apps and Games] astoncheah:
i have set the toggle2g auto mode and switch to 2g when screen off, but whenever i on the screen it always shows 3g/H/H+. i dont know whether it is working? how to actually test it?
[Android Apps and Games] p5x:
Could you send me the flashable zip file please, i'm on CRR 3.1.1 as well.

thanks
[Android Apps and Games] globaltrasher:
Resign Update works on Atrix 4G with The DarkSide v3.1.2 [2.3.5] ROM!

For those interested, I ran Resign Update and successfully injected Toggle2G into The DarkSide v3.1.2 [2.3.5] ROM for Motorola Atrix 4G. The ROM does not support Toggle2G out of the box.

Installed Toggle2G plug-in for Tasker and switching between 2G and 3G works fine so far.

Thanks, TheMasterBaron!
[Android Apps and Games] astoncheah:
i thought it worked after installed, but after several tests, i found it didn't work. i could open the toggle2g app and make the setting but it just didn't work when screen off to 2g.
[Android Apps and Games] dingolino:
Hi,

>Installation:

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

just a quick question:

Assuming this installation is not working - what are the left overs in the system?

So what data is modified regardless if the app is not showing up in the app drawer?

Best regards,

dingolino
[Android Apps and Games] 4l3gU:
Can you send me the file for check 3.1.1 please

Inviato dal mio GT-I9100
[Android Apps and Games] astoncheah:
which file? my crr 3.1.1 rom file comes with resignupdate toggle2g, which is 280mb.
[Android Apps and Games] bendoe91z28:
Same problem here trying to install on a galaxy note. There is a notification that needs to be OK'd to toggle 3g back on, and this is where the app is failing. The system asks for the ok and it does not get it.

You can see it yourself by going to wireless networks, mobile networks, network mode. Try to toggle 3g on and it gives a warning.
[Android Apps and Games] 4l3gU:
All the rom exactly because i'm noob and this app is fantastic thanks

Inviato dal mio GT-I9100
[Android Apps and Games] astoncheah:
280mb is too big for me to send, further more, my rom is not working after resignupdate. i love this mod too, but no luck at the moment. hopefully, will get update from the dev.

i am a noob too, but if you know how flash roms, then it should be no problem to resignupdate the rom your self. just download the resignupdate file on the 1st page and use the command prompt with your window xp and follow the instructions. good luck!
[Android Apps and Games] 4l3gU:
Hi hi hi i'd want only the file phone .apk signed if you can... For check 3.1.1 Thanks

Inviato dal mio GT-I9100
[Android Apps and Games] TooYellow:
This makes a lot of sense. I do the same thing. Maybe if it toggled when the screen gets unlocked?
[Android Apps and Games] zorvalth:
Hi, i installed the app yesterday and made hell of a difference on my Nexus S!

I have an idea for an option to be included in the app. How about user to configure the app to turn on the 3G only on selected apps. In example i dont need 3g when i'm playing most of the games or reading a ebook but only when i'm using the browser, google maps, google reader...

In the past when i was using CM7 i did this configuration with Tasker and did a good job on my phone but now i'm converted in MIUI user and the Tasker is no longer useful for changing the 3g to 2g. Just notice what percentage of the time when the screen is on you are needing 3g. For me its like 20% maybe.

Excuse my English, I'm not a native speaker :)

Thanks again for the great app!
[Android Apps and Games] eboIa:
U can use Tasker on MIUI also as me use it. This program is a Tasker plugin also, so indstead of using built in Tasker switcher you can use this plugin and your limit is just the sky:)
[Android Apps and Games] 4l3gU:
What program i can use in windows vista for sign this app.

Inviato dal mio GT-I9100
[Android Apps and Games] zorvalth:
Are you sure, last time when i tried tasker to change 2g to 3g it said something like "You cannot perform this action on this rom" ?
[Android Apps and Games] nikzDHD:
Have the same message not sure it works on gsm phones with tasker only cdma? Correct me if I'm wrong.
[Android Apps and Games] zorvalth:
I just checked tasker description: Mobile Data 2G/3G (Cyanogen only),
[Android Apps and Games] eboIa:
Please read me carefully:) Do not try to use built in Tasker switcher but the plugin what Toggle 2G installed also... Tasker plugin... Not the original one, what for CM only of course...

Tell me if you got it;)

Good luck...
[Android Apps and Games] zorvalth:
As I said "Excuse my english" :) I got it now! Thanks!
[Android Apps and Games] IPB_Refugee:
I second this request. A configurable delay before switching to 3G when the screen stays on for at least x seconds would be a nice additional feature.

Thanks a lot for the app, TheMasterBaron!
[Android Apps and Games] astoncheah:
here you are: CRR v3.1.1
[Android Apps and Games] eboIa:
No prob. I'm weak in English also... But glad to see you got that settings...
[Android Apps and Games] bendoe91z28:
A couple people here including myself have had issues with toggle 2g installing correctly, it Toggles 3g off correctly when it needs to, but can't turn 3g back on at any point.

It appears to be connected to the phone requesting an "OK" to toggle 3g back on.

I have found a solution. If you use tasker, and have tasker toggle mobile data "OFF", wait two seconds, then have toggle2g do its thing, wait two seconds, then mobile data back "ON" it is able to do it correctly.
[Android Apps and Games] astoncheah:
you mean to set profile screen on: data off>wait 2 seconds>data on?

i am also having problem, it sometimes switches to 2g but sometime doesn't. my setting is = screen off to 2g, delay 2 mins.

when i use cm7,116 nightlies, it works.. seems like my CCR v3.1.1 rom not compatible..
[Android Apps and Games] onlinespending:
Apparently it does according to theboundless. Have you tried?
[Android Apps and Games] bendoe91z28:
No, if you having the issue I describe, where it will toggle 2g on, but not 3g back on, you can use tasker to toggle mobile data -> wait two seconds ->toggle 3g ->wait two seconds -> toggle mobile data, and it will work.
[Android Apps and Games] astoncheah:
you mean by setting a widget button then manually change it or set as a screen on profile? thanks.

PS: yes, i got it work by following your steps! this is what i set:

screen off profile=data off>wait 1 second>set to 2g>wait 1 second>data on

screen on profile=data off>wait 1 second>set to 3g>wait 1 second>data on

works like charm! thanks.

the latest i set to:

screen off profile=data off>wait 0.5 second>set to 2g>data on

screen on profile=data off>wait 0.5 second>set to 3g>data on

works too.!
[Android Apps and Games] onlinespending:
When I use ResignUpdateV2 I do not see Toggle2G in my app drawer, despite the resigning process completing successfully. Also, if I try installing the Toggle2G-unsigned.apk, it says "Application not installed". Is there a reason why this might be?
[Android Apps and Games] TheMasterBaron:
Sounds like you need to do a factory reset/full wipe. Thats usually the reason for the issues you're having.
[Android Apps and Games] SagiLo:
I've performed what you wrote but it seems like the profile 'display on' is not functioning...

When i turn display on, still tasker says 'no active profiles'
[Android Apps and Games] astoncheah:
could you explain further? what rom are you using? how is your tasker setting?
[Android Apps and Games] maremma:
sorry if it has alredy been asked , is tehere a way to schedule a 2g/eg Swicht based also on time ? (ie during screen off i whant 5' 3G every 30' )
[Android Apps and Games] SagiLo:
OK ... it seems to work now

But i do have an 'edge case' in which, i turn display off , and after less than 5 minutes (switch to 2G timeout) i turn display on and continue using the device, while i'm working (display on, even maybe Data used), the 2g switch applies !

I've thought of making another condition to check the Data is not used or screen is actually off after the 5 min timeout, but i'm not sure how to do it since the condition will take place while ran and not after the delay .

Please help !
[Android Apps and Games] Aiakio:
@TheMasterBaron:

Is it possible to make it working on galaxy nexus (ics)?
[Android Apps and Games] lastrider:
I converted my MIUI rom successfully, though on flashing it didn't work.

Is a full wipe/factory reset required?
[Android Apps and Games] zicovsky:
how do i set a 'wait' on tasker? i must be completely missing it cause i can't see it..
[Android Apps and Games] jabbermacy:
Sorry, I am running hypersensation (CM7 base) and get error when installing the .apk. Is it safe to just flash it?
[Android Apps and Games] lotherius:
Just gotta say, I've been bundling this with my Rom for a month or so now, and haven't had ANY complaints from users. They all love it! The biggest hurdle is installation.

If anybody here has issues getting it installed, you should hit up your favorite Rom chef and have them bundle it.
[Android Apps and Games] eboIa:
@lastrider: Yes you need... After it will be available... I'm using MIUI also...
[Android Apps and Games] astoncheah:
choose Add task(+)>task>wait.
[Android Apps and Games] dingolino:
Hi TheMasterBaron,

could you give a little background why - after resigning a rom with your tool, a flash needs a complete wipe in order to make Toggle 2G/3G working?

Means: Having the same rom, after the resing is done:

flashing without wipe: Toggle is NOT working

flashing WITH full wipe: Toggle is working

I just would like to get a little technical understanding about this.

Best regards, & Many thanks

dingolino
[Android Apps and Games] TheMasterBaron:
Somewhere in the data partition is cached information about the ROM's apk signatures. It isn't until you do a wipe that the resigning actually takes affect and Toggle 2G is seen to have the same signature and the Phone.apk

Cheers,

John
[Android Apps and Games] dingolino:
Many thanks for the feedback!

http://xdaforums.com/showthread.php?t=1380284&page=30

post #298

Maybe you can make a comment on the above one. eybee made a great rom for the Galaxy Note and is including your toggle now, but facing some challenges on it

From your experience is there anything you could recommend further?

Best regards

dingolino
[Android Apps and Games] soCram:
Hey,

is it possible to use your nice hack for the galaxy nexus, which means with Android 4.0.1?

Greetings

socram
[Android Apps and Games] jocaferlo:
I'm using it in Samsung Galaxy S2 with Android 4.0.1.
[Android Apps and Games] marcogtt:
Masterbaron first of all thanks for the most important app im using in my android phone.

I switched to s2 few days ago and i was wondering to run androidmeda Rom from pongster .

Tried to inject toggle2g yesterday but without luck.

After a full wipe i didn't see that app in the app drawer .

I get a warning in the resigning process related to an flashplayer apk but when i tried to resign again the warning was related to something else.

Have other experienced similar problems on that Rom?

Im in desperate need of help cause that app is saving me my life with Italian h3g carrier!

Thank u all

EDIT----------------------------------------

I managed but here is what i did:

signed the rom,

wipe everything,

boot into the rom (still no toggle2g)

CWM installed toggleupdate.zip

i now have toggle2g.

is this procedure ok?

I am facing in a slow but functional switch beteen 2g/3g...but i can survive.
[Android Apps and Games] pasquy85:
Hi, any news on applying this mod to checkrom revolution mod??

It could be great....
[Android Apps and Games] marcyspark:
Hi,

I followed the instructions to re-sign the contents of the CheckROM V4 zip file. Once it had completed I flashed the new rom after performing a full wipe. It works brilliantly.

I then installed Siyah 2.5+, then the 1000mah charger script, then jkay deluxe 13.2.

Works great.

One bit of advice however, don't flash any mods that will replace the re-signed files. You will have to run the re-sign script for each of these, I think..... I got caught out by the Dominator ICS Theme.

CORRECTION:- I just tried running the re-sign on ICS Domination zip file and it aborts so perhaps I'm wrong about re-signing flashable zip files containing mods - SORRY!
[Android Apps and Games] pasquy85:
Superb! :)I could try. But you mean that we cant use mods,this way? :(

Is it possible to have both mods and toggle2g??

(am I adkin too much??:D)