Updated The Ultimate Rooting Guide (markdown)

HappyZ 2020-01-11 11:47:31 -08:00
parent 8f7ad6a77f
commit 5907cfefeb
1 changed files with 11 additions and 8 deletions

@ -58,7 +58,7 @@ 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 shell model** on your computer terminal.
Then you will enter the **interactive mode** on your computer terminal.
### 0x2 Get Diagnosis Mode and Patch Updater Script
@ -66,22 +66,22 @@ Then you will enter the **interactive shell model** on your computer terminal.
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.
In the interactive shell, type `fw` and press Enter key.
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 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.
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 failed, but it is actually succeeded!
After update, it will claim the update is failed. But 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`.
Note: In any case you find the printed message is weird, or errors happen that you see on the screen, you can press POWER key to roll back the original files and exit safely.
Note2: Absolute do NOT try to decompile the PKG on your computer via the unpack tool in the script.
Note3: You can validate this later by getting into the diagnosis mode and see if 3 bars appearing on top left. If so, congrats. If not, something is not right.
### 0x3 Obtain Android ADB (Root) Access
The modification will change your Android boot partition. If you are not sure what ADB is, please read [this xda page](https://www.xda-developers.com/install-adb-windows-macos-linux/).
@ -95,9 +95,12 @@ 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.
In the interactive shell, type `fw` and press Enter key. It'll ask the file path of the downloaded PKG. Type the full file path, or drag the file into terminal.
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.
Then it'll ask you to confirm it is the correct file. Type `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.
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.
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.
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