• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

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

Status
Not open for further replies.
Search This thread

joeyhuab

Recognized Developer
Nov 5, 2012
3,202
13,325
27
Antipolo
evolution-x.org
Xiaomi Mi A1
Redmi K20 Pro
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


  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
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
  1. Wipe system ONLY
  2. Flash PIE PR2 AB GSI
  3. Reboot to system
To update your post post GSI zips, follow this
  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
 

Attachments

  • Screenshot_20180726-151118.jpg
    Screenshot_20180726-151118.jpg
    224.8 KB · Views: 59,530
  • Screenshot_20180726-151142.jpg
    Screenshot_20180726-151142.jpg
    140.9 KB · Views: 58,646
  • Screenshot_20180726-151149.jpg
    Screenshot_20180726-151149.jpg
    89.4 KB · Views: 57,943
  • Screenshot_20180726-151212.png
    Screenshot_20180726-151212.png
    133.4 KB · Views: 54,927
  • Screenshot_20180726-151229.png
    Screenshot_20180726-151229.png
    122.9 KB · Views: 54,654
  • Screenshot_20180726-151454.png
    Screenshot_20180726-151454.png
    104.3 KB · Views: 53,103
  • Screenshot_20180726-151236.png
    Screenshot_20180726-151236.png
    99.5 KB · Views: 49,293
  • Screenshot_20180726-151426.png
    Screenshot_20180726-151426.png
    140.5 KB · Views: 49,016
  • Screenshot_20180726-151443.png
    Screenshot_20180726-151443.png
    91.6 KB · Views: 47,867
  • Screenshot_20180726-151541.png
    Screenshot_20180726-151541.png
    94.5 KB · Views: 47,206
  • Screenshot_20180726-151553.png
    Screenshot_20180726-151553.png
    86 KB · Views: 45,886
  • Screenshot_20180726-151523.png
    Screenshot_20180726-151523.png
    86.5 KB · Views: 51,474
  • Screenshot_20180726-151314.png
    Screenshot_20180726-151314.png
    46.7 KB · Views: 45,201
  • Screenshot_20180726-151349.jpg
    Screenshot_20180726-151349.jpg
    130.7 KB · Views: 45,325
  • Screenshot_20180726-151401.jpg
    Screenshot_20180726-151401.jpg
    126.5 KB · Views: 45,185
Last edited:

danilguy

Member
Jun 22, 2018
20
3
When I Flash A/B system GSI img i have a 255 error: Updater process ended with ERROR: 255 Error installing xip file `tissot_manager/flash_proxy.zip`. How i can fix it? What is the problem?
 
  • Like
Reactions: danilguy228
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 171
    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


    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
    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
    1. Wipe system ONLY
    2. Flash PIE PR2 AB GSI
    3. Reboot to system
    To update your post post GSI zips, follow this
    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
    35
    We can now update to DP5. Updating from DP4 to DP5 without wiping data:
    1. Wipe system and vendor ONLY
    2. Flash vendor
    3. Mount vendor
    4. Flash DP5 AB GSI
    5. Flash Post GSI 1 tissot zip v2
    6. Flash Post GSI 2 tissot zip
    7. Reboot to system
    Added new Gestures features and FM Radio for everyone to enjoy. Bug fixing will continue for VoLTE and others. Special thanks to @erfanoabdi for porting DP5 A/B GSI.
    Edit: Post GSI 1 has been updated to v2.
    35
    I will no longer attempt to fix any issues with the ROM. Many of the members here do not understand that this is a PORTED ROM and NOT BUILT FROM SOURCE. If you can't understand the differences between those, I can no longer help you out. I'm too tired and stressed from everyone asking me to make magic to **** Google made. People complain about VoLTE (which Pixel devices don't even use), dual SIM issues (which Pixel devices only come with single SIM support) among other voodoo magic that they think will make their issues go away.

    Stop trying to make this ROM seem like the best when it is FAR from it. People complain about the simplest of issues such as the SIM icons being reversed, icon spacing, low call volume, etc etc etc.

    Most of the complaints here don't even have accompanying logcat with the problems. How am I supposed to fix your issues if you can't provide the errors causing them?

    I'm sorry but I will no longer accept ANY requests to fix remaining bugs. If you send a PROPER report with LOGS included, I MAY look into it. But for the other members that are ignorant, I will not help with your issues as I'M NOT EVEN THE DEV OF THE ROM AS IT IS PORTED.

    Thanks to everyone who appreciated me and others' efforts into trying to make this stable but I will support this GSI less from now on.

    Sent from my Xiaomi Mi A1 using XDA Labs
    26
    Final Post sGSI update has been posted. POST-sGSI_1_v0.28_Tissot.zip is now available!
    Installation:
    1. Wipe vendor
    2. Flash vendor.img
    3. Flash Post GSI 1
    4. Flash Post GSI 2
    5. Reboot to system
    Changelog:
    1. Include lockscreen swipe fix overlay
      To enable, terminal and write
      Code:
      su
      cmd overlay enable com.android.systemui.pix3lify
    2. Updated framework-res__auto_generated_rro.apk
    3. Updated TimeService.apk
    4. Updated ims.apk to no longer display persistent HD notification
    5. Make VoLTE more stable
    6. Updated xml files (fixes some values and typos)
    7. Updated lib64 files (taken from latest Nitrogen OS)
    As explained in the telegram group, anything that will be further broken in the sGSI will not be fixed by simple Post GSI updates anymore. GCam 6.1 couldn't work due to whitelisting issues that has been fixed in commits for custom ROMs but since this is a Google Pixel XL ROM, commits can't be done and I won't go through the trouble of deodexing framework.jar to decompile it and add smali/java edits. Hotfixes/hacks won't simply suffice anymore issues that will be brought by future security patches (which will be up to @dgadelha if he will continue porting it). I had a lot of fun and the stress were enough to keep me staying but yeah. All good things have to end which means further vendor stuff will be maintained either by other devs or volunteers who have knowledge on debugging vendor issues. I'm switching to Nitrogen as it includes Gapps similar to this and some cherry picked commits to include the new Pixel 3 wallpapers among other things. I hope you all enjoyed my work on this and I thank you for joining me in this journey of using this awesome Pixel ROM. Magisk module enhancements are also available in SpaceDoge if you guys are into that.

    Signing off,
    Joey Huab
    21
    PR2 has been uploaded. Download and flash the img file. NOTHING ELSE. No need for the G Cam Fix module anymore.
    Special thanks to @dgadelha for building the sGSI img.

    Most files like A1 and A2 Camera modules are in the GDrive link. Also, here's a bootanimation that fits our device. Use a file explorer with root or TWRP file manager and mount system. Replace the file in system/media.

    DOWNLOAD