Thursday, 17 December 2015

Rooting with linux



Tried a few methods for getting root, none of which worked. I'm running a d851 with d85120g software. Ubuntu as my desktop. Here's a step by step pulled from various sources.
1. Put your phone in developer mode. Go to settings-->about phone. Click on build 8ish times until you see "you're a developer"
2. Go to settings-->developer options-->enable USB debugging
Now we need the desktop to recognize the phone
3. In your favorite text editor, you'll need to create a text file named /etc/udev/rules.d/51-android.rules
4. Copy this line into the file and save it:

Code:


SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666", GROUP="plugdev"

(Source here)
5. In a terminal:

Code:


sudo chmod a+r /etc/udev/rules.d/51-android.rules

6.

Code:


sudo service udev restart && sudo killall -9 adb

6a. Get this file and

Code:


sudo chmod a+r ./qcdlcomm.py

from that directory.
(Source)
Next steps are modified from here.
7. Download and extract the zip file: http://bit.ly/1Ln9FKB .
7a. Move qcdlcomm.py to wherever you extracted the above file.
8. Connect your phone. At some point you can choose your USB connection type. Reports state it only works with PTP mode (v. MTP), but I didn't try MTP.
9. Terminal:

Code:


adb devices

You should see your phone listed. Then, in the same directory as the files from step 7:
10.

Code:


adb push ./busybox /data/local/tmp && adb push ./UPDATE-SuperSU-v2.46.zip /data/local/tmp

Now you want to get in download mode.
11. Unplug your phone, then hold volume down as you plug the cable back in. You should see "download" or something on the screen.
Next steps taken from here.
12.

Code:


ls /dev/ttyUSB*

Make note of the devices. You'll try the highest device number first in a few steps.
13.

Code:


sudo rmmod cdc_acm && sudo rmmod usbserial

You'll get an error if there's anything else using usbserial. If so, sudo rmmod that module, then rerun

Code:


sudo rmmod usbserial

14.

Code:


sudo modprobe usbserial vendor=0x1004 product=0x633e

15.

Code:


sudo python ./qcdlcomm.py /dev/ttyUSB*< ./boot

Replace the device with the output from step 12. Something should happen here. (BTW, at some point the phone screen says "flashing firmware" or something. There's a progress bar. It never moves past 0%"
16. Type "LEAVE" at the hash prompt that's left. At this point, your phone may not reboot. If not, type "exit" (or ctrl+c) and disconnect your phone. Then reconnect the phone.
17.

Code:


ls /dev/ttyUSB*

again. You may have lost a usb device. If so, repeat:
18.

Code:


sudo python ./qcdlcomm.py /dev/ttyUSB*

with the next highest device from above.
19. Type "LEAVE" again. Device should reboot. You should have root.
Some of this from memory, so if anyone has any suggestions, LMK. Hope this helps someone.

Download from this link

No comments:

Post a Comment