[how-to] root humancyborg's 2.1 [and any other rom without root]

Discussion in 'Android Hacks and Help' started by iSecks, Dec 31, 2009.

  1. iSecks

    iSecks Member

    Joined:
    Nov 26, 2009
    Messages:
    108
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    Step-by-step instructions:
    1. Reboot into recovery.
    2. Using the recovery menus, mount /system
    3. Through adb, push the su binary from http://magicandroidapps.com/su.zip to /system/bin/ [NOT the zip file, the file inside of the zip file. It will just be named "su" without a file extension.]
    4. chmod su to 6755
    Code:
    chmod 6755 /system/bin/su
    5. unmount /system
    6. reboot!

    Oh, and this will only work on other roms without root if you have a custom recovery that allows root access to the device through adb. [Such as SirPsychoS' recovery menu]
     
  2. psufan5

    psufan5 Member

    Joined:
    Dec 17, 2009
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    could you post the commands for the adb part? Im assuming you mean on my computer? could you type the commands?

    Thanks
     
  3. pcandroid

    pcandroid Member

    Joined:
    Nov 28, 2009
    Messages:
    249
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    Yea step 3 and 4 make no sense if you are not familiar with adb.
     
  4. psufan5

    psufan5 Member

    Joined:
    Dec 17, 2009
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    Ok this is what i did - put su in your tools folder in your android SDK...

    / # mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
    / # busybox cp -R sdcard/su /system/bin
    / # chmod 6755 /system/bin/su
    / # reboot


    Worked for me and I didnt need to boot into recovery.
     
  5. pcandroid

    pcandroid Member

    Joined:
    Nov 28, 2009
    Messages:
    249
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    got it thanks
     
    Last edited: Dec 31, 2009
  6. iSecks

    iSecks Member

    Joined:
    Nov 26, 2009
    Messages:
    108
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    Do NOT mount /system as mtdblock3. This is not the correct way to mount on the droid. It could brick if you do it that way. The reason I said to boot into recovery is because there is a mount submenu that lets you mount and unmount all of the partitions, so you don't have to type any long commands and risk messing up.

    I'm REALLY in a hurry right now and I've got to go, I'll post the commands from my phone in the car. brb.

    EDIT: Okay, if you don't know how to use ADB, there's a thread on how to use it on the first page in this forum. Now, to push su to your phone, open a command prompt on your computer and change directories to your android sdk tools folder. From here, runthis command:
    (/system must be mounted or this will do nothing! Its easy to mount in recovery if you don't know how. If you think you do, make sure you don't mount on /mtdblock3 as that CAN BRICK your phone)
    Code:
    adb push C:\path\to\su /system/bin/su
    After that, run these commands one line at a time.
    Code:
    adb shell
    chmod 6755 /system/bin/su
    exit
    Good luck.
     
    Last edited: Dec 31, 2009
  7. GrandMasterB

    GrandMasterB Member

    Joined:
    Dec 25, 2009
    Messages:
    262
    Likes Received:
    3
    Trophy Points:
    18
    Ratings:
    +3
    VERY COOL, many thanks!
     
  8. psufan5

    psufan5 Member

    Joined:
    Dec 17, 2009
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0

    Good to know!
     
  9. freddroidhead

    freddroidhead Member

    Joined:
    Dec 21, 2009
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Akron, OH.
    Ratings:
    +0
    This is not working for me. I mounted the system, I did get su copied over but the chmod 6755 thing is not working. I don't know what to do.
     
    Last edited: Jan 10, 2010
  10. AdamZ

    AdamZ Premium Member Premium Member

    Joined:
    Dec 24, 2009
    Messages:
    76
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    As iSecks mentioned... you need to have your /system partition mounted... If you are performing these commands inrecovery via ADB: DO NOT MOUNT MTDBLOCK 4 WITH ADB IN RECOVERY... MTDBLOCK 4 IS NOT /SYSTEM PARTITION IN RECOVERY... I believe it is mtdblock6 for /system in Recovery mode...

    Navigate to "Mounting options" in SPRecovery... from there select "Mount /system" and "Mount /sdcard"

    Now perform the commands from the original post..
     
  11. tktouch12

    tktouch12 Active Member

    Joined:
    Nov 17, 2009
    Messages:
    1,240
    Likes Received:
    0
    Trophy Points:
    36
    Ratings:
    +0
    This is really great to know, but doesn't every rom pretty much have root?
     
  12. freddroidhead

    freddroidhead Member

    Joined:
    Dec 21, 2009
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Akron, OH.
    Ratings:
    +0
    it's saying chmod: command not found
     
  13. freddroidhead

    freddroidhead Member

    Joined:
    Dec 21, 2009
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Akron, OH.
    Ratings:
    +0
    I just had to reinstall 2.1 from the backup file in nandroid. Somehow the system got messed up from trying to use the wifi tether which is not working right with 2.1.
     
  14. Wrenbjor

    Wrenbjor Member

    Joined:
    Nov 6, 2009
    Messages:
    86
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    I'm getting the same thing, chmod: command not found, I have 2.1 on there now and I want to goto sholes 2.0.1 1.2
     
  15. vpshockwave

    vpshockwave Member

    Joined:
    Dec 15, 2009
    Messages:
    164
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    Do you guys have busybox installed? I think chmod needs busybox to work.
     
Search tags for this page
adb push 4.0.3 su binary
,
adb push to system without root
,
chmod su binary
,
how to get the su binary on my tablet without a computer or root
,
how to push file without su
,
how to push su binary adb
,

how to push su binary with adb

,
push rom using adb mount system ?
,
push su binary with adb
,
root without rom#gsc.tab