How to flash Android P on your Mi Mix 2

CrazyBeaver2377

Senior Member
Jan 19, 2018
416
621
0
Tilburg
Final edit: I stopped maintaining this thread. I don't recommend you to use this rom anymore, it is outdated and generic and there are plenty of P roms to chose from now.
I recommend you guys to move to for instance NOS, Omni or PE.


At first I would like to say, this is NOT for everyone. If you are a total newb don't do this. Read through this post before starting to make things clear for yourself.

The ported Android P semi GSI is still highly experimental, don't expect a stable daily driver and do expect to encounter issues. Hardware wise everything seems to be working though (sorry Indians, no VoLTE)

Download all of the below files

Vendor and boot images from ABC rom:
https://drive.google.com/file/d/1JCPpOW2GCKhwk8HY8wjcoEFhiAHJLfAx/view
https://drive.google.com/file/d/1fKhBg02Vh436qh5Hq-La2a5nrZgJhURU/view

Andyyan's decscript:
https://androidfilehost.com/?fid=5862345805528045168

GSI files:
https://androidfilehost.com/?fid=5862345805528067641 (extract this one)
https://androidfilehost.com/?fid=5862345805528063582
https://androidfilehost.com/?fid=5862345805528063581
https://androidfilehost.com/?fid=3700668719832241166

Google play services APK:
https://apkdot.com/apk/google-llc/g...y-services-12-8-66-100400-200774163-beta-041/

Follow the below step-by-step (make sure you are on the latest 3.2.2.1 TWRP):

Format data
Wipe all partitions
Reboot recovery
Flash vendor.img to vendor partition
Flash boot.img to boot partition
Flash Lineage-15.1-DecScript-Universal.zip
Flash P-PR1-sGSI-Aonly.img to system partition
Mount vendor partition
Flash POST-sGSI_1_v0.14.zip
Flash POST-sGSI_2_v0.17.zip
POST-sGSI_3_v0.5.zip
Reboot system

At first start some stuff might be unresponsive and google play services will not work, install the google play services APK and reboot.
After all of this you can flash Magisk 16.7 or any additional zips like the gcam/VoLTE fix or chironify, don't flash this before first boot!

Sources:
Wight554 for vendor and boot images
AndyYan for decscript
Ported Android P DP4 semi GSI by erfanoabdi
Demon000 for fixing stuffs

Edit: Use the attached POST-sGSI_3_v.02.zip for fixing MTP (no longer needed, only if you used older version)
Edit 2: Updated AFH links, MTP fix is now included, no need to download the attachment
Edit 3: Updated Vendor.img and Boot.img ©Wight554
Edit 4: Use the attached PGSI-Chironify.zip to change model name etc. to Mi Mix 2 ©Wight554 (Use DP5 version on DP5)
Edit 5: Use the attached gcam_dp4_fix.zip to fix gcam settings crashing (you can use this on DP5 as well)
Edit 6: Updated the thread for the DP5 update. For dirty flashing from DP4, follow these steps: https://forum.xda-developers.com/showpost.php?p=77167962&postcount=30
Edit 7: Added a possible VoLTE fix Dp5_P_Semi_GSI_VoLTE_fix.zip in the attachments
Edit 8: Updated the thread with new post zips
Edit 9: Updated the thread with the new PR1 release. Instructions (also dirty flash) remain the same. Note: Don't use DP5 chironify with this if you want to keep the correct version values.
Edit 10: Added PPR1GSI-Chironify.zip for the new PR1 release ©Wight554
Edit 11: Updated post zip 3 link. Last update to this thread from my side as stable P roms are very close now and we don't need the Semi GSI anymore.
 

Attachments

Last edited:

Hilus

Member
May 14, 2018
43
8
0
I have no idea what i'm doing wrong, but every time I finish flashing, i reboot to system but right after boot animation phone goes to TWRP.
Can someone write instructions in detail just so that I can see my mistake? Thanks

Okay, I've done it, happy now AF. Thanks a lot for this!!
 
Last edited:

maxniper

Senior Member
Jan 24, 2006
2,217
407
0
50
Montijo
I have no idea what i'm doing wrong, but every time I finish flashing, i reboot to system but right after boot animation phone goes to TWRP.
Can someone write instructions in detail just so that I can see my mistake? Thanks

Okay, I've done it, happy now AF. Thanks a lot for this!!
I followed the same steps in OP and is ok
 

maxniper

Senior Member
Jan 24, 2006
2,217
407
0
50
Montijo
Actually, I don't know if I had sth wrong, or it's just meant to be, but I had no GCam, so I just installed apk, works perfectly
It is like that and I hat to install GCam on op too, but I can't access settings in GCam it fc, that's why I install the module in Magisk, I could change video recording to 4k ;)