[HOWTO] Installing Superuser/busybox for Mac

ApplesRevenge

Member
Jan 18, 2011
37
5
0
Glasgow
./adb push su/system/bin/su /sdcard/su
Newbie here learning the ways and reading books/sites. Is this the SU binary and apk by Koush and are SU binaries interchangeable with differing superuser.apk?
Searching for it produces a lot of false positives and general user help.
I understand the rest of what was done.
Any feedback/urls are welcome.
 
Last edited:

tennisbgc

Senior Member
May 27, 2013
90
3
0
The command should be "adb push su /sdcard/su" (pushing su to the sdcard).

  1. Setup wired and/or wireless ADB
  2. (Optional) Put adb.exe in your Windows PATH variable so you can run it from anywhere
  3. Download and unzip the SuperUser files from http://d-h.st/BBk
  4. Open an ADB shell with elevated permissions
    Code:
    adb shell
    su
  5. Mount the system partition as read-write
    Code:
    mount -o rw,remount -t ext4 /dev/block/platform/sdhci-tegra.3/by-name/APP
  6. Exit the ADB shell
    Code:
    exit
    exit
    or CTRL + C
  7. Push su to the sdcard
    Code:
    adb push su /sdcard/su
  8. Open an ADB shell with elevated permissions
    Code:
    adb shell
    su
  9. Cat su into /system/xbin
    Code:
    cat /sdcard/su > /system/xbin/su
  10. Create a symbolic link to su in /system/xbin from /system/bin (safer/cleaner than just putting su directly in the bin folder)
    Code:
    ln -s /system/xbin/su /system/bin/su
  11. Set the su permissions to -rwsr-sr-x
    Code:
    chmod 6755 /system/xbin/su
  12. Exit the ADB shell
    Code:
    exit
    exit
    or CTRL + C
  13. Install SuperUser
    Code:
    adb install com.koushikdutta.superuser.apk
  14. Install BusyBox
    Code:
    adb install stericson.busybox.apk
  15. Run SuperUser on the OUYA (Make > Software > SuperUser) and allow it to update
Inputting the adb shell su I get device not found message. Im opening a comand promt in platform-tools.
 

TadeoNYC

Senior Member
May 9, 2013
281
50
0
New York
Inputting the adb shell su I get device not found message. Im opening a comand promt in platform-tools.
Do you have adb properly set up as on http://forum.xda-developers.com/showthread.php?p=41247928 ?

Check your device manager and make sure your ouya is properly installed, you need adb drivers. Easiest ones to get are from Samsung kies, you'll then have to them manually select them "have disc". I figured all of this out in a few hours with a little help. It's hard because the info is a little spread around.

Sent from my GT-P3113 using Tapatalk 4 Beta
 

ineedaname

Member
Nov 7, 2010
30
5
0
The command should be "adb push su /sdcard/su" (pushing su to the sdcard).

  1. Setup wired and/or wireless ADB
  2. (Optional) Put adb.exe in your Windows PATH variable so you can run it from anywhere
  3. Download and unzip the SuperUser files from http://d-h.st/BBk
  4. Open an ADB shell with elevated permissions
    Code:
    adb shell
    su
  5. Mount the system partition as read-write
    Code:
    mount -o rw,remount -t ext4 /dev/block/platform/sdhci-tegra.3/by-name/APP
  6. Exit the ADB shell
    Code:
    exit
    exit
    or CTRL + C
  7. Push su to the sdcard
    Code:
    adb push su /sdcard/su
  8. Open an ADB shell with elevated permissions
    Code:
    adb shell
    su
  9. Cat su into /system/xbin
    Code:
    cat /sdcard/su > /system/xbin/su
  10. Create a symbolic link to su in /system/xbin from /system/bin (safer/cleaner than just putting su directly in the bin folder)
    Code:
    ln -s /system/xbin/su /system/bin/su
  11. Set the su permissions to -rwsr-sr-x
    Code:
    chmod 6755 /system/xbin/su
  12. Exit the ADB shell
    Code:
    exit
    exit
    or CTRL + C
  13. Install SuperUser
    Code:
    adb install com.koushikdutta.superuser.apk
  14. Install BusyBox
    Code:
    adb install stericson.busybox.apk
  15. Run SuperUser on the OUYA (Make > Software > SuperUser) and allow it to update
This worked perfect thanks!!!
 

TadeoNYC

Senior Member
May 9, 2013
281
50
0
New York
how exactly do you do step 4 Open an ADB shell with elevated permissions. Sorry for the stupid question.
You really should just watch an adb tutorial on YouTube, because I'm not sure what it is that you don't understand at this point. I'm a complete noob to android and Linux and figured this out in a few hours. If you are this uncertain about what to do, maybe you shouldn't do it.

Sent from my GT-P3113 using Tapatalk 4 Beta
 

tennisbgc

Senior Member
May 27, 2013
90
3
0
You really should just watch an adb tutorial on YouTube, because I'm not sure what it is that you don't understand at this point. I'm a complete noob to android and Linux and figured this out in a few hours. If you are this uncertain about what to do, maybe you shouldn't do it.

Sent from my GT-P3113 using Tapatalk 4 Beta
actually it turns out on the instrustion for setting up adb im not getting a device number after I input this
adb kill-server
echo 0x2836 >> "%USERPROFILE%\.android\adb_usb.ini"
adb start-server
adb devices
 
Last edited:

TadeoNYC

Senior Member
May 9, 2013
281
50
0
New York
actually it turns out on the instrustion for setting up adb im not getting a device number after I input this
adb kill-server
echo 0x2836 >> "%USERPROFILE%\.android\adb_usb.ini"
adb start-server
adb devices
Okay, go through this thread and look at all the steps others took to troubleshoot the device not being functional in the device manager in system panel. I told you to do this earlier, have you?

Let us know what type of device ouya is listed as in the device manager.

Sent from my GT-P3113 using Tapatalk 4 Beta
 

tennisbgc

Senior Member
May 27, 2013
90
3
0
Okay, go through this thread and look at all the steps others took to troubleshoot the device not being functional in the device manager in system panel. I told you to do this earlier, have you?

Let us know what type of device ouya is listed as in the device manager.

Sent from my GT-P3113 using Tapatalk 4 Beta
its listed as a portable device.What should it be listed as?
 
Last edited:

TadeoNYC

Senior Member
May 9, 2013
281
50
0
New York
its listed as a portable device.What should it be listed as?
Since mine isn't connected I'm not certain but I think it should be mtp. You need to go I'm too advanced properties and make sure it using adb drivers, if it isn't you need to manually add them by selecting update driver and then selecting have disk and pointing it to the adb driver.

Search Google, this exact problem is out there with much more of a walkthrough then I have time to provide.

Sent from my GT-P3113 using Tapatalk 4 Beta
 
Last edited:

simbaba

Member
Jun 27, 2013
37
3
0
The command should be "adb push su /sdcard/su" (pushing su to the sdcard).

  1. Setup wired and/or wireless ADB
  2. (Optional) Put adb.exe in your Windows PATH variable so you can run it from anywhere
  3. Download and unzip the SuperUser files from http://d-h.st/BBk
  4. Open an ADB shell with elevated permissions
    Code:
    adb shell
    su
  5. Mount the system partition as read-write
    Code:
    mount -o rw,remount -t ext4 /dev/block/platform/sdhci-tegra.3/by-name/APP
  6. Exit the ADB shell
    Code:
    exit
    exit
    or CTRL + C
  7. Push su to the sdcard
    Code:
    adb push su /sdcard/su
  8. Open an ADB shell with elevated permissions
    Code:
    adb shell
    su
  9. Cat su into /system/xbin
    Code:
    cat /sdcard/su > /system/xbin/su
  10. Create a symbolic link to su in /system/xbin from /system/bin (safer/cleaner than just putting su directly in the bin folder)
    Code:
    ln -s /system/xbin/su /system/bin/su
  11. Set the su permissions to -rwsr-sr-x
    Code:
    chmod 6755 /system/xbin/su
  12. Exit the ADB shell
    Code:
    exit
    exit
    or CTRL + C
  13. Install SuperUser
    Code:
    adb install com.koushikdutta.superuser.apk
  14. Install BusyBox
    Code:
    adb install stericson.busybox.apk
  15. Run SuperUser on the OUYA (Make > Software > SuperUser) and allow it to update
Hello,

I follow exactly and i have 3 errors :



------------> Superuser is installed but can't update.
 

gianptune

Senior Member
Oct 10, 2010
212
87
0
it looks like you mistyped something. "sumount: not found" maybe you forget to press 'enter' between 'su' and 'mount'. and later you have 'exitexit' this is supposed to be 'exit', <press enter>, 'exit'.
 

Theraze

Senior Member
Jan 19, 2012
854
371
83
su and mount are two different commands. On different lines. Not a single command named sumount.

Or to say it differently... hit enter after step 4.
 

mfg_Static

New member
Apr 15, 2009
4
0
0
The command should be "adb push su /sdcard/su" (pushing su to the sdcard).

  1. Cat su into /system/xbin
    Code:
    cat /sdcard/su > /system/xbin/su
  2. Create a symbolic link to su in /system/xbin from /system/bin (safer/cleaner than just putting su directly in the bin folder)
    Code:
    ln -s /system/xbin/su /system/bin/su
  3. Set the su permissions to -rwsr-sr-x

Whenever I type this it says
1|[email protected]:/ $ su cat /sdcard/su > /system/xbin/su
/system/bin/sh: can't create /system/xbin/su: Read-only file system

and:

1|[email protected]:/ $ ln -s /system/xbin/su /system/bin/su
link failed File exists

Any ideas what this could be?
I skipped this 2 parts and could install the apks, but I cannot update the superuser, because it fails with a error, and other apps doesn't seem to have root access.
 
Last edited:

elmerohueso

Senior Member
Nov 29, 2010
568
224
0
Provo
Whenever I type this it says
1|[email protected]:/ $ su cat /sdcard/su > /system/xbin/su
/system/bin/sh: can't create /system/xbin/su: Read-only file system
You combined two commands into one. "su" is one command (to get elevated privileges), and "cat /sdcard/su > /system/xbin/su" is the next command.
______________________________________________________________________

I decided I'd clarify and simplify the steps a bit..

Note: Each command is on its own line. If box of code has 2 lines, it's 2 different commands. Press ENTER after each command.

  1. Setup wired and/or wireless ADB, according to the steps at http://forum.xda-developers.com/showthread.php?t=2272266
  2. (Recommended) Put the full path to adb.exe in your Windows PATH variable so you can run it from anywhere
  3. Download and unzip the SuperUser files from http://d-h.st/BBk (if you skipped step 2, you must extract these files to the same directory as adb.exe)
  4. Open a Command Prompt/Terminal window and navigate to the directory with your extracted files
  5. Push su to the sdcard
    Code:
    adb push su /sdcard/su
  6. Open an ADB shell with elevated permissions
    Code:
    adb shell
    su
  7. Mount the system partition as read-write
    Code:
    mount -o rw,remount -t ext4 /dev/block/platform/sdhci-tegra.3/by-name/APP
  8. Cat su into /system/xbin
    Code:
    cat /sdcard/su > /system/xbin/su
  9. Create a symbolic link to su in /system/xbin from /system/bin (safer/cleaner than just putting su directly in the bin folder)
    Code:
    ln -s /system/xbin/su /system/bin/su
  10. Set the su permissions to -rwsr-sr-x
    Code:
    chmod 6755 /system/xbin/su
  11. Exit the ADB shell
    Code:
    exit
    exit
    or CTRL + C
  12. Install SuperUser
    Code:
    adb install com.koushikdutta.superuser.apk
  13. Install BusyBox
    Code:
    adb install stericson.busybox.apk
  14. Run SuperUser on the OUYA (Make > Software > SuperUser) and allow it to update
 
Last edited:

mfg_Static

New member
Apr 15, 2009
4
0
0
Hi,
I tried this of course as well, because it I'd already written in the howto like that, but I had no success.
I finally managed to do it by sideloading the ota again, and then rooting again.
Now I also got a # instead of a $ when using su.
Everything then worked as described.
When there are other people out they with this particular problem: factory reset doesn't reset that files, try to sideload ota again and then it should work.

- Sent from Nexus 4 with Tapatalk
 

elmerohueso

Senior Member
Nov 29, 2010
568
224
0
Provo
su is not working for me after I do
Code:
./adb shell
su
nothing changes and still I get
Code:
 Operation not permitted
why?
Something must be wrong with your image. This issue usually happens if you've messed with su already (the one that comes built in) and either changed its permissions or removed it. You'll need to grab the latest OTA zip and flash it via recovery.
 
  • Like
Reactions: JebyDroid
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone