Updated The Ultimate Rooting Guide (markdown)
parent
675376c7a9
commit
c3718508be
|
|
@ -14,7 +14,7 @@ NOTE: They may have already patched the diagnosis mode script bug for new device
|
|||
|
||||
### Software
|
||||
|
||||
You need to install `python 3`. And then install the following in computer terminal:
|
||||
You need to install `python 3.x`. And then install the following in computer terminal:
|
||||
|
||||
```
|
||||
pip install httpsig pyserial urllib3 requests
|
||||
|
|
@ -26,7 +26,9 @@ Also, download `dpt-tools` from the git.
|
|||
|
||||
### Hardware
|
||||
|
||||
You need your DPT device, of course. And you need a micro USB cable that can connect your DPT to your computer. You also need the DPT to be charged at least 80% (just to be safe).
|
||||
* You need your DPT device connected to Wifi
|
||||
* You also need the DPT to be charged at least 80% (just to be safe)
|
||||
* You need a PC in the same subnet as your DPT device (e.g., on the same Wifi network)
|
||||
|
||||
# Steps
|
||||
|
||||
|
|
@ -58,19 +60,19 @@ You can also specify your id and key files (referred from [janten's dpt-rp1-py](
|
|||
python dpt-tools.py -id <deviceid file path> -k <your key file path> -ip <ip address>
|
||||
```
|
||||
|
||||
Then you will enter the **interactive mode** on your computer terminal.
|
||||
Then you will enter the **interactive mode** on your computer terminal. Read below first before proceeding.
|
||||
|
||||
|
||||
### 0x2 Get Diagnosis Mode and Patch Updater Script
|
||||
|
||||
Download [this PKG from this example](https://github.com/HappyZ/dpt-tools/blob/master/fw_updater_packer_by_shankerzhiwu/pkg_example/hack_basics/fw.pkg).
|
||||
This PKG does three things: changing diagnosis password, enabling diagnosis mode without OTG cable, and patch the updater script. Unlike previous versions, this PKG you can flash as many times as you wanted, though not really necessary.
|
||||
Download [this PKG from here](https://github.com/HappyZ/dpt-tools/blob/master/fw_updater_packer_by_shankerzhiwu/pkg_example/hack_basics/fw.pkg).
|
||||
It does three things: changing diagnosis password, enabling diagnosis mode without OTG cable, and patch the updater script.
|
||||
|
||||
In the interactive terminal, type `fw` and press Enter key.
|
||||
|
||||
It'll ask the file path of the PKG. Type the full file path, or drag the file into terminal.
|
||||
|
||||
Then it'll ask you to confirm it is the correct file. Type `yes` and press Enter key. Your DPT will say `preparing for the update...` and then the DPT will restart. You can exit the tool safely by pressing `Ctrl + D`. Example below:
|
||||
Then it'll ask you to confirm. Type `yes` and press the Enter key. Your DPT will say `preparing for the update...` and then the DPT will restart. You can exit the tool safely by pressing `Ctrl + D`. Example below:
|
||||
|
||||
```
|
||||
>>> fw
|
||||
|
|
@ -85,7 +87,7 @@ Then it'll ask you to confirm it is the correct file. Type `yes` and press Enter
|
|||
|
||||
You will see multiple lines printing, starting with the LICENSE. For every step, it will print the files being changed and pause for 30s. You can press the HOME key to bypass the waiting. If you don't see it, but directly get rebooted, then likely the script [does not work for your device](https://github.com/HappyZ/dpt-tools/issues/141).
|
||||
|
||||
After update, it will claim the update is failed. But don't worry, you are all good.
|
||||
After the device rebooted after those lines printed, a window pops up saying the update is failed. Don't worry, you are all good.
|
||||
|
||||
(Optional) To validate the success, in the interactive terminal, type `diagnosis` and follow the instruction to get into diagnosis mode. If you see 3 bars appearing on the top left while device booting up, you are done! To get out of diagnosis mode, you need to type `reboot`.
|
||||
|
||||
|
|
@ -107,12 +109,11 @@ Download corresponding PKG for your system version:
|
|||
|
||||
If not found, request it in [Issues](https://github.com/HappyZ/dpt-tools/issues) and wait for your modifications out. Don't proceed with a different version.
|
||||
|
||||
Now, get back to the interactive terminal if you already exited, via `python dpt-tools.py`.
|
||||
Then type `fw` and press Enter key. It'll ask the file path for the downloaded PKG. Enter the full file path (or drag the file into terminal) and press Enter key.
|
||||
Now, get back to the interactive terminal. If the terminal is not responding, likely it lost connection with your device, or if you already exited, just exit and rerun `python dpt-tools.py`.
|
||||
|
||||
Confirm the file path by entering `yes` and press Enter key. Your DPT will now say `preparing for the update...` and then the DPT will restart and show update is in progress. After update, it will show an error message saying `update failure`, but it is actually flashed.
|
||||
Then type `fw` and press Enter key again. It'll ask the file path for the downloaded PKG . Enter the full file path (or drag the file into terminal) and press Enter key. Similar to before, confirm by saying `yes`. After the device restarts and updates, it will show an error message saying `update failure`, but it is actually flashed.
|
||||
|
||||
NOTE: If `python dpt-tools.py` doesn't work as Wifi isn't connected, you can use diagnosis mode via `python dpt-tools.py --diagnosis` and then use `install-pkg` to upload the downloaded PKG.
|
||||
NOTE: If `python dpt-tools.py` doesn't work as Wifi isn't connected after your device reboots, you can use diagnosis mode via `python dpt-tools.py --diagnosis` and then use `install-pkg` to install the downloaded PKG.
|
||||
|
||||
To validate, in your computer, quit `dpt-tool` and in terminal run `adb devices` to see if your device appears. If it didn't show up:
|
||||
* Check your cable
|
||||
|
|
|
|||
Loading…
Reference in New Issue