Related
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
Enable Developer options in Settings app
Check Enable OEM Unlocking
Reboot to fastboot mode
Unlock your bootloader
Install TWRP-fastboot only through fastboot boot command (Extract the .img file from the zip)
Flash CosmicDan's TWRP Installer through your current TWRP. Credits to @CosmicDan for his TWRP and @mohancm for official TWRP sources.
Reboot to TWRP recovery
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.
Treblelize through TWRP Tissot Manager (Go to advanced, click Tissot Manager and choose the repartition userdata option. Select singleboot option then click repartition)
Flash latest Vendor.img as VENDOR IMAGE
Flash A/B system Pie PR2 img as SYSTEM IMAGE (Extract the .img file from the zip) (special thanks to @dgadelha for the sGSI)
Flash POST-sGSI 1 tissot zip.
Flash POST-sGSI 2 tissot zip.
Flash a treble-compatible kernel (Moun, ProjectK,Velocity)(credits to @mountaser halak, @khusika, @kdragon)
Reboot to system.
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.
You can now flash Magisk 17.3. This is the version that works properly with treble. Credits to @topjohnwu for Magisk.
Install the Data transfer tool APK update as well.
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.
Ethereal - https://play.google.com/store/apps/d...ethereal&hl=en
Outline - https://play.google.com/store/apps/d....outline&hl=en
Compound - https://play.google.com/store/apps/d...compound&hl=en
Sai's theme - https://t.me/tissotpsemigsi/33526
Click to expand...
Click to collapse
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
Wipe system ONLY
Flash PIE PR2 AB GSI
Reboot to system
Click to expand...
Click to collapse
To update your post post GSI zips, follow this
Wipe vendor ONLY
Flash vendor
Flash POST-sGSI 1 tissot zip.
Flash POST-sGSI 2 tissot zip.
Reboot to system
Click to expand...
Click to collapse
Awesome work @joeyhuab bro ?
Edit:- Chrome sucks! Posted same thing twice.
Youtube not working for me(
Great job!!!i will wait to change to beta
Tornado95 said:
Youtube not working for me(
Click to expand...
Click to collapse
I also encounter YouTube issues. :/
Don't work the camera and black for me
ErickCartman17 said:
Don't work the camera and black for me
Click to expand...
Click to collapse
Try Footej Camera from Play Store please, it can be usefull if Footej or Open Camera works
waiting camera fix
cant mount system(invalid argument)
Failed to mount system after i try to flash GSI
I will wait for the stable...but is a good work... Thanks for try this.
andrexp31 said:
I will wait for the stable...but is a good work... Thanks for try this.
Click to expand...
Click to collapse
lol, then just wait for the official release. This is as close as we can get, for now since google hasn't uploaded the source code for P yet
I'm already looking into a fix for Camera. I'll post it once it's available.
What if I want to come back from Android Phone to another Custom ROM? Do I have to "un-treble" the device?
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?
danilguy said:
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?
Click to expand...
Click to collapse
Remove the spaces from the folder name and try... Works for me...
Camera has been fixed. Just adding some more fixes and we'll probably get fingerprint working too. I'll update the links later when done.
joeyhuab said:
Camera has been fixed. Just adding some more fixes and we'll probably get fingerprint working too. I'll update the links later when done.
Click to expand...
Click to collapse
U have don great work
Really well done
Waiting for camera, fingerprint and flash bugs fixed and i will surely test the rom
What about Bluetooth?
Chris_Cheekyz said:
What about Bluetooth?
Click to expand...
Click to collapse
Fixed as well together with Camera fix. Credits to Rupansh and @kdragon for using Whyred's blobs. Credits also to @ghpranav for BT fix.
Download
My phone currently using PixelExperience_tissot-8.1.0-20180715-0738-OFFICIAL.zip (flashed using Aex12's TWRP a1to5x).
I flash to the latest PixelExperience_tiffany-9.0-20190116-0527-OFFICIAL.zip (link).
Everything working fine except fingerprint.
My 5X Fingerprint info (check using AIDA64)
Manufacturer : FPC / Goodix
Model : FPC102x / FP
After a few try n error, now I can get the fingerprint working.
Step:
I assume you ady installed Android P rom on your 5X
1. Download Android P Firmware (link).
2. Extract and run flash_only_firmware.sh (credit to Aex12).
notes: this flash_only_firmware.sh can only run on Linux.
if you use Windows OS, you can download the script from Aex12 thread (link)
3. Delete lockscreen and fingerprint data on your phone. (This step taken from here)
- Open file manager, go to /data/system/
- delete any file with ".key" extension and file with "locksettings" name.
- go to /data/system/users/0/fpdata/
- delete user.db file (just skip this step if your phone doesn't have user.db file)
- go to /data/system/users/0/
- delete settings_fingerprint.xml file (just skip this step if your phone doesn't have settings_fingerprint.xml file)
- Reboot the device and add fingerprint.
DONE..
U have any issues like no ril or efs corrupted before flashing that firm,from what release is this firm?
xemisxu said:
U have any issues like no ril or efs corrupted before flashing that firm,from what release is this firm?
Click to expand...
Click to collapse
I dont faced any issues before this. Just fingerprint got problem.
This firm from Mi A1 pie : V10.0.4.0.PDHMIXM (Android P)
i don't know wither this fits here or in the guide section so i leave it for the moderators to decide to move this thread or not
with that being said
i wanted to share my experience on how easily you can boot to miui without converting your device using erfan gsi
Download :
1. Erfan miui 10 a/b gsi from here : https://mirrors.lolinet.com/firmware/gsi/MIUI-AB-9-20190413-ErfanGSI.img.7z
2 . Files in this thread : https://forum.xda-developers.com/mi...on-aio-gsi-thread-mi-a2-t3933356#post79601628
Instructions :
1. format both a and b completely ( Data , system , etc ) also format data completely from twrp ( there is option which let you format data and userdata together next to advance option)
2. Restore the android q backup but only vendors and boot DONT RESTORE SYSTEM
3. install your gsi as system image
4. install. DM-Verity & Forceencrypt Disabler
5 . install permissiver_v2
6. format data completely from twrp ( there is option which let you format data and userdata together next to advance option)
7. reboot system and enjoy
Known issues
stock camera doesn't work
sometimes the blur effect in the notifications shade will not work instead it would be completely transparent
disclaimer : i didn't make or port any of those files used in the thread i'm just sharing my experience
Google Camera works?
g.laterza9 said:
Google Camera works?
Click to expand...
Click to collapse
it should work if you enable api 2 by magisk
however i didn't try it yet
Before doing anything to device, keep a copy of Stock ROM from here in your PC or SD Card.
Installing GSI ROMs
Tutorial:
If you don't know what a GSI is or want to know more about it, see this, this and this
Don't try to flash GSI in custom recovery.
Note:- We can only flash GSIs having android version higher than or equal to stock rom android version. That is if your StockROM Android version is 10, then you can only flash GSIs of Android 10 or higher.
If you are flashing GSI with custom ROM installed, then flash stock ROM before flashing GSI. Since boot and vendor(may), get modified with custom ROM.
Step 1 - Pick your poison in the Treble Forums or from here!
Check below of this thread if you want to see my recommendations with links to them.
Step 2 - Download the chosen ROM, A/B ARM64 version (usually nicknamed (b), with (g) or without GApps (v), rooted (S) or not (N), that's entirely up to you.
It should be an .img.xz file, extract it and you'll get an .img file.
For example, I am downloading this
You're ready to flash. Make sure to backup your phone's data before continuing on with this tutorial, as wiping it is required for installation!
Step 3 - Put your phone into fastboot mode (Power + Volume Down) and link it to your PC.
Step 4 - Move the .img file and vbmeta.img you downloaded to your ADB & Fastboot (Platform Tools) folder, and rename it to system.img.
Step 5 - Shift + Right click in an empty space inside the folder, and click Open Command window here.
Inside the Command window, input the following commands line by line, in order.
Code:
fastboot reboot fastboot // Recovery will appear with fastbootd mode
fastboot flash system system.img
fastboot reboot bootloader
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot -w // Skip this if you are updating GSI
fastboot reboot
Your phone will now reboot on its own, using the new ROM you picked earlier, set it all up and enjoy!
GSI bugs without having any possible fixes
These bugs are there in my device and I can't able to fix them
DoubleTapToWake with Q vendor
Lift to wake with R vendor
Fingerpirnt(egis) with R vendor
GSI bugs and possible fixes
VoLTE is fixed in Android 11(R) GSIs which are based on AOSP v300j for Q vendor and AOSP v312 for R vendor
we can get VoLTE working by following below
- Goto Settings => Phh Treble Settings => IMS features
- Now Select both Request IMS network && Force the presence of 4G Calling
- Now click Install IMS APK for Mediatek Q vendor.
- Let it complete download (check your notification panel).
It will show IMS installed You may now reboot! as a toast message
- Now click Create IMS APN (Nothing will happen)
- Reboot and Enjoy!
Play Protect not certified can be fixed by following below
- Download https://f-droid.org/en/packages/makeinfo.com.getid/
- Copy Google Service Framework Key
- Go to https://www.google.com/android/uncertified/
- Sign In and paste copied Value to it and register
- Reboot
Fix Low Brightness
- Go to Settings => Phh Treble Settings => Misc features
- Check Force alternative backlight scale
- Adjust brightness
Fix et512/egis fingerprint
- See https://forum.xda-developers.com/t/gsi-phh-q-r-gsi-flashing-for-realme-c12.4244979/post-85451661
Fix wired ear phones not working
- Go to Settings => Phh Treble Settings => Misc features
- Check Use alternative way to detect headsets
- Reboot
Fix Bluetooth speakers/earphones not working (not tested because I don't have these)
- Go to Settings => Phh Treble Settings => Misc features
- Check Force-disable A2DP offload
- Reboot
Enable USB OTG
- Go to Settings => Phh Treble Settings => Oppo features
- Check Enable USB OTG
If there is no Oppo features in settings then simply run below command in Termux
Code:
su -c "setprop persist.sys.phh.oppo.usbotg 1"
/system partition is read-only
this is the default behaviour of non-vndklite GSIs from v300.j onwards, to get R/W access for /system use vndklite variant.
Click to expand...
Click to collapse
If you have any other issues, tell the developer with logs. See this to know about taking logs.
FAQ
I can't able to use Magisk because of inbuilt phh SuperUser
- To use Magisk, we have to remove inbuilt phh SuperUser first, to do so boot to TWRP and run below commands in PC
Code:
adb shell
mount /system_root
mount -o rw,remount /system_root
rm -rf /system_root/system/app/me.phh.superuser
rm -f /system_root/system/bin/phh-su
rm -f /system_root/system/etc/init/su.rc
rm -f /system_root/system/xbin/su
exit
Now you can able to use Magisk
I can't able to install GApps in vanilla variant
- Simple thing we have to do is to use GApps variant of GSI. If you don't want to use GApps variant for some reason or there is no such thing at all, we need to resize system to increase free space in /system partition. For this we need to use fastbootd mode
Code:
adb reboot fastboot // or fastboot reboot fastboot if your are in fastboot mode
fastboot resize-logical-partition system 4294967296 // 4 GiB
fastboot reboot recovery
Now you can flash GApps package
If your are using UI 2.0 (means R vendor), then you may can't resize system 4 GiB as shown above, to do so we have to remove some unnecessary partitions first, run these commands in PC
Code:
adb reboot fastboot // or fastboot reboot fastboot if your are in fastboot mode
fastboot erase my_heytap
fastboot resize-logical-partition my_heytap 4096
fastboot erase my_stock
fastboot resize-logical-partition my_stock 4096
fastboot erase my_preload
fastboot resize-logical-partition my_preload 4096
Note that instead of deleting those partitions I erased and resized to 4KiB because deleting will cause longer booting time.
Click to expand...
Click to collapse
Spoiler: GSI Recommendations
All my recommendation's latest releases contain fixes for our device.
Ordered by personal preference:
LOS mod (LineageOS GSI)
crDroid
CAOS
Flashing StockROM in TWRP
Note:- If you want to flash older version of stock rom than the one that is installed, then you need to be on GSI or custom ROM to do it.
- Search Software update - realme in Google and go to your region specific site
- Download and place stock .ozip in External storage
- Download and install TWRP from https://androidfilehost.com/?fid=7161016148664786711 (Don't use other TWRP)
- Boot to TWRP
- Go to Settings and check Skip Treble Compatibility error
- Choose Wipe and then Format Data and type yes
- Now choose Install and select Micro SDCard in Select Storage that is located in bottom left
- Select Stock ROM .ozip and Swipe for Installation
- After 7 - 15 minutes flash will complete. Choose Wipe Dalvik/Cache
- Reboot
- Enjoy!
Downgrading StockROM using TWRP
- Download .ozip of specific version of Stock ROM that you need to downgrade
- Flash TWRP from https://androidfilehost.com/?fid=7161016148664786711 (Don't use other TWRP)
- Boot to TWRP
- Enable 'Skip Treble Compatibility error' in settings
- Flash ozip
- Format Data and wipe cache
- Reboot
Flashing StockROM in Stock Recovery
Note:- If you want to flash older version of stock rom than the one that is installed, then you need to be on GSI or custom ROM to do it.
If you don't have a backup of stock recovery, then you can get one from A.83 which will work on all other versions of UI 1.0 ONLY from here
- Search Software update - realme in Google and go to your region specific site
- Download and place stock .ozip in External storage
- Boot to stock recovery
- Select Install from storage and select storage where .ozip is located
- Click on .ozip and click OK when prompted to Installation package
- After 7 - 15 minutes flash will complete. Click OK in Installation successful. Prompt
- Go back and select Wipe data, enter verification code and select Format data and click on Format
- Click OK in Wiped successfully prompt and it will automatically boot to stock rom
- Enjoy!
Thanks:-
To this
egis/et512 Fingerprint fix
* First check if you have egis/et512 fingerprint by using Device Info HW app and see 'General' => 'Fingerprint'. If you have egis/et512 then follow below
* This needs to have rooted with Magisk
* Flash below attached module in Magisk app to fix fingerprint
This module is only for Realme UI 1.0 Android 10 vendor with Android 11/12 custom ROM/GSI
Credits
- titidlancip
- dodyirawan85
I am just testing AOSP v313 vndklite vanilla to create an overlay for fixing battery stats, status bar height and to set notch cutout.
Overlay made so far is attached below.
To make the overlay work, just place it in /system/product/overlay/and reboot. See if status bar height is increased or not and after some usage battery stats will appear (Setting -> Battery -> 3-dot -> Battery usage). We can check if overlay is applied or not using below commands in Termux su -c "lsof | grep treble-overlay-realme-c12" it will output some lines if successfully applied.
HemanthJabalpuri said:
I am just testing AOSP v313 vndklite vanilla to create an overlay for fixing battery stats, status bar height and to set notch cutout.
Overlay made so far is attached below.
To make the overlay work, just place it in /system/product/overlay/and reboot. See if status bar height is increased or not and after some usage battery stats will appear (Setting -> Battery -> 3-dot -> Battery usage). We can check if overlay is applied or not using below commands in Termux su -c "lsof | grep treble-overlay-realme-c12" it will output some lines if successfully applied.
Click to expand...
Click to collapse
Wow was searching for this for like past 2-3 days, Thanks, man.
Can I use it on RMX2185?
and How to do it.
RoyTheBoy83 said:
Wow was searching for this for like past 2-3 days, Thanks, man.
Can I use it on RMX2185?
and How to do it.
Click to expand...
Click to collapse
for now the overlay that I made will only work on C12 RMX2189. I will check once there is some time
HemanthJabalpuri said:
egis/et512 Fingerprint fix
* First check if you have egis/et512 fingerprint by using Device Info HW app and see 'General' => 'Fingerprint'. If you have egis/et512 then follow below
* This needs to have rooted with Magisk
* Flash below attached module in Magisk app to fix fingerprint
This module is only for Realme UI 1.0 Android 10 vendor with Android 11/12 custom ROM/GSI
Credits
- titidlancip
- dodyirawan85
Click to expand...
Click to collapse
FIx for both relame ui 1 and 2
Tecno spark 7 pro (kf7j)
warning: these files have been tested on build with v373(contact if you do not know what this means)
I noticed after uninstalling or disabling the stock launcher, the recents feature for switching between apps get broken, I did find a solution that fixes this by installing this magisk module attached below(PIXELIFY), flash this module through the magisk app and the recents feature will be fixed
## Prerequisite
- Pc with adb and fastboot installed.
## Steps
- Download the files provided below.
- then enable developer options by tapping on build number
- unlock bootloader and enable usb debugging
- open terminal and type adb reboot bootloader
- type ``fastboot devices`` to check device is attached
- ``fastboot flash boot magisk_patched_boot.img
- ``fastboot flash vbmeta vbmta.img
- ``fastboot reboot
- **Done**
More info at
GitHub - ianoz9114/tecno-kf7j
Contribute to ianoz9114/tecno-kf7j development by creating an account on GitHub.
github.com
EDIT: JOIN SUPPORT GROUP BELOW
whatsapp group
Thanks for the guide boss .
I've installed several Android 12 GSIs on my Infinix Note 7, but I can't get round corners when opening or switching apps (except with lawnchair). Please d'you know how I could? Maybe a magisk module? Or even a GSI?
Thanks again.
VicKrypt said:
Thanks for the guide boss .
I've installed several Android 12 GSIs on my Infinix Note 7, but I can't get round corners when opening or switching apps (except with lawnchair). Please d'you know how I could? Maybe a magisk module? Or even a GSI?
Thanks again.
Click to expand...
Click to collapse
Try crDroid GSI ROMs they are perfect and is working fluently with default launcher, plus lots of customizations
I accidentally used this in my tecno spark 7 kf6 and now it is automatically restarting at boot logo