Skip to content

Instantly share code, notes, and snippets.

@hsinhoyeh
Last active May 10, 2018 01:51
Show Gist options
  • Save hsinhoyeh/72ac99f3a43f12335845e99b8ce01a71 to your computer and use it in GitHub Desktop.
Save hsinhoyeh/72ac99f3a43f12335845e99b8ce01a71 to your computer and use it in GitHub Desktop.
1. unlock bootloader[1]
#1 get mobile token via
```
fastboot oem get_identifier_token
```
#2 upload token to htc mobile website
```
https://www.htcdev.com/
```
#3 received unlock_code.bin, run
```
fastboot flash unlocktoken Unlock_code.bin
```
2. go to recovery mode with twrp
(download from https://dl.twrp.me/m7/twrp-3.2.1-0-m7.img.html)
```
fastboot flash recovery ~/Downloads/twrp-3.2.1-0-m7.img
```
3. download SuperSU
(https://freeandroidroot.com/download-supersu-apk/)
```
adb -s <device-id> push SR5-SuperSU-v2.82-SR5-20171001224502.zip /sdcard/SR5-SuperSU-v2.82-SR5-20171001224502.zip
```
NOTE: for unroot, use twrp and restore your previous backup rom.
reference:
[1] https://htc-one.gadgethacks.com/how-to/unlock-bootloader-root-your-htc-one-running-android-4-4-2-kitkat-0151186/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment