Post Reply

[App] [26.04.2011][v1.2] GingerBreak APK (root for GingerBread)

OP Chainfire

21st April 2011, 03:57 PM   |  #1  
Chainfire's Avatar
OP Senior Moderator / Senior Recognized Developer - Where is my shirt?
Thanks Meter: 51,695
 
9,243 posts
Join Date:Joined: Oct 2007
Donate to Me
More
Attached archive contains the modified sources for the exploit part of this APK. I will publish new versions only when it changes; the APK may be updated to a newer version, this does not necessarily mean the exploit has changed

Also, apologies for the few days delay in posting the source.
Last edited by Chainfire; 26th April 2011 at 03:48 PM.
The Following 80 Users Say Thank You to Chainfire For This Useful Post: [ View ]
21st April 2011, 03:57 PM   |  #2  
Chainfire's Avatar
OP Senior Moderator / Senior Recognized Developer - Where is my shirt?
Thanks Meter: 51,695
 
9,243 posts
Join Date:Joined: Oct 2007
Donate to Me
More
[App] [26.04.2011][v1.2] GingerBreak APK (root for GingerBread)
NOTICE: Gingerbreak is an exploit that has been fixed in many of the latest Android versions and releases. If it does not work, it does not work. I can't "fix" the exploit, you will have to wait for a new exploit to come out, or root a different way!

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
- Optional: Make a donation

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)

NO IT DOES NOT WORK ON THE GALAXY ACE (yet ?)

WORKS ON A RARE SGS2, BUT NOT ON MOST (seems to be only pre-release devices that are rootable this way)

ACER A500 / ICONIA Look here (click). Will eventually be integrated, I guess

Donate
Donate to Chainfire by PayPal: click this link
Donate to The Android Exploid Crew by PayPal: 7-4-3-C@web.de

Report!
Please report back if it does or doesn't work on specific devices. If it doesn't, don't forget to post your logcat as attachment, and mention your device details and GingerBreak version.

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

21.04.2011: v1.0
- First release of APK
- Slight mods to the exploit source to have it work better from APK
Attached Files
File Type: apk GingerBreak-v1.00.apk - [Click for QR Code] (294.0 KB, 296410 views)
File Type: apk GingerBreak-v1.10.apk - [Click for QR Code] (294.6 KB, 387544 views)
File Type: apk GingerBreak-v1.20.apk - [Click for QR Code] (295.2 KB, 2688093 views)
Last edited by orb3000; 26th August 2011 at 01:56 AM. Reason: tag :)
The Following 817 Users Say Thank You to Chainfire For This Useful Post: [ View ]
21st April 2011, 04:07 PM   |  #3  
supercurio's Avatar
Senior Recognized Developer
Flag Chambéry
Thanks Meter: 5,072
 
3,529 posts
Join Date:Joined: May 2010
Donate to Me
Genius tool!
Congrats to C-Skills to for the exploit of course.

PS: if you want it to work on Galaxy S II: extract in /app-cache instead of /data/local/tmp
Last edited by supercurio; 21st April 2011 at 04:13 PM.
The Following 7 Users Say Thank You to supercurio For This Useful Post: [ View ]
21st April 2011, 04:07 PM   |  #4  
Senior Member
Thanks Meter: 39
 
685 posts
Join Date:Joined: Oct 2010
Finally this has come out

Sent from my a Vibrant using the xda premium app
The Following 4 Users Say Thank You to ameedi600 For This Useful Post: [ View ]
21st April 2011, 04:08 PM   |  #5  
Senior Member
Thanks Meter: 39
 
685 posts
Join Date:Joined: Oct 2010
Will this work on any phone

Sent from my a Vibrant using the xda premium app
The Following 3 Users Say Thank You to ameedi600 For This Useful Post: [ View ]
21st April 2011, 04:11 PM   |  #6  
Chainfire's Avatar
OP Senior Moderator / Senior Recognized Developer - Where is my shirt?
Thanks Meter: 51,695
 
9,243 posts
Join Date:Joined: Oct 2007
Donate to Me
More
Quote:
Originally Posted by supercurio

Genius tool!

PS: if you want it to work on Galaxy S II: extract in /app-cache instead of /data/local/tmp

Will be looked at! (I'm sure it'll need more modifications for other devices as well, hehe)
The Following 7 Users Say Thank You to Chainfire For This Useful Post: [ View ]
21st April 2011, 04:34 PM   |  #7  
Robin2's Avatar
Senior Member
Thanks Meter: 132
 
581 posts
Join Date:Joined: Jun 2009
More
I get an error saying 'could not extract assets'. Is there a solution for this?

Running 2.3.3.

Sent from my GT-I9000 using XDA App
The Following 2 Users Say Thank You to Robin2 For This Useful Post: [ View ]
21st April 2011, 04:39 PM   |  #8  
Senior Member
Thanks Meter: 68
 
182 posts
Join Date:Joined: May 2010
I am trying to root using adb.

Can anybody tell how long will it sleep/wait after displaying
[*] vold: 1965 GOT start: 0x00014344 GOT end: 0x00014384

to complete the root
The Following 2 Users Say Thank You to jassired For This Useful Post: [ View ]
21st April 2011, 04:39 PM   |  #9  
Chainfire's Avatar
OP Senior Moderator / Senior Recognized Developer - Where is my shirt?
Thanks Meter: 51,695
 
9,243 posts
Join Date:Joined: Oct 2007
Donate to Me
More
(@robin2)

try:

adb shell mkdir /data/local/tmp
Last edited by Chainfire; 21st April 2011 at 04:42 PM.
The Following 3 Users Say Thank You to Chainfire For This Useful Post: [ View ]
21st April 2011, 04:41 PM   |  #10  
Borky_16's Avatar
Retired Recognized Developer
Flag Salzburg
Thanks Meter: 116
 
540 posts
Join Date:Joined: Jun 2010
More
will it work on Nexus S? Anyone tried yet?

The Following 3 Users Say Thank You to Borky_16 For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
gingerbreak
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Android Apps and Games by ThreadRank