yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] the gladiator:
Currently I have LeanDroid 13.2, but I also installed Dronix 0.4 and A.I.B. v0.2 Cataclysm; all of them with the same issue.

I do know what ADB is (at least I hope): I have already installed android-sdk-windows on my PC. I used it once sometime ago but...under a close guidance.

part II: I managed for an ADB install, here is the output I copied:

C:\android-sdk-windows\platform-tools>adb install C:\android-sdk-windows\platfor

m-tools\Toggle2G.apk

685 KB/s (42149 bytes in 0.060s)

pkg: /data/local/tmp/Toggle2G.apk

Failure [INSTALL_FAILED_SHARED_USER_INCOMPATIBLE]
[Android Apps and Games] TheMasterBaron:
Looks like LeanDroid is not using the same platform certs that CM7 uses and so Toggle 2G will not work. You can ask them to sign Toggle 2G for you, our just ask them to include it in the ROM.
[Android Apps and Games] the gladiator:
Thanks a lot, I'll ask and I'll close the loop reporting back here.

PS Just in case: I assume is something I cannot do alone, correct ?
[Android Apps and Games] Joans:
Trying this out on my Galaxy S running CM7. It switches to 2G when the screen is off, but doesn't seem to switch back when I turn it on, any ideas? I don't have the manual 3G option ticked, I'm not on wifi and my battery is almost full.

Edit - it's the same is I install the notification plugin and use the manual mode. I get the notification telling me I'm in 2G mode, but clicking the notification does nothing. I have to go through the Wireless & networks settings to disable 2G. I'm assuming this is related to the 2G/3G power widget toggle issues in CM? On the plus side, it doesn't crash my phone like that does.
[Android Apps and Games] jenizaro:
I'm using Virtuous Unity ROM 1.29.0 (Based on Android 2.3.3) for DHD and works fine, you can add to working ROMs list :) Notifications don't work, there is nothing in status bar.

Thanks for your great job :)
[Android Apps and Games] Joans:
I did a clean reinstall of the latest nightly and now everything is working as expected. Great app.
[Android Apps and Games] ellesshoo:
Just a warning to Nexus S users... Do NOT try to use this app until there is an update specifically stating it's ok. I used to use this on my N1 just fine but it will F your NS up something fierce. I had all sorts of connection issues afterward that even full wipes, new radios, etc couldn't resolve. I almost threw in the towel but started to getting the thinking that my SIM had gotten FUBAR. I'm finally back to normal. Whew.
[Android Apps and Games] the gladiator:
Leandroid author doesn't seem to be responsive to my request to sign the app with his platform certificate. Is there another way to install Toggle2G or the only alternative is to change the ROM ?
[Android Apps and Games] igor.tonky:
NS user here. app works perfectly, no need to scare people away.

the problem you encountered, i guess, given that your description is a bit vague, was setting 2g or 3g toggle to anything, except "2g only" and "3g only".

this results in phone app f/c loop after reboot. same goes for galaxy s series.

it's a known issue with a workaround(comment #69): http://code.google.com/p/cyanogenmo...on Model Network Owner Summary Stars Priority

summary: for Nexus S use "gsm only" for 2g, "wcdma only" for 3g and you'll be fine.
[Android Apps and Games] ellesshoo:
Thanks for taking the time to explain. I really wasn't trying to scare anyone away. I just had a terrible experience with this on my NS (loved it on my N1) and wanted to warn others with an NS do they could avoid the same headache. Honest, with out me seeing your post I'm not sure I would ever have seen that page you linked. It would be nice if the OP/dev could include this warning and fix in the first post.

One question though, by selecting "wcdma only", would you then not be able to drop back down to 2g automatically when not in range of umts/hsdpa? Going to the testing screen on the NS shows "gsm/cdma auto prl" or something like that as the default network mode. Once one uses this toggle how would you restore the default behavior of 3g/2g auto?
[Android Apps and Games] antoa:
Hi everyone, I try to install this app on a Miui rom, and for now I can't.

I think it's a signature problem, is this possible? How can i fix it?

I tried to install it via recovery all seams to go good, but when phone restarts the app isn't installed.

Can anyone help me?

Thanks.

Enviado desde mi GT-I9000 usando XDA Premium App
[Android Apps and Games] the gladiator:
You're not alone, I share exactly your same situation ! Let's hope in a fix from Master Baron (the OP).

Of course...if someone else is able to help is more than welcome !!!
[Android Apps and Games] antoa:
I have news, in MIUI the problem is the framework, it´s not "activated" to use

this app, but they are trying to find a fix, so we have to wait, or someone

have an idea?
[Android Apps and Games] TheMasterBaron:
There isn't much I can do. The security features of Android prevent apps from mucking with the internals of the ROM unless the app is signed using the ROM's signed certs. This is why there are so few choices from automatic 2g toggling. Unless the MIUI ROM publish there certs so I can sign toggle 2g using them, they are going to have to do it for you.
[Android Apps and Games] torchedlh:
which permissions do you have to set? also, i assume you used the signed version, is that correct? thanks.
[Android Apps and Games] the gladiator:
I confirm the procedure works with Gingerman 6.5.1 on Ideos.

Permission to be set must be rw-r--r-- with RootExplorer (that means user=read,write group=read others=read)

Yes, you must use the signed version (taken inside the zip file)

I don't want to be pessimistic but I see tough to use this nice app on ROMs other than CM derived ROMs
[Android Apps and Games] antoa:
Thanks for your time and your help, MIUI people told me that they are working in a fix, so the only thing I can do is wait.

Enviado desde mi GT-I9000 usando Tapatalk
[Android Apps and Games] sylaan:
Right now when I wake up the phone and 2G is active, it will drop the radio while it switches to 3G. This is slightly annoying when you just want to check something real quick.

It would be nice to have a setting which tells the app to wait a certain amount of time after wake up before switching to 3G. If the phone goes to sleep before the timeout then it should just stay on 2G.

Any chance of that ?
[Android Apps and Games] jjwatmyself:
I have been thinking about this also, except, I was thinking that up-shifting to a faster internet speed should be demand based, i.e if data throughput exceeds a threshold then move to automatic (prefers 3G), else downshift to 2G. Obviously if WiFi is present, sticking in 2g is preferred, which I believe is already in place. 2G is capable of 153 Kb/s to 236 Kb/sec according to http://en.wikipedia.org/wiki/2G

If I run a speedtest on AT&T 2G I get 0.13 Mbps down (0.33 x 1024 = 133 Kbps) and 0.07 Mbps up. So perhaps shifting to automatic when data download throughput is greater than 75 Kbps for a sustained 10 second (configurable) period and moving down to 2G when data download throughput is less than 75 kbps for a sustained 10 second (configurable) period. The reason we choose a number that is lower than the 2G max is that this threshold may never be exceeded thus forcing teh phone to sit with a 2G connection. Alternatively, a variable based formula could take the signal strength into consideration. The lower the signal, the lower the throughput and threshold for moving to automatic. Just a thought. :) If while set to automatic, and if a 2G signal is all that is available, it might be preferable to leave it set to automatic. Otherwise, if set to 2G, the phone would try change to automatic, and then change back down to 2G, with the above logic. The point is that there is no reason to change to 2G if while set to automatic, the phone is already negotiated to a 2G connection.
[Android Apps and Games] nenadr:
I can confirm that Toggle 2G/3G (signed version from update.zip) and notifications and widget are working on following rooted custom ROMs:

Cool-Sensation 6a (Android 2.3.3 gingerbread and HTC Sense 3.0)

Virtuous-Unity 1.31 (Android 2.3.3 gingerbread and HTC Sense 3.0)

on HTC Desire (Bravo).

Installation method: pull .apk from update.zip and install it using Root Explorer or simmilar program to /system/app and change ownership to user: root, group: root and change file permissions to RW-R--R-- ! Install notification plugin and widget .apk normaly.

REBOOT

Cheers !
[Android Apps and Games] Mr.Zocker:
It also works on:

LG P990 Optimus Speed / 2X (MoDaCo Fr19 / Android 2.2.2 )

Flashed by CMW
[Android Apps and Games] fleischbanane:
Does not work on cm7 #160 for nexus s
[Android Apps and Games] Pappmann:
where can i find the widget.apk ???
[Android Apps and Games] uqo11:
Here
[Android Apps and Games] lotherius:
Quick question....

I've tried signing the APK with the same key as I signed my Update zip with for the entire ROM... still didn't work. Sooo.... is it a question of re-signing something else? Or is it not possible to re-sign the proper bits of a vendor ROM? Or, will it just never work on a Samsung ROM no matter how much re-signing I do?
[Android Apps and Games] sweetpiggy:
Amazing job man!

Work on nexus S SUPEROSR ROM + Netarchy 1.3.7 cfs kernel
[Android Apps and Games] chareos12:
TheMasterBaron, thanks. Would you think asking bmarko82 (forums.miuiandroid.com) who is the galaxy s II mantainer, could give to you this cert you need to make Toggle2G working on MIUI?

Antoa, about MIUI team answer, did hey gave you some hints about how they intend to fix it, and possibly an eta ?

Toggle2G is really necessary to me, as it makes the difference between having phone signal or not in my house.
[Android Apps and Games] sugar 7:
whaow !

work with the galaxy S ??

Thanks !
[Android Apps and Games] baliriot:
works on my O2X cm7 nightlies...:)
[Android Apps and Games] kecinzer:
Working with Nexus S and Oxygen 2.2.1.
[Android Apps and Games] ph3nom:
anyone tested this for LeeDroid GB 3.3.3 ROM?
[Android Apps and Games] DavisNT:
Very good app!

It works on my LG P500 with latest Cyanogenmod. :)

I tried to install using Amon RA recovery (turned off signature verisication and flashed the update) it even notified me that install is completed (displayed all installer messages including "Toggle 2G Install Complete.") but app were not installed. I installed it manually by rebooting into recovery and with ADB:

1. mounting /system

2. copying system\app\Toggle2G.apk-signed.apk (from Toggle2G-Update.zip) to /system/app/Toggle2G.apk

3. changing mode to 644 for newly copied file

4. unmounting /system

I hope this will help somebody with the same problem :)
[Android Apps and Games] happytobeunhinged:
so anyone know if this works on any galaxy s / i9000 roms? I am reluctant to try as every time I have tried similar ( while on cyanogen ) I have to reflash to fix...
[Android Apps and Games] Hrithan2020:
This works on CM7 on SGS. I think , it won't work for any other ROMs :(, but haven't tried all ROM's with this , so can't say for sure.
[Android Apps and Games] happytobeunhinged:
So installed on my i9000 with cyanogen nightly's & platypus neo17r8 kernel and while its not perfect it does mostly work :) which is the first time I have managed to get anything similar to this stable.

Will test for a few more days and report back.
[Android Apps and Games] superlimau:
doesnt work with xperia arc bootloader unlock 2.3.3 .368.

-----------------------------------------------------------------------------

D:\bootloader unlock\android-sdk-windows\platform-tools>adb install Toggle2G.apk

-signed.apk

1714 KB/s (42149 bytes in 0.024s)

pkg: /data/local/tmp/Toggle2G.apk-signed.apk

Failure [INSTALL_FAILED_SHARED_USER_INCOMPATIBLE]

-----------------------------------------------------------------------------

any other way to make it work on unlock bootloader and rooted rom?

:confused:
[Android Apps and Games] Rogoshin:
Plug in

I want to use the plug in, but I does not seam to work for me. I have activated the app, but where am i suppose to make the switch back to 3g.

I tried it with the widget, but it just got stuck on no data connection.
[Android Apps and Games] thejaycan:
I have a Motorola XT720 running Cyanogen 6.3 (thanks to the awesome devs in the XDA forum - I'm looking at you Mioze7Ae). :)

I just installed the Toggle 2G/3G app using the .zip update. And the first time around it completely disconnected all data on my phone (even after multiple reboots). Not really sure what happened, but I removed the .apk and then tried the .zip install again and now it's working fine.

Thanks for the awesome app MasterBaron.
[Android Apps and Games] engfantom:
hi man,

i have galaxy s and cm7 and tried zip file and i set it 2 minutes? its work time and time not ???? but i have notice bad bug for me if i lock and unlock before 2 minutes that i set .. it disable my data ??? i dont know why is there a solutions??
[Android Apps and Games] TheMasterBaron:
ADVANCED USERS ONLY!

MIUI and others (I hope) using new resignRom windows script! I've made a .bat file to attempt to convert any rooted existing ROM to use Toggle2G. It does so by resigning the entire system/app and system/framework apks then installing Toggle2G. You will need knowledge of the windows command line, and have both java and the android-sdk-windows installed and working. Get the resignRom.zip below and unzip it so the files are in the android-sdk-windows/platform-tools/resignRom folder.

Please no newbies asking questions at this time, I don't have time to explain in detail right now and would like some feedback from experienced users on the success of this.

link to the resignRom.zip is in the OP!

Cheers and good luck!

---------- Post added at 08:59 PM ---------- Previous post was at 08:41 PM ----------

This is a new one. Is it actually un-checking the data enabled feature, or is your phone not connecting to 2g or 3g?

It should do it when you turn your phone on, or if you install the plugin, a 2G icon will be displayed in the notification area that you can click on to return to 3g

If your up for it, try the new resignRom package that has a .bat file in it that resigns your rom and installs Toggle2G
[Android Apps and Games] engfantom:
Originally Posted by engfantom

hi man,

i have galaxy s and cm7 and tried zip file and i set it 2 minutes? its work time and time not ???? but i have notice bad bug for me if i lock and unlock before 2 minutes that i set .. it disable my data ??? i dont know why is there a solutions??

This is a new one. Is it actually un-checking the data enabled feature, or is your phone not connecting to 2g or 3g?

....

no i am already connected to 3g /3g and the check already exist ..

seems me only suffer that

???
[Android Apps and Games] sweetpiggy:
no luck for me :p

on brainmaster's MIUI resignrom.bat make only bootloop :(

fix permission dont solve...

only factory reset for me :(

but....

very very thanks Baron for your hard work!
[Android Apps and Games] TheMasterBaron:
Did the phone boot-up with Toggle2g still installed after a factory reset? Or, did you have to reflash the ROM? Toggle 2G should survive the factory reset.

Cheers,

John
[Android Apps and Games] sweetpiggy:
sorry :(

i restored nandroidbackup of previous rom :(

now i'm setting up new installation of brainmaster's MIUI, restore my apps,, make a nandroid, and retry toggle 2g installation....

a soon as i can, report to you ;)
[Android Apps and Games] sweetpiggy:
UPDATE

Good News for MIUI Users :)

fix permission dont solve bootloop...

but factory reset dont cancel toggle 2g installation :)

so..... flash your preferred MIUI, use resign-rom.bat, have a bootloop (don't cry you are a man!), factory reset, use your MIUI whit toggle 2g app :)

p.s. i make some tests: toggle 2g is working correct? MIUI rom have some issue after this trick? i dont know now.... but tomorrow i can answer:)

thanks masterbaron, when you need, i'm here ;)

Edit: ooooooooooooooops!!!!!

little issue: no keyboard :) . if i tap on setting/personal/keyboard only FC :( no way to use my Nexus :(

tried fix permission from recovery without luck...

now i'm try new factory reset....

EDIT 2

no way.... factory reset or fix permission dont give me back my keyboard (her relative setting :()

master if you are here.... i have some other minuts for testing.... have to restore my nandroid :(

root explorer too FC... :(

for now go back to my nandroid....

i hope can help you to salve this issue.
[Android Apps and Games] LBN1:
Works on a My Touch 4g running CM Nexus Gingerbread rom 1.3.1, which is an AOSP rom.

Battery life seems similar to when running an app like Juice Defender, Battery 2x, etc., but this may solve the occasional problem that I have of not getting an MMS immediately when data is off with one of those other apps.

So, thanks for the developing this App!

BTW, there does not seem to be a way to uninstall the app? (other than restoring a prior image?)

EDIT: Like others reported, if it is set to Auto Manage 3g, then when answering a call, screen comes on; it disconnects network to reconnect to 3G = dropped call. Needs to seamlessly upgrade from 2g to 3g from screen off without a full disconnection, though this may be an inherent Android issue. I've gone back to a data off when screen off app, because those don't drop calls. Still, good effort by the developer.
[Android Apps and Games] #G#:
For Motorola Droid PRO stock latest 3.8 rom

I have succeded but after a mistake I made.

This modified batch worked resigning apps and pushing new system

READ THROUGH any message echoed and do the tests

echo off

echo resign-rom v1.0.0

java -version

if errorlevel 1 goto :javaError

..\adb shell stop

if errorlevel 1 goto :adbError

pause PLEASE BACKUP YOUR PHONE FIRST!

pause Make sure your phone is connected

#goto sign

echo Pulling System....

#rmdir SystemApp /s /q

mkdir SystemApp

..\adb pull /system/app SystemApp

#rmdir SystemFramework /s /q

mkdir SystemFramework

..\adb pull /system/framework SystemFramework

#:sign

echo Signing Apps....

cd SystemApp

for /R %%x IN (*.apk) DO (call :signjar "%%x")

cd ..\SystemFramework

for /R %%x in (*.apk) do (call :signjar "%%x")

cd ..

echo push system?

echo echo continue only if backup has been done. Next step is signing all downloaded system apks. If something goes wrong power on keeping R and M pressed, then press @ and refactory

pause

echo before you need to get remounting options done!!!

echo Pushing System....

..\adb remount

if you read read only then wait. Open another dos box, and test adb remount from the sdk dir AFTER having run SuperoneClick again rooting the phone again

pause

..\adb push SystemApp /system/app

..\adb push SystemFramework /system/framework

rem ..\adb shell su chmod -R 777 /system

rem rmdir /S /Q SystemApp

rem rmdir /S /Q SystemFramework

echo Installing Toggle2g....

..\adb push Toggle2G.apk /system/app

echo Wiping Dalvik Cache....

..\adb shell rm -rf /system/sd/dalvik-cache

echo DID YOU GET AN ERROR? I GUESS SO ON A DROID PRO

echo the command must be as follows, press to continue or check the batch before

pause

..\adb shell mount -o rw /dev/block/userdata /mnt/

..\adb shell rm -r /data/dalvik-cache/*

echo if you are getting any problem with the above you might have to factory reset the droid pro

echo do so like this If something goes wrong power on keeping R and M pressed, then press @ and refactory

echo Reboot!

pause

echo Rebooting!!

..\adb reboot

echo RUN FIX PERMISSIONS IF NEEDED!

echo or...as a last resort, do a factory reset.

echo on

goto :eof

:signjar

java -jar ../SignApk.jar ../security/platform.x509.pem ../security/platform.pk8 %1 "%~1-signed.apk"

del %1

ren "%~1-signed.apk" %~nx1

goto :eof

:javaError

echo java not found

goto :eof

:adbError

echo adb not found at ..\adb

goto :eof
[Android Apps and Games] hausmanis:
i like it thx
[Android Apps and Games] superlimau:
I tried, bootloop, fix permission didn't fix the problem. Data/factory reset still bootloop.

Restoring from backup now.

:(
[Android Apps and Games] kitecarl:
Just did the above only with some bash commands (on a Macbook Pro) on a fresh install of the latest Miui (1.9.16). Everything went fine, and my settings/apps restored from Miui backup without any hitches either. I'll give Toggle2G a full go tomorrow when I'm away from my house at work where I get poor 3g connectivity, and let you know how things go!
[Android Apps and Games] chareos12:
Hi,

would you make a short list for OSX users, please ?

Thanks a lot
[Android Apps and Games] kitecarl:
Sure, will be more than happy to when time permits. And to update you all, Toggle 2G worked great yesterday. Took a long time to switch from G back to H (using the manual notification pulldown), but that could possibly be attributed to my 3G provider and the area I was in.

Great discovery here TheMasterBaron. I'll try to type up OSX / Linux instructions as soon as possible, probably Thursday evening at this point. Why does life get in the way of playing around with my phone?!? Such a downer.
[Android Apps and Games] chareos12:
PS: doing the resign thing on a ROM zip file (pre-flash) would be possible ?

It could avoid a bunch of problems per-devices-vs-adb

Then one would CWM flash a rom *already* resigned... maybe with even the Toggle2G injected... ?

1) Download any ROM

2) Download latest theMasterBaron "package" (Toggle2G app + ROM zip resigner)

3) launch this ipothetical ROM zip resigner (ideally available for Win, OSX, Linux) and have the flashable ROM zip file whole contents resigned and Toggle2G applied in

4) just flash the resulting ROM zip file (which is all set, and properly installs Toggle2G too)

Sounds nice/possible ? Someone able to do this ?
[Android Apps and Games] kitecarl:
Sounds good to be in theory - unfortunately can't comment on whether or not this is possible or not.

The great thing about Miui, though, is the built-in Backup utility couldn't be simpler to restore all personalized settings, apps, contacts, phone logs, sms, etc all in one place. So my advice would be to simply follow the already posted instructions (still need to write up the manual steps I took on my Mac - hopefully this weekend!) just before flashing your next Miui rom. Don't know about the average XDA poster, but I'm wiping and re-flashing the latest and greatest Miui on a weekly basis, so I'm simply going to make the re-certification steps posted by TheMasterBaron a part of my weekly "build" process. Couldn't be happier with Toggle 2G on my Miui! I'm having 15 - 20 % more battery left at the end of my workday now with Toggle 2G installed so thumbs up!
[Android Apps and Games] chareos12:
Somewhat-tech question about this:

is this flash/adb push/ adb pull stressful for the internal memory ?

If it's that so, perhaps my idea (one single flash, after everything has been done on PC) is more healthy than the weekly basis rom flash+adb pull&resign&push storm.

I yet have to try the MIUI backup facility, yet my idea could perhaps be appliable to roms other than MIUI (with no fancy backup facilities) too...

Meanwhile someone figures if it's worthy and how to do this, I'll TOTALLY take your method, one you have some spare time to write it down :-)
[Android Apps and Games] TheMasterBaron:
Thanks kitcarl for the walk through! Be sure to click the thanks button if you find this useful!
[Android Apps and Games] mcdevtingz:
Works on the froyomod on milestone.
[Android Apps and Games] TheMasterBaron:
This is a great idea! I will give it a whirl and upload it if it's successful. Though will need to rely on others to make OSX/Linux versions.
[Android Apps and Games] mcdevtingz:
actually its is not 100% and i need help as this app is way better than juicedefender.

Sometimes when i wake the phone from sleep, it goes from :

g

to

H/3G

But then the data turns off and i cant get it back on without a reboot or sometimes leaving it?!

Please help!