1. Download our Official Android App: Forums for Android!

Root Has anyone tried to root with gingerbreak

Discussion in 'Android Devices' started by blaxican25, Jun 16, 2011.

  1. blaxican25

    blaxican25 Android Expert
    Thread Starter
    Rank:
    None
    Points:
    213
    Posts:
    1,520
    Joined:
    Mar 23, 2011

    Mar 23, 2011
    1,520
    730
    213
    Another planet Far Away
    gingerbreak apk v1.20 GingerBreak-v1.20.apk



    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
     

    Advertisement

    ogre15 and theSuda like this.
  2. Shabbypenguin

    Shabbypenguin Android Expert
    Rank:
    None
    Points:
    623
    Posts:
    5,385
    Joined:
    Mar 28, 2011

    Mar 28, 2011
    5,385
    5,071
    623
    Male
  3. blaxican25

    blaxican25 Android Expert
    Thread Starter
    Rank:
    None
    Points:
    213
    Posts:
    1,520
    Joined:
    Mar 23, 2011

    Mar 23, 2011
    1,520
    730
    213
    Another planet Far Away
    you guys already tried it.
     
  4. Shabbypenguin

    Shabbypenguin Android Expert
    Rank:
    None
    Points:
    623
    Posts:
    5,385
    Joined:
    Mar 28, 2011

    Mar 28, 2011
    5,385
    5,071
    623
    Male
    i dont remember.. the exploit may work but by default the phone blocks superuser.apk from being installed... so once it uses the exploit it cant do anything...
     
  5. ciper

    ciper Android Enthusiast
    Rank:
    None
    Points:
    53
    Posts:
    368
    Joined:
    Mar 31, 2011

    Mar 31, 2011
    368
    83
    53
    Shabbypenguin is right. You can get temporary root using some of the exploits but you cant install the regular superuser app and the root is lost on reboot.

    The reason our superuser app is working is because it was renamed internally to bypass the phone blocking its specific name
     
  6. isujoy

    isujoy Member
    Rank:
    None
    Points:
    16
    Posts:
    54
    Joined:
    Feb 23, 2011

    Feb 23, 2011
    54
    9
    16
    Computer Consultant
    Boynton Beach, Florida
    So with the new rom since we are going to have the regular SU that it can be updated is this going to be possible?
     
  7. k0nane

    k0nane Android Expert
    Rank:
    None
    Points:
    163
    Posts:
    803
    Joined:
    Apr 8, 2011

    Apr 8, 2011
    803
    779
    163
    Male
    I do stuff, with things
    127.0.0.1
    There is no need for Gingerbreak with a custom ROM, because it will be pre-rooted... as ROMs always are. The standard Superuser and accompanying su binary will be used. When it is time for an su binary, an update to the ROM/kernel will be pushed.
     
    isujoy likes this.
  8. theSuda

    theSuda Newbie
    Rank:
    None
    Points:
    36
    Posts:
    19
    Joined:
    Jan 24, 2011

    Jan 24, 2011
    19
    1
    36
    Worked for me. Twice. Cheers.
     
  9. lotuxz

    lotuxz Lurker
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Oct 22, 2011

    Oct 22, 2011
    2
    0
    5
    not work on xperia play
     

Share This Page

Loading...