FORUMS
Remove All Ads from XDA

[GUIDE][PORT] How to install the Android Pie sGSI on your Xiaomi Mi A1

2,244 posts
Thanks Meter: 4,495
 
Post Reply Email Thread
Code:
Disclaimer:
I am not responsible for anything that may happen to your phone as a result of installing this GSI and/or kernels. You do so at your own risk and take the responsibility upon yourself.


MOD EDIT: Remember to be prepared for an experimental or unstable ROM. If do you not know what you are doing or not experienced with flashing and recovering your data then it's not recommended.

REMEMBER TO BACKUP EVERYTHING AS THIS WILL REPARTITION YOUR USERDATA AND WILL WIPE YOUR INTERNAL STORAGE. ALSO, REMEMBER TO READ EVERYTHING AS ALL FIXES ARE POSTED BELOW. DON'T JUST FLASH THEN JOIN TELEGRAM TO ASK WHY THIS DOESN'T WORK FOR YOU.

READ THE IMPORTANT NOTES POSTED HERE

TO REVERT TO NON-TREBLE/STOCK ROM, WATCH THIS VIDEO BY @GizmoFreak OR FOLLOW THIS POST

Here's everything I can provide to the normal user willing to try this out on their Mi A1.

PLEASE VISIT THIS NOTE TO SEE ALL THE REMAINING BUGS
OR JUST READ THEM HERE
  • SELinux is permissive
  • Hw key lights don't light up
Everything else works fine. Just need to update your Google Play services app and you can restore apps via Google Backup (if you didn't already do it with Titanium Backup). Yes, rooting with Magisk works and some modules work as well such as Blobmojis among others.

Here are the steps to install it in your Mi A1 if you're coming from stock ROM
Or watch a video made by @GizmoFreak

[YOUTUBE]UgA6sI_VZ1g[/YOUTUBE]
  1. Enable Developer options in Settings app
  2. Check Enable OEM Unlocking
  3. Reboot to fastboot mode
  4. Unlock your bootloader
  5. Install TWRP-fastboot only through fastboot boot command (Extract the .img file from the zip)
  6. Flash CosmicDan's TWRP Installer through your current TWRP. Credits to @CosmicDan for his TWRP and @mohancm for official TWRP sources.
  7. Reboot to TWRP recovery
  8. Go to WIPE then ADVANCED then click FORMAT data. This will remove Encryption on your device and allows you to set new passwords when installing the GSI. Note that this will format your internal storage.
  9. Treblelize through TWRP Tissot Manager (Go to advanced, click Tissot Manager and choose the repartition userdata option. Select singleboot option then click repartition)
  10. Flash latest Vendor.img as VENDOR IMAGE
  11. Flash A/B system Pie PR2 img as SYSTEM IMAGE (Extract the .img file from the zip) (special thanks to @dgadelha for the sGSI)
  12. Flash POST-sGSI 1 tissot zip.
  13. Flash POST-sGSI 2 tissot zip.
  14. Flash a treble-compatible kernel (Moun, ProjectK,Velocity)(credits to @mountaser halak, @khusika, @kdragon)
  15. Reboot to system.
  16. Once booted, install the latest Play services linked above either via the Files app or via adb. This will fix the Pixel Setup and Google Backup issues as well as allows you access to the Play Store without problems.
  17. You can now flash Magisk 17.3. This is the version that works properly with treble. Credits to @topjohnwu for Magisk.
  18. Install the Data transfer tool APK update as well.
  19. Special thanks to @erfanoabdi for porting the Pie A/B GSI.
Some features may seem to be broken but can actually be fixed with a few tweaks

USB MTP FIX
  • To enable USB MTP, enable Developer options in the About phone section of the Settings app by tapping the Build Number 4 times. Then look for the File Transfer option in the Dev options.
ENABLE NAV BAR GESTURES
  • To enable Nav Bar, I installed this nav bar enabler by @Hugwalk via Magisk.
  • After rebooting, go to Settings > System > Gesture and enable Swipe Up on Home Button to enable the Nav Bar Gestures.

SUBSTRATUM
Quote:

Substratum is now much better for Pie.

Install the latest APK from this telegram channel and now all themes with Pie support can be installed.. Just reboot after building the themes and go into managers to enable the overlays you built.

You should have the Android Pie booting on your Mi A1 now with less issues.

To update from PR1 to PR2, you can do so without wiping data
Quote:

  1. Wipe system ONLY
  2. Flash PIE PR2 AB GSI
  3. Reboot to system

To update your post post GSI zips, follow this
Quote:

  1. Wipe vendor ONLY
  2. Flash vendor
  3. Flash POST-sGSI 1 tissot zip.
  4. Flash POST-sGSI 2 tissot zip.
  5. Reboot to system

Attached Thumbnails
Click image for larger version

Name:	Screenshot_20180726-151118.jpg
Views:	56850
Size:	224.8 KB
ID:	4558190   Click image for larger version

Name:	Screenshot_20180726-151142.jpg
Views:	56042
Size:	140.9 KB
ID:	4558192   Click image for larger version

Name:	Screenshot_20180726-151149.jpg
Views:	55342
Size:	89.4 KB
ID:	4558194   Click image for larger version

Name:	Screenshot_20180726-151212.png
Views:	52328
Size:	133.4 KB
ID:	4558196   Click image for larger version

Name:	Screenshot_20180726-151229.png
Views:	51998
Size:	122.9 KB
ID:	4558197   Click image for larger version

Name:	Screenshot_20180726-151454.png
Views:	50532
Size:	104.3 KB
ID:	4558198   Click image for larger version

Name:	Screenshot_20180726-151523.png
Views:	48980
Size:	86.5 KB
ID:	4558199   Click image for larger version

Name:	Screenshot_20180726-151236.png
Views:	46888
Size:	99.5 KB
ID:	4558200   Click image for larger version

Name:	Screenshot_20180726-151426.png
Views:	46662
Size:	140.5 KB
ID:	4558202   Click image for larger version

Name:	Screenshot_20180726-151443.png
Views:	45556
Size:	91.6 KB
ID:	4558203   Click image for larger version

Name:	Screenshot_20180726-151541.png
Views:	44910
Size:	94.5 KB
ID:	4558204   Click image for larger version

Name:	Screenshot_20180726-151553.png
Views:	43640
Size:	86.0 KB
ID:	4558205   Click image for larger version

Name:	Screenshot_20180726-151314.png
Views:	42990
Size:	46.7 KB
ID:	4558206   Click image for larger version

Name:	Screenshot_20180726-151349.jpg
Views:	43134
Size:	130.7 KB
ID:	4558207   Click image for larger version

Name:	Screenshot_20180726-151401.jpg
Views:	42872
Size:	126.5 KB
ID:	4558208  
The Following 171 Users Say Thank You to joeyhuab For This Useful Post: [ View ]
 
 
18th July 2018, 12:11 PM |#2  
LordArcadius's Avatar
Senior Member
Flag Delhi
Thanks Meter: 2,796
 
Donate to Me
More
Awesome work @joeyhuab bro 🔥
The Following 3 Users Say Thank You to LordArcadius For This Useful Post: [ View ] Gift LordArcadius Ad-Free
18th July 2018, 12:12 PM |#3  
LordArcadius's Avatar
Senior Member
Flag Delhi
Thanks Meter: 2,796
 
Donate to Me
More
Edit:- Chrome sucks! Posted same thing twice.
18th July 2018, 12:49 PM |#4  
Member
Flag Kyiv
Thanks Meter: 5
 
More
Youtube not working for me(
18th July 2018, 12:52 PM |#5  
Senior Member
Thanks Meter: 11
 
More
Great job!!!i will wait to change to beta
18th July 2018, 01:17 PM |#6  
joeyhuab's Avatar
OP Recognized Developer
Flag Antipolo
Thanks Meter: 4,495
 
Donate to Me
More
Quote:
Originally Posted by Tornado95

Youtube not working for me(

I also encounter YouTube issues. :/
The Following 3 Users Say Thank You to joeyhuab For This Useful Post: [ View ]
18th July 2018, 04:50 PM |#7  
ErickCartman17's Avatar
Junior Member
Thanks Meter: 14
 
More
Don't work the camera and black for me
18th July 2018, 05:08 PM |#8  
Senior Member
Thanks Meter: 248
 
More
Quote:
Originally Posted by ErickCartman17

Don't work the camera and black for me

Try Footej Camera from Play Store please, it can be usefull if Footej or Open Camera works
18th July 2018, 05:18 PM |#9  
Member
Thanks Meter: 7
 
More
waiting camera fix
18th July 2018, 05:27 PM |#10  
Junior Member
Thanks Meter: 1
 
More
cant mount system(invalid argument)
Failed to mount system after i try to flash GSI
18th July 2018, 05:53 PM |#11  
andrexp31's Avatar
Senior Member
Flag Minas
Thanks Meter: 32
 
More
I will wait for the stable...but is a good work... Thanks for try this.
Post Reply Subscribe to Thread

Tags
android p, gsi, mi a1, tissot

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes