[Root][4.4.2 ND7]GhettoRoot (Towelroot port) v0.3.2

Search This thread

JMSlate32

New member
Dec 31, 2010
1
1
This worked for me:
Download GhettoRoot - All-In-One from HERE
Edit GhettoRoot.bat, delete everything and paste the following:
@echo off

echo Welcome to GhettoRoot for the Samsung Galaxy Note 2 - 4.4.2 ND7
echo Please confirm you have turned on USB debugging and authorized your device.
taskkill /im "adb.exe" /f >nul 2>&1
echo.
echo - Press any key to continue -
echo.
pause

adb devices
echo.
echo - Press any key to continue if your device is listed above-
echo.
pause

echo The rooting process is about to begin. Please do not interrupt the process once it has started.
echo.
echo Removing old root files.
adb shell "rm -f /data/local/tmp/cube-towel; rm -rf /data/local/tmp/META-INF; rm -rf /data/local/tmp/SuperSU; rm -f /data/local/tmp/*SuperSU*.zip; rm -f /data/local/tmp/busybox; rm -f /data/local/tmp/foo"
adb shell ls -l /data/local/tmp
echo.
echo Pushing necessary files to your phone.
adb push libs/armeabi/ghettoroot /data/local/tmp/ghettoroot
adb push data/local/tmp /data/local/tmp
echo.
echo Starting root exploit.
adb push libs/armeabi/ghettoroot /data/local/tmp/ghettoroot & adb shell "cd data/local/tmp; chmod 0755 ghettoroot; ./ghettoroot %*"
echo.
taskkill /im "adb.exe" /f >nul 2>&1
echo Your phone should now be rooted. Press any key to exit.
pause

Save
Right click and run as admin.

The problem I kept running into was adb running. I added taskkill to the .bat file and also added "adb devices" so you can see if your phone is being detected. SuperSU did not load but I just downloaded it from the Play store. Good luck.
 
  • Like
Reactions: manbat

walkman4321

New member
Feb 26, 2018
2
0
I am trying to toot lenovo P70-A with kernal version :Linux version : 3.10.48
But It hangs "search goodnum 907:loop waiting for Other thread ".
Help me why this happen
 

b00.f0087

Senior Member
Aug 17, 2013
52
9
Los Angeles
Anyway, here's my workaround that finally got me rooted:
1) Start Command Prompt
2) Run ghettoroot_v3.2 INSTALL script
3) Get your device to authorize
4) Once it does, hit Ctrl-C and terminate the batch job. You should go back to the command prompt.
5) Run GhettoRoot All-in-One. Your device will still be authorized! Everything should work.

I don't know why I had to go all this but I would assume that, once you authorize the device, you lose it when GhettoRoot closes and adb stops. But, if you run it within a command prompt so it doesn't automatically exit, the authorization obviously stays active until you close the command session.

Anyway, if you get stuck like I did, try it and see if it works for you! The All-in-One definitely worked for me.[/QUOTE]

This is what worked for me thank you finally after 2 days of trying i was finally rooted.
After step 4 i ran ghetto all in one with other cmd window open still and it went threw the process and rebooted phone. i had to download SuperSu from playstore. It asked me to update binary and to reboot phone after it was completed.
 
  • Like
Reactions: Kemdy

Mejud

Senior Member
Apr 21, 2012
52
3
My Note 4 died the other day (prolly buying a used one soon, I love the removable battery concept) Anyhow, dug out the old reliable rooted Note 2. The thing as at 4.3, and even Pandora wont run unless you're at 5. Unfroze everything, but it still won't take an OTA to 4.4.2...I'm not sure there's any method of upgrading the Android version at this point--I might try factory reset after I get another phone
 

Top Liked Posts

  • There are no posts matching your filters.
  • 44
    GhettoRoot (Towelroot port) v0.3.0.1, v0.3.2 Testing (looking for new owner)

    Code:
    *** Disclaimer
    
    This project is licensed under the GPLv3.  Bundled third-party components
    have different licenses, but these components are bundled or downloaded
    as separate executables; all appropriate LICENSE files are included, along
    with links to source code.
    
    THIS UTILITY MAKES USE OF A KERNEL EXPLOIT TO GAIN ROOT PRIVILEGES
    AND MAKE MODIFICATIONS TO YOUR DEVICE'S FILESYSTEM.  IT WILL
    PROBABLY WILL VOID YOUR WARRANTY.  IF YOU DO NOT FOLLOW THE
    INSTRUCTIONS, YOU COULD END UP WITH A BRICK.  EVEN IF YOU DO
    FOLLOW THE INSTRUCTIONS, YOU MIGHT END UP WITH A BRICK.
    
    ROOTING IS A POTENTIALLY DANGEROUS PROCESS AND, WHILE I WILL TRY
    TO HELP IF YOU HAVE TROUBLE, I CANNOT ACCEPT RESPONSIBILITY
    FOR RANDOM MISFORTUNE, COSMIC RAYS, ETC.

    Help Wanted
    My activity with this project will be diminishing. As far as I know, everything as of now "just works" with the SCH-I605, and that's all I really wanted to accomplish from the start. I'm hoping someone will take it over -- ideally someone who'd be willing to look into fixing the code to support other devices. It's open-source, so you can start looking at it now and see if you're interested. Compiling is simple... Just install the NDK and use ndk-build, or 'make' in Linux.

    If you'd like to take over the development, and you've worked on projects like this before, I'd greatly appreciate it; perhaps we can get a mod to transfer this thread to you, or you're free to start a new one. After a certain point, I'll stop monitoring threads and messages, so you're free to go ahead and take charge without waiting to hear from me, if you'd like.

    Post elsewhere, if you'd like, to let people know that this code is available and might be adjustable for other devices. It really shouldn't be difficult for someone with a background with this stuff.

    Problematic areas are likely the iov code (search "Not sure if this is entirely correct") and also the limit_offset stuff (search "ph->limit_offset != 0"), but I have no way of knowing for sure if there's anything wrong with limit_offset since I don't have an applicable Samsung device. There are scattered references to the sources I used to figure out some of this in the README and in ghettoroot.c itself.

    That's all, folks. Thanks.


    Introduction
    This is an automatic root method for your Note 2 (or, potentially, other device) based on code for the CVE-2014-3153 exploit.Unlike towelroot, it is a tethered root in that it requires you to connect your device to a computer to perform the root. However, it only requires a computer the one time; root sticks.

    This code appears to have been reverse-engineered from towelroot itself (but not the latest version), so Geohot gets the credit for this one. This is more like a bugfix which only works (for sure) with the Verizon Galaxy Note II so far. The changes from the towelroot-equivalent exploit code are incredibly minimal. Only a few lines of code need really be changed to get it working, but devices incompatible with towelroot are becoming ghetto, so there wasn't a lot of motivation for the problems to be investigated.

    GhettoRoot attempts to walk you through the prerequisites for the rooting process and give you hints if there are problems; it does the dirty work itself.


    Installation instructions
    Please see the LICENSE file for details on copying and usage (GPLv3).

    This software will attempt to root your device and might void its warranty.
    Please BACK UP ANYTHING IMPORTANT before continuing.

    Note: By default, v0.3.0.1 attempts to disable Knox and OTA update packages.
    If you'd rather this not happen, scroll to CONFIGURATION.

    1. Install USB drivers for your device if needed, for Windows.
      Koush's drivers are a good bet. 'Download Windows Installer', and run:
      https://github.com/koush/UniversalAdbDriver
    2. Download the busybox-arm4vl binary. The installer will help you with this.
      You can get it manually from http://www.busybox.net, specifically from
      http://www.busybox.net/downloads/binaries/latest
      Place the binary in the files/ folder. It will be automatically renamed
      to 'busybox'.
    3. Enable USB debugging. If necessary, go to 'About device' under Settings and tap
      the Build number several times to enable the Developer options. Go back, and
      go to Developer options, and enable USB debugging there.
    4. Plug in your device to your computer.
    5. Unlock your device's lockscreen if it is locked.
    6. Manually choose a USB mode from the notification, or wait for the Installer mode
      phase of USB to end, which takes about 30 seconds. If your device does not have
      an Installer mode, skip this. If you're not sure, just wait the 30 seconds.
    7. If/when a popup appears asking for authorization for your PC, allow it.
    8. If a popup does not appear and has never appeared before, or you clicked Cancel,
      or you're just having a lot of trouble, go to Developer option and toggle USB
      debugging off and on again. Then, try again. You may need to disconnect and re-
      connect your device or tap Revoke USB authorization if nothing seems to help.
    9. On Linux or OS X, enter a terminal at the folder you extracted the zip file to,
      and type chmod +x INSTALL.sh.
    10. To run, execute INSTALL.cmd on Windows.
      On Linux or OS X, type the following in the same terminal: ./INSTALL.sh
    11. Follow the on-screen instructions.


    Configuration
    v0.3.2 config.txt details:
    Code:
      Open up config.txt, and customize as follows, adding or removing arguments
        as you see fit. It should always start with ./root.sh
      *** ENSURE THE CONTENTS OF config.txt IS A *SINGLE LINE*.
      *** COMMENTS WITHIN config.txt ARE NOT PERMITTED.
      Default: ./root.sh --root --deknox --deota --desurveillance
      Former default: ./root.sh --root --disable-knox --disable-ota
    
    Usage: ./root.sh [OPTION] [COMMAND]
      With no arguments, --root is implied.
    
      Main options
      --root, --supersu    Install SuperSU (permaroot)
      --deknox             Remove Knox (recommended)
      --deota              Remove OTA packages (recommended)
      --debloat            Remove Bloat (recommended)
      --desurveillance     Remove some surveillance (recommended)
      --disable-ota        Disable OTA update-related packages
      --disable-knox       Disable Knox packages
      --really-remove      Actually remove things instead of
                           putting them in $jaildir
      --undo               Try to undo the specified option.
                           If you had used --really-remove then
                           it won't work for deknox, debloat, deota.
    
      Anti-convenience options
      --no-mount-rw        Don't mount / and /system read-write
      --no-sepermissive    Don't set SEAndroid to permissive
      --no-chmod-scripts   Don't chmod 0755 all scripts in
                           $TMPDIR
    
      COMMAND: Command to be run after other options.
               Arguments may follow.
               If unspecified, will look for and run custom.sh.
    
      ex. ./root.sh --root
          ./root.sh --root --undo
          ./root.sh --root --deknox --deota --debloat
          ./root.sh cp /sdcard/build.prop /system/build.prop
    [/HIDE]

    Thanks To/Credits
    Code:
      geohot for developing [URL="http://xdaforums.com/showthread.php?t=2783157"][U]towelroot[/U][/URL], on which
        this code is DIRECTLY based! Reverse-engineered/decompiled, but not by me.
        I don't think anyone had a licensing claim on towelroot or this code so I made it GPLv3.
      fi01 for his shared [URL="https://gist.github.com/fi01/a838dea63323c7c003cd"][U]exploit code[/U][/URL] on github:
      tinyhack.com for the [URL="http://tinyhack.com/2014/07/07/exploiting-the-futex-bug-and-uncovering-towelroot/"][U]helpful post on the Futex bug[/U][/URL]:
      chainfire, for [URL="http://xdaforums.com/showthread.php?t=1538053"][U]SuperSU[/U][/URL]!
          THANK YOU for the lenient distribution policy.
      NetworkingPro at xda-developers for the assistance to all. :)
      Other folks at xda-developers for testing and offering support.
      Google, of course, and the Android Open Source Project.

    Changelog & Download
    A note on v0.3.2 Testing:
    Code:
    WARNING:  ESPECIALLY with this version, PLEASE make sure you have backups of
              your important applications and their data!
              Alternatively, you might be safer changing config.txt to the
              old value as listed below.
    Code:
    This version is called 'Testing' because I haven't really had time to test it
    fully, and there's a bunch of new stuff, namely the de* (*-removal) scripts.
    
    I DON'T KNOW HOW WELL THE DE* CODE WORKS. You may want to give me some time
    to see how my device holds up before testing yourself, or check out
    files/root.sh to see what the new stuff does, but I do need other people to
    test as well, so I've changed the config.txt to include the new features,
    sans --debloat.
    
    If you DO NOT want to try the new features, change config.txt to the following:
    ./root.sh --root --disable-knox --disable-ota
    
    However, even the --disable-knox and --disable-ota code has changed.
    Your mileage may vary!
    
    Search files/root.sh for ### DEBLOAT, ### DEKNOX, ### DEOTA, ## DESURVEILLANCE,
    etc. to see exactly what they do.

    Code:
    Current changelog: [U][B][URL="http://xdaforums.com/devdb/project/dl/?id=8457"]v0.3.2 [I]Testing[/I][/URL][/B][/U] (2014/09/08)
    [fixed?] drowsy attempt to fix a silly bug with default modstring
    [new] new default config.txt: --deknox, --deota, --desurveillance
    [new] --deknox, --deota, --debloat, --desurveillance, --really-remove,
          --undo features added. See README.txt or search files/root.sh
          for ### DEBLOAT, ### DEKNOX, ### DEOTA, ## DESURVEILLANCE,
          etc. to see exactly what they do.
    [change] starting to change verbage from 'phone' to 'device'
    [note] v0.3.1 would have been too confusing, so straight to v0.3.2.
    
    [U][B][URL="http://xdaforums.com/devdb/project/dl/?id=8439"]Download v0.3.0.1[/URL][/B][/U] (2014/09/07)
    [fixed] Issue with find.exe when other find executables are in PATH.
    
    [URL="http://xdaforums.com/devdb/project/dl/?id=8438"]v0.3.0 (2014/09/07)[/URL]
    [new] License: this project is licensed under GPLv3.
    [new] Added ADB binaries for Linux and Mac OS X.
    [note] This means we have experimental & untested support for Intel Macs
    [changed] Restructuring of post-root procedures:
       No more hard-coded commands for installing SuperSU, etc.
       These things are present in files/root.sh instead, and
         may be freely edited.
    [changed] Command-line parameters have DRASTICALLY changed.
      See the README.txt.
    [new] Added modstrings.txt, config.txt
    [changed] Busybox no longer bundled due to licensing concerns;
      curl added for downloading busybox, instead.

    Older changelogs:

    Code:
    v0.2.2 (2014/09/04)
    Fixed INSTALL.cmd hanging when launching ADB, or not running
      properly as an administrator.
    Further improved error handling, with more detailed steps for
      troubleshooting, and retries.
    User acknowledgment now required for certain tasks with (Y/N).
    Fixed date on previous update being in the future... Hmm...
    
    v0.2.1 (2014/09/03)
    ** pulled, did not fix adb hang issue after all **
    
    v0.2 (2014/09/03)
    Code cleaned up a bit, but still gives verbose debug messages
      since they might be important. Can disable those with --brief.
    Some error handling in the install script.
    Everything is orchestrated from a single batch file ("one-click",
      though multiple scripts are still used internally).
    Should work properly with Windows and Linux, and come
      bundled with ADB for Windows. Thanks, NetworkingPro!
    
    v0.1 (2014/08/31)
    Initial release.


    LINK TO FORMER THREAD HERE

    Apologies in advance for any kind of faux pas I've made or rule I've broken. There always seems to be something...

    Code:
    * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
    *  GhettoRoot is free software: you can redistribute it and/or modify     *
    *  it under the terms of the GNU General Public License as published by   *
    *  the Free Software Foundation, either version 3 of the License, or      *
    *  (at your option) any later version.                                    *
    *                                                                         *
    *  GhettoRoot is distributed in the hope that it will be useful,          *
    *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *
    *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
    *  GNU General Public License for more details.                           *
    *                                                                         *
    *  You should have received a copy of the GNU General Public License      *
    *  along with GhettoRoot.  If not, see <http://www.gnu.org/licenses/>.    *
    * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
    42
    GhettoRoot - All-In-One

    Everyone, please use this .zip from now on. Please test, and let me know how it goes. I have simplifed the root be a single click root method.

    Steps:
    1. Download and unzip file.
      [*]Connect phone, ensure usb debugging is on, and device is authorized.
      [*]Double click GhettoRoot.bat

    Download - View attachment GhettoRoot.zip

    In full disclosure I have no idea where the source for this came from, I just made it pretty, and tried to make it super easy. Credit goes to 25yvdgpo06 for finding it. This root very well may work any many other devices, including other Samsung devices. Looking at the source I dont see anything that should hurt another device. Worst case scenario it simply doesn't root it. Please let us know if you try another device with success.
    14
    Confirmed Working Root For Stock 4.4.2 - ND7

    Can someone please sticky this???
    Just wanted to share this with everyone since I had a hard time finding a working version of Ghettoroot for the latest Verizon Note 2 OTA ND7 update. For some reason the adb.exe was not the right one. I hope this helps everyone. I take no credit in the creation, I just fixed it so that it is easier for others to root a brand new phone.
    4
    We're on ND7. Ghettoroot utilizes an exploit in the ND7 bootloader. If you're not on ND7, it won't work.

    ---------- Post added at 08:14 PM ---------- Previous post was at 07:55 PM ----------

    Well, I've come to accept it. Our beloved Note 2 has gone the way of the cavemen and is now considered "old". It appears that the dev's are neither willing nor interested enough to put in the work it will take to unlock the bootloader on this "archaic" device. This news comes as a supreme disappointment. I've only had this phone for 2 years, and considering all the new features it possessed and the hefty price tag, I had expected it to last at least 5. I guess that's just technology for you, 6 months and it's obsolete. However, some of us can't afford a new device every 6 months. I would be willing to bet most of us. Aside from the dev's apparently. So thank you, for all the "hard work" you won't be putting into it. When I do buy a new device, I won't be coming here. A word of advice to anyone reading, DO NOT ACCEPT THE OTA UPDATES. Ever. Once the work is done to root/unlock and a new batch of devices comes out, you will undoubtedly be in the same boat. Oddly, even sizable bounties posted here aren't enough incentive.

    Don't be so over dramatic! enjoy your new stock phone. THe developers take their OWN time to do all this work & don't get paid for it. If you're rooted why do you need an unlocked bootloader? Xposed will let you do just about everything that is in most of the roms you want to flash with more freedom to customize the rom the way you want. No one owes you anything & if you need your bootloader unlocked that bad learn how to do it yourself...
    3
    If I hadn't just killed my phone (perma red angry text of death) I would definitely help test. Of course you have me to thank as well. Why? Because I knew as soon as I broke my phone, or upgraded someone would come out with a root fix. So you're welcome. However there is still a good chance that the new "probably very used" replacement phone I get from Verizon will be 4.4.2 already so then I will try this out. Unless this is some sort of very cruel trick played on those of us that can't afford to upgrade our phones every other month, in which case shame on you, and I will still try it until I am blue in the face. And crying.

    Nope, not a trick! My username looks a bit dubious even to me, but it was randomly generated by KeePass.