Disable audio focus - Magisk

.Create a module to disable audio focus
So that me can watch sports and listen to music or play games listing to music.
Many games support this. But good games don't (pogo)

Aniruddhlr said:
.Create a module to disable audio focus
So that me can watch sports and listen to music or play games listing to music.
Many games support this. But good games don't (pogo)
Click to expand...
Click to collapse
no need to. just do this. doesnt need root either. just replace pokemon go with the game you dont want to have audio focus. audio focus changed in oreo so this may or may not work on oreo
https://www.google.com/amp/s/www.xda-developers.com/pokemon-go-audio-focus/amp/

JohnFawkes said:
no need to. just do this. doesnt need root either. just replace pokemon go with the game you dont want to have audio focus. audio focus changed in oreo so this may or may not work on oreo
https://www.google.com/amp/s/www.xda-developers.com/pokemon-go-audio-focus/amp/
Click to expand...
Click to collapse
I saw that post...
Is there a way to do it in mobile?

JohnFawkes said:
no need to. just do this. doesnt need root either. just replace pokemon go with the game you dont want to have audio focus. audio focus changed in oreo so this may or may not work on oreo
https://www.google.com/amp/s/www.xda-developers.com/pokemon-go-audio-focus/amp/
Click to expand...
Click to collapse
Can it be used for every app....like streaming utube video while listening to spotify.

sreekantt said:
Can it be used for every app....like streaming utube video while listening to spotify.
Click to expand...
Click to collapse
i have no idea. never tried this. audio focus doesn't bother me. just read the article and follow along and try

Old thread but in case someone is still looking at this; "App ops" by Xingchen & Rikka can disable audio focus for any app. There is an option to force allow adio focus denial to any app.

Related

Gapless Playback

Heya,
Just thought you guys should know... The Z3 Compact doesn't have gapless playback in Google Play Music. Albums that play gaplessly on my Moto E and Nexus 4 simply don't on my Z3 Compact. A real shame, as this is a huge dealbreaker for me and I'll have to return an otherwise brilliant phone.
Just in case there are others out there who care about gapless playback as much as I do (I doubt it).
If anyone knows of a way to fix this, I'm definitely all ears.
Wow you're sending back a fabulous phone for that? With the SD card slot option can't you store music locally and use a 3rd party app for gapless play.
That's finicky. But each to there own. Good luck
I have no idea what gapless playback is meant to sound like so I'm not sure if this is working for me. While messing around with build.prop settings, I found an property called audio.offload.gapless.enabled. Using adb I set this to true with adb shell setprop audio.offload.gapless.enabled true
I presume this has given me gapless playback but as I say, I have no idea what it's meant to sound like.
tilal6991 said:
I have no idea what gapless playback is meant to sound like so I'm not sure if this is working for me. While messing around with build.prop settings, I found an property called audio.offload.gapless.enabled. Using adb I set this to true with adb shell setprop audio.offload.gapless.enabled true
I presume this has given me gapless playback but as I say, I have no idea what it's meant to sound like.
Click to expand...
Click to collapse
basically when it goes to the next song, there's no pause in between songs. great for like electronic sets.
sillieidiot said:
basically when it goes to the next song, there's no pause in between songs. great for like electronic sets.
Click to expand...
Click to collapse
Right. Not 100% I think its working then. Quite a few of my songs are quiet down at the end so it's difficult to tell if it's the song tailing off or if a gap is actually present
Legend!!!!!!!
tilal6991 said:
I have no idea what gapless playback is meant to sound like so I'm not sure if this is working for me. While messing around with build.prop settings, I found an property called audio.offload.gapless.enabled. Using adb I set this to true with adb shell setprop audio.offload.gapless.enabled true
I presume this has given me gapless playback but as I say, I have no idea what it's meant to sound like.
Click to expand...
Click to collapse
tilal6991 you are a Legend!!!!! I did what you did and went to the build.prop and found audio.offload.gapless.enabled=false and changed it to true and it worked flawlessly!!!! So for anyone reading this who has especially a rooted Z3 compact, do what tilal6991 did and it will bring gapless playback back!!!!!
Thanks a lot!!!
Edlp670, is there a way to do this without root?
I don't particularly want to lose my camera functions.
WallnutBoy said:
Edlp670, is there a way to do this without root?
I don't particularly want to lose my camera functions.
Click to expand...
Click to collapse
If you can survive while waiting for the device to get rooted. Then you won't have to unlock your BL for root.
Dsteppa said:
If you can survive while waiting for the device to get rooted. Then you won't have to unlock your BL for root.
Click to expand...
Click to collapse
Oh, is that something we can expect to happen then? I am happy with waiting for a while.
WallnutBoy said:
Oh, is that something we can expect to happen then? I am happy with waiting for a while.
Click to expand...
Click to collapse
99% certain.
You only need to unlock your BL if you want to use another kernel, it's just a matter of time. So far I can't re-call a phone that was uncrackable (aka couldn't get rooted)
WallnutBoy said:
Edlp670, is there a way to do this without root?
I don't particularly want to lose my camera functions.
Click to expand...
Click to collapse
No, unfortunately you cannot do it without root because you have to access the build.prop. However, you can unlock bootloader and root without loosing camera functions. Have a look at this thread http://forum.xda-developers.com/z3-compact/orig-development/d58xx-cwm-based-recovery-6-0-4-7-root-t2890231.
I have obviously done this already and my phone is going really well. Camera works perfectly. :good:
To be honest you'd have thought this would have been an option for the Walkman software 'Gapless play on/off Can't Sony be contacted with a request for this?
I use GoneMAD Music player for gapless playback right now. Will be happy to change this setting once unlocked root is available.
GoneMad is working for me with gapless playback, as does PowerAmp. As a complete Android novice, how easy would it be to access the settings to enable gapless playback in all software? Would be able to follow guides etc if they could be signposted.
As an alternative to this issue, I did some more digging and might have found a solution.
I had two mixed albums that were now playing gaplessly on the Sony Walkman software, or on the free version of Rocket Player (my current alternative music player). I have converted the to OGG format and they're now playing on both the Walkman app and Rocket Player gaplessly.
Bit of hassle to convert them, but there are automated converters out there.

[APP][5.0+] Youtube Player for Android Auto - Pre app fieldwork

Hi guys.
As I have mentioned it before I have started working on a YouTube Player for Android Auto, but since I'm not a big youtuber myself I will like to get some input from you guys on how this should app work.
My thought till now are:
1) When you are outside Android Auto, you will need to open the app, give permission to access your content and sync your playlists to the app.
2) When in Android Auto, the media player will contain entries for each PlayList and all the items of a playlist will be listed as subitems. This part will work as any other media app.
3) Video playback, this will be on the fifth tab, same menu structure, but it will also display video, of course only when the car is stopped, other than that video playback will be disabled.
4) Provide search for individual songs.
- Is there any other way you usually use Youtube beside created playlists, if yes please tell me so I can understand what should I build.
Sync before use - Why is it needed?
- To be able to use the YouTube API which gives me access to your playlist and content I need to create a developer API. The API is limited to 1.000.000 trade units per day, every query has it's own unit value (not necessarily 1) so if I don't sync the playlist and use a fetch as needed approach, I will risk to run out of trade units when the user base grows bigger.
Any comments suggestions are welcomed.
Hello, I am very interested in this application.
It would be very useful if you could choose the quality of the video.
I want buy it
Hi,
Why a YouTube player, and not any other type of player? Several opensource players with local support exists. Why not use some of these as a base?
manos78 said:
Hi,
Why a YouTube player, and not any other type of player? Several opensource players with local support exists. Why not use some of these as a base?
Click to expand...
Click to collapse
Local players do exist for audio, and it's easy to create an app for AA for them, but YouTube is more problematic, and yeah it's a bit against youtube policy because you shouldn't have sound without video, so officially that app will never be created (maybe with youtube red).
However this project did not receive too much attention so it's on a backburner at the moment, probably till end of November.
Emil Borconi said:
Local players do exist for audio, and it's easy to create an app for AA for them, but YouTube is more problematic, and yeah it's a bit against youtube policy because you shouldn't have sound without video, so officially that app will never be created (maybe with youtube red).
However this project did not receive too much attention so it's on a backburner at the moment, probably till end of November.
Click to expand...
Click to collapse
Ahh, Ok! You think in audio only YouTube player.
I hope someone will start to develop a Xposed module that "rewrites" the MainActivity of any selected App and add AA support on-the-fly! This will be more similar to MirrorLink (not supported in a lot of devices).
Regards.
manos78 said:
Ahh, Ok! You think in audio only YouTube player.
I hope someone will start to develop a Xposed module that "rewrites" the MainActivity of any selected App and add AA support on-the-fly! This will be more similar to MirrorLink (not supported in a lot of devices).
Regards.
Click to expand...
Click to collapse
Audio only + video when the car is parked/not moving.
Video Player app for Android Auto, maybe based to VLC that is open source would be very useful and i'll buy it surely
Emil Borconi said:
Local players do exist for audio, and it's easy to create an app for AA for them, but YouTube is more problematic, and yeah it's a bit against youtube policy because you shouldn't have sound without video, so officially that app will never be created (maybe with youtube red).
However this project did not receive too much attention so it's on a backburner at the moment, probably till end of November.
Click to expand...
Click to collapse
Why isn't there any more attention for this?
Listen to Youtube playlists and watching video while parking would be a killer feature for AA.
Excellent App idea ?
Would love this app
Great !
We wait youtube app to android auto ! Please <3<3<3
uzakask said:
We wait youtube app to android auto ! Please <3<3<3
Click to expand...
Click to collapse
Here's my attempt to make YouTube work on Android auto.
www.thekirankumar.com/blog/2017/12/29/play-youtube-video-android-auto-app
It's an apk you download and install on phone and it allowd use of YouTube mobile site on Android auto. Enjoy !
Hi all here,
I am the author of what's called an unofficial Android Auto SDK, a piece of software
which allows creating custom Android Auto apps.
Because the poster of the previous message used this SDK, I believe it's
important that I quote my statement about video-in-motion AA apps from
the thread linked above also here. Please read below.
Regards,
martoreto
martoreto said:
Dear all,
it is a good moment to say my final word specifically about the kind of apps
which allow playing videos on the head unit.
I think these don't need much comment:
It's ok to have a movie together on a great trip in middle of nowhere, when stopped.
It's not ok to watch a movie while driving. It doesn't need any comment.
It's totally ok for the passenger to watch a movie on his/her own device.
It's not ok for a passenger to watch a movie on a display in front of the driver.
It's ok to show off how a wonderful head unit I have which can play YT, but not while driving.
It's not ok to watch a movie while driving just to do a forbidden thing.
There's no "it's ok" scenario here for playing movies while in motion. Please share if you
know some. I'm pretty sure these are very uncommon or borderline ok.
Those "it's not ok" may be tempting. Because the driver may be bored, pissed off,
deny the danger of driving distracted, willing to show off, overestimate his/her skills,
name your reason.
Words displayed in the dash or written on a website or anywhere else would rarely
prevent it.
It's not that if movies are not possible in these cases, the driver will definitely do
something else stupid, like playing the video on the phone itself or become even more
angry and aggressive on road.
I want to say that clearly: I believe no apps should allow playing videos on the
car display while the car is in motion. Period.
I ask all here to not write such apps and not promote and talk about them here.
Instead of supporting those who create these apps just to satisfy popular demand of
doing a forbidden thing, please support those who actually care about creatively
and carefully designing the apps to be useful and which assertively, yet nicely
prevent being used in a stupid way.
Regards,
martoreto
Click to expand...
Click to collapse
Post deleted.
Youtube auto Android auto

Idea for Netflix Background Playback

I have come to the conclusion that Netflix can be run in the background when you put your phone into split screen and going to your home screen. I do not know if this is even possible and I am not a developer. But I believe that this can be implemented into an Xposed module by taking advantage of this wierd "glitch". Just an idea and again, I'm no developer, but if someone is willing to take this on, that would be so awesome.
Why you want to run Netflix in background.
cpt.macp said:
Why you want to run Netflix in background.
Click to expand...
Click to collapse
I listen to comedy on netflix when doing mundane repetitive tasks at work, for example.
If you are using bluetooth headphones, you can turn off the screen or switch to another app, and when the video pauses, click play the headphones play button.
Rotoq said:
I listen to comedy on netflix when doing mundane repetitive tasks at work, for example.
If you are using bluetooth headphones, you can turn off the screen or switch to another app, and when the video pauses, click play the headphones play button.
Click to expand...
Click to collapse
Man you replying after a year
cpt.macp said:
Man you replying after a year
Click to expand...
Click to collapse
5 months. I was searching for something similar and thought I'd add a comment if anyone was interested. It can be a very useful trick.

[FIX][Audio Resampling][Stock Oreo] Fix 384Khz For Music Player That Use Direct PCM F

Hi all
I'm using PowerAMP Beta 709 for listening music, LG Music player is decent for me, PowerAMP can resampling up to 384Khz, but on LG V30 it's not working when i choose resampling to 384Khz, its just back to 44.1Khz.
Only 44.1~352.8Khz is working, i tought it's bug in PowerAMP but NOT, LG forgot some line or intentionally not adding 384khz in 24bit Direct PCM. So i fix that.
Every Music player that use flag Direct PCM can use 24bit 384Khz now without going back to 16bit 44.1Khz ofcourse if there music app that support 32bit 192/384Khz will also work if using flag direct pcm 32bit
Requirements :
1. Unlocked Bootloader
2. TWRP installed
3. Root
How to install?
1. Just flash with TWRP or
2. Extract and put to system/vendor/etc and change permissions to 0644
Hi thanks for the mod
Got one question about how sound works on a v30.
I usually listen to songs like 24/96 or higher or sometimes the mqa from tidal, the question is will the viper4android downsample my songs? As I saw on all devices I had it installed that drive status reports 44kHz sampling rate even when I was playing hi-res music.
xypnise said:
Hi thanks for the mod
Got one question about how sound works on a v30.
I usually listen to songs like 24/96 or higher or sometimes the mqa from tidal, the question is will the viper4android downsample my songs? As I saw on all devices I had it installed that drive status reports 44kHz sampling rate even when I was playing hi-res music.
Click to expand...
Click to collapse
I'm never try V4A but yeah your song is downsampling, maybe V4A doesn't support or use direct pcm or even snapdragon 24bit offload so its still use Open SL ES 16bit 44.1khz for output.
Maybe someone has better answer than me, cause i never try V4A.
Hi, will give this a try but how to undo if something is not right ?
Tried a loudness mod recently and had hissing in quiet parts so had to revert
gazzacbr said:
Hi, will give this a try but how to undo if something is not right ?
Tried a loudness mod recently and had hissing in quiet parts so had to revert
Click to expand...
Click to collapse
Just open the zip file and see for yourself which and how the files are modified. It's just a quick edit of both instances of audio_policy_configuration.xml. It could be edited by hand, same as with the high impedance mod.
Kudos to the OP for the useful tip !
I'd like to test if LG has fixed this issue on stock Oreo with the July update. I have a library full of FLAC music files; so the next step would be to install PowerAMP and select 384kHz? I'll edit this post with results.
EDIT: US99820D (July stock ROM) has the bug. Flashing the fix resolves the issue as revealed by PowerAMP beta. I did notice though that having the "Enhanced" DAC preset enabled introduces intermittent static noises in certain songs. It doesn't bother me, since I keep it at "normal" and set the digital filter to "short." Very nice sounds with Sennheiser HD558.
Thank you @Rizal Lovins for the fix !
Since this thread is one year old, with the last oreo fw 20h us998 is the audio resampling still happening on LG's stock music app or been fixed? I don't know how to see/measure the audio output
YoungAll said:
Since this thread is one year old, with the last oreo fw 20h us998 is the audio resampling still happening on LG's stock music app or been fixed? I don't know how to see/measure the audio output
Click to expand...
Click to collapse
Not fixed.
Mrxyzl said:
Not fixed.
Click to expand...
Click to collapse
Hmm, why am I not surprised. USB audio is still the way to go.
What about pie? Anybody know if LG actually did it right this time?
gazzacbr said:
Hmm, why am I not surprised. USB audio is still the way to go.
What about pie? Anybody know if LG actually did it right this time?
Click to expand...
Click to collapse
No, too
I sadly cannot get this fix to work things still only play 352.8, when I try to get it to sample fully to 384 it jumps down to 192. This fix just seems to do nothing sadly. Trying with USB Audio Player Pro

Disable additional bass/low-end boost?

Has anyone found a way to disable/remove the additional bass to all audio (on Stock ROM). Sometimes it's great but for music it's sometimes downright terrible.
Try tinkering with the AudioWizard settings.
If no luck, try your music player's EQ settings or Viper4android.
elmor0 said:
Try tinkering with the AudioWizard settings.
If no luck, try your music player's EQ settings or Viper4android.
Click to expand...
Click to collapse
I've used viper before and I love it but for personal reasons I don't want to leave the stock ROM or do any flashing. The audiowizard has very lackluster options which don't provide a very useful description which make it hard to figure out what the bass and treble slider actually do, as they don't seem to impact the extra bass at all.
You don't need to leave stock ROM for using V4A.
The latest V4A .apk is available to install from XDA labs.
Another option, is to try the VLC media player's native equaliser (works just for music/ video files during VLC play).
elmor0 said:
You don't need to leave stock ROM for using V4A.
The latest V4A .apk is available to install from XDA labs.
Another option, is to try the VLC media player's native equaliser (works just for music/ video files during VLC play).
Click to expand...
Click to collapse
I would but I can't do that without root and I'm sort of not keen on that as I've heard magisk is more unstable and not a garenteed passt for safety net (I use Google pay alot)
In that case, try any one of the top-rated volume/ bass adjusting apps via Play store - see if it does the job for you.
VLC media player has it's own equaliser.
You can freeze/ disable AudioWizard via stock settings, or try SD-maid or Titanium.
bencozzy said:
DO NOT FREEZE AudioWizard! Device will panic on boot then reboot to recovery.
Click to expand...
Click to collapse
Thank you for this info. I was genuinely not aware of this.
I've had a couple of nightmare situations where the ROG3 would shut-down (power-off) by itself every time I powered it on - I thought this was because of a rogue app/ magisk module or perhaps a virus; I ended up doing a factory reset eventually to recover my phone.

Categories

Resources