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

Laptapper

Senior Member
Jan 17, 2016
524
203
43
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.
 
  • Like
Reactions: phhusson

AndroPlus

Senior Member
Mar 13, 2013
1,707
3,984
153
Kyoto
androplus.org
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.
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.
 
Last edited:

Laptapper

Senior Member
Jan 17, 2016
524
203
43
  • Like
Reactions: Voodoojonny

AndroPlus

Senior Member
Mar 13, 2013
1,707
3,984
153
Kyoto
androplus.org
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?
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.
 

Laptapper

Senior Member
Jan 17, 2016
524
203
43
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.
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?
 
Last edited:
Dec 13, 2014
14
1
0
Karachi
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
 

AndroPlus

Senior Member
Mar 13, 2013
1,707
3,984
153
Kyoto
androplus.org
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?
Thank you, but BT music works fine on my phone (Mi 9).
I don't know how to fix it...

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
No, the fix needs device specific path and not all GSI has it.
 

bsm471

Member
May 11, 2008
27
17
0
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.
 
Dec 13, 2014
14
1
0
Karachi
Enlighten me Please

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.
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 :D
 

knives of ice

Senior Member
Jul 12, 2007
1,484
249
83
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
 

Voodoojonny

Senior Member
Dec 17, 2015
789
325
83
Dortmund
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.
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