Bluetooth and system notification sounds - Android Q&A, Help & Troubleshooting

I know we had this issue before, and I don't want to revive old hostilities. I'd like to make this clean and objective discussion.
As you probable know by now, some time ago Google have decided to make android phones play *any* sound to *any* connected BT device, no matter if those devices are capable of playing those sounds or not, and no matter if the users are using (wearing) those devices or not. And this results, for example, in missing text messages, when your head phone is still switched on but you're not wearing it. It also will interrupt your favourite song that you're listening to on your car's radio, with a loud and nasty sound over your car's speaker. And it will also keep you from hearing medical alarm signals if your head phone is in your pocket.
As far as I know, this change in BT behaviour was introduced somewhere between Android 7 and Android 8 (LOS 14 and LOS 15), and as far as my programming knowledge goes, it should be possible to reverse these changes, to make a phone play system sounds over the phone's speaker, while music and calls are still routed to a paired and active BT devices.
So, my questions are these:
What is the big advantage of the present BT behaviour compared to the old behaviour?
How much work or effort would it take for LOS developers to re-code the BT behaviour from LOS 14 back into LOS 17 and above?
If you need help: how can normal people like me with no big development skills help you with this? Would it be a question of money?
How much (in)stability would current and future LOS versions gain through the necessary changes?
Would making these changes be illegal in any way? Would Google sue LOS developers, or would Google send their Men In Black, if LOS developers dared to undo Googles decision?
Although I do not understand the cleverness behind Google's decision, and frankly, no one I talked to about this did understand it, I'd rather make this a discussion about the possibility to undo these BT changes. It would be very obliging to get some useful answers to these questions. Thanks in advance!

Google and LineageOS devs are aware of it and don't see it as an issue:
https://gitlab.com/LineageOS/issues/android/-/issues/950
https://issuetracker.google.com/issues/123758732
https://issuetracker.google.com/issues/125166459
https://issuetracker.google.com/issues/139884122
I can't for the life of me understand why anyone would want it this way. I, for one, see notifications and media audio as separate things that serve different purposes. I regularly pull out my bluetooth earbuds or turn off my bluetooth-linked hi-fi system without remembering to disconnect them at my phone. It's one thing if I go to youtube or play music and can't hear it because of this, but another thing entirely to miss a day's worth of notifications.
A lot of people have been really vocal about this -- just read some of the stories -- but these devs are so sure of themselves that they won't even offer a toggle setting for this. I'm tired of the arguing... LineageOS is free software and I'll patch and build it to suit my needs. But like you, I am not an Android developer, and I don't even know where to start to look for what controls this. I'm sure it's just a couple of lines tucked away in some file, but all I can do is ask, please, for someone out there with greater skills than me to show me what to change!

So I've been digging into the source but it's really above my head... seems like there must be a config file or set of constants somewhere. I'll keep digging and share if I find anything.
Another approach that seems possibly doable is an app that routes the notification sounds through the alarm stream. I have a calendar app that is configured to sound through the alarm stream and that sounds the way I want -- through both the device speakers and any bluetooth or wired headphones.

Sorry about the delay:
htsmi said:
Google and LineageOS devs are aware of it and don't see it as an issue:
https://gitlab.com/LineageOS/issues/android/-/issues/950
https://issuetracker.google.com/issues/123758732
https://issuetracker.google.com/issues/125166459
https://issuetracker.google.com/issues/139884122
Click to expand...
Click to collapse
The answers given by Google's team are living arrogance, a disgrace to themselves and an insult to the users!

Any (good) news on this subject?

Related

[Q] Stock 4.3 update, now fewer bluetooth audio options

I recently updated my stock HTC One to 4.3 via the ota update, and I now have some odd occurrences regarding how it syncs up with my car for media playback. I have a 2012 Toyota Camry which has a display that shows me song title, artist, etc. and before the update I had options for enabling random playback and repeat, which are now not there. Also, before if I had shuffle enabled it would advance the track numbers sequentially however now it skips around to random numbers between 1-16 I believe. It doesn't really affect the performance of anything, just my OCD does not like how that works now . For the record, I'm using the stock music player and have not downloaded any 3rd party players (yet, unless that's what is recommended).
Is this something that others experience? I've tried searching and I haven't found anyone with this specific issue (maybe because it's not really worth messing with to most), but it kind of irked me to update and have fewer options than I had before. I'm also curious as to what all needs to be in place for all of the possible information to be displayed in the car, as others have connected random devices and some will not display track information, some will not display where you are in the song, etc. I'm sure a lot has to do with the car, but anything that can be done on the device to make it more compatible with these sorts of things I'd be interested in knowing. Thanks!
Bump, or if there's already a discussion on this that my searching missed just let me know.

[Q] Route audio from media out to mic. in internally

Hi,
First time posting here, but not new to rooting and flashing. All thanks to xda and it's user.
So, I want route the audio coming out from phone's speaker/headphone or w/e output device to microphone internally.
For example,
If my friend is listening to a song and he calls me and asks which song is this, I want to able to route the audio to Shazam or Soundhound without the use of another device (although that's not the reason for the problem)
Anothe example is, Whatsapp. Lets say I am listening to a song (locally on device or on a radio app in my cell), I want to able to use that quick audio message button in Whatsapp to record that song, internally, so if there bunch of people in the car, their sound doesn't get recorded.
And I can think of tonnes of situations where this could be used like when you are talking to someone on phone, use song/sounds/audio phrases direct from phone. Like a using some famous/quote but instead of you quoting them, using the actual person's sound from your local storage/youtube or any other audio app storage. Using sound effects, all internally. You can get so creative.
And this is something that is done by music producers all the time, routing audio and play it with recorded audio, but all done with hardware. It could be easily done using software or hardware on a computer.
I thought of using the 3.5 audio jack with mic to route the audio using wire by connecting them but I would require that special hardware (modded 3.5 jack wire) all the time and won't really help other people much. A software solution would be a lot more helpful.
I did try using this app, called SoundAbout to fix my problem but it didn't help much, or maybe I was doing something wrong.
ps. This is the 2nd time I am writing this lol. First time xda logged me out and I lost the whole thing. Would be nice if there was a app (for windows) that would copy any text written in any dialog box automatically (just like autofill feature but for larger text fields) and keep updating it on the fly. For example, text in the Title box gets copied in the app after each character punched with 5 histories. Same goes for Message box. In case of Firefox crash or accidental refresh or like in my case getting logged out, there is text stored in another app that can be retrieved. I am sure there are solutions used by devs. as they do tonnes of coding. Please share you thoughts.
Also please feel free to give any advice regarding right category, title, tags etc. so that this thread is organized and easily searchable.
I am searching for solution too. Some professionals are needed to check on these:
1. https://github.com/jurihock/voicesmith solving to step between the mic & audio feed processing
2. `system/ect/mixer_paths.xml` file can be hacked (maybe alter in some devices)?
3. This is just for more understanding: https://developer.android.com/guide/topics/media/sharing-audio-input
Did you figure it out? Are there not any Chinese or Russian apps that will bypass this restriction?

How do I record Personal Voicemail Greeting from my android emulator Windows 7?

I rarely EVER post on forums, because I usually research on google for hours and end up getting my answers.
Well this seems to not exist on Google, so I will do the deeds of asking it on my favorite android forums.
I use Metro PCS on my LG phone and I really really badly want to know if I can record a person voicemail greeting using any android emulator on my computer.
I currently use Bluestacks, but if the solution is found for a different emulator, I'll use it.
I want to do this because I have a super high quality Blue Yeti Microphone, and combined with Audacity I can make amazing audio. Having that on my phone as my personal greeting would be like a dream (I would have the highest quality audio android will be able to play)
I did this before, but recorded the audio from my speaker, which you could still hear the air noise in my room.
If there's no way to do it on an emulator, or you don't even know then there's gotta be phone parts that allow me to hook up an audio device as my computer.
Is this possible?
Have been trying to do this for two years now. :crying:
My android phone IS rooted.
Any help would be greatly appreciated, even if you don't really deal with this stuff.
Other than that, I'll just have to wait this out and hope this doesn't fall to the bottom of the forums.

Android audio routing

Hi,
I got a problem that my Samsung Galaxy S5 route all audio to earphones.
I would like to route all media to speaker and all phonecalls to headset (and if possible bluetooth).
I don't mind customizing ROM if needed.
Any idea how can I do that?
Thanks!
Help?
first: ask with understandable words. lol i don't know what are ur plans
i know this is really old but to anyone having these issues, install soundabout you can use it to force audio to a certain output for calls, media, ect really helps when your headphones start to break and android doesnt want to detect them even though they work
EDIT: I misunderstood the last post as a question. Didn't mean to repeat the same answer to an old thread.
Not really a full answer but I am currently having similar issues. There seem to be audio routing apps like Audio Router (https://play.google.com/store/apps/details?id=audiomix.audiooutputsource) and SoundAbout (https://play.google.com/store/apps/details?id=com.woodslink.android.wiredheadphoneroutingfix) than can do the job. I can't exactly tell how they work but maybe someone else knows. Or you'll figure it out.
Feel free to post your results
Have the same problem. But neither Audio Router (https://play.google.com/store/apps/d...ooutputsource) nor SoundAbout (https://play.google.com/store/apps/d...oneroutingfix) can't route SMS notification away from headphones.
Sounds terrible. Most modern android smartphones are worse in this regard than ordinary simple cell-phones.
I wonder how things are in this regard in Windows Background.

Forcing calls to go through A2DP in Android, while using the phone's built-in microphone.

Hello,
This issue has been driving me insane. It seems like some simple, artificial limitation that no one seems to circumvent. As the title suggests, I'm trying to force phone calls and especially VoiP calls (Discord, whatsapp..etc), to go through the high bitrate A2DP profile instead of the horrible HSP/HFP profile that butchers audio quality and uses the horrible bluetooth microphone.
For instance when music is streamed through a bot in Discord i have to listen to it in horrible earpiece-level phone call quality.
I feel like there's got to be a tweak, a Magisk module, a custom ROM functionality with root access that allow for this, something.. I found a couple old XDA posts about this but no solutions. Oh and also tried Lesser AudioSwitch on multiple Android versions, none worked.
It seems inherent to all bluetooth headphones which is a shame, they could cost 10k $, but the quality would still be sh*t in calls, both in and out, since mic is not close to the mouth.
I always loved Android for giving users more control, but sadly seems like this is more and more going away. What i want here, can very easily be done on PC.
Thank you for your time reading, really hope someone can help.

Categories

Resources