we can just root it with the lineage recovery.

This commit is contained in:
missytake 2019-12-17 16:02:07 +01:00
parent 4e3f0315c5
commit da40d43e5d

View file

@ -28,7 +28,8 @@ download official lineage recovery: https://download.lineageos.org/jfltexx
Now we don't want to boot into the system, we want into the new recovery
directly - so turn off the phone with the power button, and then boot into
recovery by holding the power button, the home button, and volume up for a few
seconds.
seconds. Release them only when you see the blue "Recovery" writing in the top
left of the screen.
Now we need to take the following steps to format the data partition for
LineageOS:
@ -44,6 +45,11 @@ from ADB". Then execute `adb sideload lineage-xxx.zip` on your PC.
After a while, it warns you you that the signature verification failed, and
whether you want to continue with the installation; answer "Yes".
Now we also want to root the phone with addonsu. Go again to "Apply Update"
and "Apply Update from ADB"; then flash addonsu with `adb sideload
addonsu-16.0-arm-signed.zip`. It doesn't overwrite lineageOS, don't worry - it
only installs addonsu next to it.
In the end, tap reboot to boot into the fresh LineageOS system.
### Finish Installation
@ -65,33 +71,6 @@ Go to the Security Settings and encrypt the phone. During the process, it
reboots once and asks you for the device PIN. It can take a while, but not soo
long actually.
## Flash TWRP
*(You don't need TWRP, unless you want backup/restore functionality or so.)*
First you need to enable USB debugging again. You can enable the developer
options at "About Phone", tap the "build number" seven times. After you enabled
it, you can find the Developer options in the settings at "System > Advanced >
Developer Options". Enable USB debugging and reboot into the bootloader mode:
`adb reboot bootloader`
wait until bootloader mode is active: it says "Downloading... Do not turn off
target !!"
`heimdall flash --RECOVERY twrp-3.3.1-1-jflte.img`
### Root Phone With addonsu
*(You can also flash addonsu with the LineageOS recovery.)*
Boot into your recovery, e.g. TWRP, with `adb reboot recovery`.
Then go back, again to ADB Sideload, swipe to the right, and this time install
Magisk with `adb sideload addonsu-16.0-arm-signed.zip`
* When it shows `Total xfer: 1.77x` on the PC, and `script succeeded: result
was [1.000000]` in TWRP, it has suceeded.
### Secure the device encryption
You usually want to have a long password for your device encryption, which you
@ -117,6 +96,11 @@ shut down?
#### Change the encryption password to a long password
First you need to enable USB debugging again. You can enable the developer
options at "About Phone", tap the "build number" seven times. After you enabled
it, you can find the Developer options in the settings at "System > Advanced >
Developer Options". Enable USB debugging and reboot into the bootloader mode:
Then go to the Security settings and set the PIN you want to use for your
lockscreen.