Skip to content

Instantly share code, notes, and snippets.

@TheGabrielHoward
Last active February 19, 2020 17:06
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheGabrielHoward/71d22d6d7c6bb71d02a37f8cc5dc8d3f to your computer and use it in GitHub Desktop.
Save TheGabrielHoward/71d22d6d7c6bb71d02a37f8cc5dc8d3f to your computer and use it in GitHub Desktop.
Pie sGSI AB - Notes

[DISCONTINUED][PQ3A][August] Pie sGSI for AB Devices - NOTES (Including MI A1)

Important

ppreview

Table of contents

Tutorial

System Image

Latest System image: PQ3A.190801.002 (August Patch)

System image: PQ3A.190705.001 (July Patch)

System image: PQ3A.190605.003 (June Patch)

System image: PQ3A.190505.001 (May Patch)

System Image: PQ2A.190405.003 (April Patch)

System image: PD2A.190115.029 (March Patch)

System image: PQ2A.190305.002 (March Patch)

System image: PQ2A.190205.003 (February Patch)

System image: PQ1A.190105.004 (January Patch)

Bugs

  • SELinux is in permissive mode
  • In some system images, Now playing isn't working
  • Other (It depends on your device / vendor)

Play Services

Once booted system, you need to install Play Services APK

Camera

  • GCam 5.1: Here
  • Gcam 6.1: Here
  • Gcam Settings Fix (Magisk): Here

Magisk

In order to install Magisk on Pie, download stable Magisk 18.1 and flash in TWRP. once booted, if app not showing, install Magisk 7.1.2

Navbar

To enable Navbar flash Navbar Enabler on Magisk

If you want to have the new Swipe up on home button, go to settings > System > Gestures > Swipe up on home button

Home Button Fix For users who doesn't work Assistant from the Home button:

Open Settings > Apps > More > Default Apps > Assist App > Select Google

Google Sans

Download and flash both files from here via TWRP, then reboot to system

If u want to return to stock Roboto font. Flash thiz zip in TWRP

Battery Drain

If you are getting unusual battery drain, disable ADB (USB debugging) in developer options.

Pixel 2 BootAnimation

Flash this module on Magisk

Custom DPI

Go to Settings > dev options > Look for smallest width

Enable MTP

Enable developer settings

Scroll down to select Default USB Configuration

Select File Transfer

Force Google Backup

Enable Debugging/ADB on phone

Enter the following ADB commands from your PC/shell

adb shell bmgr run bmgr backupnow --all

https://forum.xda-developers.com/pixel-2-xl/how-to/forcing-pixel-2-xl-backup-t369107

Launcher

I recommend using Lawnchair Launcher V2 with QuickSwitch, it is basically a Pixel Launcher with many more customization

Download Lawnchair V2 - Telegram Channel

QuickSwitch is on magisk repository

Substratum

In order to use Substratum themes on Android Pie, you'll have to follow these steps:

Use the latest beta build from substratum ci channel (http://t.me/substratumci)

Make sure the theme you're using supports Pie.

Select the overlays you wish to install

Select Build & Enable from the FA

Reboot, go to Manager and change overlay states

Double SIM Icon Fix

  1. Download System UI Tuner and select Status Bar
  2. Search CDMA ERI ICON and change value NOTE: You need to do every reboot

Pixel Live Wallpapers

Call Screening

Download and install latest Phone APK

Download CallScreening Enabler and flash in Magisk

Reboot your phone

Open settings Phone app, you will see the option "Call Screen"

Downloads (MI A1 only)

Youtube Tutorials

System Image

Vendor Image

POST-sGSI (By Stallix)

Kernel

Treble TWRP (By CosmicDan)

Modules

NOTE FOR PROPS

  • Mi A1 Props = Ok Google working + Fingerprint swipe fixes, Less FC on Mi A1 & Mi A2 Camera modules + Playground FC
  • P3XL Props = Pixel 3 XL in about phone + Pixel 3 XL apps available for updating in Play Store
  • P3XL Exclusives = P3XL Props stuff + additional permissions + some prebuilt system apps + Smart Compose will enable, Flip To Shhh and Active edge will appear

Firmware

  • CHECK GROUP NOTES

Fix No Signal - No SIM

How to update the files

SYSTEM IMAGE

  1. Wipe System
  2. Flash System Image as System Image
  3. Reboot

VENDOR / POST-SGSI

  1. Wipe Vendor
  2. Flash Vendor
  3. Mount Vendor
  4. Flash POST-sGSI 1
  5. Flash POST-sGSI 2
  6. Reboot

KERNEL / FIRMWARE / MAGISK / GOOGLE SANS FONT

  1. Flash
  2. Reboot

Credits

Some special thanks

  • ErfanAbdi for creating Pie sGSI project
  • Stallix for some modules/fixes and POST-sGSI for MI A1
  • Special thanks to Shreyas S for helping me to port GSI images when I was busy
  • DeanJenson for NoSIMFIx and some guides / fixes
  • Denzel for some guides
  • Prochy for Dark Pixel 2 BootAnimation

Pie semi-GSI - Build Guide

Notes made by Gabriel Howard, based on Erfan Abdi's work - Created: September 12, 2018 - Updated: May 28, 2019


DOWNLOAD IMAGES https://developers.google.com/android/images

Extract, get system.img

simg2img system.img system.img.raw

mkdir ~/AndroidWorkspace
cd ~/AndroidWorkspace
git clone https://github.com/erfanoabdi/Capire-Le-Treble.git
git clone https://github.com/erfanoabdi/P_semiGSI.git
git clone https://github.com/erfanoabdi/ROM_resigner.git
git clone https://github.com/LineageOS/android_build.git

mkdir system
cd system

To mount the image, go to system.img.raw image folder

sudo mount -o,noatime system.img.raw ~/AndroidWorkspace/system

A-Only

cd ~/AndroidWorkspace/Capire-Le-Treble/Extra
sudo ./sGSI-ify.sh ~/AndroidWorkspace/system/system 2147483648 ~/AndroidWorkspace/sGSI_A.img

Wait until you see: "Press any key to continue"

Open new tab, then:

cd ~/AndroidWorkspace/ROM_resigner
sudo python resign.py ~/AndroidWorkspace/Capire-Le-Treble/Extra/tmp/system ~/AndroidWorkspace/android_build/target/product/security
cd ~/AndroidWorkspace/P_semiGSI/systemimgmaker
sudo ./make.sh ~/AndroidWorkspace/Capire-Le-Treble/Extra/tmp/system

Back to older and Press any key to exit

AB

cd ~/AndroidWorkspace/Capire-Le-Treble/Extra
sudo ./sGSI-ify_ab.sh ~/AndroidWorkspace/system 2147483648 ~/AndroidWorkspace/sGSI_AB.img

Wait until you see: "Press any key to continue"

Open new tab, then:

cd ~/AndroidWorkspace/ROM_resigner
sudo python resign.py ~/AndroidWorkspace/Capire-Le-Treble/Extra/tmp/system/system ~/AndroidWorkspace/android_build/target/product/security
cd ~/AndroidWorkspace/P_semiGSI/systemimgmaker
sudo ./makeab.sh ~/AndroidWorkspace/Capire-Le-Treble/Extra/tmp/system

Back to older and Press any key to exit


Fixes

SeLinux folder (by GabrielHoward)

AndroidWorkspace / capire-le-treble / extra / tmp / system / etc

remove selinux folder and pu the new

Give persmission to tmp folder:

sudo chmod -R 777 tmp

Error unexpected (in building..):

go to: Android WorkSpace / P semiGSI / systemimgmaker / in.sh

put a ! in front of # (should be like this: #!/bin/bash)

@serrgiofdezz
Copy link

Great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment