yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] TheMasterBaron:
It likely failed because there is not a phone.apk or setting.apk in the mod. However, the command line does provide a way to specify another apk to to use as a key when signing the mod. Just add "-keyapk something.apk" (without quotes) where something.apk is one of apks that needs to be resigned.

To find out what apk needs siging in the mod, look at the output when you resign the CheckROM V4 zip file for apks that were signed. Then find a common apk in the mod. Then use the -keyapk option and that common apk. ResignRom will then use that common apk to properly sign other apks in the mod as needed.

I hope this helps,

MB
[Android Apps and Games] marcyspark:
So instead of the %filename.zip within the bat file do I simply use -keyapk something.apk ?
[Android Apps and Games] pasquy85:
But if we flash mods that don t contain apk originally signed in the checkrom,we can install th mod as they are, uh?
[Android Apps and Games] TheMasterBaron:
the command line would look something like this:

ResignUpdate.bat [B]DOWNLOADEDMOD.ZIP[/B] -keyapk [B]COMMON.APK[/B]

Replace DOWNLOADEDMOD.ZIP with the mod's zip you download.

Replace COMMON.APK with an apk name that was resigned in the original ROM and is also present in the mod. You can find what apks are signed in the orignal ROM by looking at the output when you resigned the rom.

CHeers,

MB
[Android Apps and Games] pasquy85:
So:

1-download rom.zip

2-resignupdate.bat rom.zip --> I have romrresign.zip

3-flash romresign.zip

Now i want to apply mods:

If the mod.zip contains some apks resigned, i have to:

4-resignupdate.bat rom.zip -keyapk mod1.apk mod2.apk ecc.. --> I have romrresign1.zip

5-flash romresign1.zip

6-apply mod.zip

If the mod doent contain apks already resigned i can flash the mod without any resign

Is it right?
[Android Apps and Games] geekeh:
Thanks this looks really great. I assume it installs ok on CM7 as it did on CM6?

This is almost what I've been looking for for ages, but what I'd like is rather than simply running in 2g when the screen is off and 3g the rest of the time, i'd like to be able to leave the phone in 2g mode and automatically switch to 3g if network demand goes over say 30 Kb/s for more than 10 seconds. - I'm not quite sure what thresholds should be, but something whereby background data (syncing, instant messaging etc.) isn't enough to trigger it, but a download, or streaming audio / video etc. would push it over the threshold.

There are a couple of other factors, like the maximum speed you can get over 2g depends on the signal strength and how fast you're moving. but the app could conceivably take those into account (the signal strength at least)

Also I'm not certain how something works, if i'm in a 3g area and using 3g and i travel out of the 3g area so the phone looses the signal and drops back to 2g, is the 3g radio then off / not drawing much/any power? How does it know once I'm back inside the 3g area, do the cell towers report 3g capability over 2g? or does it poll for a 3g signal?

Does anyone know?

The information affects whether if you don't have a 3g signal it is advantageous to turn off 3g or not, and then maybe periodically switch 3g back on to check if the signal is back, or use cell tower location data to learn where there is no 3g, and only very occasionally check for upgrades.

Lastly if the phone is in 2g mode and there is no, or a very weak 2g signal, i'd like it to at least look for a stronger 3g signal and if there is one then switch. And don't switch to 2g unless the signal is either over a certain threshold or below it but stronger than the 3g signal. (what I'm saying is that i'd rather sacrifice battery life to ensure that I can still make and take phone calls and at a decent quality)

If any of that is implementable then I think it would make this app even more awesome. I've really been struggling to understand why from the beginning android wasn't built to be able to only switch on the faster radio when it was needed. It could even have been built with an api so that applications could tell it how much bandwidth they needed.
[Android Apps and Games] TheMasterBaron:
Mostly correct, let me change these:

4-resignupdate.bat MOD.zip -keyapk mod1.apk --> only need one common APK to key off of, it will find any others automatically

5-flash romresign1.zip --> No need for this since its already on the phone

6-apply mod.zip

Cheers,

MB
[Android Apps and Games] pasquy85:
Oh well,now it is clear! Mod instead of rom,even simpler then!!!:)

I'll try asap,and will let you know!thanx!
[Android Apps and Games] TheMasterBaron:
First, thanks for your insightful post.

Keep in mind that many (not all) phones disconnect from the network when switching from a 2G only setting to the 3G/4G setting and vice verse. This can be very disruptive to a user as you loose phone service and network service during the switch.

I'm not sure if having 3G enabled while in only a 2G area hurts or not? My guess is that the 3G radio is constantly polling for 3G coverage and so is a power drain. Another problem is that there is no way to test signal testing for anything other than what your on, you cant test 3G signal strength when connected to 2G.

These are great suggestions and I have thought many times about improving the reason for switching. However, there are so many variables that I want to stay away from that complexity. Being that I've made Toggle 2G open to other apps to call I welcome anyone else to write the ultimate 2G switching tool that simply calls Toggle 2G to make the switch.

Cheers,

MB
[Android Apps and Games] TheMasterBaron:
Yes, if the mod has no APKs that were resigned in the original rom, you can just apply the mod without resigning it.
[Android Apps and Games] substanceneil:
Thanks, MB for this app. I am using it on my T-mobile G2x and Lotherius's Tsugi 2.3.4 ROM. My battery life is amazing.

Does anyone know if the data downloaded while in 2g mode applies to T-mobile USA's high speed cap (in my case, 4g?)

I.e. my plan is for unlimited data, but 2GB is at 4g speeds, then data is throttled to EVDO/2G speeds. Does data used while forcing the phone into 2g mode apply towards the 2GB cap?

Neil
[Android Apps and Games] lord danko:
Thanks for the application, where the file is Toggle2G-Update.zip to download ? to the version 0.18

Thanks
[Android Apps and Games] TheMasterBaron:
Sorry, Toggle2G-Update.zip is now in the OP.
[Android Apps and Games] adtif:
Hi, I just applied this app with the Redesignupdatev2.0.4 with Nik Trinity SensationXL v2.5 n I m still testing on the battery. I hav noticed the delay time when on the screen after sleep. It is about 2-3 seconds. But the only issue for me will be the data, the data only be on back after 8-10 seconds. Is it normal?
[Android Apps and Games] TheMasterBaron:
Yes, some phones take longer than others to switch. I suggest you use the option to manually switch to 3G.

Cheers,

MB
[Android Apps and Games] lord danko:
thankssss !:d
[Android Apps and Games] soCram:
I'm using a Galaxy Nexus with 4.0.3 now, resigned my ROM but the plugin just doesn't work. I need it to switch back to 3G fast. Any help would be appreciated.
[Android Apps and Games] a user:
does your resign script also zipalign the apks and jars again?
[Android Apps and Games] TheMasterBaron:
I don't have an ICS phone to work with. Until I can get ICS running on my phone, I can't test it.
[Android Apps and Games] TheMasterBaron:
It does not. At this point, if you want to re-zipalign the files, you'll need to do it yourself.
[Android Apps and Games] a user:
ok, thanks for the info.

may i ask you for the source code of the resign.jar (including the singature) ? this would make it easier to integrate into my rom build procedure.
[Android Apps and Games] lord danko:
Hello, the application works well I mean, that is when the WiFi is connected becomes 2g, when the screen goes off 2g etc ... The problem is that it does not automatically reconnect to 3g, it is always 2g.Help me and tell me how to fix it?. Thanks

Sorry for my English.
[Android Apps and Games] TheMasterBaron:
I've got a version that will now zipalign after resigning an apk that I'll post soon.

As for source code, I want to redo the resignupdate code be more of generic tool that's will not be specifically tied to Toogle2G so I'm going to hold off on releasing it.

Cheers,

MB
[Android Apps and Games] idanz0r:
thank you for this app.
[Android Apps and Games] lord danko:
TheMasterBaron no solution ?
[Android Apps and Games] TheMasterBaron:
No, I'm not sure why it wouldn't switch back to 3G.

Here are some things to look at:

1. When you go into the android settings, does it still say it's set to 2G?

2. Have you tried using the plugin to manually switch to see if that works?

3. Have you verified that the 3G network setting in Toggle2G is correct?
[Android Apps and Games] a user:
thank you very much!

very kind from you.
[Android Apps and Games] lord danko:
Fixed !!.In preferences (toggle program) on 3G Network had selected "WCDMA preferred (2G/3G)," I changed to the option GSM / CDMA Auto (PRL) and now works.No understand why the first option did not work, you know why?, I have sgs.
[Android Apps and Games] Skamba:
Hi,

I tried to use your resignupdate tool for the miui rom I use for my xperia arc. However, I get stuck in a loop between the login screen and the loading animation.

I've uploaded my update.zip and a logcat log to http://filepost.com/files/c8fm35fd/toggle2g.rar/. I would be very grateful if you would like to take a look! :)
[Android Apps and Games] dingolino:
Great!

Maybe you can add a hint into your readme that if the folder of with the resingupdate script is within a umber of subfolders with lengthy folder names that the script will not run and could find the rom file.

I have this problem always when I put it ito several sub folders.

If I put the "resignupdate" folder directly in the root level, no problem. (win7 64bit)

But this problem could you drive crazy if you get always the error that the file is not found.

Best regards,

dingolino
[Android Apps and Games] Aiakio:
@TheMasterBaron

Sorry, but the german translation in App is really hard to understand (made with google translate?)

I manually translated the whole App into a readable german.

Feel free to use it if you want.
[Android Apps and Games] TheMasterBaron:
Thanks, it's used in the latest version that I just posted!

Thanks, I've added it to the read me. BTW, did it also have spaces in the path?

Downloading now, but not sure how much time I'll have with Christmas coming.

Cheers,

MB
[Android Apps and Games] Skamba:
No worries, any effort is greatly appreciated :)
[Android Apps and Games] koboltzz:
TheMasterBaron

Will it be possible, that you can provide me the resignupdate.zip before your latest update (injection). Latest resign messes a lot up i.e. bootimg 0kb etc.
[Android Apps and Games] TheMasterBaron:
I would rather fix the problem. Can you provide a link to the ROM you are signing.
[Android Apps and Games] TheMasterBaron:
OK, I found this error in your logcat:

E/PackageManager( 886): Package com.sonyericsson.audioeffectservice has no signatures that match those in shared user android.uid.system; ignoring!

Try to force that APK (any any others that share it's key) by adding this to the command line:

-keyapk system/app/AudioEffectService.apk

Cheers,

MB
[Android Apps and Games] koboltzz:
This one, thx in advance!
[Android Apps and Games] ajacobo:
Hi,

I'm trying to resign this rom:

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

but I get the following error:

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:390)

Do you know what the problem could be?

Thank you in advance!

Adrian.
[Android Apps and Games] TheMasterBaron:
Add this to the command line. Turns out the phone.apk is located in the sd-ext partition:

-keyapk sd-ext/app_s/phone.apk

Cheers,

MB
[Android Apps and Games] TheMasterBaron:
OK, I think I got it fixed. Please download ResignUpdate 2.1.1 from the OP and give it a try.

Cheers,

MB
[Android Apps and Games] Skippyjan:
Maybe it is already asked. I didn't read the whole thread.

First of all great mod! Thanks!

But I wonder if you could implement a option with a timer for the 3g switch after turning on the screen.

For example if I check quickly the time on my phone for just a couple of seconds, I dont need 3g. So it would be nice if my phone switches to 3g when my screen is on for more than 30 secs instead of immediately.
[Android Apps and Games] vibranturk:
anyone tried with ics?
[Android Apps and Games] a user:
resign script 2.1.1 has this bug:

Exception in thread "main" java.util.zip.ZipException: duplicate entry: system/app/Toggle2G.apk
at java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:175)
at com.mb.resign.Resign.scanUpdate(Resign.java:157)
at com.mb.resign.Resign.main(Resign.java:382)

since 2.1.1 it fails with this error when toggle2g.apk is already in the rom.

edit: it fails even if toggle2g.apk is not in the rom. but in this case this crash happens near the end or at the end.

does anybody have v2.1.0 for me?

edit: now it worked. but i had to remove toggle2g.apk before cooking the rom. removing it from the zip file and then trying to resign fails with above error. though on previous version this never happened.
[Android Apps and Games] Mioze7Ae:
Does this work on CM6 anymore? This was my latest attempt: I resigned using the platform keys

java -jar signapk.jar build/target/product/security/platform.x509.pem build/target/product/security/platform.pk8 Toggle2G.apk-unsigned.apk Toggle2G-signed.apk

And I put it in /system/app. It doesn't show up after boot, so I tried to just "adb install" it and see if there are errors and I get this:

adb install Toggle2G-signed.apk
1123 KB/s (78259 bytes in 0.068s)
pkg: /data/local/tmp/Toggle2G-signed.apk
Failure [INSTALL_FAILED_OLDER_SDK]

and logcat says:

D/PackageParser( 2208): Scanning package: /data/app/vmdl70652.tmp
W/PackageParser( 2208): /data/app/vmdl70652.tmp (at Binary XML file line #12): Requires newer sdk version #9 (current version is #8)

Is there a froyo version?
[Android Apps and Games] TheMasterBaron:
Reports so far is that it does not and I don't have an ICS phone so I can't develop for it.

I changed how injection works so its not going to like that it's already in the ROM. I should be able to have injection ignore any version already in the ROM.

My mistake, I should be able to set it back to SDK 8 and have it work again on CM6.

Got a busy work week coming up, but I'll try to get these fixed soon.

Cheers,

MB
[Android Apps and Games] TheMasterBaron:
OK, Updated Toggle2G to be SDK v8 compatible and fixed ResignUpdate to properly override and ROM files that already has Toggle2G in it.

Cheers,

MB
[Android Apps and Games] dingolino:
Hi,

to make an update is it enough to install the

Toggle2G.apk-unsigned.apk?

or do I need to flash the

Toggle2G-Update.zip

from recovery?

Best regards,

dingolino
[Android Apps and Games] Mioze7Ae:
Seems to work on CM6 again, thanks!
[Android Apps and Games] a user:
@TheMasterBaron: a small donation on the way for your work and the very nice and kind support!

Thanks!
[Android Apps and Games] -Happy Feet-:
hi, can anyone give me an little Howto, how I install it correct..

is the version 2.1.2 the latest Version?

and the Values.xml must I copy the files to my sd card or in which folder?? I feel like a noob :mad:
[Android Apps and Games] a user:
extract ResignUpdateV2.1.2.zip somewhere into a directory on your drive.

put your roms zip you want to add toggle2g to also there

read the readme file there which gives you the following instructions:

execute either the batch file (windows) or the shell script (linux) given the as paramter the rom zip file.

after that you find another zip file with being your rom modified to work with toggle2g and also including it. done!

if you need more help pm me (and i can speak german ;) ).
[Android Apps and Games] californicated:
is there also a way installing it without need to flash the rom again?
[Android Apps and Games] a user:
not if the apk's and jar's need to be resigned which is the case on most roms.

and consider, if you change the signiture of tthe apks you also need to do a full wipe as it will cause trobule otherwise.

at least this is my experience.
[Android Apps and Games] totalcmdext:
I have tested and works fro me the following:

1. Signed the .apk with the instruction in the first post.

2. Result was the signed ROM build.

3. I take the Toggle2G.apk from the signed ROM

4. Flashed or copy to the phone ROM

5. Reboot

And the application is working perfectly!!!!
[Android Apps and Games] totalcmdext:
If screen is off for more that 10 minutes

Hello,

Is it possible to add the option in the screnn off to include also 1min because the min value is 2 min.

I believe that it will be better to have less time in order to toggle from 3g to 2g when screen is off.

Also i have observed that there is a delay in order to toggle between 2G to 3G sometimes the Mobile Network trying to tun ON and there isn't data connection for big period about 1-2 min
[Android Apps and Games] californicated:
So I have to extract the Toggle2G.apk from the .zip, copy it to the phone und install it like any other app?

Does it work together with ICS Domination Theme installed on my SGS2?
[Android Apps and Games] -Happy Feet-:
In wich Folder I must put the ROM... im absolutely confused..
[Android Apps and Games] blackhawk1:
toggle2g for xperia arc

Hi. This toggle2g/3g is a great idea.

I have been able to resigned and flashed ok this rom _ Arconium 5.5 ( stripped down stock rom for Xperia Arc) but unable to boot passed SE boot logo.

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

Could anyone please help out. Thank you.
[Android Apps and Games] ABBolle:
Just want to say a big "THANK YOU" for this APP!!!

It works perfekt with CM7.2 on Moto Defy (update.zip installed in CWM).
[Android Apps and Games] 4l3gU:
Great work i'm happy....

RevoHd v4-Vetumus1.7.2-N.E.A.K.
[Android Apps and Games] californicated:
I can't install the .apk :-(
[Android Apps and Games] -Happy Feet-:
when the display is Off, the Radio disconnect and no change to 2G
[Android Apps and Games] TheMasterBaron:
You may need to change what network to change to when switching to 2G. In toggle 2G's settings, there is a place to set the 2G network. You will need to experiment to see which one works for you.
[Android Apps and Games] TheMasterBaron:
Toggle2G comes pre-signed in the form of a flashable recovery zip called toggle2g-update.zip. You could simply used that if your ROM uses compatible certs. (Sounds like it did)
[Android Apps and Games] xheroxkefx:
Hello all,

Im currently on a custom rom for my SGS II ( Simple & Clean ) @ 2.3.6

Now the Toggle2G-Update.zip isn't working so i want to use ResignUpdate v2.1

But at point 4 i don't understand what i have to do.

Java is working, with CMD i mounted the place where the stuff is

( C:\ResignUpdate> )

But i dont know what to do next?
[Android Apps and Games] 4l3gU:
After you shuffle (trascinare in italian google translate sorry if is wrong) the yourom.zip over resignupdate.bat and wait the new zip file and the rom is ready to flash. If is right thanks me please.

Inviato dal mio GT-I9100 usando Tapatalk
[Android Apps and Games] malaccio:
ehi ti scrivo in italiano perché l'inglese lo capisco a fatica e non riuscirei a scriverequello che volevo chiederti :-)

io uso la MIUI sul defy..

con il metodo di flashare l apk sulla rom non mi funziona. (se ho capito bene si doveva provare a flashare da recovery lo zip di toggle2g signed da recovery vero?)

con il secondo (signare prima l'app) faccio tutto il procedimento e flasho la nuova rom ma tra le applicazioni installate non lo vedo.. vedo pero' il widget che posso mettere sulla home ma è statico e non posso farci nulla..

ho seguito queste istruzioni che ci sono nel txt di ResigneUpdate...

2. java should be in your path so if you type java from the command line it runs

3. from the cmd prompt change to the folder your reading this readme file from

4. Run ResignUpdate.bat or ResignUpdate.sh with the first paramter begin the rom file to process.

4a. For example: ResignUpdate.bat QND-MIUI-MULTI-XPART-1.9.16.zip

mi è uscita la MIUI signed con dentro toggle2g, fatto full wipe e flashato la ROM..

cosa potrei fare?

nella nuova rom che è uscita fuori l'app dovrebbe essere già signata? ho provato ad estrarre solo l'apk ed installarla come una normale app ma mi dice installazione non eseguita..

qualche consiglio?
[Android Apps and Games] darkytoothpaste:
I'm wondering if anyone can kindly help me. I'm doing something a little different here. I'm flashing a variant of cm6 (as far as i can tell) on a windows mobile phone (the link of the ROM can be found here). I managed to resign the ROM just fine, but i simply can't get the toggle icon to appear in my app drawer after flashing the ROM. I have also ensured that i have wiped clean all of the partitions before flashing. Does anyone have any idea what else i can try? Cheers!
[Android Apps and Games] 4l3gU:
Vai sul sito androidiani.com che ho spiegato tutto e' semplice se hai bisogno posta li ciao

Inviato dal mio GT-I9100 usando Tapatalk
[Android Apps and Games] Ok_Kaleidoscope5109:
this seems to not work properly with my Nexus S 9020a. Probably guessing its the phone.

It is running the latest CM7 nightly (post final), and even with the CM7 final it wasn't working. It does switch to 2G, but fails to switch back to 3G unless I do a *#*#INFO#*#* and select the band again.

Not sure if this is a 9020a issue only or 9020T is also affected.
[Android Apps and Games] 4l3gU:
Sorry guys but i have installed correctly this app but why after two minutes don't switch to 2g with screen off? What is wrong? And what is the exactly impostation?

v3rtr3ma v4.1- N.E.A.K
[Android Apps and Games] ViNNNtalik:
I have fixed strings.xml for values-ru (It was too difficult to understand almost all points of menu)

I hope it'll be useful.
[Android Apps and Games] torchedlh:
Get this error while trying to use the ResignUpdate:

C:\>Sign\ResignUpdate.bat VillainROM.zip

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

Toggle 2G ROM Resigner v2.1.2

ROM update zip not found: VillainROM.zip

Please help, thanks.
[Android Apps and Games] 4l3gU:
What are the right permission with root explorer?

v3rtr3ma v4.1- N.E.A.K
[Android Apps and Games] darkytoothpaste:
Hi, I would just like to post an update. I was previously using version 2.1.1 to sign my ROM and it didn't work. With version 2.1.2, I resign the entire ROM file, extracted the Toggle2G.apk, and replaced the apk from toggle-update.zip and used CWM to flash the file in and it works perfectly! No need to reflash the entire ROM file and 2.1.2 works beautifully.

Thanks MasterBaron for the CM6 fix!!
[Android Apps and Games] DrMole:
when i would convert my Rom i get this Error

Unable to access jarfile

please help
[Android Apps and Games] 4l3gU:
And now work.... Yeah! It's not compatible with the toggle data in jkay! But tomorrow, day test at work!

Galaxy s2-v3rtr3ma v4.1- N.E.A.K 1.3
[Android Apps and Games] torchedlh:
I tried what you just did and I still can't get the app to show up in my app drawer. Any other ideas short of reflashing the (signed) ROM?

I'm running CheckRom4.0 on a Galaxy S2.

Thanks
[Android Apps and Games] blady-jack:
Hi

Does toggle work on Galaxy Note correctly?
[Android Apps and Games] darkytoothpaste:
I understand that my problem is that my ROM was CM6 based and there was a bug in 2.1.1 that was unable to sign off CM6 ROMs correctly (apparently, it did not support an older version of the SDK). TheMasterBaron fixed it in 2.1.2 that allowed the older version of the SDK be used, which is why the Toggle2G.apk signed from 2.1.1 and 2.1.2 were different (I used fc to confirmed that they are indeed different).

In your case, I'm not sure if your ROM is CM6 based, though I severely doubt so if you are using a SGS2.