Flash GSI

Search This thread

Flounderist

Senior Member
Jan 7, 2016
836
407
Cork

maciek90

Senior Member
Aug 24, 2009
129
35
Wrocław
Anyone had an issue with BT in call audio? A2DP streaming works fine, but during call the voice is played by phone speaker despite I'm connected to headset.

I found this topic https://forum.xda-developers.com/pr...android-9-pie-bluetooth-call-problem-t3914338
and I was able to fix this issue by removing that one line from rw-system.sh, but then A2DP stopped working.

Could someone check if music BT streaming and BT audio in calls work in other GSIs? I'm on Havoc OS 2.6.

I will try to follow the steps from above topic later as I can't unpack the original audio_policy_configuration file now.
 

pengus77

Recognized Developer
Mar 10, 2011
2,140
22,971
Penguins' Republic of Antarctica
Same for me.
In this zip there are many patch for mi9 and they aren't compatible with mi9SE

Care to try this one as a magisk module? I took all the files and configs from miui 10.2.9 EEA stable and tweaked a bit the overlay to enable auto brightness. It's based on the one from AndroPlus for MI9 but with the "correct" files for our phone.

Tested on my phone all day (I'm running floko) and both bt audio and calls work fine. Also auto brightness seems ok-ish... maybe needs some tweaks :)

Let me know if it works for you so maybe I can tweak it a bit more and put it on github for everyone :)
 

Attachments

  • magisk_patch_for_Mi9SE.zip
    76.6 KB · Views: 47

ale.giordano

Senior Member
Oct 15, 2017
139
22
Care to try this one as a magisk module? I took all the files and configs from miui 10.2.9 EEA stable and tweaked a bit the overlay to enable auto brightness. It's based on the one from AndroPlus for MI9 but with the "correct" files for our phone.

Tested on my phone all day (I'm running floko) and both bt audio and calls work fine. Also auto brightness seems ok-ish... maybe needs some tweaks :)

Let me know if it works for you so maybe I can tweak it a bit more and put it on github for everyone :)
Thank you!

Now I am on EU but this change my priority... Soon I will flash a GSI again!
 

Flounderist

Senior Member
Jan 7, 2016
836
407
Cork
Let me know if it works for you so maybe I can tweak it a bit more and put it on github for everyone :)
I just flashed this module over Floko ROM and the auto brightness is very good for me.
Are you using the same values as stock firmware?
I didn't tested BT at the moment.

Is there any chance to fix the audio fx and the FOD issue?

:good:
 
  • Like
Reactions: Dexter_79

maciek90

Senior Member
Aug 24, 2009
129
35
Wrocław
Care to try this one as a magisk module? I took all the files and configs from miui 10.2.9 EEA stable and tweaked a bit the overlay to enable auto brightness. It's based on the one from AndroPlus for MI9 but with the "correct" files for our phone.



Tested on my phone all day (I'm running floko) and both bt audio and calls work fine. Also auto brightness seems ok-ish... maybe needs some tweaks :)



Let me know if it works for you so maybe I can tweak it a bit more and put it on github for everyone :)
Havoc OS hangs at boot animation after installing this module, BUT I used audio_policy_configuration.xml file from your module and now BT sound works fine in call and while playing music.
Thanks for sharing this module.
I had auto brightness working before, so maybe there was some conflict with files from your module.

For anyone who has problems with flashing this module and wants to fix BT sound please follow this steps:
1. Comment the line
Code:
mount -o bind /mnt/phh/empty_dir /vendor/etc/audio || true
in /system/bin/rw-system.sh by adding # at the beginning.
2. Reboot
3. Replace /vendor/etc/audio/audio_policy_configuration.xml file with the one from pengus77 module.
4. Reboot
 
  • Like
Reactions: Dexter_79

pengus77

Recognized Developer
Mar 10, 2011
2,140
22,971
Penguins' Republic of Antarctica
I just flashed this module over Floko ROM and the auto brightness is very good for me.
Are you using the same values as stock firmware?
I didn't tested BT at the moment.

Is there any chance to fix the audio fx and the FOD issue?

:good:

Hey there,
the auto brightness values are the ones from MI8SE, which is pretty much similar to the MI9SE. At the moment I find it a bit too sensitive and I'm tweaking a bit the values to make it more smooth.

About FOD, I'm not on the latest Floko, so my FOD works fine. As I heard on the newest releases it doesn't work, so yeah, I can diff the mods and check what happened. Maybe drop some code in the module and make it work again. No guarantees.

About AudioFX, care to explain what problems you're having?
 
  • Like
Reactions: Flounderist

Flounderist

Senior Member
Jan 7, 2016
836
407
Cork
Hey there,
the auto brightness values are the ones from MI8SE, which is pretty much similar to the MI9SE. At the moment I find it a bit too sensitive and I'm tweaking a bit the values to make it more smooth.

About FOD, I'm not on the latest Floko, so my FOD works fine. As I heard on the newest releases it doesn't work, so yeah, I can diff the mods and check what happened. Maybe drop some code in the module and make it work again. No guarantees.

About AudioFX, care to explain what problems you're having?

I'm running latest Floko ROM (061519) and FOD is working fine, bu only with screen on. I was wondering if there is any way to get it working with screen off or in AOD mode.

Auto brightness is working fine, I agree with you it is quite sensitive in mixed light conditions, but it works very well on low light and full light (i usually prefer darker screen while indoor).

AudioFX apk on my device starts but i get a blank screen. I didn't tested with audio, even if audio streamed from social media is ok.

Weird to say, your magisk module fixed also the battery stats details.
 

pengus77

Recognized Developer
Mar 10, 2011
2,140
22,971
Penguins' Republic of Antarctica
I'm running latest Floko ROM (061519) and FOD is working fine, bu only with screen on. I was wondering if there is any way to get it working with screen off or in AOD mode.

Auto brightness is working fine, I agree with you it is quite sensitive in mixed light conditions, but it works very well on low light and full light (i usually prefer darker screen while indoor).

AudioFX apk on my device starts but i get a blank screen. I didn't tested with audio, even if audio streamed from social media is ok.

Weird to say, your magisk module fixed also the battery stats details.

Ok perfect then. I don't use AudioFX but I can check in the logs what's wrong with it.
About battery stats, yeah, forgot to mention that I also put in the correct power profile in the overlay :p
 
  • Like
Reactions: Flounderist

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    So, here we go. Here you can find the repackaged 10.3.1.0 vendor and firmware (including modem) twrp-flashable zip. At the moment the results are interesting, but I need a bit more feedback from users on different networks and in different environments.

    Also, Here is the V3 Magisk Module that adds some more props overlays (of course the bt and auto brightness fixes are still there). Be warned that flashing this zip requires also installing ims.apk or the sim won't be recognized. You can find the app attached to this post and you can just "adb install ims.apk" or install it from an in-phone file manager as a normal app.

    Please let me know how it goes for you guys. If all is fine I'll open a new thread to keep a list of the magisk module versions and of the different vendor packages.

    Update: Reinstated the download link for the vendor/firmware image. All good now.
    6
    I'm conducting a test. Just repackaged miui 10.3.1.0 EEA by removing the system, boot, dtbo and vbmeta images. Slimmed the vendor overlay by removing everything related to china telecom and such. Flashed via TWRP over Floko and Okita kernel and the battery drain during calls seems a bit better now. I'll let you know if it's safe and working but I plan to push the package in cloud and share a link soon. If this works I'll make sure to publish updated flashable vendor/firmware packages to use with GSI roms. I'll keep you updated with the results....
    5
    My favorite GSI Rom is Havoc OS 2.5

    https://forum.xda-developers.com/pr...bled-device-development/gsi-havoc-os-t3930030

    Everything is working. With GApps it is the most Pixel like experience. It also works with okitakernel.

    Flashing:

    1. First wipe System, Data, Cache, Dalvik.
    Reboot to Recorey
    2. Install Global or EEA Xiaomi zip.
    Reboot to Recovery
    3. Install Hvoc OS System Image.
    Reboot to Recovery
    4. Flash Magisk
    Reboot to Recovery
    5. Go to wipe and increase System
    Partition size.
    Reboot to Recovery
    6. Install okitakernel.
    Reboot to Recovery
    7. If you like to install GApps go to Step 8,
    else go to wipe and do factory reset.
    Then restart Sytem.
    8. Install GApps Package what you like.
    Reboot to Recovery
    9. Mount Sytem and start TWRP file
    manager Go to /sytem root/sytem and then to app folder.
    Delete Via folder (its Havoc OS or LOS Browser) and camera2
    folder if you installed GCam with GApps (because you can later install the Mi9SE GCam Mod).
    Next go back and go to priv-app folder and delete Dialer folder if you installed Google Dialer.
    Reboot Recovery.
    10. Do factory reset.
    11. Restart to System.
    4
    Same for me.
    In this zip there are many patch for mi9 and they aren't compatible with mi9SE

    Care to try this one as a magisk module? I took all the files and configs from miui 10.2.9 EEA stable and tweaked a bit the overlay to enable auto brightness. It's based on the one from AndroPlus for MI9 but with the "correct" files for our phone.

    Tested on my phone all day (I'm running floko) and both bt audio and calls work fine. Also auto brightness seems ok-ish... maybe needs some tweaks :)

    Let me know if it works for you so maybe I can tweak it a bit more and put it on github for everyone :)
    3
    Booted few days ago.. but now I am running the latest xiaomi.eu rom...

    IMG_20190514_132211_395.jpgIMG_20190514_132208_905.jpgIMG_20190514_132145_667.jpg
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone