Posts

Showing posts from August, 2018

TWRP cannot flash Magisk on Redmi 4x

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 ha…