• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root ........1 Click Root Optimus m (Gingerbreak)..............

blaxican25

Android Expert
Mar 23, 2011
1,520
730
Another planet Far Away
!!works on the lg optimus m 2.2.1 yay oneclick root for us!!

gingerbreak apk v1.20 GingerBreak-v1.20.apk
gingerbreak apk v1.10 GingerBreak-v1.10.apk
gingerbreak apk v1.00 GingerBreak-v1.00.apk

!!works on the lg optimus m yay oneclick root for us!!

About
The GingerBreak APK is a wrapper around the newly released GingerBreak exploit (credits to The Android Exploid Crew), which is meant to attain root access on GingerBread. This specific exploit may work on various Froyo and Honeycomb versions as well.

What the APK and exploit do is as follows:
- The APK puts the right files in the right place to run the exploit
- The APK runs the exploit
- The exploit attempts to attain root access
- If it succeeds, the exploit remounts /system as read-write and runs the installer script
- The installer script attempts to install the su binary and superuser APK, and reboots

Some important things to know:
- You must have USB debugging enabled on your device
- You need to have an SD card (formatted and) inserted - if it doesn't work, try formatting the SD card in your computer, or switching it with a different (or old, etc) SD card
- The APK must be installed to device, NOT SD card
- The exploit may take a while to run, but not more than 10 minutes, if it does, get me a logcat, and reboot the device. In rare occasions, even if the device does not reboot, you may still have root. So check that out after you manually pull battery after 15 minutes or so of being stuck.
- Always reboot between root attempts!
- While (temporary?) root access may be attained, due to locked bootloaders, efuses, S-ON, and whatnot this may still not work on your device. For temproot purposes, use the raw binary exploit (linked below), not this APK.
- The GingerBreak exploit should not be used to attain temproot and continue using the device. It fscks vold, you do not want to be running like that. You want to reboot! So if the root doesn't stick, you (still) have a problem.

Installation
- Optional: Press the Thanks button below this post
- Make sure USB debugging is enabled
- Make sure you have an SD card (formatted and) inserted
- Get the APK on the phone somehow, and install it
- Open the APK, press the root button
- Wait a few minutes. If there are no problems, the device will reboot (note that the reboot itself can take like 10 minutes due to cache wipe)
- Make sure the Superuser app is install and working
- Optional: Install BusyBox from Market (I personally prefer the stericsson installer)
- Optional: Uninstall GingerBreak, you don't need it on your phone anymore


WARNING: Apparently on some devices the root exploit causes the SD card (internal or external) to be formatted. Also, if it gets stuck but you do see the card mounting/unmounting, try formatting your SD card yourself and try again (or use a different SD card) - often this works (a fix for both issues is being looked at)

Credits
- I made the APK and did some slight modding to the exploit code to install from an APK
- The exploit ("GingerBreak") itself is made by The Android Exploid Crew. Original code can be found here: http://c-skills.blogspot.com/2011/04...ngerbreak.html

Manual rooting
From v1.1 it is no longer possible to manually root the device over an ADB connection using the files from this APK. Please use the original binaries from the c-skills website to do this. There are several guides posted here on XDA about how to do this manually, some are mentioned/linked-to in the first few pages of this thread.

Note
GingerBreak is not specific to any device, but there is code in there that may not work on device X or Y. The exploit is generic, but that does not mean one size fits all, nor does it mean that there will be no firmwares out there that fix this exploit. A special version may need to be compiled for your device, ask your favorite hacker from your specific device's forum. This APK is meant to make the process easier, but also adds dependancies so that it may not work on your device.

AGAIN, THIS DOES NOT WORK ON S-ON DEVICES !

Changelog

26.04.2011: v1.2
- Removed some code that may break operation while the code itself isn't needed
- Added UnRoot option
- The APK now logs exploit output semi-live

22.04.2011: v1.1
- Modded exploit code to not need /data/local/tmp - this should fix the problem extracting assets as well as be more compatible with various devices (in theory). In case the APK notices that this cannot work, it will warn you about this.
- Added some warnings and errors to the APK

flash custom recovery Download the recovery image and flash_image extract it and copy it to your sdcard recovery-RA-optm-2.2.1-GNM.img

update 10/3/2011
make sure the recovery file is named just like this on your sd card recovery-RA-optm-2.2.1-GNM
with out the .img ok

download Android Terminal Emulator from market
open and type su then accept superuser request you should get this #

2yzekb4.png


Then type the following command hit enter and your done

flash_image recovery /sdcard/recovery-RA-optm-2.2.1-GNM.img

Now reboot phone,

Now steps to flash a rom First place the rom of your choice on your sd card. when in recovery left button on phone is to select, back button to go back and volume for up and down.

1.turn off phone.
2.hold home & volume down buttons power on phone hold tell in recovery.
3.wipe/wipe all userdata
4.flash zip menu/click toggle signature verify to disable verification
5.now.flash zip from sdcard/scroll to zip of rom and select it when done go back to main recovery screen and choose reboot system

thanks joneidy for the help:)

.....................
 
You have to be rooted before you can use cm7 so...you wouldn't need this.

lol,i was thinking the same thing..and after all the hell we all went through to root our 2.2.1 phones,i have a feeling this wont work for them..but i could be wrong..it would be nice to have a ONE CLICK ROOT option for the 2.2.1's though.
 
Upvote 0
The GingerBreak WORKS!!!! it rooted my stock optimus m 2.2.1 in like 30 secs. since im no good at rooting my phone the hard/long way, i waited for someone to make a ONE-CLICK root kit for the optimus m! rooted my optimus m with just ONE-Click of the GingerBreak at 1:41am on 5/22/11

Stock 2.2.1 optimus rooted with just a CLICK!!!
it works, trust me!

THANK U SOOOOO F**K**G much for this dude!! thank you thank you
 
Upvote 0
OK I unbricked it, if that's the term - thanks to this post: [Resolved] [HOW TO] Unbrick LG Optimus One P500 from fastboot mode started udc_start().. - xda-developers. Now the phone has stock rom. But what did I do wrong? The only step where I got an error was when it could not find the install-recovery.sh. I found from some other place that it's not there in all roms, so I thought it was OK. Well, I am going to root it again of course and get a custom rom, but I need some help here to understand what could have gone wrong. Thanks.
 
Upvote 0
this part of the forums is for lg optimus m and the recovery was made for the optimus m
you can

If the phone is frozen, hard reset it through buttons

1. Turn the power off. If the phone is frozen, pull the battery out and inplace it back again
2. Hold the Home and Volume Down button
3. Press and hold the Power button until the phone turns on
4. Follow the on-screen instructions to hard reset the phone handset

heres recovery for your model
http://androidforums.com/getitnowmarketing/221388-custom-recovery-optimus-one-p500-thunderg.html
 
  • Like
Reactions: kazhugu
Upvote 0
I finally got it to work - thanks to blaxican25. Two mistakes - used the wrong recovery and tried to use the wrong rom - the sense again was done for the optimus M and it didn't work for me, but thankfully I had the correct recovery at that time, so I just downloaded the correct rom for my phone (went with Prime) and everything worked out fine. I am a happy man :)
 
Upvote 0
Ok So I got to the point where i'm installing joneidy's custom recovery when I got to the step of

mv /system/etc/install-recovery.sh /system/etc/install-recovery.sh.bak

it gave me error message

failed on '/system/etc/install-recovery.sh' - No such file or directory

i did everything exactly... what should i do here?

*edit*

Ok I got past that point. But when I got to the last line:

flash_image recovery /sdcard/recovery-2.2.1-joneidy.img

it gave me the following error message:

mtd: not writing bad block at 0x00120000
error closing recovery: No space left on device

I have 35 megs available on the device the img file is about 5 megs. I've already restarted various times. what advice can i get.

Thanks in advance.
 
  • Like
Reactions: elf83
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones