I tried flash an Android phone with TWRP as its bootloader and it keep rejecting to install Magisk.
So this is how I solve it.
(Tested on 23 August 2018 on Redmi 4x AOSP Extended v5.7)
1. In TWRP, go to :
Home -> Mount -> select Cust (if not selected) -> Home
2. Then go back to main TWRP page, later:
Home -> Advanced ->Terminal -> run following commands
a. mount | grep cust
-> It will show something like this
/dev/block/mmcblk0xxx on /cust type ext4 .... -> copy the directory, and save it somewhere else.
b. umount /cust
-> go back to Home -> Mount -> uncheck Cust -> Home
c. Go back to Advanced ->Terminal -> run following commands
mount -t ext4 -o ro /dev/block/mmcblk0xxx /vendor
3. Finally go to Home -> Install and locate your magisk .zip file to flash it.
Note: What if you already format the storage due to TWRP keep asking for password to decrypt storage despite you never encrypt it in the first place.
(This is common bug in TWRP, always have your backup sorted out so it will be less painful)
Just connect your phone to PC during all those process above, later simply do:
adb push magisk.zip file /tmp
What this command do is copying your magisk file to /tmp folder in your phone, then you can navigate from TWRP to this directory and start flashing your phone.
So this is how I solve it.
(Tested on 23 August 2018 on Redmi 4x AOSP Extended v5.7)
1. In TWRP, go to :
Home -> Mount -> select Cust (if not selected) -> Home
2. Then go back to main TWRP page, later:
Home -> Advanced ->Terminal -> run following commands
a. mount | grep cust
-> It will show something like this
/dev/block/mmcblk0xxx on /cust type ext4 .... -> copy the directory, and save it somewhere else.
b. umount /cust
-> go back to Home -> Mount -> uncheck Cust -> Home
c. Go back to Advanced ->Terminal -> run following commands
mount -t ext4 -o ro /dev/block/mmcblk0xxx /vendor
3. Finally go to Home -> Install and locate your magisk .zip file to flash it.
Note: What if you already format the storage due to TWRP keep asking for password to decrypt storage despite you never encrypt it in the first place.
(This is common bug in TWRP, always have your backup sorted out so it will be less painful)
Just connect your phone to PC during all those process above, later simply do:
adb push magisk.zip file /tmp
What this command do is copying your magisk file to /tmp folder in your phone, then you can navigate from TWRP to this directory and start flashing your phone.
Comments
Post a Comment