internal DAC use in custom roms - Xiaomi Mi Max Questions & Answers

Hey guys, I was curious as to why the internal DAC/amp of our snapdragon 650, is not used by any application, system or 3rd party, in custom roms. I've compared the global unmodified stock MIUI with dac/amp enabled by Poweramp alpha, to the sound from an unmodified custom rom, and the conclusion is obvious.
The sound mods do improve the experience in custom ROMs but if the internal DAC could be used alongside, in custom roms, it would surpass the stock MIUI experience by a big margin.
Its the truth that whether or not people like the sound, is subjective but, at least it would help to have an option of enabling its usage by the system. I request the awesome Devs here, to kindly consider the same. Thanks.

Run this in terminal:
Code:
su -c "echo 1 > /sys/module/snd_soc_msm8x16_wcd/parameters/high_perf_mode"
Any difference?
EDIT: Apparently it's the Poweramp alpha problem not supporting our device... not a ROM issue so put this line /system/build.prop:
Code:
ro.lenovo.hifi_support=true
Reboot... Make any difference in sound?

Thanks nigel8 ! sorry I was off the grid for awhile, I will try this ASAP
Edit : why does it have to be lenovo ?

The attempt failed
Eventually I just spammed the line all around in the build.prop file ?

B/c Poweramp alpha has support for lenovo hi-res audio and we need to fool it to activate it.
Must be doing something wrong...
Run this in terminal:
Code:
su -c "setprop ro.lenovo.hifi_support true"
Then check if it is set:
Code:
getprop ro.lenovo.hifi_support
Should return true.
Works for me.

Thanks
Ohh dac option isn't showing up in poweramp
Could something be wrong with my current rom ? [Latest RR + ainur, shox, viper]
edit: on magisk if it helps.
I really appreciate the support :highfive: :good:

Wrong Poweramp version, alpha3 build-704.

nijel8 said:
Wrong Poweramp version, alpha3 build-704.
Click to expand...
Click to collapse
Wow the bleeding edge! :good: thanks gonna search :fingers-crossed:
So,
turns out that the playstore version was the issue there. It finally took note of the lenovo hifi.
Not sure if its a placebo, but bass sounds firmer now. However it didn't give the volume boost it used to give at miui 8 stable.
Anyways, many thanks to Nijel8 for all the support, and patience

Related

[Q] Viper4android on G4?

Hi folks,
Did anyone get viper4android (XHiFi or FX) working on the G4? I tried the normal lollipop version but it screws up the camera; video recording fails within 1 second, probably due to some ALSA config or whatever (I'm no expert). I did see some closed thread (audio-engine-absolute-sound-project-t3015180"]http://forum.xda-developers.com/android/software/audio-engine-absolute-sound-project-t3015180[/URL]) on TASP where @ahrion did his best to make an all-in-one package for install on newer devices. I will see how that goes, but I'm more hoping on someone chiming in to tell me how to do it instead of reinventing the wheel so to speak...
- update -
Just tried the TASP package found elsewehere on the internet (13b version) and that seems to work, except for the permissive mode which doesn't stick to permissive. I'm running v10b (or 10c depending how you look at it) and it seems the adb su 0 setenforce 0 command doesn't work like it did on 10a?
So last step, I'm stuck on is setting SELinux to permissive... Iet's google some more
Don't you need to be rooted for viper to work? That's 1 of the main reasons I want root
Sent from my VS986 using Tapatalk
Yes and I have root. It's definitely SELinux, setenforce 0 does the trick until reboot...
https://www.dropbox.com/s/vri6pb4vb38bhsu/viper_v2.3.4.0_-_remove_fx_build_fix.zip?dl=0
Gesendet von meinem LG-H815 mit Tapatalk
Thanks, interesting... but, what exactly am I flashing with this? Looks like a modified viper installer, but does it also take care of SELinux?
Who made this ? I want to see if there is any updates,working good for me !
I thought you couldn't permanently change SELinux to permissive on Android 5 unless you were using a custom firmware like AOSP.
leijonasisu said:
I thought you couldn't permanently change SELinux to permissive on Android 5 unless you were using a custom firmware like AOSP.
Click to expand...
Click to collapse
You thought right.
There's an app on Fdroid called "SeLinux Mode Changer" that'll set the SeLinux state to permissive on every boot. But Google doesn't like the app, so it randomly remembers you to remove the app.
About gave up for months, then it clicked in my mind when i saw a post mention to make sure all other audio apps redirect eq to viper, and if not, change them. Even if you dont use a certain audio player app, change it too.
Problem is, i could not get the lg music app (which i never use) to change the equalizer to viper, it just had it's own default settings, so i ignored it. So i decided to revisit the lg app, and froze the app with link2sd, i also froze the lg video app too, just in case. Rebooted and now viper sees NEON and i can even run without compatibility mode (which did not work consistantly for me) .
I tried all steps to get this to work, not sure what other things are needed for everyone else, but i tried moving viper to system, installed selinuxmodechanger, maybe this can be uninstalled now, i have no idea. I have no plans to fix what isnt broken and find out myself, so just try freezing lg music app for starters.
Hope it works for you, if so, let the community know what steps you had to do!
involver said:
Hi folks,
Did anyone get viper4android (XHiFi or FX) working on the G4? I tried the normal lollipop version but it screws up the camera; video recording fails within 1 second, probably due to some ALSA config or whatever (I'm no expert). I did see some closed thread (audio-engine-absolute-sound-project-t3015180"]http://forum.xda-developers.com/android/software/audio-engine-absolute-sound-project-t3015180[/URL]) on TASP where @ahrion did his best to make an all-in-one package for install on newer devices. I will see how that goes, but I'm more hoping on someone chiming in to tell me how to do it instead of reinventing the wheel so to speak...
- update -
Just tried the TASP package found elsewehere on the internet (13b version) and that seems to work, except for the permissive mode which doesn't stick to permissive. I'm running v10b (or 10c depending how you look at it) and it seems the adb su 0 setenforce 0 command doesn't work like it did on 10a?
So last step, I'm stuck on is setting SELinux to permissive... Iet's google some more
Click to expand...
Click to collapse
Any chance you have a link to download TASP 13B? I absolutely cannot find it on the official dev page. Maybe I am blind.
I've sent you a PM with the link
involver said:
Yes and I have root. It's definitely SELinux, setenforce 0 does the trick until reboot...
Click to expand...
Click to collapse
Enable Init.d on your rom and put a script with the following lines in it in the /etc/init.d folder.
#!/system/bin/sh
setenforce 0;
That should set SELinux to permissive at runtime.
Hi - thanks for your tip, but I've moved on to the V10 and then to the OP3 since then

LDAC 8.1

So I have been trying to get LDAC or apt-X working on my razer phone but it has not worked. I am on the latest stock ROM rooted with magisk (via ADB not TWRP) and with the rayglobe magisk module installed but it just stays on AAC. My headphones are Sony WH-1000XM2 and LDAC was working when using the resurrection remix ROM from the development thread but I had to uninstall the ROM due to instability and no sign of progression. Any help would be appreciated.
Firebuster said:
So I have been trying to get LDAC or apt-X working on my razer phone but it has not worked. I am on the latest stock ROM rooted with magisk (via ADB not TWRP) and with the rayglobe magisk module installed but it just stays on AAC. My headphones are Sony WH-1000XM2 and LDAC was working when using the resurrection remix ROM from the development thread but I had to uninstall the ROM due to instability and no sign of progression. Any help would be appreciated.
Click to expand...
Click to collapse
They locked it down somehow I think. I have 2 threads in here asking for help but no one seems to be able to help me. For added reference, here is the error produced even when all the files are added with root to enable aptx or ldac
I installed the magisk aptx&aptxHD module and modified /system/vendor/build.prop then aptx got working.
(I couldn't test with aptxHD or LDAC cos I have no compatibe device with them.)
Code:
persist.vendor.bt.a2dp_offload_cap=sbc-aac
to
Code:
persist.vendor.bt.a2dp_offload_cap=sbc-aptx-aptXHD
This is the same parameter the magisk module set to /system/build.prop.
To guess, LDAC will may work if an appropriate value set to the prop.
ClubRaptor said:
I installed the magisk aptx&aptxHD module and modified /system/vendor/build.prop then aptx got working.
(I couldn't test with aptxHD or LDAC cos I have no compatibe device with them.)
to
This is the same parameter the magisk module set to /system/build.prop.
To guess, LDAC will may work if an appropriate value set to the prop.
Click to expand...
Click to collapse
This worked to enable switching to them however now Bluetooth just crashes. I changed it to persist.vendor.bt.a2dp_offload_cap=sbc-aptx-aptxhd-ldac
Edit:
Some interesting notes. I tried a few steps to debugging including readding AAC to the list which did nothing but if I only add aptx then the Bluetooth app no longer crashes however no sound plays so I'm guessing it's the lib files that are not correct? I just used the aptx package in magisk so if there's any other that I'm missing or other suggestions that would be useful
Firebuster said:
This worked to enable switching to them however now Bluetooth just crashes. I changed it to persist.vendor.bt.a2dp_offload_cap=sbc-aptx-aptxhd-ldac
Edit:
Some interesting notes. I tried a few steps to debugging including readding AAC to the list which did nothing but if I only add aptx then the Bluetooth app no longer crashes however no sound plays so I'm guessing it's the lib files that are not correct? I just used the aptx package in magisk so if there's any other that I'm missing or other suggestions that would be useful
Click to expand...
Click to collapse
I still can't get it to switch to aptx (the one I want) or ldac. It still falls back to SBC usually or aac if I'm on a different speaker. Any idea what I'm doing wrong? I'm on slot a on my device, rooted with magisk and I have tried multiple aptx modules. Is there a specific build.prop editor you use? Both my speakers and headphones support it and work with other devices and I'm still getting the error I replied with above (page one)
I'm an experienced rooter, so don't be afraid to fully explain any steps I may be missing out!
manor7777 said:
I still can't get it to switch to aptx (the one I want) or ldac. It still falls back to SBC usually or aac if I'm on a different speaker. Any idea what I'm doing wrong? I'm on slot a on my device, rooted with magisk and I have tried multiple aptx modules. Is there a specific build.prop editor you use? Both my speakers and headphones support it and work with other devices and I'm still getting the error I replied with above (page one)
I'm an experienced rooter, so don't be afraid to fully explain any steps I may be missing out!
Click to expand...
Click to collapse
I used root explorer and changed the build.prop entries in system\vendor\. In the first place I used the root essentials build.prop editor which shows a different build.prop. other than that I literally just edited that line and that allowed me to change it. I can't think of anything else I did other than install a bunch of library files which I'm guessing you found the same ones as me because it was very limited on what was available and up to date
Firebuster said:
I used root explorer and changed the build.prop entries in system\vendor\. In the first place I used the root essentials build.prop editor which shows a different build.prop. other than that I literally just edited that line and that allowed me to change it. I can't think of anything else I did other than install a bunch of library files which I'm guessing you found the same ones as me because it was very limited on what was available and up to date
Click to expand...
Click to collapse
OK, awesome. You rock. That got it to select aptx - now my 2nd problem, no audio! I can see in dev options and bt settings that it's showing aptx, but I get no audio (well, I get an almost click click click noise) then my Bluetooth adaptor for my headphones crashes. And it forces my headphones to turn off. I tried 3 different magisk modules for the library files, any ideas - I was getting SBC audio before
manor7777 said:
OK, awesome. You rock. That got it to select aptx - now my 2nd problem, no audio! I can see in dev options and bt settings that it's showing aptx, but I get no audio (well, I get an almost click click click noise) then my Bluetooth adaptor for my headphones crashes. And it forces my headphones to turn off. I tried 3 different magisk modules for the library files, any ideas - I was getting SBC audio before
Click to expand...
Click to collapse
Sounds like the same problem I am having. Aptx doesn't work and aptx HD and LDAC just crash Bluetooth. Genuinely have no idea where to go from here. It must be a driver or library file. Real shame it's not working.
Edit: seems to be looping these messages in catlog
Firebuster said:
Sounds like the same problem I am having. Aptx doesn't work and aptx HD and LDAC just crash Bluetooth. Genuinely have no idea where to go from here. It must be a driver or library file. Real shame it's not working.
Click to expand...
Click to collapse
OK, so last night and this morning I have been just messing with things. I no longer crash my headphones and force them to turn off, but I still have no audio over aptx - though at least it's not crashing my headphones (Bluetooth in the phone was always OK). There is one error I'm getting and I'm not sure if its related of not, but is to do with a buffer failing to release. See my screenshots of logs (just documenting here for reference)
so basically i went your path a few days ago and dropped that idea. please post updates if you manage to get aptx\aptx hd\ldac working (Razer Phone + Sony WH-1000 XM2)
hatemosphere said:
so basically i went your path a few days ago and dropped that idea. please post updates if you manage to get aptx\aptx hd\ldac working (Razer Phone + Sony WH-1000 XM2)
Click to expand...
Click to collapse
Cc @Firebuster
So, I might be an experienced rooter (no 1 click toolkits here) I am NOT a developer. I've tried a combination of a bunch of things to try and get this to work, and nothing has!
I did however get it to work by installing a GSI (basically a rom) to the device, but even that was painful to get working (well, installed). Now running AOSP 8.1 GSI w/gapps and I flashed magisk for root. I then installed the Aptx magisk module from the built in repo and it works perfectly fine. Not sure if It's something in razer software as I'm technically more up to date now so it's not like I was using the wrong drivers.
Can't find a decent dolby atmos I can install that will work along side v4a, all the magisk modules are for android 7 or 6.
Otherwise that's the only way I have found so far, sorry guys! - benefit is, other than AOSP's ****ty camera app (use the gcam port instead), literally everything works fine, and I even get stronger vibration on a GSI
manor7777 said:
Cc @Firebuster
So, I might be an experienced rooter (no 1 click toolkits here) I am NOT a developer. I've tried a combination of a bunch of things to try and get this to work, and nothing has!
I did however get it to work by installing a GSI (basically a rom) to the device, but even that was painful to get working (well, installed). Now running AOSP 8.1 GSI w/gapps and I flashed magisk for root. I then installed the Aptx magisk module from the built in repo and it works perfectly fine. Not sure if It's something in razer software as I'm technically more up to date now so it's not like I was using the wrong drivers.
Can't find a decent dolby atmos I can install that will work along side v4a, all the magisk modules are for android 7 or 6.
Otherwise that's the only way I have found so far, sorry guys! - benefit is, other than AOSP's ****ty camera app (use the gcam port instead), literally everything works fine, and I even get stronger vibration on a GSI
Click to expand...
Click to collapse
Yeah I might move onto that too. To try to fix the Bluetooth issues. I can only assume razer excluded some of the functionality but since it's baked into android 8 I don't see why they would remove it.
Razer and their development team is already informed about this issue, and they have correctly addressed it, and all the Bluetooth issues (which were a few), in the upcoming update MR2. No ETA.
linuxct said:
Razer and their development team is already informed about this issue, and they have correctly addressed it, and all the Bluetooth issues (which were a few), in the upcoming update MR2. No ETA.
Click to expand...
Click to collapse
so i've just got a new update and now i'm wondering if we should try this again...
hatemosphere said:
so i've just got a new update and now i'm wondering if we should try this again...
Click to expand...
Click to collapse
Go ahead, I can't since I'm on a Pie GSI.
If anyone has an LDAC BT Headset please give this a try.
cc @Firebuster
Great news, I just spent 2 hours updating my phone, with flashing back to stock because the OTA did not want to update me since I had Magisk, then putting everything back like before.
The update did not change anything.
Tried to do my research on issues with the Razer phone before getting it, but I guess this is just one of those things you don't comprehend until actually having the device in your hands. I came from a Oneplus One on Lineage OS and am comfortable with flashing (but no experience with GSI yet).
My razer phone is stock and not rooted. Anything I can do to contribute to test getting Apt-X working? The settings says my phone is up to date (build number OPM1.171019.011-RZR-180803.6033).
Got the official Pie installed - no LDAC nor AptX still.
cubeover said:
Got the official Pie installed - no LDAC nor AptX still.
Click to expand...
Click to collapse
you installed the official pie update for the razer phone 1?

low sound pixel xl

Is there any mod for the sound? I see it very low, dolby atmos exists for android 9 in magisk? try searching system / etc / mixer_pach but it does not exist!
stifmaster81 said:
Is there any mod for the sound? I see it very low, dolby atmos exists for android 9 in magisk? try searching system / etc / mixer_pach but it does not exist!
Click to expand...
Click to collapse
You can download Viper4Android from this link, install it through recovery.
https://zackptg5.com/downloads/v4afx_v1.7.3.zip
airmaxx23 said:
You can download Viper4Android from this link, install it through recovery.
https://zackptg5.com/downloads/v4afx_v1.7.3.zip
Click to expand...
Click to collapse
by magisk there is nothing ?? I would like to flase it from there, to itself, if it does not convince me I delete it easy
stifmaster81 said:
by magisk there is nothing ?? I would like to flase it from there, to itself, if it does not convince me I delete it easy
Click to expand...
Click to collapse
You could try installing it through Magisk but it may not work. I use the same zip to increase the volume and have always flashed it through recovery.
airmaxx23 said:
You could try installing it through Magisk but it may not work. I use the same zip to increase the volume and have always flashed it through recovery.
Click to expand...
Click to collapse
Error 2 trying to flase it for recovery
i thought i was the only person who thought the sound is low on pixel xl speaker sometimes i cannot hear the phone when someone calls me especially when i am out
on my other devices sound is much louder!
h
dimitrispas22 said:
i thought i was the only person who thought the sound is low on pixel xl speaker sometimes i cannot hear the phone when someone calls me especially when i am out
on my other devices sound is much louder!
h
Click to expand...
Click to collapse
in magisk if you put Viper there are many options but I do not know which one to install? some help ? and configuration ??? Thank you..
stifmaster81 said:
in magisk if you put Viper there are many options but I do not know which one to install? some help ? and configuration ??? Thank you..
Click to expand...
Click to collapse
most of them work ok on headphones and can help , i want to try the hifi one all of them should have options to increase the speaker volume but be carefull do a backup because the last time i installed a lot of mod vipe4andriod too and i ended on bootloop so make backup first!
i will try one of them today ( i am gonna root my phone and update you)
dimitrispas22 said:
most of them work ok on headphones and can help , i want to try the hifi one all of them should have options to increase the speaker volume but be carefull do a backup because the last time i installed a lot of mod vipe4andriod too and i ended on bootloop so make backup first!
i will try one of them today ( i am gonna root my phone and update you)
Click to expand...
Click to collapse
before it was easier to modify the mixer.pach and left over, now in android 9 the mixer.pach is in sistem / vendor / etc, and when you modify the mixer, the restart returns to the original .. el.viper I do not like anything, you hear loud, but the whasapp is heard lower, and blocking the phone you hear that sound a lot ... we're going to ****
stifmaster81 said:
before it was easier to modify the mixer.pach and left over, now in android 9 the mixer.pach is in sistem / vendor / etc, and when you modify the mixer, the restart returns to the original .. el.viper I do not like anything, you hear loud, but the whasapp is heard lower, and blocking the phone you hear that sound a lot ... we're going to ****
Click to expand...
Click to collapse
before i was doing that
and especially on my s6 with dual speaker mod it was much better, the sound was almost perfect but there was some bass lack comparing the iphone 6
update!
I added the dual speaker mod after editing it to work on android pie installed the vipe4 android and I gained 6dbs its little bit better now(it is not game changer but its just ok!), when I plug my headphones with the jack (for know I don't have a problem with the headphone being removed before because every month I breaking 2 or more cables so my last Bluetooth earphones lasted almost 9 months (vipe4 android works on Bluetooth headphones too !
dimitrispas22 said:
update!
I added the dual speaker mod after editing it to work on android pie installed the vipe4 android and I gained 6dbs its little bit better now(it is not game changer but its just ok!), when I plug my headphones with the jack (for know I don't have a problem with the headphone being removed before because every month I breaking 2 or more cables so my last Bluetooth earphones lasted almost 9 months (vipe4 android works on Bluetooth headphones too !
Click to expand...
Click to collapse
where is the update of the mod?
stifmaster81 said:
where is the update of the mod?
Click to expand...
Click to collapse
install them using magick!
https://drive.google.com/open?id=1LeeLxP8mQ3LHGi18oCOtPtUdEt39i8Qi
all the work goes to @ kingbri (https://forum.xda-developers.com/pixel-xl/development/magisk-module-pixel-stereo-speakers-t3753190)
I just changed the number to API 29
for viper4android I used the xhifi one (present acoustic and max gain 10x
hope I helped you!
if you want anything more I will be happy to help you (if I can)!
dimitrispas22 said:
install them using magick!
https://drive.google.com/open?id=1LeeLxP8mQ3LHGi18oCOtPtUdEt39i8Qi
all the work goes to @ kingbri (https://forum.xda-developers.com/pixel-xl/development/magisk-module-pixel-stereo-speakers-t3753190)
I just changed the number to API 29
for viper4android I used the xhifi one (present acoustic and max gain 10x
hope I helped you!
if you want anything more I will be happy to help you (if I can)!
Click to expand...
Click to collapse
I have done everything and the dual speaker is not going, I do not like to have the icon of the mic up in the taskbar, it would be better to modify the mixer.patch, but as when I change it back to the default ... no nothing can be done ... the path of the mixer is sytem / vendor / etc and when modofica returns to the default value ... is there anything that can be done to modify it and stay recorded ???
stifmaster81 said:
I have done everything and the dual speaker is not going, I do not like to have the icon of the mic up in the taskbar, it would be better to modify the mixer.patch, but as when I change it back to the default ... no nothing can be done ... the path of the mixer is sytem / vendor / etc and when modofica returns to the default value ... is there anything that can be done to modify it and stay recorded ???
Click to expand...
Click to collapse
i cant find those settings anymore
give me a few minutes I am trying to modify the zip hope reaching even higher sounds
come back in 10-15 minutes!
ps remove the dual speaker mod from magisk and i will comment my new link in a few minutes!
dimitrispas22 said:
i cant find those settings anymore
give me a few minutes I am trying to modify the zip hope reaching even higher sounds
come back in 10-15 minutes!
ps remove the dual speaker mod from magisk and i will comment my new link in a few minutes!
Click to expand...
Click to collapse
It is not a question of that, I would settle in modifying the system / vendor / etc mixer, but in doing so it returns to its default value
stifmaster81 said:
It is not a question of that, I would settle in modifying the system/vendor / etc mixer, but in doing so it returns to its default value
Click to expand...
Click to collapse
I have the same problem when I am trying to add aod
for know i am thinking replacing my phone with a new one (maybee op6 -6t mi8 or in the worst case iphone (and i am sure if i get an iPhone i will sell it in a few days as always:silly
i will try to downgrade or install a custom rom and see if i can do something to edit the mix path witout restoring itself on default value!
yeah i know, sorry for my bad English i am trying to do something before i leave ( i am 16 and i am living in Cyprus )
if you find any solution i will be happy to hear it and i will update too if i find something useful!

[GSI] [treble] Android 9 pie Bluetooth in call problem

I've tried all treble pie roms and in all are the same problem with Bluetooth in call sound. First I thougt it's a problem with my elephone u pro, but in the meanwhile I've recognized that the same problem exist in many phones.
I'll hope that we can support the developers with a payment if they fix this problem.
I am willing to pay up to 50$ if someone is able to fix this problem for the elephone u pro.
If there's someone else who wants to get the problem solved then please write here your payment offer.
But it would be a shame if people make an offer here and do not stick to it later.
Root first, then go to Vendor/Overlay/BluetoothResCommon.apk
delete it,then reboot,
a05haiji28 said:
Root first, then go to Vendor/Overlay/BluetoothResCommon.apk
delete it,then reboot,
Click to expand...
Click to collapse
I'll try in the bext days....
a05haiji28 said:
Root first, then go to Vendor/Overlay/BluetoothResCommon.apk
delete it,then reboot,
Click to expand...
Click to collapse
Hi, I've tried today but in my elephone u pro there isn't a Vendor/Overlay/BluetoothResCommon.apk
Other ideas?
Laptapper said:
I've tried all treble pie roms and in all are the same problem with Bluetooth in call sound. First I thougt it's a problem with my elephone u pro, but in the meanwhile I've recognized that the same problem exist in many phones.
I'll hope that we can support the developers with a payment if they fix this problem.
I am willing to pay up to 50$ if someone is able to fix this problem for the elephone u pro.
If there's someone else who wants to get the problem solved then please write here your payment offer.
But it would be a shame if people make an offer here and do not stick to it later.
Click to expand...
Click to collapse
1. You have to extract stock /vendor/etc/audio/audio_policy_configuration.xml and delete A2DP related section like this:
https://github.com/PixelExperience-...mmit/977444af69f10fc135d07e19f1e5f1183e73e9ff
then replace it (by root explorer or creating magisk module).
2. You also need to change /system/bin/rw-system.sh.
Please delete
Code:
mount -o bind /mnt/phh/empty_dir /vendor/etc/audio || true
and save.
NOTE: This works only on CAF based custom roms. It doesn't work on AOSP.
AndroPlus said:
You have to extract stock /vendor/etc/audio/audio_policy_configuration.xml and delete A2DP related section like this:
https://github.com/PixelExperience-...mmit/977444af69f10fc135d07e19f1e5f1183e73e9ff
then replace it (by root explorer or creating magisk module).
Click to expand...
Click to collapse
Hi
I've tried, but the changed and saved file
/vendor/etc/audio/audio_policy_configuration.xml
will be automatically deleted at restart.
The folder is empty after restart.
Any ideas?
Laptapper said:
Hi
I've tried, but the changed and saved file
/vendor/etc/audio/audio_policy_configuration.xml
will be automatically deleted at restart.
The folder is empty after restart.
Any ideas?
Click to expand...
Click to collapse
Oops, you also need to change /system/bin/rw-system.sh.
Please delete
Code:
mount -o bind /mnt/phh/empty_dir /vendor/etc/audio || true
and save.
AndroPlus said:
Oops, you also need to change /system/bin/rw-system.sh.
Please delete
Code:
mount -o bind /mnt/phh/empty_dir /vendor/etc/audio || true
and save.
Click to expand...
Click to collapse
Great job! Bluetooth In call is working.
I'll think it's not your development but for your know how to, I've send you 15 Euro.
Do you know also how to get Bluetooth audio music working?
By any chance did you get fully functional Bluetooth on the gsi rom or anyone else?
[email protected] said:
By any chance did you get fully functional Bluetooth on the gsi rom or anyone else?
Click to expand...
Click to collapse
I'll hope so. 
 @AndroPlus has already fixed in call and may be he's on the way to solve audio also.
Has it been rectified in all builds
so is it safe to say that we can install the latest version of GSI provided by rom providers made in and released in march.
I would like to know that before i go ahead and transition over from stock to custom rom... mainly called PixelDust Pie rom version march
Laptapper said:
Great job! Bluetooth In call is working.
I'll think it's not your development but for your know how to, I've send you 15 Euro.
Do you know also how to get Bluetooth audio music working?
Click to expand...
Click to collapse
Thank you, but BT music works fine on my phone (Mi 9).
I don't know how to fix it...
[email protected] said:
so is it safe to say that we can install the latest version of GSI provided by rom providers made in and released in march.
I would like to know that before i go ahead and transition over from stock to custom rom... mainly called PixelDust Pie rom version march
Click to expand...
Click to collapse
No, the fix needs device specific path and not all GSI has it.
I have the Razer Phone and have got either audio working or in call but never both... I am in the process of going through both audio routing files and see if I can combine them to get it to work, but I haven't messed with Android in years so it's taking more time than I anticipated to get caught up on all the changes you guys have made. The last time I built a rom was when treble was just on the discussion table. It really amazes me this bug has gone on this long, but maybe there's more to it than I'm seeing so far. I have seen some good devs working on this.
Enlighten me Please
AndroPlus said:
Thank you, but BT music works fine on my phone (Mi 9).
I don't know how to fix it...
No, the fix needs device specific path and not all GSI has it.
Click to expand...
Click to collapse
Hey @AndroPlus , could you possibly explain how to go about it. I would appreciate the help. I have got a nokia 7 plus with pixel dust pie rom on latest version running. Where and what do i need to do to get it up and running on my phone. I need to get in call bluetooth running. Thats the only thing stopping me from using this amazing blazing rom
Bluetooth music also does not work with me. However bluetooth calls work, so its weird that music/audio is not working.
Bluetooth music also does not work for me, but bluetooth calls work fine. I'm using Arrow GSI with Mi Mix 3.
Laptapper said:
Great job! Bluetooth In call is working.
I'll think it's not your development but for your know how to, I've send you 15 Euro.
Do you know also how to get Bluetooth audio music working?
Click to expand...
Click to collapse
That's on my AOSP ROM?
phhusson said:
That's on my AOSP ROM?
Click to expand...
Click to collapse
It's on resurrection remix pie, also headset over usb c is working. Only audio sound over Bluetooth is a problem. Do you've got a solution ir an idea what should I can try?
Btw do you have any idea how to control the led colours?
i still have no bluetooth calling on Mi Mix 3 on the @AndroPlus rom's so his solution definitely doesn't work for all devices.
furthermore there is still a bounty to get bluetooth working perfectly on vanilla android gsi's
AndroPlus said:
Oops, you also need to change /system/bin/rw-system.sh.
Please delete
Code:
mount -o bind /mnt/phh/empty_dir /vendor/etc/audio || true
and save.
Click to expand...
Click to collapse
Thank you sooo much! That´s all, I needed to do to fix my incall audio problem!
No changes in audio_policy.xml were needed - only removing this line from rw-system.sh

[FIX] [AOSP] Improve audio recording in video and calls

After devs changed fluencetype to fluence in build.prop for low incall volume, noise cancellation is so agressive. This fix solve distortion that you can find in your recordings.
- Tested in firmware 9.5.30
- Tested in Pixel Experience CAF and Vortex
Instructions:
- Download NoiseSuppresionMod.zip
- Reboot to recovery
- Flash NoiseSuppresionMod.zip
- Reboot to system
It MAYBE works in MIUI.
If devs want to fix it in their ROMs, they need to replace audio_platform_info and mixer_paths in /vendor/etc
Thanks to @Zile995 . He solved it in mido and helped me to do it in lavender.
Also, thanks to @letsmakecakes. He helped me to make flashable zip.
Reserved
danielh1402 said:
Tested in firmware 9.5.30
- Tested in Pixel Experience CAF
Instructions:
- Download lavender-aosp-audio-fix.zip
- Reboot to recovery
- Flash lavender-aosp-audio-fix.zip
- Reboot to system
If devs want to fix it in their ROMs, they need to replace audio_platform_info and mixer_paths in /vendor/etc
Thanks to @Zile995 . He solved it in mido and helped me to do it in lavender.
Click to expand...
Click to collapse
whats this for?
Wish I had this a couple of weeks ago when I was at Primavera Sound festival! All the audio of the videos i recorded was terrible :/
Anyway, can anyone confirm this works on stock (rooted) MIUI? Thanks!
I flashed it but have yet to test it. Before flashing this I made a phone call and I could barely hear the person on the phone. That's odd because my hearing is amazing.
Thanks for the amazing work!! Nothing try in miui stock?
Enviado desde mi Redmi Note 7 mediante Tapatalk
Hello to all,
Thank you for your work.
Someone knows if on Lineage Rom it works this patch?
Thank you in advance.
Thanks for the mod, it's working on Lineage but the recorded audio is quite low in terms of volume.
If it could be possible to increase it a little bit at least it would be perfect, thanks again!
Hello, i got some questions about this patch:
1. Do i need to root my device to apply it (flash it)?
2. Someone already tried on a Stock ROM with MIUI?
3. Sorry for asking this but, can someone explain thoroughly the process for applying this kind of fixes/patches?
Thank you friends.
darkdalo said:
Hello, i got some questions about this patch:
1. Do i need to root my device to apply it (flash it)?
Not necessarily, but you have to unlock it in order to have a custom recovery
2. Someone already tried on a Stock ROM with MIUI?
Not that I know of
3. Sorry for asking this but, can someone explain thoroughly the process for applying this kind of fixes/patches?
It's in the OP, as I already said you must have a custom recovery which means unlocked bootloader
Thank you friends.
Click to expand...
Click to collapse
My answers in line
Hi, is there any way to made the noise cancellation a little bit higher? In noisy environments like wind or high musics the noise is really high. Thanks for this mod anyway..
I just flased into bootlegger rom....i think it works....
I have a question...if i got to build.prop and chnge that twick it work or not?
lavender-aosp-audio-fix
danielh1402 said:
After devs changed fluencetype to fluence in build.prop for low incall volume, noise cancellation is so agressive. This fix solve distortion that you can find in your recordings.
- Tested in firmware 9.5.30
- Tested in Pixel Experience CAF and Vortex
Instructions:
- Download NoiseSuppresionMod.zip
- Reboot to recovery
- Flash NoiseSuppresionMod.zip
- Reboot to system
It MAYBE works in MIUI.
If devs want to fix it in their ROMs, they need to replace audio_platform_info and mixer_paths in /vendor/etc
Thanks to @Zile995 . He solved it in mido and helped me to do it in lavender.
Also, thanks to @letsmakecakes. He helped me to make flashable zip.
Click to expand...
Click to collapse
@danielh1402 could make the previous file available, named lavender-aosp-audio-fix.zip This new file didn't work, but the old one worked. thank you!
Which exact changes were made on the mixer_paths and audio_platform_info files?
I'm trying to fix a similar audio issue on my Mi 9 SE, if you could tell me the changes it may help me a lot.
Thanks.
@danielh1402
On Pixel Experience Official this is stoping the video (and sometimes closing the camera) while recording. How do i do to uninstall it?
On Pixel Experience doesn't work, the recorded audio is still awful. And mostly it stops the video recording.
Yesterday I was watching a video recorded with the smartphone and I noticed that the microphones are very sensitive.. maybe they're simply bad adjusted and all we need to do is to lower the gain a little bit.. I don't know. Still hoping for a V2 for this mod.
Tried on Havoc OS. Everything became much worse after flashing this "improvement", nobody could make out what I was saying.
As factory reset did not work and there is no option to uninstall the mod I had to do flashing of a new os with dalvik, cashe and data wiping.
So be aware!
Thanks! This mod work fine in Lineage OS 16 for Redmi Note 6 Pro. The mic volume was very low. Now is great.
Not working in Havoc 3.4. Made the situation worse. No option to uninstall it.
Doing reinstall of entire ROM now.

Categories

Resources