btw, this rom can also be used on mi pad 4.
ALWAYS BACKUP BEFORE YOU TRY IT!
You won't be able to direct downgrade from 16.0 to 15.1, so please backup, backup and backup!
This should work if you are on MIUI9 9.5.12 or MIUI10 8.6.21 previously. If not, please update to at least these versions.
For Lineage 16.0, you must be on MIUI10 8.9.20 or later.
Please, check hardware support before you flash it: https://github.com/phhusson/treble_e...aomi-Mi-Mix-2s
Note: the "not released" in the sheet above means it is persent in my release, but not yet in phhusson's lineageos release.
All thanks go to @phhusson for this wonderful generic treble rom!
Download, decompress, and execute:
fastboot flash system system.img
Then wipe data, cache, etc. And finally reboot and enjoy!
Install magisk v16.0 or above.
Note: After magisk installation adb will gone. You need to manually copy /system/bin/adbd to /sbin/ and execute "start adbd" to make adb work again. You will need to do this on every reboot!
Or use LineageOS su (Lineage 16.0 did not have offical su yet!).
Note: To make lineage su work, you need to open the system/etc/init/superuser.rc in the su zip and modify su_daemon to another name, due to stupid xiaomi put a service with the same name in /init.miui.rc!
Or you can download already modified version from my link: https://drive.google.com/open?id=1pd...7hI0XDBete8Vkz
sha256: d74a4e1e33c5117bde9e5f75f927cb38fc93e8f68f6daa2177 1efccb671cedd3
According to reports, you can try flashing opengapps. If it crashes, please try a full wipe (wiping whole /data).
For bootloop or non-booting:
According to reports, please try a full wipe (wiping whole /data).
Third Lineage 16.0 GSI experimental build.
Please remove your lockscreen pin/pattern in settings before flashing! You can add it back after flashing.
Second Lineage 16.0 GSI experimental build.
Some crashing issues should be fixed.
First Lineage 16.0 GSI experimental build.
NOTE: LineageOS 16.0 has not officially released yet, and this version did not have all lineage features working!
NOTE: My twrp is not able to decrypt android P encryption yet. Please find other working twrp version if you need it.
NOTE: Don't use muzei with this version, or you may experience systemui keeps crashing. To recover, run "pm disable net.nurik.roman.muzei" on an adb shell.
Sync with phhusson's v25 code and latest LineageOS code (September security patches).
This version also contains an ugly hacking script to change your device name from "Phh Treble vanilla" to "MIX 2S".
Sync with phhusson's v23 code and latest LineageOS code (August security patches).
Fixed bluetooth audio and usb dac adapter
Fixed app battery usage info display
Sync with phhusson's v22 code and latest LineageOS code (July security patches).
For me, my 3rd party usb audio adapter stopped working, but the original adapter works.
You can also wait for phhusson's v22 lineage release if mine did not work:
v5.4 Download: https://drive.google.com/open?id=1X_...DQvfQm5cai73DX
system.img sha256: 4061fcf908d80ac403aa83196511024dba5e19aa4a7ae69c51 d9cec7e6bfb3f5
system.img md5: a27b3617d6f1a408bf6da00673898d9d
v5.2 Download: https://drive.google.com/open?id=1SX...m7GY7OgmM2AK4N
system.img sha256: 8b7267f41caa3a67de708f05839930e7d5458aaac42c774e5f 41c928e4106cc9
system.img md5: 7a570b3a809f25a9bd588d92968667c1
v5 Download: https://drive.google.com/open?id=16G...YIsLT9jbiTa9gM
system.img sha256: 40b319cb12cefec97950089d62ca90581fabb2d03ebe7b17b7 7ac606da73f5bb
system.img md5: 5f003083266f0a8b8ffc87326ed5a82b
v4 Download: https://drive.google.com/open?id=1Zm...X2nB43YeIJhn6y
system.img sha256: a2f7022010897a10faf704dc47228ba90f27775881a865ca0f b0719080253c96
system.img md5: 5b2a7dd0bda36456d7251e85c416132a
v3 Download: https://drive.google.com/open?id=1zT...WMlpWEJUzn-Myn
system.img sha256: 7dba4fb39e77e7c7d4d23d100c158136b366e784956122575a 893310b0a68be0
system.img md5: 7cfe819a50dccb1be0a0a8c37cfbd0b9
v2 Download: https://drive.google.com/open?id=1cT...qNPMGmy-bb8Fns
system.img sha256:8c22c8d704443948845f88f1c957b32b13043f0722b 09fe7d41d964f7ce93c40
system.img md5: 72ffb185f877d8a84fbd79bd96324e2d
v1 Download: https://drive.google.com/open?id=1Mf...6DikhvcWYVfZHd
system.img sha256:053906b14332c862cc109ea81b514575ae07b88d4da f2b7b093bcfe5e048e964
system.img md5: 39d369a58bcfa0af51a0b80e990761a5