yashsingh1/xdaforums huggingface dataset:
[Verizon Samsung Galaxy Note II] ArcherSeven:
[DEBUG] get_root:535: YOU ARE A SCARY DEVICE

Hey all, I am working on this as well, and get Ezrae's error, on an Arch Linux box with a known working adb and android-sdk stack and on a Windows box. Using the Arch box as it's my primary. I'm skillful at the Linux desktop but Android is mostly foreign ground to me. Following this thread closely, as I also get the same result.

[max@sylenia:ghettoroot]$ adb shell
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
shell@t0ltevzw:/ $ ls -la /data/local/tmp/ghetto/META-INF/com/google/android
ls -la /data/local/tmp/ghetto/META-INF/com/google/android
-rw-rw-rw- root root 5265 2014-09-21 02:39 update-binary
-rw-rw-rw- root root 4693 2014-09-21 02:39 update-binary-2
-rw-rw-rw- root root 78 2014-09-21 02:39 updater-script

I appreciate the information here, please let me know if I can help figure this out.

Side note: My first thought was that busybox was being screwy, but that's just a mostly uneducated guess.

"[DEBUG] get_root:535: YOU ARE A SCARY DEVICE" < I feel your pain, script. I feel your pain.

Edit: figured it might be useful to someone else, so tried 0.3.0.1, got essentially the same. Attaching output. Or trying to. Think it worked.
[Verizon Samsung Galaxy Note II] Ezrae19:
Thanks!! It's nice to know it's not just me. :)

I'm not a developer by any stretch of the imagination, but I did look at the code quite a bit yesterday. The best I can figure is that the ghettoroot binary is working exactly as it should, but at least one of the scripts that it calls after the successful exploit are failing. My errors seem to indicate that the update-binary script has some issues with the mount commands, and then it can not initially find the "unzip" program that loads the rest of the files into the device - hence all of the "file not found" errors. I tried to edit the script with better mount commands and an absolute path to unzip, but that caused the execution of the script to fail completely..?

I also started playing with the ghettoroot.c file with the intention of having it stop immediately after the root exploit succeeds and give back the root shell so that I can just try to move/delete/install the rest of the necessary files by hand. But that led me on an adventure in learning about the ADK vs. the NDK and I finally decided to give my brain a break. :)

I'm not going to be able to play with this for a few days, so if anyone has any other ideas that would be awesome!
[Verizon Samsung Galaxy Note II] thunderblaster88:
Idk about anyone else but since I updated from 4.3 mj9 LB I have noticed a big loss in battery life between 4-6 hours a day difference, has anyone else? Also a few other little things too that I'm not too fond of on 4.4.2..also I'm running paid greenify and I'd does help but not too much..and is anyone else waiting on safestrap or an unlocked BL?
[Verizon Samsung Galaxy Note II] wheeless:
ADB Shell Command Result =Not Found

Networking Prof:

Thanks for your continual help. Unlike another junior member whose having the same problem, when I run the ADB shell command the result I get is:

/system/bin/sh: Is: not found

Please note that this result is on a fresh stock root - I've not run the GhettoRoot program since my third ODIN to stock yesterday (which I have to do to get rid of the KnoxStopped and SyscopeStopped error messages that occur after I run GhettoRoot).

This is so frustrating to me since I've been successfully jailbreaking and rooting for several years now - even got my Kindle rooted. Wish I understood enough programming to figure this out but really am thankful for all those who are now replicating and trying to figure out this puzzler.
[Verizon Samsung Galaxy Note II] richyak54@gmail.com:
Note 2 I605 Root

This worked for me run the ghettoroot v0.3.2 once you get to this screen STOP and don't close the command line, Now you are ready to run Networkingpro Ghettoroot click on Ghettoroot batch file hopefully that will root your phone it work for me good luck

Example

Can we start up ADB?

Yes!

Can a device be found?

Yes!
[Verizon Samsung Galaxy Note II] wolfballz:
I second the install of SDK ADT and running adb at least once... thats what help got me up and rooted.
[Verizon Samsung Galaxy Note II] liftedplane:
I also installed it as well. and I'm rooted
[Verizon Samsung Galaxy Note II] Rocky1988:
I ran this on my stock ND7 Verizon Note 2 and now I do not have root and these 2 errors pop up every time the phone starts:

"Unfortunately, knox setupwizardclient has stopped"

"Unfortunately sysscope has stopped"

Way to break my phone! Any suggestions?

EDIT:

[ posted in a previous comment ] http://xdaforums.com/showpost.php?p=55210343&postcount=27

Seemed to work in getting root access, but I still get those 2 programs force stopping. Does anyone have any idea how to fix this?
[Verizon Samsung Galaxy Note II] wolfballz:
Use Titanium backup to uninstall them, and no more pop ups with those messages.
[Verizon Samsung Galaxy Note II] Rocky1988:
Opps. double post
[Verizon Samsung Galaxy Note II] jpatt:
"Way to break my phone! Any suggestions?"

This thread is clear and with the proper warning disclaimer. I, like others, have put many hours into this without success. My suggestion is to Odin back to stock.
[Verizon Samsung Galaxy Note II] wolfballz:
His phone isn't broken... just needs to remove those two things using an uninstaller of some sort (titanium backup or equivalent) and the messages will go away. Same messages were showing on mine after successfully rooting with this and just removed them... no more messages.
[Verizon Samsung Galaxy Note II] Msmith2004:
Thank youuuuuuu

You are a god amongst men. I thought my rooting days were done.

My only issue is after I got it to work (had to use the 2.2 version, the 3 wouldn't work) I noticed that none of my SuperSU settings really worked. Example being I set the default to grant superuser permissions to all apps, yet it still asks me every time. I also started getting "Touchwiz has stopped" and "sysscope has stopped" errors when booting the phone. As well as "knox service has stopped" upon boot. I fixed the sysscope and knox errors by freezing them with the autofreeze app, but still get the touchwiz errors and am still constantly asked to grant permissions. I also noticed the root access popup window that shows up when an app uses roots permissions still displays, even though I set it not to. Is there something I did wrong, or is this just an issue with the way the root exploit worked. Not a big deal either way, ecstatic to have my root back, just curious. Thanks.
[Verizon Samsung Galaxy Note II] harp3736:
Hi there

Hoping someone can help me out with what I maybe doing wrong here

here is what I am told when running Ghetto root

---- GhettoRoot Installer ----

Can we start up ADB?

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

Yes!

Can a device be found?

Yes!

Can we communicate with a device?

Yes! (This message came from your device.)

* READ the README.txt file before continuing.

Press any key to continue . . .

* WARNING: This process may void your warranty or cause unexpected damage

* to your device. By using this software, you are accepting these risks.

* This is your last chance to back out!

Continue? (Y/N) y

* Cleaned!

failed to copy 'C:\Documents' to 'and': Read-only file system

*** Could not push files.

*** Could not send preparation files!

Unable to chmod ghettoroot: No such file or directory

Unable to chmod busybox: No such file or directory

/system/bin/sh: ./ghettoroot: not found

*** ghettoroot execution completed! Investigate the results...

* All that's left is a bit of cleanup, or press N to end this.

Clean up? ([Y]/N)

Any suggestions on how to correct this ?

Thank you in advance
[Verizon Samsung Galaxy Note II] wolfballz:
If you open an adb command prompt and type: adb devices

Is your device listed? If not I would install ADT SDK tool kit if you haven't already.
[Verizon Samsung Galaxy Note II] jpatt:
I got as far as you without success. Some suggestions were to wipe cache and format data. Others said make sure you have/ don't have admin priviledges. Still others say try earlier ghettoroot zips. Also, run ghetto multiple times until it takes. Personally I think Windows is the problem. Post your solution when you get it.
[Verizon Samsung Galaxy Note II] harp3736:
here is what I got from running adb devices at command prompt

C:\Documents and Settings\jmckinney>adb devices

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

List of devices attached

42f7c314b41caf49 device

C:\Documents and Settings\jmckinney>
[Verizon Samsung Galaxy Note II] wolfballz:
That's what you want to see. Now that you have seen that you should be able to run it and obtain root now. Are you using ghettoroot from the OP or the one from post 27 from NetWorkingPro? The one NetworkingPro posted worked for me.
[Verizon Samsung Galaxy Note II] harp3736:
I has been trying the different versions at the start of this thread. I went back and searched on NetWorkingPro and found this one :

http://xdaforums.com/note-2-verizon...lroot-port-t2864125/post55210343#post55210343

downloaded and ran that version and it worked like a charm!!

Hot damn!!

Thank you, wolfballz, for the help and to all those who have worked on this ( NetWorkingPro and 25yvdgpo06)
[Verizon Samsung Galaxy Note II] brycobat:
v0.3.2 modifications for "no such file or directory" error installing SuperSU

I had the same problem: I had to modify some of the scripts (from v0.3.2) to get things to work on mine. (There may be a simpler solution, though)

After letting the script run and fail, I adb pull'd /data/local/tmp/ghetto off so I could modify the update-binary-2 script.

In files/root.sh, I added a call to id so I could verify root, aliased basename and dirname to point to the known copy of busybox, and commented out replacing update-binary-2 (to avoid overwriting further modifications to it):

23a24,28
> id
>
> alias basename=$TMPDIR/busybox basename
> alias dirname=$TMPDIR/busybox dirname
>
46c51
< grep -E -v 'YouTube\.apk|Maps\.apk' "$TMPDIR/META-INF/com/google/android/update-binary" > "$TMPDIR/META-INF/com/google/android/update-binary-2"
---
> # grep -E -v 'YouTube\.apk|Maps\.apk' "$TMPDIR/META-INF/com/google/android/update-binary" > "$TMPDIR/META-INF/com/google/android/update-binary-2"

In update-binary-2, I wound up pointing unzip at the known copy of busybox, and replacing references to /tmp with /data/local/tmp/ghetto, but I think this isn't the best solution. (I think, but have not confirmed/tested, that simply creating the /tmp folder before calling update-binary-2 would be sufficient to correct the /tmp related "no such file or directory" errors):

61c61
< cd /tmp
---
> cd /data/local/tmp/ghetto
64c64
< unzip -o "$ZIP"
---
> /data/local/tmp/ghetto/busybox unzip -o "$ZIP"
66,67c66,67
< BIN=/tmp/supersu/$ARCH
< COM=/tmp/supersu/common
---
> BIN=/data/local/tmp/ghetto/supersu/$ARCH
> COM=/data/local/tmp/ghetto/supersu/common
70,71c70,71
< chmod 0755 /tmp/supersu/$ARCH/chattr
< chmod 0755 /tmp/supersu/$ARCH/chattr.pie
---
> chmod 0755 /data/local/tmp/ghetto/supersu/$ARCH/chattr
> chmod 0755 /data/local/tmp/ghetto/supersu/$ARCH/chattr.pie

After making the above modifications, the scripts worked as expected, and I had root / SuperSU working post-reboot.
[Verizon Samsung Galaxy Note II] AndrewZorn:
I can never extract these ZIP files. What am I doing wrong?

EDIT corrupted cache in Chrome.
[Verizon Samsung Galaxy Note II] jpatt:
Finally.

I am letting people know what I did to succeed after much frustration.

I was stuck, couldn't get authorization. I did everything mentioned in other replies such as toggling. It wasn't even showing a USB attached notification on my phone. I went as far as buying another USB cable. I was authorized once but it didn't take when trying to install from Windows GUI. I had to be command prompt.

What worked was unplug phone

wiping cache (Vol-Home-Power).

I went to Windows C:\Documents and Settings\{Your Computer Name}\.android and deleted adbkey and adbkey.pub

Plug in phone

Request for authorization came up. BOOM

Opened a command prompt

pointed to to the GhettoRoot.bat file. BOOM

I spent 20 hours trying to root this. NOOB
[Verizon Samsung Galaxy Note II] banjo818:
Thanks

This worked great. thank you
[Verizon Samsung Galaxy Note II] chemicalreaction:
It works!

Thank you very much! This method worked for me. It did take a few tries. Not sure what was going on, but it stuck on the third attempt.:good:
[Verizon Samsung Galaxy Note II] chelper:
What results are those having that are trying to use SS after rooting with this method? Are you able to use custom roms? I'm especially interested in SR remix.
[Verizon Samsung Galaxy Note II] harlemdragon:
I'm a newb

I'm totally lost. I downloaded busybox and I can open of the run function... but that's as far as I get. Please help.

---------- Post added at 08:22 AM ---------- Previous post was at 08:00 AM ----------

I've run multiple versions of GhettoRoot and nothing is happening. Is there something I'm missing?
[Verizon Samsung Galaxy Note II] kingamra:
With tw crashing and such...Try dirty flashing your rom again... could be a bad install > bad root...
[Verizon Samsung Galaxy Note II] harlemdragon:
I think i'm in!!

I had to root with GhettoRoot 3.0 failed then I used GhettoRoot by networking pro and it worked!!! Woot!
[Verizon Samsung Galaxy Note II] AndrewZorn:
Well, Windows recognizes the device, I have enabled USB debugging, disabled verify apps, and tried in both installer mode and media mode.

The networking pro version and the .bat file from this thread both do not detect an Android device. Tried adb kill-server and start-server as well.
[Verizon Samsung Galaxy Note II] wolfballz:
If you open an adb command prompt and type in: adb devices and hit enter

Is your device listed?
[Verizon Samsung Galaxy Note II] wheeless:
May I declare JPATT my hero. I've unsuccessfully tried everyone else's approach. I thought "why not, I've wasted dozens of other hours ODIN'ing back to stock; give it one more try a different way." WOOOEEEE! I have root. Thank you JPATT!!!!
[Verizon Samsung Galaxy Note II] thunderblaster88:
I started 3.2 til it got to this point then ran networking pros version at that point and it stuck but 3.2 wouldn't do anything or the networking by its self then I got 3.2 to communicat with my phone then turned on the other one and bam! Rooted this is the second time I've rooted 4.4.2 cause my google play messed up and even factory reset wouldn't fix had to Odin

Networking pro finished rooting

3.2 started abd key started
[Verizon Samsung Galaxy Note II] AndrewZorn:
Nope. But Windows sees the device just fine.
[Verizon Samsung Galaxy Note II] wolfballz:
If you haven't already install SDK ADT tool kit then try doing adb devices again and see if it gets listed. Windows seeing the phone is slightly different than adb being able to communicate with it.
[Verizon Samsung Galaxy Note II] WeT-Klb:
Would this work on 4.4.2 of the International 7105-Note 2? The Towelroot itself doesn´t work on exynos-based phones i´ve been told.

Yours

WeT-Klb

EDIT 8.10.2014

I can state rooting the N7105 with 4.4.2 NE3 works perfectly with Ghettoroot. Thanks so much - i tried it on 2 N7105 - and both are rooted and didn´t KNOX in any way - it´s still 0x0!!!
[Verizon Samsung Galaxy Note II] cattledogit:
GhettoRoot All-in-One works on Sprint SPH-L900 4.4.2

Success on Note 2 SPH-L900 4.4.2 Kernel 3.0.31-1561791, Baseband L900VPUCNE2

Many thanks to 25yvdgpo06, NetworkingPro, and geohot. I just purchased a Sprint SPH-L900 Note 2 refurb and was more than disappointed to learn that Google had disabled apps permissions with 4.4.2. I wasn't about to run apps without permissions control, but GhettoRoot let App Ops Starter run and saved the day.

Looking forward to hearing reports of success with 4.4.4, which is apparently rolling out to Sprint users now.

Problems I encountered while trying to run GhettoRoot:

- GhettoRoot zip files in OP such as ghettoroot-v0.3.2.zip couldn't be unzipped (tried different Win systems). No problems unzipping NetworkingPro's All-In-One.

- The Note 2 always entered USB media mode until I:

1. Installed Samsung's USB driver (though I'd previously installed and removed Keis3)

2. Entered "adb start-server" at the Windows admin command prompt. Before this "adb devices" didn't report anything. I had installed Android SDK some time ago following instructions for Nook sideloading from ow.ly/21e1MQ .

---------- Post added at 04:49 PM ---------- Previous post was at 04:44 PM ----------

"adb start-server" was needed before "adb devices" for me, though I used Android SDK installed some time ago.
[Verizon Samsung Galaxy Note II] Trak-X:
Thank you for this.

Just a short question: This should also root the devices that towelroot did? Or am i wrong?
[Verizon Samsung Galaxy Note II] cattledogit:
System Update gives "Unfortunately, Settings has stopped."

I may have spoken too soon. Voice calls are working after activation, but not data. Ting suggested I try PRL update, but "System Update" gives "Unfortunately, Settings has stopped." I didn't try Ssytem Update before rooting.

Any suggestions? I haven't tried factory reset since I haven't backed up yet, but others have reported that factory reset didn't resolve this for them on other android devices.

Thanks!

Update: I did a hardware factory reset, a.k.a. hard reset, after which System Update worked without crashing Settings (root survived hard reset.:) ). I then did Update PRL and Update Profile as suggested earlier by Ting support, but still no data. I happened to try disabling and re-enabling data in Ting's UI by unchecking and then re-checking "Can access the Internet". This triggered a second PRL update notification., after which data finally worked.
[Verizon Samsung Galaxy Note II] djstimpy:
i had the same problem with data it was the sim card. if u have the original sim card from when you bought the phone it some times doesnt work anymore. i had to call verizon a few times and they told me to go in and change it so it works now.
[Verizon Samsung Galaxy Note II] jam97:
It works, thank you.
[Verizon Samsung Galaxy Note II] TCPDump:
Glad to hear it.
[Verizon Samsung Galaxy Note II] WeT-Klb:
Ghettoroot works on N7105 4.4.2 NE3

I can state rooting the N7105 with 4.4.2 NE3 works perfectly with Ghettoroot v0.3.2!

Just installed the adb-drivers, authorized my Computer to the phone(s) and started Ghettoroot.

Thanks so much - i tried it on 2 N7105 - and both are rooted and didn´t KNOX in any way - it´s still 0x0!!!

Yours

WeT-Klb
[Verizon Samsung Galaxy Note II] WeT-Klb:
I used it on 2 N7105 4.4.2 NE3 - and it worked like a charme. Both are rooted now!

WeT-Klb
[Verizon Samsung Galaxy Note II] rcapach:
Source question

In your source ghettoroot.c under the show_usage() you say to download the manufacturer's kernel source to check for the LIMIT_OFFSET and the HIT_IOV. Where in the kernel source did you find these?
[Verizon Samsung Galaxy Note II] izzabdullah:
I had the same problem and have been banging my head. I tried multiple times the 0.3.2 version from the beginning of this thread and it went through the process with root.sh exiting with a 256. Still no root, no SuperSU apk, confirmed no root with Titanium.

I came across the networking pro version later in the thread and although adb communication seemed to work with the first method, the all-in-one could not detect my device and would exit out. I tried restarting adb server, rebooting windows VM, rebooting phone, changing cables, and so on. Finally I decided to get the latest Andriod SDK. I was finally able to get the networking pro version to recognize my device by copying everything from GhettoRoot over to the sdk/platform-tools/ directory and NOT replacing the adb executable nor the dll file. I essentially only copied over the exploit and kept intact the rest of the ADT. First shot and I was able to see my device from

adb devices

and successfully rooted my phone on the first try. I would say if you are having issues, look at your java version and the adb. IMO from trial and error tonight makes me believe it is necessary to have the SDK installed (or at least the adb exe and dll files from the sdk in the same directory as the GhettoRoot files.

I hope this helps someone that may have experienced the same issues as myself.

Regards..
[Verizon Samsung Galaxy Note II] RedRider2053:
This worked for me. Thank you!
[Verizon Samsung Galaxy Note II] swapyworld:
cant we just flash a philz recovery through odin and then flash zip file of cf auto root?
[Verizon Samsung Galaxy Note II] rsingram:
Doe not recognize my phone

Sorry, but for some reason, GhettoRoot doesn't recogize my phone. I've installed the USB drivers and done everything I know to do. Windows 7 only sees it as a portable device. Any ideas?
[Verizon Samsung Galaxy Note II] wolfballz:
Did you install Eclipse ADT SDK also? If you didn't install that and then make sure you can see your device by typing adb devices. Should be good to go after that.
[Verizon Samsung Galaxy Note II] rsingram:
RE:

The problem is that the phone will not stay in installer mode long enough for the program to push the files. I switches back to being recognized as a media device after a certain period of time. I'm downloading Eclipse ADT SDK now, hopefully that may correct the issue, thanks for your timely reply! Also, how long does this process of rooting usually take? Sometime it will show that it is pushing "Updated-SuperSU.zip" but it seems like it's hanging at that point.
[Verizon Samsung Galaxy Note II] rsingram:
Root

After hours of fooling around with this, I think I finally got root! Yep, just verified, I do have root! Thanks for your help!
[Verizon Samsung Galaxy Note II] wolfballz:
You want the phone to go out of installer mode and be in media mode for this. Glad you got it!
[Verizon Samsung Galaxy Note II] rsingram:
Bootloader

Thanks for your help! By the way, do you know if there is a tutorial to unlock the bootloader for the Note2 SCH-I605 with ND7?
[Verizon Samsung Galaxy Note II] wolfballz:
It hasn't been unlocked yet that I know of. I do know that Beastmode is working on a safestrap for us who are on locked down ND7.
[Verizon Samsung Galaxy Note II] rsingram:
Bootloader

That's what I was afraid of! Thanks for your fast reply! Uda man!
[Verizon Samsung Galaxy Note II] xanderharris86:
Just wanted to post that I think I finally got it working... for anyone as dense as me that had trouble up until now. The issue I had was that I was double clicking/right clicking and going to admin to get the ghettoroot.bat file to work. The thing that FINALLY worked for me was shift+rightclicking and opening up the command prompt in the directory ghettoroot.bat was, and just typing in "ghettoroot.bat"

Everything worked swimmingly once I did this!
[Verizon Samsung Galaxy Note II] Bizitz75:
Well I'm rooted... Now waiting for an unlocked bootloader. :)

Thanks for all your hard work. Took me a bit to get my phone re-authorized, but I got it!!

A slave to the great and powerful "product"
[Verizon Samsung Galaxy Note II] rsingram:
Can't wait for the bootloader to be unlocked! Anyway of flashing modified ND7 roms that won't cause the dreaded "Unauthorized Software" bit?
[Verizon Samsung Galaxy Note II] wolfballz:
Don't hold your breath on a unlocked bootloader... but Beastmode is working on a safestrap for us.
[Verizon Samsung Galaxy Note II] Bizitz75:
Safestrap works too.

I have been looking at a Note4, but the only reason is the snote on the 2 is a different version than the note10 2014 and although I can pull my notes up on both, I can't edit across devices. :(

If I could get snote3 on here I'd forego the note 4

A slave to the great and powerful "product"
[Verizon Samsung Galaxy Note II] sickboyy:
Any update on Beastmode's progress on getting safestrap working ? Just curious and I can't seem to find a thread specifically for the project.
[Verizon Samsung Galaxy Note II] dtroup64:
this is the thread in which he has been keeping us up to date: http://xdaforums.com/showthread.php?t=2704992&page=14