Easy 1-2-3 Root Process for D2 (Windows/Linux and Mac coming soon)

darkonion

Member
Joined
Aug 30, 2010
Messages
72
Reaction score
0
Hi all.

I spent the better half of the evening working on writing a simplified way to root the D2. I have two sets of instructions now available. It is pretty simple.

You install and update ADB/SDK. You install the Motorola drivers (if you are on Windows).

You go into command line, run part1, then open adb shell, and run part 2, and then after you get kicked out, run the shell again, and run part 3. And that's it, you are rooted. You enter a total of maybe 6 or 7 commands, and simple commands at that.

Cruise over to XDA Developers and check out my thread.

http://forum.xda-developers.com/showthread.php?t=782556
 
Last edited:
So it took mea while but I got the SDK installed and working through terminal, im' SUPER new at this so i'm feeling my way out via youtube videos and step-by-step instructions lol.

I plug my phone in and my computer claims to not recognize my "device" is this normal?

also after running ./doroot1.sh the terminal has "device not found" all over it


Last login: Wed Sep 15 15:28:02 on ttys000
matthews-macbook:~ Matthew$ cd desktop/android/tools
matthews-macbook:tools Matthew$ chmod 0755 doroot1.sh
matthews-macbook:tools Matthew$ ./doroot1.sh
Welcome to DarkOnion Root Part 1
Checking for devices
List of devices attached

Transfering Superuser.apk
error: device not found

Transfering su
error: device not found

Transfering busybox
error: device not found

Transfering rageagainstthecage-arm5.bin
error: device not found

Transfering doroot2
error: device not found
Transfering doroot3
error: device not found

You will be entering ADB Shell shortly.
When you see the $, enter these 3 commands

first command: cd data/local/tmp
second command: chmod 0777 doroot2.sh
third command: ./doroot2.sh

10 seconds until shell opens.
5 seconds until shell opens.
4
3
2
1

Now entering ADB Shell
error: device not found
matthews-macbook:tools Matthew$


any ideas? Is this normal?
Thanks in advanced :)
 
Did you turn on USB Debugging?

haha no... my d2 shows the USB symbol in the notification bar and gives me these choices pc mode, windows media sync, usb mass storage, charge only. if there's a debug choice, where would it be?
 
Settings > Applications > Development> Check the USB debugging
 
Next issue....

Last login: Wed Sep 15 15:33:07 on ttys000
matthews-macbook:~ Matthew$ cd desktop/android/tools
matthews-macbook:tools Matthew$ chmod 0755 doroot1.sh
matthews-macbook:tools Matthew$ ./doroot1.sh
Welcome to DarkOnion Root Part 1
Checking for devices
List of devices attached
015D76040A01C00F device

Transfering Superuser.apk
failed to copy 'Superuser.apk' to '/sdcard/Superuser.apk': Permission denied

Transfering su
failed to copy 'su' to '/sdcard/su': Permission denied

Transfering busybox
failed to copy 'busybox' to '/sdcard/busybox': Permission denied

Transfering rageagainstthecage-arm5.bin
975 KB/s (5392 bytes in 0.005s)

Transfering doroot2
191 KB/s (710 bytes in 0.003s)
Transfering doroot3
122 KB/s (613 bytes in 0.004s)

You will be entering ADB Shell shortly.
When you see the $, enter these 3 commands

first command: cd data/local/tmp
second command: chmod 0777 doroot2.sh
third command: ./doroot2.sh

10 seconds until shell opens.
5 seconds until shell opens.
4
3
2
1

Now entering ADB Shell
$
 
Next issue....

Last login: Wed Sep 15 15:33:07 on ttys000
matthews-macbook:~ Matthew$ cd desktop/android/tools
matthews-macbook:tools Matthew$ chmod 0755 doroot1.sh
matthews-macbook:tools Matthew$ ./doroot1.sh
Welcome to DarkOnion Root Part 1
Checking for devices
List of devices attached
015D76040A01C00F device

Transfering Superuser.apk
failed to copy 'Superuser.apk' to '/sdcard/Superuser.apk': Permission denied

Transfering su
failed to copy 'su' to '/sdcard/su': Permission denied

Transfering busybox
failed to copy 'busybox' to '/sdcard/busybox': Permission denied

Transfering rageagainstthecage-arm5.bin
975 KB/s (5392 bytes in 0.005s)

Transfering doroot2
191 KB/s (710 bytes in 0.003s)
Transfering doroot3
122 KB/s (613 bytes in 0.004s)

You will be entering ADB Shell shortly.
When you see the $, enter these 3 commands

first command: cd data/local/tmp
second command: chmod 0777 doroot2.sh
third command: ./doroot2.sh

10 seconds until shell opens.
5 seconds until shell opens.
4
3
2
1

Now entering ADB Shell
$

I think I know what is wrong with your thing. Just hang tight. We are working on easier scripts!
 
<3 thanks darkonion. I'm really excited to get this baby rooted. I'm hoping for a really nice stock rom, or even a rom that's mostly stock with a few blur features left in it.
 
I think you are in USB mass storage device mode. That is why you can't access your SD card.
 
You're correct. I put into charge only mode which got me further but i'm stuck again:

Last login: Thu Sep 16 13:23:34 on ttys000
matthews-macbook:~ Matthew$ cd desktop/android/tools
matthews-macbook:tools Matthew$ chmod 0755 doroot1.sh
matthews-macbook:tools Matthew$ ./doroot1.sh
Welcome to DarkOnion Root Part 1
Checking for devices
List of devices attached
015D76040A01C00F device

Transfering Superuser.apk
1374 KB/s (27688 bytes in 0.019s)

Transfering su
1477 KB/s (26248 bytes in 0.017s)

Transfering busybox
1890 KB/s (1926944 bytes in 0.995s)

Transfering rageagainstthecage-arm5.bin
1187 KB/s (5392 bytes in 0.004s)

Transfering doroot2
205 KB/s (710 bytes in 0.003s)
Transfering doroot3
144 KB/s (613 bytes in 0.004s)

You will be entering ADB Shell shortly.
When you see the $, enter these 3 commands

first command: cd data/local/tmp
second command: chmod 0777 doroot2.sh
third command: ./doroot2.sh

10 seconds until shell opens.
5 seconds until shell opens.
4
3
2
1

Now entering ADB Shell
$ cd data/local/tmp
$ chmod 0777 doroot2.sh
$ ./doroot2.sh
./doroot2.sh: not found
$
 
You're correct. I put into charge only mode which got me further but i'm stuck again:

Last login: Thu Sep 16 13:23:34 on ttys000
matthews-macbook:~ Matthew$ cd desktop/android/tools
matthews-macbook:tools Matthew$ chmod 0755 doroot1.sh
matthews-macbook:tools Matthew$ ./doroot1.sh
Welcome to DarkOnion Root Part 1
Checking for devices
List of devices attached
015D76040A01C00F device

Transfering Superuser.apk
1374 KB/s (27688 bytes in 0.019s)

Transfering su
1477 KB/s (26248 bytes in 0.017s)

Transfering busybox
1890 KB/s (1926944 bytes in 0.995s)

Transfering rageagainstthecage-arm5.bin
1187 KB/s (5392 bytes in 0.004s)

Transfering doroot2
205 KB/s (710 bytes in 0.003s)
Transfering doroot3
144 KB/s (613 bytes in 0.004s)

You will be entering ADB Shell shortly.
When you see the $, enter these 3 commands

first command: cd data/local/tmp
second command: chmod 0777 doroot2.sh
third command: ./doroot2.sh

10 seconds until shell opens.
5 seconds until shell opens.
4
3
2
1

Now entering ADB Shell
$ cd data/local/tmp
$ chmod 0777 doroot2.sh
$ ./doroot2.sh
./doroot2.sh: not found
$

Hey. I am going to PM you my google talk. Add me and then come get me. Also, download team viewer. I want you to test my new something for me.

-Kevin
 
Back
Top