• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

How to root the Droid 2

Search This thread

karnovaran

Senior Member
Jul 27, 2009
598
71
PDX
Put it in and now when i put in the adb push line it displays the whole list of adb commands
So you've done all of this..
Code:
Setup:
- Install adb (here) and Motorola drivers (here)
- Download attached archive
- Extract to a directory, I used c:\Droid2Root
- Make sure you have USB degugging enabled
- Change connection to PC Mode

Process:
- Open command prompt
- cd c:/wherever-your-sdk-tools-folder-is
- adb devices (to verify the connection)
- cd c:/Droid2Root
- adb push Superuser.apk /sdcard/Superuser.apk
..and at that last line it just displays a list of adb commands?
 

jerseyh22accord

Senior Member
Jun 5, 2010
74
1
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\Jeremy>cd c:/droidadb/android-sdk-windows/tools

c:\DroidAdb\android-sdk-windows\tools>adb devices
List of devices attached
xxxxxxxxxxx device


c:\DroidAdb\android-sdk-windows\tools>cd c:/droid2root

c:\Droid2Root>adb push superuser.apk/sdcard/superuser.apk
Android Debug Bridge version 1.0.26

-d - directs command to the only connected USB devic
e
returns an error if more than one USB device is
present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is r
unning.
-s <serial number> - directs command to the USB device or emulator w
ith
the given serial number. Overrides ANDROID_SERI
AL
environment variable.
-p <product name or path> - simple product name like 'sooner', or
a relative/absolute path to a product
out directory like 'out/target/product/sooner'.

If -p is not specified, the ANDROID_PRODUCT_OUT

environment variable is used, which must
be an absolute path.
devices - list all connected devices
connect <host>:<port> - connect to a device via TCP/IP
disconnect <host>:<port> - disconnect from a TCP/IP device

device commands:
adb push <local> <remote> - copy file/dir to device
adb pull <remote> [<local>] - copy file/dir from device
adb sync [ <directory> ] - copy host->device only if changed
(see 'adb help all')
adb shell - run remote shell interactively
adb shell <command> - run remote shell command
adb emu <command> - run emulator console command
adb logcat [ <filter-spec> ] - View device log
adb forward <local> <remote> - forward socket connections
forward specs are one of:
tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only)
adb jdwp - list PIDs of processes hosting a JDWP transport

adb install [-l] [-r] [-s] <file> - push this package file to the device and i
nstall it
('-l' means forward-lock the app)
('-r' means reinstall the app, keeping its data
)
('-s' means install on SD card instead of inter
nal storage)
adb uninstall [-k] <package> - remove this app package from the device
('-k' means keep the data and cache directories
)
adb bugreport - return all information from the device
that should be included in a bug report.

adb help - show this help message
adb version - show version num

DATAOPTS:
(no option) - don't touch the data partition
-w - wipe the data partition
-d - flash the data partition

scripting:
adb wait-for-device - block until device is online
adb start-server - ensure that there is a server running
adb kill-server - kill the server if it is running
adb get-state - prints: offline | bootloader | device
adb get-serialno - prints: <serial-number>
adb status-window - continuously print device status for a specifie
d device
adb remount - remounts the /system partition on the device re
ad-write
adb reboot [bootloader|recovery] - reboots the device, optionally into the boo
tloader or recovery program
adb reboot-bootloader - reboots the device into the bootloader
adb root - restarts the adbd daemon with root permissions
adb usb - restarts the adbd daemon listening on USB
adb tcpip <port> - restarts the adbd daemon listening on TCP on th
e specified port
networking:
adb ppp <tty> [parameters] - Run PPP over USB.
Note: you should not automatically start a PPP connection.
<tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
[parameters] - Eg. defaultroute debug dump local notty usepeerdns

adb sync notes: adb sync [ <directory> ]
<localdir> can be interpreted in several ways:

- If <directory> is not specified, both /system and /data partitions will be u
pdated.

- If it is "system" or "data", only the corresponding partition
is updated.

c:\Droid2Root>
 

KnightCrusader

Senior Member
Nov 16, 2008
267
35
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\Jeremy>cd c:/droidadb/android-sdk-windows/tools

c:\DroidAdb\android-sdk-windows\tools>adb devices
List of devices attached
xxxxxxxxxxx device


c:\DroidAdb\android-sdk-windows\tools>cd c:/droid2root

c:\Droid2Root>adb push superuser.apk/sdcard/superuser.apk
Android Debug Bridge version 1.0.26

-d - directs command to the only connected USB devic
e
returns an error if more than one USB device is
present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is r
unning.
-s <serial number> - directs command to the USB device or emulator w
ith
the given serial number. Overrides ANDROID_SERI
AL
environment variable.
-p <product name or path> - simple product name like 'sooner', or
a relative/absolute path to a product
out directory like 'out/target/product/sooner'.

If -p is not specified, the ANDROID_PRODUCT_OUT

environment variable is used, which must
be an absolute path.
devices - list all connected devices
connect <host>:<port> - connect to a device via TCP/IP
disconnect <host>:<port> - disconnect from a TCP/IP device

device commands:
adb push <local> <remote> - copy file/dir to device
adb pull <remote> [<local>] - copy file/dir from device
adb sync [ <directory> ] - copy host->device only if changed
(see 'adb help all')
adb shell - run remote shell interactively
adb shell <command> - run remote shell command
adb emu <command> - run emulator console command
adb logcat [ <filter-spec> ] - View device log
adb forward <local> <remote> - forward socket connections
forward specs are one of:
tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only)
adb jdwp - list PIDs of processes hosting a JDWP transport

adb install [-l] [-r] [-s] <file> - push this package file to the device and i
nstall it
('-l' means forward-lock the app)
('-r' means reinstall the app, keeping its data
)
('-s' means install on SD card instead of inter
nal storage)
adb uninstall [-k] <package> - remove this app package from the device
('-k' means keep the data and cache directories
)
adb bugreport - return all information from the device
that should be included in a bug report.

adb help - show this help message
adb version - show version num

DATAOPTS:
(no option) - don't touch the data partition
-w - wipe the data partition
-d - flash the data partition

scripting:
adb wait-for-device - block until device is online
adb start-server - ensure that there is a server running
adb kill-server - kill the server if it is running
adb get-state - prints: offline | bootloader | device
adb get-serialno - prints: <serial-number>
adb status-window - continuously print device status for a specifie
d device
adb remount - remounts the /system partition on the device re
ad-write
adb reboot [bootloader|recovery] - reboots the device, optionally into the boo
tloader or recovery program
adb reboot-bootloader - reboots the device into the bootloader
adb root - restarts the adbd daemon with root permissions
adb usb - restarts the adbd daemon listening on USB
adb tcpip <port> - restarts the adbd daemon listening on TCP on th
e specified port
networking:
adb ppp <tty> [parameters] - Run PPP over USB.
Note: you should not automatically start a PPP connection.
<tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
[parameters] - Eg. defaultroute debug dump local notty usepeerdns

adb sync notes: adb sync [ <directory> ]
<localdir> can be interpreted in several ways:

- If <directory> is not specified, both /system and /data partitions will be u
pdated.

- If it is "system" or "data", only the corresponding partition
is updated.

c:\Droid2Root>

I don't know if it is the formatting but it looks like your "adb push superuser.apk/sdcard/superuser.apk" line is ran together. There needs to be a space between superuser.apk and /sdcard/superuser.apk. Without the destination I guess ADB doesn't know what is going on.
 

karnovaran

Senior Member
Jul 27, 2009
598
71
PDX
I don't know if it is the formatting but it looks like your "adb push superuser.apk/sdcard/superuser.apk" line is ran together. There needs to be a space between superuser.apk and /sdcard/superuser.apk. Without the destination I guess ADB doesn't know what is going on.
This.

Just copy the commands from here so you don't have any typos. To paste in the command window, you must right click and select paste.
 

michael573114

Member
Aug 25, 2010
14
0
Well yes, because the arguments for "adb push" are the source and destination files/paths. Of course you need a space seperating them. This is demonstrated in that "whole list of adb commands" it printed out.
 

sky0401

New member
Aug 25, 2010
1
0
NO i got stop on "mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system" permission denied cant do nothing cant even go back now ....help please
 

netpeer

New member
Aug 25, 2010
2
0
][/QUOTE]


This thing does not work.

Initially I got stuck @ cp the files from the sdcard to the /system folder..It was saying can't find the files...While doing ls /mnt/sdcard it showed no files...So I rebooted the phone cause it was going slow...I need to say that first time I did get #

Second time did all again but now I dont get a # prompt...

What could be wrong?

I will just wait for the GUI version.

Thanks.
 

metman87

Member
Jan 18, 2009
18
0
Works great

Never rooted an Android device before. Barely even use command prompt but followed the directions and it worked like a charm. Now I'm tethering to my iPad through Barnacle and I can stop wasting 20 bucks a month.
 

netpeer

New member
Aug 25, 2010
2
0


This thing does not work.

Initially I got stuck @ cp the files from the sdcard to the /system folder..It was saying can't find the files...While doing ls /mnt/sdcard it showed no files...So I rebooted the phone cause it was going slow...I need to say that first time I did get #

Second time did all again but now I dont get a # prompt...

What could be wrong?

I will just wait for the GUI version.

Thanks.[/QUOTE]


EDIT: This thing DOES work! Wooo...
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    All credit for the binary goes to Sebastian Krahmer at http://c-skills.blogspot.com/. Please see fit to donate via Paypal to [email protected]

    If you want a simpler 'one-click' process, go to this thread: Easier 1-2-3 Droid 2 Root for Windows / Linux / Mac

    ***NOTE: Proceed at your own risk. I and the providers of this code are not responsible for anything you do to your phone!***

    Setup:
    - Install adb (here) and Motorola drivers for windows(32-bit or 64-bit)
    - Download attached archive
    - Extract to a directory, I used c:\Droid2Root
    - Make sure you have USB degugging enabled
    - Change connection to PC Mode

    Process:
    - Open command prompt
    - cd c:/wherever-your-sdk-tools-folder-is
    - adb devices (to verify the connection)
    - cd c:/Droid2Root
    - adb push Superuser.apk /sdcard/Superuser.apk
    - adb push su /sdcard/su
    - adb push busybox /sdcard/busybox
    - adb push rageagainstthecage-arm5.bin /data/local/tmp/rageagainstthecage-arm5.bin
    - adb shell
    - cd data/local/tmp
    - chmod 0755 rageagainstthecage-arm5.bin

    - ./rageagainstthecage-arm5.bin
    - let the process run until it 'kicks' you out (may take a minute or two) to c:/Droid2Root
    - cd c:/wherever-your-sdk-tools-folder-is
    - adb kill-server
    - adb devices (to verify the connection)
    - adb shell (you should now have a # prompt, if not return to ./rage step above)

    - mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
    - cp /sdcard/Superuser.apk /system/app/Superuser.apk
    - cp /sdcard/su /system/bin/su
    - cp /sdcard/busybox /system/bin/busybox
    - chmod 4755 /system/bin/su
    - chmod 4755 /system/bin/busybox
    - mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system
    - exit
    - exit

    I'm sure there are certain steps that could be streamlined or eliminated, so please feel free to make a suggestion and I'll edit the post.

    Additional thanks to @rainabba and AllDroid.org for their excellent Droid X rooting tutorial, which assisted me greatly in this process.
    1
    waiting for a recovery, glad to see its rooted
    1
    can someone point me in the right direction. after running doroot.bin, everything gets pushed to the phone but when the adb server restarts and tries to reconect, it cant because adb devices shows that the device is "offline". and the only way to get the device back to "device" state is to reboot the phone, which reverses everything that was done prior

    EDIT: i found out a solution. I failed to realise that i was on the gingerbread update, I used this and it worked
    http://www.psouza4.com/droid3/
    1
    ROOT] Framaroot, a one-click application to root
    I have verified it works with these Motorola devices running android 2.3.4
    Droid 2 (a955), Droid 2 Global (a956), R2D2 (a957), & Droid X (MB810)