[HOWTO] Installing Superuser/busybox for Mac

Search This thread

WinDroidGuy

Senior Member
Jun 23, 2012
1,059
957
Seattle
www.youtube.com
Device is pre-rooted, but only lets you do stuff via terminal. I didn't find a way to install Superuser/busybox on Mac, so I decided to make a simple guide. Took me all of 3min to complete, well since I already had the sdk and everything else installed.

You'll need this Superuser.apk, su binary and busybox.apk, dL the files from here http://d-h.st/BBk, once you have the files installed and launch Superuser it will ask you to update the binary, just click yes. Place the 3 files in your sdk/platform-tools folder.

Open Terminal cd sdk/platform-tools

On your Desktop go to Go…Go to Folder and type ~/.android, open adb_usb.ini and add 0x2836 to that file, save and close.

To verify it's listed:

./adb kill-server
echo 0x2836
./adb start-server
./adb devices

Your device should be listed here. If you want wireless adb access so you're not always hooked up to the console do the following, make sure your device is still connected via usb:

./adb tcpip 5555
unplug console
./adb connect xxx.xxx.xxx.xxx (this is the ip of your console, this is listed under manage…system…console info, should be the second line)

You're set, now you can install apps wirelessly to your OUYA console. You need to make the console read/write to do this do the following

./adb shell
su
mount -o rw,remount -t ext4 /dev/block/platform/sdhci-tegra.3/by-name/APP
mount -o rw,remount -t ext4 /dev/block/platform/sdhci-tegra.3/by-name/UDA
mount -o rw,remount -t ext4 /dev/block/platform/sdhci-tegra.3/by-name/CAC

Now we will install su binary, superuser and busybox

./adb push su/system/bin/su /sdcard/su
./adb shell
su
cat /sdcard/su > /system/xbin/su
ln -s /system/xbin/su /system/bin/su
chmod 6755 /system/xbin/su
exit
exit
./adb install com.koushikdutta.superuser.apk
./adb install stericson.busybox.apk

Should be up and running, if this helped you please thank me or donate a couple bucks :)
 
Last edited:

tcollum

Senior Member
Feb 10, 2011
142
57
You rock!

I was at this for a while before I found your post. I'm on windows, but this is the only thread I could find that had anything useful ;) Mind if I share this around on other forums?
 

rayman

Senior Recognized Developer
May 1, 2008
278
1,392
Device is pre-rooted, but only lets you do stuff via terminal. I didn't find a way to install Superuser/busybox on Mac, so I decided to make a simple guide. Took me all of 3min to complete, well since I already had the sdk and everything else installed.

You'll need this Superuser.apk, su binary and busybox.apk, dL the files from here http://d-h.st/BBk, once you have the files installed and launch Superuser it will ask you to update the binary, just click yes. Place the 3 files in your sdk/platform-tools folder.

Open Terminal cd sdk/platform-tools

On your Desktop go to Go…Go to Folder and type ~/.android, open adb_usb.ini and add 0x2836 to that file, save and close.

To verify it's listed:

./adb kill-server
echo 0x2836
./adb start-server
./adb devices

Your device should be listed here. If you want wireless adb access so you're not always hooked up to the console do the following, make sure your device is still connected via usb:

./adb tcpip 5555
unplug console
./adb connect xxx.xxx.xxx.xxx (this is the ip of your console, this is listed under manage…system…console info, should be the second line)

You're set, now you can install apps wirelessly to your OUYA console. You need to make the console read/write to do this do the following

./adb shell
su
mount -o rw,remount -t ext4 /dev/block/platform/sdhci-tegra.3/by-name/APP
mount -o rw,remount -t ext4 /dev/block/platform/sdhci-tegra.3/by-name/UDA
mount -o rw,remount -t ext4 /dev/block/platform/sdhci-tegra.3/by-name/CAC

Now we will install su binary, superuser and busybox

./adb push su/system/bin/su /sdcard/su
./adb shell
su
cat /sdcard/su > /system/bin/su
cat /sdcard/su > /system/xbin/su
exit
exit
./adb install com.koushikdutta.superuser.apk
./adb install stericson.busybox.apk

Should be up and running, if this helped you please thank me or donate a couple bucks :)
It's pure luck that this works. There's several things wrong with it.

  1. There's no reason to have two copies of su. There should only be one, and at most have the other be a symlink.
  2. the su binary should be chmodded '6755'.

It works because piping the contents of a file to another file usually leaves the permissions intact. So, sort of works - it leaves a broken copy of su in /system/bin and a luckily working one in /system/xbin.

So, tl;dr, the guide should be:

Code:
./adb push su/system/bin/su /sdcard/su
./adb shell
su
cat /sdcard/su > /system/xbin/su
ln -s /system/xbin/su /system/bin/su
chmod 6755 /system/xbin/su
exit
exit
./adb install com.koushikdutta.superuser.apk
 
  • Like
Reactions: cweiske

WinDroidGuy

Senior Member
Jun 23, 2012
1,059
957
Seattle
www.youtube.com
It's pure luck that this works. There's several things wrong with it.

  1. There's no reason to have two copies of su. There should only be one, and at most have the other be a symlink.
  2. the su binary should be chmodded '6755'.

It works because piping the contents of a file to another file usually leaves the permissions intact. So, sort of works - it leaves a broken copy of su in /system/bin and a luckily working one in /system/xbin.

So, tl;dr, the guide should be:

Code:
./adb push su/system/bin/su /sdcard/su
./adb shell
su
cat /sdcard/su > /system/xbin/su
ln -s /system/xbin/su /system/bin/su
chmod 6755 /system/xbin/su
exit
exit
./adb install com.koushikdutta.superuser.apk

Thanks, this was my first time doing anything like this...figured I'd try to hack together something from other guides, since I didn't see very many people with the device yet. I will change it now :)
 

lilstevie

Senior Recognized Developer
Apr 17, 2009
1,339
1,040
mount -o rw,remount -t ext4 /dev/block/platform/sdhci-tegra.3/by-name/UDA
mount -o rw,remount -t ext4 /dev/block/platform/sdhci-tegra.3/by-name/CAC

This is really pointless, userdata is already RW, cache should be RW, but more importantly you do nothing that would require them to be remounted
 

elmerohueso

Senior Member
Nov 29, 2010
568
224
Provo
I'm not sure what I am doing wrong here. Can anyone help? All the files are there.

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
 
Last edited:

TadeoNYC

Senior Member
May 9, 2013
281
50
New York
Thank you Elmero.

I'm so glad I gave up and went to bed last night. It could not have gone smoother. I followed the instructions for setting up wireless adb from here http://forum.xda-developers.com/showthread.php?t=2272266 as well.

TIP: I wasted an hour or more trying to figure out why PC was not recognizing the OUYA at all. It was the stupid Micro usb port, compunding the fact that all the ports are to close to begin with the micro usb port is very deep. Neither of my Samsung cables worked, fortunately I have a kodak pocket video cam and the cable for that is a few mm longer and worked perfectly.
 

FrostyWolf

Senior Member
Jun 3, 2008
152
45
Punta Gorda
www.FrostyWolf.com
Last edited:

TadeoNYC

Senior Member
May 9, 2013
281
50
New York
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

So what steps need to be repeated after the OTA?

from my limited understanding I think it should be steps 4 through 12. Or does the system partition not need to be mounted as read-write again?

Sent from my GT-P3113 using Tapatalk 4 Beta
 

professorpoptart

Senior Member
Jul 7, 2010
166
110
Yup 4-12

Edit
If su is still on the sdcard you can skip 6-8... wont hurt if you do them though...

Sent from my SAMSUNG-SGH-I337 using xda app-developers app
 
Last edited:

mybook4

Senior Member
Apr 3, 2011
445
267
Yup 4-12

Edit
If su is still on the sdcard you can skip 6-8... wont hurt if you do them though...

Sent from my SAMSUNG-SGH-I337 using xda app-developers app

Might be a good idea to do them. The OTA version of such is different from the one in this guide. I had tried keeping the stock su and superuser complained

Sent from my Nexus 7 using xda premium
 

htc-rocks

Senior Member
May 20, 2010
177
27
Do you still have access to the ouya store after SU installed? I heard rumors that access to the store was blocked until root access removed?

Sent from my GT-N7100 using Tapatalk 2
 

Top Liked Posts

  • There are no posts matching your filters.
  • 10
    Device is pre-rooted, but only lets you do stuff via terminal. I didn't find a way to install Superuser/busybox on Mac, so I decided to make a simple guide. Took me all of 3min to complete, well since I already had the sdk and everything else installed.

    You'll need this Superuser.apk, su binary and busybox.apk, dL the files from here http://d-h.st/BBk, once you have the files installed and launch Superuser it will ask you to update the binary, just click yes. Place the 3 files in your sdk/platform-tools folder.

    Open Terminal cd sdk/platform-tools

    On your Desktop go to Go…Go to Folder and type ~/.android, open adb_usb.ini and add 0x2836 to that file, save and close.

    To verify it's listed:

    ./adb kill-server
    echo 0x2836
    ./adb start-server
    ./adb devices

    Your device should be listed here. If you want wireless adb access so you're not always hooked up to the console do the following, make sure your device is still connected via usb:

    ./adb tcpip 5555
    unplug console
    ./adb connect xxx.xxx.xxx.xxx (this is the ip of your console, this is listed under manage…system…console info, should be the second line)

    You're set, now you can install apps wirelessly to your OUYA console. You need to make the console read/write to do this do the following

    ./adb shell
    su
    mount -o rw,remount -t ext4 /dev/block/platform/sdhci-tegra.3/by-name/APP
    mount -o rw,remount -t ext4 /dev/block/platform/sdhci-tegra.3/by-name/UDA
    mount -o rw,remount -t ext4 /dev/block/platform/sdhci-tegra.3/by-name/CAC

    Now we will install su binary, superuser and busybox

    ./adb push su/system/bin/su /sdcard/su
    ./adb shell
    su
    cat /sdcard/su > /system/xbin/su
    ln -s /system/xbin/su /system/bin/su
    chmod 6755 /system/xbin/su
    exit
    exit
    ./adb install com.koushikdutta.superuser.apk
    ./adb install stericson.busybox.apk

    Should be up and running, if this helped you please thank me or donate a couple bucks :)
    9
    I'm not sure what I am doing wrong here. Can anyone help? All the files are there.

    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
    1
    Device is pre-rooted, but only lets you do stuff via terminal. I didn't find a way to install Superuser/busybox on Mac, so I decided to make a simple guide. Took me all of 3min to complete, well since I already had the sdk and everything else installed.

    You'll need this Superuser.apk, su binary and busybox.apk, dL the files from here http://d-h.st/BBk, once you have the files installed and launch Superuser it will ask you to update the binary, just click yes. Place the 3 files in your sdk/platform-tools folder.

    Open Terminal cd sdk/platform-tools

    On your Desktop go to Go…Go to Folder and type ~/.android, open adb_usb.ini and add 0x2836 to that file, save and close.

    To verify it's listed:

    ./adb kill-server
    echo 0x2836
    ./adb start-server
    ./adb devices

    Your device should be listed here. If you want wireless adb access so you're not always hooked up to the console do the following, make sure your device is still connected via usb:

    ./adb tcpip 5555
    unplug console
    ./adb connect xxx.xxx.xxx.xxx (this is the ip of your console, this is listed under manage…system…console info, should be the second line)

    You're set, now you can install apps wirelessly to your OUYA console. You need to make the console read/write to do this do the following

    ./adb shell
    su
    mount -o rw,remount -t ext4 /dev/block/platform/sdhci-tegra.3/by-name/APP
    mount -o rw,remount -t ext4 /dev/block/platform/sdhci-tegra.3/by-name/UDA
    mount -o rw,remount -t ext4 /dev/block/platform/sdhci-tegra.3/by-name/CAC

    Now we will install su binary, superuser and busybox

    ./adb push su/system/bin/su /sdcard/su
    ./adb shell
    su
    cat /sdcard/su > /system/bin/su
    cat /sdcard/su > /system/xbin/su
    exit
    exit
    ./adb install com.koushikdutta.superuser.apk
    ./adb install stericson.busybox.apk

    Should be up and running, if this helped you please thank me or donate a couple bucks :)
    It's pure luck that this works. There's several things wrong with it.

    1. There's no reason to have two copies of su. There should only be one, and at most have the other be a symlink.
    2. the su binary should be chmodded '6755'.

    It works because piping the contents of a file to another file usually leaves the permissions intact. So, sort of works - it leaves a broken copy of su in /system/bin and a luckily working one in /system/xbin.

    So, tl;dr, the guide should be:

    Code:
    ./adb push su/system/bin/su /sdcard/su
    ./adb shell
    su
    cat /sdcard/su > /system/xbin/su
    ln -s /system/xbin/su /system/bin/su
    chmod 6755 /system/xbin/su
    exit
    exit
    ./adb install com.koushikdutta.superuser.apk
    1
    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.
    1
    This question was asked and answered starting with post 17.

    I would just do one click now.

    Sent from my GT-P3113 using Tapatalk 4 Beta
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