[Moto G5 Plus Guides, News, & Discussion] munchy_cool:
Install Android 9.0 Pie GSI on Moto G5 Plus (Windows/Mac/Linux)
​

​

​

Obligatory Warning: This guide and ROM assumes you know the fundamentals of fastboot, flashing TWRP, and running a flash all. Your warranty is voided because of the unlocked bootloader. This is a Third Party ROM. Things may not work as expected compared to stock (for better or for worse).

Warning 2: If you can't do fastboot commands, do a flash all, root your device or flash TWRP/ROM, please do not ask for help here. If you cannot flash all back to stock, please stay stock for everyone's sake.

Warning 3: If coming from stock, backup your persist and efs partitions. If you already have a backup of those partitions, upload them to Google drive. If you dont have a backup of those partitions yet, do so now. Search the guides section and you will find a tutorial.

Warning 4: You might loose all your data. Make sure to backup your data.

/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/

Not Working :

hotspot

Moto action option in settings does not open.

NFC (GSI side bug)

How to Boot into fastboot/bootloader mode

1. Reboot phone, and keep volume down pressed while device is rebooting until you see bootloader mode screen.

2. While phone is off, press volume down and then press power button. Keep holding both until you see bootloader mode screen.

How to Install

Steps

1. Download all the files listed in downloads section and place them inside one folder say Android P.

2. Unzip arm64 Aonly GSI zip file. Unzip fastboot and adb zip file. Rename treble twrp image file to twrp-potter-treble.img. move twrp img file to platform-tools folder.

Create folder Pie in internal memory of phone.

Move below files to Pie folder on phone

* Android P GSI Image (make sure you have extracted the file).

* Gapps Zip File (needed only if GSI image does not have google apps in built).

* Trebelized Lineage OS Vendor Zip File

* Ace Kernel zip file

* Pie Fixes zip file

Reboot device into bootloader mode.

3. Using command prompt/terminal navigate to folder where fastboot is.

Windows

fastboot devices

Mac/Linux

./fastboot devices

Make sure device is detected in fastboot mode.

Windows

fastboot flash recovery twrp-potter-treble.img

Mac/Linux

./fastboot flash recovery twrp-potter-treble.img

4. Disconnect phone from computer. Use volume buttons to navigate, Once you see recovery option, press power button to select. Once you have booted into TWRP recovery. Go to wipe. Select system/data/cache/dalvik cache. Swipe to confirm flash.

5. Go to home screen -> Install, Navigate to Pie folder. Select lineage os vendor zip file. Swipe to confirm flash.

6. Go to home screen -> Install -> Install Image. Select GSI image file. Swipe to confirm flash.

7. (if gsi has no gapps) Go to home screen -> Install -> Select gapps zip file. Swipe to confirm flash.

8. Go to home screen -> Install -> Select pie fixes by Shiv zip file. Swipe to confirm flash.

9. Go to home screen -> Install -> Select Acekernel zip file. Swipe to confirm flash.

10. Reboot -> System.

11. If stuck in bootloop. Reboot to twrp. Go to wipe. Select format data. Enter yes. This will wipe your internal storage so make sure to backup. Reboot -> System.

12. Android 9.0 Pie. Profit!

To root flash Magisk zip file in recovery.

Support :

1) Search. Search, search, search. If you make the effort of reading atleast 5 pages back, most if not all your questions will be answered. I personally, will ignore any questions, if I know they have been answered in the last 5 pages. Not being rude, but please read.

2) If you can't find answers in last 5 pages, ask here, be respectful and have a good time.

Video Guide

[youtube]a53iuiSYZho[/youtube]

Downloads :

Latest ADB & Fastboot Zip File :- https://developer.android.com/studio/releases/platform-tools

Arrow OS GSI Thread (Download arm64 A only):- https://xdaforums.com/project-treble/trebleenabled-device-development/gsi-arrowos-t3835111

Treble TWRP for Moto G5 Plus:- https://twrp.me/motorola/motorolamotog5plus.html

Lineage Vendor Android 9.0 Pie Moto G5 Plus :- https://drive.google.com/file/d/1ud-54oPrw00t-0DmlIvV-9adbmWr_k7d/view?usp=drivesdk

Pie Fixes by Shiv :- https://drive.google.com/file/d/1mhXl-vLavAEMjXia6W6f0mQcYT-FoCv0/view

Ace Kernel for Android 9.0 Pie Moto G5 Plus :- https://xdaforums.com/g5-plus/development/potter-acekernel-v1-10-t3801466

Google Apps for Android 9.0 Pie :- https://opengapps.org/

Xda Android GSI forum :- https://xdaforums.com/project-treble/trebleenabled-device-development

Tools to Unzip GSI

Winrar (Windows) :- https://www.rarlab.com/

The Unarchiver (Mac):- https://theunarchiver.com/

Contributors

[MENTION=7529222]Martichou[/MENTION]

[MENTION=7174278]kubersharma[/MENTION] [MENTION=5293805]GtrCraft[/MENTION]

[MENTION=1829889]vache[/MENTION]

[MENTION=1915408]phhusson[/MENTION]

[MENTION=9325127]Shivvvv[/MENTION] [MENTION=8352556]anshuman_1[/MENTION]

munchy_cool