phhusson Android P 9.0 Treble GSI (WiFI Working)

pravsterrr

Member
Apr 14, 2015
41
25
18
Decided to create a new thread on the SE forums since we now have our own forum.
So phhusson made a treble GSI for Android P and I got further with it than with any of the other GSIs.
WIFI and BLUETOOTH both work with this GSI.

Here's what I did to get it working (your mileage may vary and I am not responsible for any broken/ bricked devices as a result of these instructions, ALWAYS MAKE SURE YOU TAKE A FULL TWRP BACKUP OF YOUR DEVICE BEFORE ATTEMPTING THIS):

Unlock bootloader.
Download the latest TWRP from here and flash it. Make sure you're running at least version 3.2.3.
Boot into TWRP, tap on Wipe and then tap on "Format Data" and enter yes. Once it's done, reboot into recovery.
Next flash the latest Xiaomi.EU MiUI 10 Beta rom from here. Download it, transfer it to your phone's storage and then use TWRP to install the zip.
After it has installed, tap on Wipe on the TWRP main menu and swipe to factory reset.
Next flash the treble GSI for Lineage 15.1 from here. Download it, transfer to your phone's storage and then use TWRP to install the image file by tapping on Install, then "Install Image" on the bottom right and then select the Lineage image you transferred earlier. Select the "system" partition on the next screen and install.
Now reboot your phone and wait for Lineage to boot up. Once it has booted successfully, reboot into recovery. Use TWRP to factory reset your device again.
Now follow the steps for an A-Only device on this article
*BUT BEFORE YOU REBOOT, GO INTO THE ADVANCED MENU ON TWRP AND TAP ON "INSTALL ROOT"*. Once Magisk has been installed, reboot into system and hopefully you should boot. If not, try rebooting again and it should work.

Bugs (that I know of):
Audio is really broken and sounds horrible even with headphones plugged in.
You can fix media audio only by flashing the ViPER4Android module through Magisk Manager.
This doesn't fix it for ringtone/notification or alarms though.

FIX FOR NOTCH:
https://github.com/pravsterrr/treble-overlay-xiaomi-mi8se/blob/master/dist/treble-overlay-xiaomi-mi8se.apk?raw=true
Download the APK.
Boot into TWRP.
Mount vendor partition.
Use ADB to move the APK to "/vendor/overlay/"

let me know if you find anything.
 
Last edited:

Qian Lee

Member
Aug 25, 2018
11
1
0
21
Decided to create a new thread on the SE forums since we now have our own forum.
So phhusson made a treble GSI for Android P and I got further with it than with any of the other GSIs.
WIFI and BLUETOOTH both work with this GSI.

Here's what I did to get it working (your mileage may vary and I am not responsible for any broken/ bricked devices as a result of these instructions, ALWAYS MAKE SURE YOU TAKE A FULL TWRP BACKUP OF YOUR DEVICE BEFORE ATTEMPTING THIS):

Unlock bootloader.
Download the latest TWRP from here and flash it. Make sure you're running at least version 3.2.3.
Boot into TWRP, tap on Wipe and then tap on "Format Data" and enter yes. Once it's done, reboot into recovery.
Next flash the latest Xiaomi.EU MiUI 10 Beta rom from here. Download it, transfer it to your phone's storage and then use TWRP to install the zip.
After it has installed, tap on Wipe on the TWRP main menu and swipe to factory reset.
Next flash the treble GSI for Lineage 15.1 from here. Download it, transfer to your phone's storage and then use TWRP to install the image file by tapping on Install, then "Install Image" on the bottom right and then select the Lineage image you transferred earlier. Select the "system" partition on the next screen and install.
Now reboot your phone and wait for Lineage to boot up. Once it has booted successfully, reboot into recovery. Use TWRP to factory reset your device again.
Now follow the steps for an A-Only device on this article
*BUT BEFORE YOU REBOOT, GO INTO THE ADVANCED MENU ON TWRP AND TAP ON "INSTALL ROOT"*. Once Magisk has been installed, reboot into system and hopefully you should boot. If not, try rebooting again and it should work.

Bugs (that I know of):
Audio is really broken and sounds horrible even with headphones plugged in.
Notch still isn't really recognized by the system.
let me know if you find anything.

Hope someone finds a fix for the audio
Hi guy,my mi8 also have audio bugs,do you fix it?
 

Qian Lee

Member
Aug 25, 2018
11
1
0
21
You can fix media audio only by flashing the ViPER4Android module through Magisk Manager.
This doesn't fix it for ringtone/notification or alarms though.
THX,I had fixed media audio,and I knows someone use an app to change ringtone,then the ringtone sounds ok
ps:I am sorry for my poor english,hope you can understand :victory:;)
 

pravsterrr

Member
Apr 14, 2015
41
25
18

Silver Wind

Member
Apr 17, 2015
12
3
0
Got the notch detection working with help from phh.
Not responsible for any damage to your device / for any broken devices as a result of these instructions.

FIX FOR NOTCH:
Download the APK.
Boot into TWRP.
Mount vendor partition.
Use ADB to move the APK to "/vendor/overlay/"
It's good to see someone trying to make this rom works. Hope that audio problems will be fixed soon
 
  • Like
Reactions: Plabon7

technoboi1

Senior Member
Jul 30, 2012
137
58
0
Győr
Great, thank you. I will try it after its done first release with fixed sound issue.

Got the notch detection working with help from phh.
Not responsible for any damage to your device / for any broken devices as a result of these instructions.

FIX FOR NOTCH:
https://github.com/pravsterrr/treble-overlay-xiaomi-mi8se/blob/master/dist/treble-overlay-xiaomi-mi8se.apk?raw=true
Download the APK.
Boot into TWRP.
Mount vendor partition.
Use ADB to move the APK to "/vendor/overlay/"
 

Silver Wind

Member
Apr 17, 2015
12
3
0
Got the notch detection working with help from phh.
Not responsible for any damage to your device / for any broken devices as a result of these instructions.

FIX FOR NOTCH:
https://github.com/pravsterrr/treble-overlay-xiaomi-mi8se/blob/master/dist/treble-overlay-xiaomi-mi8se.apk?raw=true
Download the APK.
Boot into TWRP.
Mount vendor partition.
Use ADB to move the APK to "/vendor/overlay/"
Hey man, can you make a notch detection for android 8.1 vesion? Hope you can help me with it
 

technoboi1

Senior Member
Jul 30, 2012
137
58
0
Győr
new release is up, changelog:
https://github.com/phhusson/treble_experimentations/releases

September security patch
[Samsung Galaxy Note 9] Fix WiFi, brightness and fingerprint sensor
[Samsung Galaxy S9] Support assistant and partial "home" button on S9
Include phh su
[Xiaomi Mi 6X] Fix backlight control on
[Xiaomi ...] Fix sound on Mi 8 *, Poco,
[Xiaomi Mi Mix 2S] Delete fingerprint key event
[Treble app] [Huawei] Setting for hwcomposer overlay bypass option to workaround blur issue
[Treble app] minor fixes
Add support for status bar reduction for notches
Fix webview issue when not using gapps
[Known regression of this version] Broke ro.sf.hwrotation (needed for screen rotation on some devices)

Maybee our sound issue is fixed :) IT doesnt fixed :(

New PixelExperience release is up too...
https://github.com/EnesSastim/Downloads/releases
 
Last edited:

DSK.Z

Member
Aug 17, 2017
33
2
0
new release is up, changelog:
https://github.com/phhusson/treble_experimentations/releases

September security patch
[Samsung Galaxy Note 9] Fix WiFi, brightness and fingerprint sensor
[Samsung Galaxy S9] Support assistant and partial "home" button on S9
Include phh su
[Xiaomi Mi 6X] Fix backlight control on
[Xiaomi ...] Fix sound on Mi 8 *, Poco,
[Xiaomi Mi Mix 2S] Delete fingerprint key event
[Treble app] [Huawei] Setting for hwcomposer overlay bypass option to workaround blur issue
[Treble app] minor fixes
Add support for status bar reduction for notches
Fix webview issue when not using gapps
[Known regression of this version] Broke ro.sf.hwrotation (needed for screen rotation on some devices)

Maybee our sound issue is fixed :) IT doesnt fixed :(

New PixelExperience release is up too...
https://github.com/EnesSastim/Downloads/releases
is the notch auto detected ?