Can you revoke an app's permission to gain audio focus using adb? - General Questions and Answers

Trying to get one badly programmed app (Pokemon Go) from interfering with another badly programmed app (Audible). The former takes audio focus with no sound enabled and no way to stop it, the latter has no option to ignore it, only switch between pausing and lowering volume.
This may be a dumb question as I'm not aware of what exactly can be done in adb or whether there's a permission you can revoke for audio focus (stock moto z play nougat), but is it possible to revoke pogo's ability to gain focus? Or Audible's ability to notice it? Without root.

Same exact question, with exact same phone (stock moto play) , exact same apps (audible vs pokemon go). Anyone?

https://www.xda-developers.com/pokemon-go-audio-focus/

I was wondering if I could disable audio focus for all apps?
Like maybe continuing listening to music while talking on the phone(basically merging both audio outputs). Or playing game while listening to good music or podcasts. Etc etc. Is there a way rather than doing it individually. Ya I have seen the Pokemon go Audio focus thingy.

Related

Music apps

Hi is there anyone notice about the music apps frequently change or stop the music automatically when you lock the phone?
And at times it automatically call my phone contacts...
Sent from my HTC Sensation Z710e using XDA Premium App
Not to completely hijack, but I too have a question about a music player and don't want to put up a new thread:
Does anyone have a recommendation for an app that is: low-resource, devoid of lockscreen freezing/dialing (no exp with this, but above poster made it sound terrible), and supports control via a2dp/bluetooth?
I frequently use my phone as my GPS in my car and would like to be able to run a music app in the background that I can control from a bluetooth headset. I assume that there are some "simple" music apps that require fewer resources in the background.
Does anyone have a recommendation? Is the sensation powerful enough that any old app should run fine in the background?
Best,
NR
Nixit12 said:
Not to completely hijack, but I too have a question about a music player and don't want to put up a new thread:
Does anyone have a recommendation for an app that is: low-resource, devoid of lockscreen freezing/dialing (no exp with this, but above poster made it sound terrible), and supports control via a2dp/bluetooth?
I frequently use my phone as my GPS in my car and would like to be able to run a music app in the background that I can control from a bluetooth headset. I assume that there are some "simple" music apps that require fewer resources in the background.
Does anyone have a recommendation? Is the sensation powerful enough that any old app should run fine in the background?
Best,
NR
Click to expand...
Click to collapse
PowerAMP hands down is the best application I have used, and trust me, I lost count of how many different ones I have tried. It isn't cheap though at $4.99, but give the 2 week FULL trial a test drive and see if you like it. I liked it so much I bought it. It has all the features you requested above.

[APP][3.0+] Around Sound - Have your phone pay attention while you enjoy your music

Update (4/11/2017): Updated the app to use the Superpowered audio library. Performance is greatly improved. Lag is pretty much gone.
This was my first app and recently just overhauled it with a lot of the updates I had been doing to Wave Control. I've decided to take this out of incubation in the device specific forums and put it fully out there. All feedback is appreciated!
Around Sound allows you to listen to music, watch movies, or play games and still be aware of your surroundings. It's meant for when you're using sound isolating earbuds like Shure or others that are basically earplugs so you have no idea what's going on around you.
It uses the mic on your headset or phone to listen around you. You set how loud a noise needs to be to trigger it. When a loud sound is detected, it pauses your music or movie for a timeout period. During this time, it feeds the outside sound through to your headphones so you can hear what's going on. After the timeout period it then resumes playback.
With games, you can use the non-pause mode which will overlay the outside sounds on top of the current audio. Usually the game audio will lower itself during this time. I would really like for games to support the pause feature. I've reached out to some developers but need everyone's help to request the feature be added to their favorite games.
Play Store Link:
Free Version
Some known issues:
1. Audio lag - when the outside sound is fed through there's about a 500ms delay. It's a known issue with Android. It's rumored to have been fixed in Jelly Bean (or there's some low level API's available to fix it) but I haven't had a chance to play with it yet. Finally fixed! Practically realtime now!
2. Bluetooth Mic Option - Currently only works with mono headsets and not the AD2P kind, adds lag
Some use cases:
- At the office: pause your music automatically when someone is trying to get your attention
- At home: Don't miss door slams, children crying, your dog barking, or other warning signs

- At the airport: Relax at the gate and have your music or movie pause when the gate announcements start

- Anywhere relatively quiet where you want to know if something happens around you
Permissions Needed:
Network Communications: Full Internet Access (For Ad Supported Version)
Phone Calls: Read Phone status (shuts off the audio processing during calls)
Hardware Controls: Audio Settings, Record Audio (to use the microphone, no audio is ever stored)
Coarse Location(Not GPS): For Ad Supported Version
Write External Storage: For Ad Supported Version
Billing: For in app upgrades
Bluetooth: For Bluetooth mic feature
Broadcast Sticky: For Bluetooth mic feature
Limitations:

-For Pause Music Mode: You can't be in a really loud environment otherwise the microphone input will be maxed out and there is no way to detect a louder sound. Use Street Mode instead
Developed on a Samsung Galaxy S7
I played with this a bit in a few of its earlier incarnations and I have to compliment you on the app. One thing I've wondered -- instead of muting the underlying app, would it be possible to play what the microphone picks up over the top of whatever being played?
short/y said:
I played with this a bit in a few of its earlier incarnations and I have to compliment you on the app. One thing I've wondered -- instead of muting the underlying app, would it be possible to play what the microphone picks up over the top of whatever being played?
Click to expand...
Click to collapse
i guees that is not possible ...hardware limitations
anyway if it is...would be a great addition
I hope someone can explain this to me. I'm not doubting it's a hardware limitation, I just can't understand what sort of hardware limitation it might be.
Sent from my Nexus 7 using Tapatalk 2
short/y said:
I played with this a bit in a few of its earlier incarnations and I have to compliment you on the app. One thing I've wondered -- instead of muting the underlying app, would it be possible to play what the microphone picks up over the top of whatever being played?
Click to expand...
Click to collapse
Yeah, it's possible. If you uncheck pause mode, it'll play over the other app. The way it's setup now, depending on the playing app, the music/movie might dip in volume. Alternatively there's Street Mode in the Pro Version that will play all sound above the trigger on top of your music/movie.
MarksThinkTank said:
Yeah, it's possible. If you uncheck pause mode, it'll play over the other app. The way it's setup now, depending on the playing app, the music/movie might dip in volume. Alternatively there's Street Mode in the Pro Version that will play all sound above the trigger on top of your music/movie.
Click to expand...
Click to collapse
Woo hoo! Cool, thanks! Pro, here I come.
Any idea when you think you might be able to look into that lower latency JB API?
Sent from my Nexus 7 using Tapatalk 2
This is so genius! Installing now!
I bought Pro this morning and used it on my walk. Worked like a charm!
It was pretty bright out and my screen couldn't brighten enough to let me see the trigger slider. A suggestion: how about adding +5 and -5 buttons so I can adjust the trigger level without having to see the slider? I don't mean remove the slider, I mean add +5 and -5 buttons.
Got the pro just to support the Dev. Great idea and great work. Keep it up man!
A little coverage on the portal for you
http://www.xda-developers.com/android/gain-an-extra-set-of-ears-with-around-sound/
the_scotsman said:
A little coverage on the portal for you
http://www.xda-developers.com/android/gain-an-extra-set-of-ears-with-around-sound/
Click to expand...
Click to collapse
Thanks man!
Looks like it's igniting a lot of coverage. Just popped up on Gizmodo too!
short/y said:
I played with this a bit in a few of its earlier incarnations and I have to compliment you on the app. One thing I've wondered -- instead of muting the underlying app, would it be possible to play what the microphone picks up over the top of whatever being played?
Click to expand...
Click to collapse
Sounds perfect....
i saw this while ago and was going to use it but deleted it by accident and than forgot about it this has reignited me to use it now ill download it later.
any news on the bluetooth issue as i have bluetooth headphones and there not mono and was wondering if it work well or not with em?
Wow...this is great. Thank you.
I like the sound of this (No pun intended) but I've only got bluetooth stereo headphones with a mic. so I'll have to wait until it supports them.
App2SD would be nice ...
daniturn3 said:
i saw this while ago and was going to use it but deleted it by accident and than forgot about it this has reignited me to use it now ill download it later.
any news on the bluetooth issue as i have bluetooth headphones and there not mono and was wondering if it work well or not with em?
Click to expand...
Click to collapse
gadjet0 said:
I like the sound of this (No pun intended) but I've only got bluetooth stereo headphones with a mic. so I'll have to wait until it supports them.
Click to expand...
Click to collapse
I don't have a set to test it with but I've gotten mixed feedback. Some stereo ones do work and some don't. Or.. it may be a particular phone's bluetooth implementation since it seems more like a bug in Android than a headset specific issue.
Please give it a try and let me know if it works!
Will this save me if I end up in the middle of a shoot out, and I have in noise canceling headphones? As bizarre as that sounds... I'm paranoid lol
GazaIan said:
Will this save me if I end up in the middle of a shoot out, and I have in noise canceling headphones? As bizarre as that sounds... I'm paranoid lol
Click to expand...
Click to collapse
Possibly... but I make no guarantees
New Angle
So after un-intentionally (really, I swear!) ignoring my girlfriend while playing a game, I realized... I could use Around Sound with games.
So far the non-pause mode works pretty well with the games I play. I'm reaching out to some other developers to include the ability to pause when asked by Around Sound.
I need people's help to request their favorite game dev's to support auto-pause with Around Sound

[Q] Any possible way of cutting the audio of an app?

There are some games (flappy bird, Leo's fortune etc) which does not allow volume control for them and I'm mostly listening to music whilst playing games on my s3 so I was wondering if there is any possible way of killing the audio of apps you want to cause it gets annoying listening to two different sounds at the same time , there must be a way since rooting your Android means gaining full possibilities and control over it and I think root could help us here someway, Thanks.
A work around
Asad_970 said:
There are some games (flappy bird, Leo's fortune etc) which does not allow volume control for them and I'm mostly listening to music whilst playing games on my s3 so I was wondering if there is any possible way of killing the audio of apps you want to cause it gets annoying listening to two different sounds at the same time , there must be a way since rooting your Android means gaining full possibilities and control over it and I think root could help us here someway, Thanks.
Click to expand...
Click to collapse
Not aware of a gentle way to do this but renaming the audio files/folder of your app in /data folder could do the trick. If this gives an FC, you can try replacing those audio files with dummy blank files having same name.
Thanks mate, going to try this out.

RingtoneTrimmer?

I'm running LolliGPE and was wondering if there's a way to get the ringtone trimmer back. I found "HtcRingtoneTrimmer.apk" on some download sites, but they all require security permissions that make me think they are spyware or something.
Anyone have a legit HTC Ringtone Trimmer APK that will work on Lollipop?
Do you have access to a computer? There are many ringtone makers/trimmers on the Play Store, but Audacity is a free (open source?) program that will let you trim mp3 files (among other things, it's quite powerful). What makes it so good is that you can find the starting point, and get real precise on the waveform exactly where you want it to start, so it's just right, and then set the length (30 seconds is good). And then you can apply effects, like have a fade-in, so your phone doesn't just start blasting your ringtone.

Disable Audio Ducking

I'm wondering of there is an easy effort that I can do to disable the volume duck that occurs when I receive a notification (while listening to music)
Some ROMs have a setting g for this, but I'm wondering if someone could direct me to the proper file I might edit and turn this feature OFF..
I like my notification sound to just play over the music, or just not bother me..
Thx.
Mal_toofy said:
I'm wondering of there is an easy effort that I can do to disable the volume duck that occurs when I receive a notification (while listening to music)
Some ROMs have a setting g for this, but I'm wondering if someone could direct me to the proper file I might edit and turn this feature OFF..
I like my notification sound to just play over the music, or just not bother me..
Thx.
Click to expand...
Click to collapse
Pretty sure this has to do with what app you're using for playing music, and whether it uses the mediaplayer of your device or it's own custom one.
it's true, I hated the ducking but was able to disable it in PowerAMP settings.
marquimsp said:
it's true, I hated the ducking but was able to disable it in PowerAMP settings.
Click to expand...
Click to collapse
Yeah, PowerAMP uses its own media service.
Is there a music player that has this feature that doesn't cost money? I'll pay for Poweramp if there isn't. VLC for Android, for instance, doesn't have this feature.
Edit: After some trial and error with various programs, I've discovered that MX Player plays back audio without ducking, but a drawback is that it doesn't have dynamic playlist creation capabilities (you need your files ordered in folders). It also plays Opus files, which is something that I was also looking for.
Another app, Rocket Player, will let you choose *between* ducking and pausing (under Settings->Sound->Audio Focus->Temp Focus Action), but it won't let you disable the action completely. That being said, I've found that for audio books and podcasts, I actually prefer pausing to ducking or no ducking, so I like Rocket Player in this respect (same goes with Poweramp).
guys,COS 12+ has this option in their OS. the question is there any xposed modules to do the same action like in COS ?? ( I'm not sure if it's available in CM12+ roms or not ) any idea?
Dirty unicorn have this feature and its working great.
mohawahba said:
guys,COS 12+ has this option in their OS. the question is there any xposed modules to do the same action like in COS ?? ( I'm not sure if it's available in CM12+ roms or not ) any idea?
Click to expand...
Click to collapse
did u find any xposed module for that feature?

Categories

Resources