[DEV][FIXES][GSI] Treble fixes for Mi A2 / Mi 6X - Xiaomi Mi A2 ROMs, Kernels, Recoveries, & Other De

Salve! I will try to organize in this topic a couple of verified fixes for various GSI bugs found in Xiaomi Mi A2 and Mi 6X (jasmine & wayne).
These fixes should work on every GSI-based image.
I tried them on Pixel Experience GSI and I got fixed some of the issues.
Please test and report!​
Front camera flash always on when using it
Fix: add following lines to /system/build.prop:
HTML:
persist.imx376_sunny.low.lux=310
persist.imx376_sunny.light.lux=280
persist.imx376_ofilm.low.lux=310
persist.imx376_ofilm.light.lux=280
Enable VoLTE
Fix: add or modify the following line to /system/build.prop:
HTML:
persist.dbg.volte_avail_ovr=1
Find and install a compatible org.codeaurora.ims.apk for your GSI and reboot twice.
Notification LED always ON
Fix: Reboot twice and wipe cache.
Camera not working or freezing
Fix: Some people reported that camera is broken after flashing 9.0 ROM. What worked for me was to flash stock ROM for Mi A2 or Mi 6X (Android One or MIUI) before flashing any custom ROM or GSI.
Notes:
- Xiaomi Mi 6X (wayne) is similar to Xiaomi Mi A2 (jasmine), but jasmine has A/B partitions and wayne only have A partition.
- As stated in my other threads, rollback protection will be enabled for Xiaomi Mi 6X or Mi A2 (converted) after MIUI Stable V9.6.4.0 / Dev 8.8.6. You can still flash GSI images after those version but you should avoid flashing any MIUI ROM older than those or you'll brick the phone.
Source: https://github.com/phhusson/treble_experimentations/wiki/Xiaomi-Mi-6x

Thank you man, I will try this tomorow. Any solution for the fingerprint sensor, and how to check version of FP reader I have?
Sent from my MI 6X using Tapatalk

I Have Bluetooth issue in GSI ROM, do you have a solution ?

Candy_Pineapple said:
I Have Bluetooth issue in GSI ROM, do you have a solution ?
Click to expand...
Click to collapse
Bluetooth problem with headset (calls) ?

djmitza222 said:
Bluetooth problem with headset (calls) ?
Click to expand...
Click to collapse
With a Bluetooth headset and everything with Bluetooth in GSI Rom

Any solution to the ROM memory Speed?

Candy_Pineapple said:
With a Bluetooth headset and everything with Bluetooth in GSI Rom
Click to expand...
Click to collapse
Bluetooth works just fine for me. The only thing which doesn't it's the headset (calling). Mic and speaker from headset doesn't work but I can connect the device to my car and play music through Bluetooth.

and the infrared?

Any tips on how to setup PE 8.1?
I'm always getting an error that my device is uncertified so it's impossible for me to successfully setup my google account
Edit: PE 9.0 works fine though, but I'd rather use 8.1

I'm not digging the fact you copied and pasted things from here and are seemingly trying to pass it off as your own work. Unless, of course, you're the author of that page.

As I said in my other threads, I do NOT take credits for anything I post here. What I post is what I find.

It's workiiiiiing thanks

wifi doesn't work for me on pixel experience 9.0, any known fixes?

Candy_Pineapple said:
With a Bluetooth headset and everything with Bluetooth in GSI Rom
Click to expand...
Click to collapse
Nebrassy said:
wifi doesn't work for me on pixel experience 9.0, any known fixes?
Click to expand...
Click to collapse
Any GSI if you root, the wifi and BT stops working.

djmitza222 said:
Any GSI if you root, the wifi and BT stops working.
Click to expand...
Click to collapse
Not true i am on pphusson root and no issue aller full work excepted fingerprint

djmitza222 said:
Bluetooth works just fine for me. The only thing which doesn't it's the headset (calling). Mic and speaker from headset doesn't work but I can connect the device to my car and play music through Bluetooth.
Click to expand...
Click to collapse
I also have Bluetooth problems. Pairing and all other things are working fine dir me but i cant play music over Bluetooth. It simpy dont Switch from the built in speaker to the music box.
---------- Post added at 12:34 AM ---------- Previous post was at 12:18 AM ----------
djmitza222 said:
Any GSI if you root, the wifi and BT stops working.
Click to expand...
Click to collapse
WiFi works but U have to wipe cache in Recovery a few times

Wifi won't work on a gsi on this device unless you boot selinux permissive. There's a magisk module for that.

P4Block said:
Wifi won't work on a gsi on this device unless you boot selinux permissive. There's a magisk module for that.
Click to expand...
Click to collapse
Its working for me xD
All other things are working too except bluetooth, the notification led and Fingerprint

Anyone tried to use wired headphones on a Pie GSI? I tried Pixel Experience Pie and used my usb c to 3.5mm aux adapter. But it is not longer recognized.

Goayandi said:
Anyone tried to use wired headphones on a Pie GSI? I tried Pixel Experience Pie and used my usb c to 3.5mm aux adapter. But it is not longer recognized.
Click to expand...
Click to collapse
mine works

Related

Project Treble Support to mido!

Developer Abhishek987 brought full project treble support to Redmi Note 4 (mido), by converting cust partition to vendor partition, and moving HALs from system to there.
Being in similar rom resolution, other mid range devices may support project treble in future too. I'd like to tag recognized developers @brigudav, @karevn, @Razziell, @psykkuno, @unterwelt to look into it.
Original xda feature thread is here- https://www.xda-developers.com/xiaomi-redmi-note-4-project-treble/
It's available for Mi 5s now.
https://www.xda-developers.com/xiaomi-mi-5s-project-treble-compatibility-unofficially/
I think that developers are not interested Thanks anyway for sharing!
Mangel79 said:
I think that developers are not interested Thanks anyway for sharing!
Click to expand...
Click to collapse
Yes, they're not much interested. Razziell said in a way that it doesn't bring much for markw.
Treble is here: https://4pda.ru/forum/index.php?showtopic=794653&st=12920#entry72652457
It's working perfectly for me
Exentio said:
Treble has arrived: https://4pda.ru/forum/index.php?showtopic=794653&st=12920#entry72652457
Is working perfectly for me
Click to expand...
Click to collapse
Yep, followed on 4pda and telegram.
Exentio said:
Treble has arrived: https://4pda.ru/forum/index.php?showtopic=794653&st=12920#entry72652457
Is working perfectly for me
Click to expand...
Click to collapse
I face ccouple of problems with that rom.
USB connection keep disconnecting when plugged to the PC/Laptop. (Kernel treat it as AC Charger, so it draws more power from PC/Laptop)
Even though headset attached, sounds will play from speakers.
Official Magisk build not works with that rom. (This work though Link)
Dn.Thanujaya91 said:
USB connection keep disconnecting when plugged to the PC/Laptop. (Kernel treat it as AC Charger, so it draws more power from PC/Laptop)
Even though headset attached, sounds will play from speakers.
Click to expand...
Click to collapse
I don't have any of these issues, so sadly I can't help you. The only bug I have is that sometimes it reboots randomly, but it kinda happened with other ROMs too
Dn.Thanujaya91 said:
Official Magisk build not works with that rom.
Click to expand...
Click to collapse
It's stated in the thread, you should install the modded TWRP with Treble support and install the modded Magisk version from the Tools section. The download gives 404 on 4pda, I got it from here: https://androidfilehost.com/?fid=890129502657599344
Exentio said:
I don't have any of these issues, so sadly I can't help you. The only bug I have is that sometimes it reboots randomly, but it kinda happened with other ROMs too
It's stated in the thread, you should install the modded TWRP with Treble support and install the modded Magisk version from the Tools section. The download gives 404 on 4pda, I got it from here: https://androidfilehost.com/?fid=890129502657599344
Click to expand...
Click to collapse
I Already done that.
Rooting was ok.
but above problems force me to revert back for Nougat.
Fingers crossed they will solve it.

Best treble rom for xiaomi mix2s

Hello,
I notice that there isnt a lot of roms for this phone and maybe this is because this mobile acept treble roms.
Maybe it will be interesting to list the best treble roms in a post.
anyone are playing with the treble roms??
I think this isn't right place to ask that, but for me best is Resurrection Remix with gestures like MIUI, then AOSP, Pixel Experience and Dot OS, better if you ask in general thread.
I think pixel ROM is the best one, but MOKEE has published tonight.
I will try.
Is there any major but on RR guys?
There is an experimental mokee build for polaris here https://download.mokeedev.com
Anyone tried?
malimukk said:
There is an experimental mokee build for polaris here https://download.mokeedev.com
Anyone tried?
Click to expand...
Click to collapse
Tried it but all the apps are crashing at boot up.
thatguy222 said:
Tried it but all the apps are crashing at boot up.
Click to expand...
Click to collapse
There is now a nightly build as well, could you try that one? https://download.mokeedev.com/?device=polaris
sorry for post this in a incorrect forum!!
thanks for the movement!
I m reading some post of treble but i cant see what are the principal bugs for our mix2s.
The RR rom seams very interesting. Someone have this rom? any bug?
And someone can tell us the procedure to install a treble rom in our mix2s?
thanks!
I'm using RR Treble ROM and everything works well with the exception of Bluetooth audio. I have to used a wired headset if I want to listen to media through the phone.
Has anyone found a fix for this?
malimukk said:
There is now a nightly build as well, could you try that one? https://download.mokeedev.com/?device=polaris
Click to expand...
Click to collapse
mirror ?
ROM is down
morpheus620 said:
mirror ?
ROM is down
Click to expand...
Click to collapse
It is not. If you scroll down you'll see a link for the nightly build. Also you need to wait 60 sec for the download link to appear.
I've flashed the rom, works nicely for now.
not working for me. booting in twrp.
how do I have to flash it?
edit. its boot. format data and working.
Thanks so much! Just flashed the nightly build and everythings seems to be good. even bluetooth is working well!
gapps not working with mokee.
morpheus620 said:
gapps not working with mokee.
Click to expand...
Click to collapse
I have flashed open gapps mini, arm64 architecture for android 8.1. that should work
Mokee has problems with encryption from the system.
Sometimes it works and sometimes all apps stop when they start.
I had to run format data in twrp several times.
To the users of treble ROMs on Mi Mix 2S, are there any noticeable hardware features that are not enabled in the GSI ROMs? I know most of the treble ROMs are GSI and it does not support all the hardware features that may be specific to Mi Mix 2S.
The only one I know of so far is the camera is not fully utlised, as GCam can only use of the cameras.
morpheus620 said:
Mokee has problems with encryption from the system.
Sometimes it works and sometimes all apps stop when they start.
I had to run format data in twrp several times.
Click to expand...
Click to collapse
For me there are no such problems. Phone was encrypted from the beginning, from the first time I did the phone setup. But to me it does not really matter, as selinux is permissive, which is far worse IMO
malimukk said:
For me there are no such problems. Phone was encrypted from the beginning, from the first time I did the phone setup. But to me it does not really matter, as selinux is permissive, which is far worse IMO
Click to expand...
Click to collapse
Since mokee isn't a treble rom, maybe you should make a separate discussion thread about it?
ArctiX said:
Since mokee isn't a treble rom, maybe you should make a separate discussion thread about it?
Click to expand...
Click to collapse
I agree Mokee should have an actual thread, but since it doesn't I wan't to contribute this to the community.
Mokee Nightlies do work, but you'll get a Google crash (in Chinese) right off the bat stopping you from continuing through setup. Go back to TWRP and choose Format Data under Wipe. That will fix this issue.
Next you won't be able to turn on WiFi. Turn off Bluetooth (not sure if this is required), reboot and WiFi will be usuable. You can now turn Bluetooth back on.
The only issue I can see at the moment is SELinux is NOT enforcing. I tried to flip it with the Magisk module but that prevented it from fully booting. There maybe many more issues but I've only had it going for 10 minutes.

[Treble] pixel experience 9.0 (updated 20/09/18)

Link for pixel experience 9.0 treble rom.
Updated (24/03/19)
https://github.com/EnesSastim/Downl...A-2019-03-24/PixelExperienceP-arm64-aonly.zip
Flashing guide:
1. Flash twrp
2. Do factory reset (dont wipe system data vendor)
3. Flash system.img
4. Reboot
credits:
EnesSastim, as he is the developer and the creator of this GSI.
Official thread:
https://forum.xda-developers.com/pr...ce-development/9-0-pixelexperience-p-t3833294
What about the notch? It's integrated in the correct way?
Inviato dal mio ONEPLUS A6003 utilizzando Tapatalk
Should be in Guide News Discussion Thread...
Sgnoogle said:
What about the notch? It's integrated in the correct way?
Inviato dal mio ONEPLUS A6003 utilizzando Tapatalk
Click to expand...
Click to collapse
Fixed perfectly after reboot once.
Thank
Can the audio bug be fixed with this method?: https://forum.xda-developers.com/poco-f1/how-to/temp-audio-distorted-p-gsis-fix-t3839427
Everything else is working?
- Fingerprint scanner
- Face unlock
- Bluetooth
Adios2nd said:
Can the audio bug be fixed with this method?: https://forum.xda-developers.com/poco-f1/how-to/temp-audio-distorted-p-gsis-fix-t3839427
Everything else is working?
- Fingerprint scanner
- Face unlock
- Bluetooth
Click to expand...
Click to collapse
Face unlock won't work because its xiaomi's own implementation
Fingerprint will work
Bluetooth works but didn't try any audio device on it
Jaskirat singh said:
Face unlock won't work because its xiaomi's own implementation
Click to expand...
Click to collapse
Sorry for the naïve question, but is it likely that Xiaomi's face unlock feature can be incorporated within custom ROMs? Presumably they'd have to really honour their commitment to be developer friendly in order to release this, but is it anticipated?
Jaskirat singh said:
Face unlock won't work because its xiaomi's own implementation
Fingerprint will work
Bluetooth works but didn't try any audio device on it
Click to expand...
Click to collapse
Can you share a few screenshots to see how notification work?
thesoupthief said:
Sorry for the naïve question, but is it likely that Xiaomi's face unlock feature can be incorporated within custom ROMs? Presumably they'd have to really honour their commitment to be developer friendly in order to release this, but is it anticipated?
Click to expand...
Click to collapse
Well... No matter our device is so called "developer friendly". But main thing is "if" AOSP's upstream supports it. For example fingerprint works on custom roms because its api is already available for us,no need to do extra fuss to rewrite the code. But about that face recognition IR sensor
Read my article you will understand:-
https://forum.xda-developers.com/poco-f1/how-to/native-biometric-api-support-coming-t3839979
---------- Post added at 01:07 PM ---------- Previous post was at 01:04 PM ----------
Tomatot- said:
Can you share a few screenshots to see how notification work?
Click to expand...
Click to collapse
Sorry bro i rolled back to miui. But about notification as far i remember
Its same time was showing at left and sim/battery was on right. Don't know about notification, yea but we got heads up display feature, which is far better than miui's implementation of heads up display
i have instaled the last system image and now audio distorded is fixed and for camera , google camera 5.1.018 177624777 work fine .
philipped346 said:
i have instaled the last system image and now audio distorded is fixed and for camera , google camera 5.1.018 177624777 work fine .
Click to expand...
Click to collapse
Super thumb up :good:
Just questions:
- Still no face unlock?
- How's the picture, comparing to stock?
- Bluetooth, for audio?
- Any lag, bug, force close?
- How's the compatibility with notch?
I'm so eager to move...:fingers-crossed:
Also, could you provide the link of the last system image
Adios2nd said:
Super thumb up :good:
Just questions:
- Still no face unlock?
- How's the picture, comparing to stock?
- Bluetooth, for audio?
- Any lag, bug, force close?
- How's the compatibility with notch?
I'm so eager to move...:fingers-crossed:
Also, could you provide the link of the last system image
Click to expand...
Click to collapse
the link is in op
no face unlock
i have take two photo to see
bluetooth for audio work
for the notch , i don't understand the question , sorry.
pixel experience p work fine.
Official rom thread is here: https://forum.xda-developers.com/pr...ce-development/9-0-pixelexperience-p-t3833294
Also has newer version (14 SEP) in OP.
I must flash disabile Force encryption After the rom?
When I try to flash the image on my phone, it only takes a few seconds for it to work (which I find quite suspicious since it's quite heavy) and then when I want to reboot it bootloop once and then go to fastboot mode. Do you have any idea what am I doing wrong? I've tried redownloading the image, extracting it again, flashing it a few times nothing seems to work.
Tomatot- said:
When I try to flash the image on my phone, it only takes a few seconds for it to work (which I find quite suspicious since it's quite heavy) and then when I want to reboot it bootloop once and then go to fastboot mode. Do you have any idea what am I doing wrong? I've tried redownloading the image, extracting it again, flashing it a few times nothing seems to work.
Click to expand...
Click to collapse
For me the same on last build 9-14, downloading the previous build
philipped346 said:
the link is in op
no face unlock
i have take two photo to see
bluetooth for audio work
for the notch , i don't understand the question , sorry.
pixel experience p work fine.
Click to expand...
Click to collapse
Can you confirm Arnova8G2 - GCam-5.1.018-Pixel2Mod-Arnova8G2-V8.3b1.apk works?
https://www.celsoazevedo.com/files/...f/GCam-5.1.018-Pixel2Mod-Arnova8G2-V8.3b1.apk
---------- Post added at 05:06 PM ---------- Previous post was at 05:04 PM ----------
Android Abdullah said:
Link for pixel experience 9.0 treble rom.
Updated
https://github.com/EnesSastim/Downloads/releases/tag/PE-A-2018-09-14
Flashing guide:
1. Flash twrp
2. Do factory reset (dont wipe system data vendor)
3. Flash system.img
4. Reboot
Known bugs:
Let me know
Latest system image and now audio distorded is fixed and for camera , google camera 5.1.018 177624777 work fine .
Click to expand...
Click to collapse
Hello does Arnova8G2 Gcam work?
https://www.celsoazevedo.com/files/...f/GCam-5.1.018-Pixel2Mod-Arnova8G2-V8.3b1.apk
No arnova ,just Google camera .
On the main thread someone said that the last update (which doesn't boot on our device) fixed the notch compatibility. So how is it on the previous build? Can we see them properly? Are they cropped?

[Xiaomi EU Miui-Q] Low Earphone Sound Fixer

Xiaomi EU and based roms are plagued with low/restricted earphone sound issue, as per EU regulations. This patch fixes that. Just flash in recovery (Orangefox tested) and done.
Hit thanx, doesn't cost anything.
Download
Mirror
Sudeep Duhoon said:
Xiaomi EU and based roms are plagued with low/restricted earphone sound issue, as per EU regulations. This patch fixes that. Just flash in recovery (Orangefox tested) and done.
Hit thanx, doesn't cost anything.
Download
Mirror
Click to expand...
Click to collapse
Nice to see you here after your gr8 work for MMX A110
andromodgod said:
Nice to see you here after your gr8 work for MMX A110
Click to expand...
Click to collapse
Thank you
Sudeep Duhoon said:
Xiaomi EU and based roms are plagued with low/restricted earphone sound issue, as per EU regulations. This patch fixes that. Just flash in recovery (Orangefox tested) and done.
Click to expand...
Click to collapse
Thanks. Is there a way to delete these changes if we face issues?
mGforCe said:
Thanks. Is there a way to delete these changes if we face issues?
Click to expand...
Click to collapse
Dirty flash the rom again
Sent from my Redmi Note 9S using Tapatalk
Sudeep Duhoon said:
Dirty flash the rom again
Sent from my Redmi Note 9S using Tapatalk
Click to expand...
Click to collapse
Ok, yes that is the default way. But then it leads to reflashing lot of other things/changes if done in terms of Magisk, Kernel etc
Any reason, why these changes cannot be done systemlessly via Magisk?
mGforCe said:
Ok, yes that is the default way. But then it leads to reflashing lot of other things/changes if done in terms of Magisk, Kernel etc
Any reason, why these changes cannot be done systemlessly via Magisk?
Click to expand...
Click to collapse
Magisk won't work as you have to format data and magisk will be removed on data format
Sent from my Redmi Note 9s using Tapatalk
Sudeep Duhoon said:
Magisk won't work as you have to format data and magisk will be removed on data format
Sent from my Redmi Note 9s using Tapatalk
Click to expand...
Click to collapse
Guess my Q was not clear.
Sudeep, what I wanted to check was that rather than flashing the prop changes via TWRP (as of now), can we not make these changes via Magisk module?
hey can you point me to some answer for my problem
is there any volume we can change for bluetooth mic in mixer path.
my bluetooth headset mic volume is very low and my callers listen very low voice even when speaking loudly and speaking to near mic of headset. its not headset problem coz i checked with 2 other bluetooth headphones too but same problem.
Will it work with mi8 and 20.9.4?

Help me get developers to build some custom Roms for Doha!!

Come on, this device is awesome. Even though it supports project treble I haven't found any that were stable enough to make It thru a whole day without bugs glitches etc. Any thoughts on how to get some developers to support this phone?
It is a very good question to put on the agenda ...
I didn't adapt well to GSI (I didn't find one that actually worked on mine, actually)
I'm waiting too, at least one LOS for our G8Plus ...
https://forum.xda-developers.com/showpost.php?p=83039885&postcount=40
According to SnowTalker this GSI should work on our G8+
vietchecz said:
https://forum.xda-developers.com/showpost.php?p=83039885&postcount=40
According to SnowTalker this GSI should work on our G8+
Click to expand...
Click to collapse
Yes at least the g8 plus supports GSI otherwise I would probably just sell this phone ._.
vietchecz said:
https://forum.xda-developers.com/showpost.php?p=83039885&postcount=40
According to SnowTalker this GSI should work on our G8+
Click to expand...
Click to collapse
Bluetooth doesn't work with that GSI.
tripper22 said:
Bluetooth doesn't work with that GSI.
Click to expand...
Click to collapse
Ow that's an issue! Thanks for informing us. Perhaps Bluetooth will work with Havoc OS GSI? And what about fingerprint sensor?
vietchecz said:
Ow that's an issue! Thanks for informing us. Perhaps Bluetooth will work with Havoc OS GSI? And what about fingerprint sensor?
Click to expand...
Click to collapse
Bluetooth does not work with the latest havoc GSI but the fingerprint lock does!
I found this googling around. Perhaps you could try to change these settings in order to get bluetooth working?
Setting==> Developer options ==> Bluethooth audio codec (change to AAC)
Developer Options ==> Bluetooth AVRCP ==> 1.6
vietchecz said:
I found this googling around. Perhaps you could try to change these settings in order to get bluetooth working?
Setting==> Developer options ==> Bluethooth audio codec (change to AAC)
Developer Options ==> Bluetooth AVRCP ==> 1.6
Click to expand...
Click to collapse
@SnowTalker can you try this?
tripper22 said:
@SnowTalker can you try this?
Click to expand...
Click to collapse
No it still does not work with havoc os GSI :/
I am going to bringup this device in the possibility of my skills.
DarkJoker360 said:
I am going to bringup this device in the possibility of my skills.
Click to expand...
Click to collapse
looking forward to that!!
DarkJoker360 said:
I am going to bringup this device in the possibility of my skills.
Click to expand...
Click to collapse
Thank you very much, crossing my fingers the best i can for that!
Any news guys regarding custom roms for G8 plus? As far as i remember the source code fo the kernel was also released not long ago, making it even easier.
https://github.com/MotorolaMobilityLLC/kernel-msm/releases/tag/MMI-QPI30.28-Q3-28-26

Categories

Resources