airmusic Posted February 11, 2021 Share Posted February 11, 2021 Hey Max, I am the developer of "AirMusic" (aka AirAudio, https://play.google.com/store/apps/details?id=app.airmusic.trial). This app allows Android-users to stream any app's audio to almost all audio-protocols. Since Android 10+, AirMusic can record the submix of other apps without having to "root" the device. Sadly it seems like Poweramp explicitly disallows that their app gets recorded by 3rd-party-apps or something else is causing this issue. Can you please have a look at this page?https://developer.android.com/guide/topics/media/playback-capture#allowing_playback_capture Maybe you can give me some feedback about the reasons or with some luck this is something you could change in near future? Several users have contacted me because they cannot stream your music and I am a paid user of Poweramp since 2012 too. Would be great if we can get this working so users can stream their beloved Poweramp-player to their remote speaker :) Best regards from Germany, Martin Link to comment https://forum.powerampapp.com/topic/20741-allow-recording-on-android-10/ Share on other sites More sharing options...
taravasya Posted February 11, 2021 Share Posted February 11, 2021 +1 for this option! With Poweramp and AirAudio we can have brilliant UI and without any restrictions connectivity! Link to comment https://forum.powerampapp.com/topic/20741-allow-recording-on-android-10/#findComment-94536 Share on other sites More sharing options...
maxmp Posted February 11, 2021 Share Posted February 11, 2021 @airmusic thanks for the request. Poweramp actually doesn't forbid recording (and docs state that this should allow recording). Still I can see from dumpsys media.audio_policy that it's not allowed for some reason - I will investigate why (most probably docs are wrong). Actually capture is allowed, and it's allowed for many builds already (it was implemented as soon as capture was implemented back in Q beta days). From my investigation there is a bug/oversight in the framework for the apps with android:sharedUserId. Link to comment https://forum.powerampapp.com/topic/20741-allow-recording-on-android-10/#findComment-94540 Share on other sites More sharing options...
airmusic Posted February 12, 2021 Author Share Posted February 12, 2021 Hey @maxmp, many thanks for the investigations. Maybe setting the recording-permissions directly on the player-instances might do the trick? https://developer.android.com/guide/topics/media/playback-capture#capture_policy Would be great if we could figure this out. There are as mentioned several users that asked me already about this Link to comment https://forum.powerampapp.com/topic/20741-allow-recording-on-android-10/#findComment-94550 Share on other sites More sharing options...
maxmp Posted February 12, 2021 Share Posted February 12, 2021 @airmusic unfortunately, nothing helps as there is an issue with the audio policy permission code not being aware of shared user id Android feature (exists from Android 1.0). And we can't drop that share id feature as Android doesn't support upgrading from/to shared user id. Link to comment https://forum.powerampapp.com/topic/20741-allow-recording-on-android-10/#findComment-94558 Share on other sites More sharing options...
airmusic Posted February 12, 2021 Author Share Posted February 12, 2021 You are right, hmm that's really bad. I was able to reproduce/confirm this issue with a simple mediaplayer-app where I added/removed the sharedUserId. I am aware of the restrictions with the id and that you cannot remove it. Maybe we can find a workaround, otherwise we might open an issue at Android's bug reporting Link to comment https://forum.powerampapp.com/topic/20741-allow-recording-on-android-10/#findComment-94576 Share on other sites More sharing options...
void Posted August 7, 2021 Share Posted August 7, 2021 Did you get any further with this? @airmusic Link to comment https://forum.powerampapp.com/topic/20741-allow-recording-on-android-10/#findComment-99959 Share on other sites More sharing options...
airmusic Posted August 9, 2021 Author Share Posted August 9, 2021 Hey there, sadly not, no. I was able to reproduce this issue with a simple test-application and yes it's a bug inside Android's security-mechanism. I had no idea yet how to get around this beside of implementing major changes inside AirMusic & PA. Link to comment https://forum.powerampapp.com/topic/20741-allow-recording-on-android-10/#findComment-100032 Share on other sites More sharing options...
void Posted August 9, 2021 Share Posted August 9, 2021 8 hours ago, airmusic said: Hey there, sadly not, no. I was able to reproduce this issue with a simple test-application and yes it's a bug inside Android's security-mechanism. I had no idea yet how to get around this beside of implementing major changes inside AirMusic & PA. Ah, that's a shame. Maybe one could try to get the Android devs attention towards this, e.g. tagging them in a tweet with a link to this thread? Anyways, is there another played that you could recommend that works with AirMusic for streaming local files to the receivers? Or does it only work with online services? Link to comment https://forum.powerampapp.com/topic/20741-allow-recording-on-android-10/#findComment-100043 Share on other sites More sharing options...
airmusic Posted August 12, 2021 Author Share Posted August 12, 2021 I will try to create a ticket at Google's bug-tracker in the next days.🤞 Link to comment https://forum.powerampapp.com/topic/20741-allow-recording-on-android-10/#findComment-100162 Share on other sites More sharing options...
airmusic Posted August 12, 2021 Author Share Posted August 12, 2021 Here we go: https://issuetracker.google.com/issues/196413667 Link to comment https://forum.powerampapp.com/topic/20741-allow-recording-on-android-10/#findComment-100163 Share on other sites More sharing options...
maxmp Posted August 12, 2021 Share Posted August 12, 2021 It seems that Android 12 beta fully fixes that. Also, some Android 11 variants get the patched code as well (or OEM patched that code specifically) - e.g. MIUI 12.5+, OneUI 3.1, etc. (works only for the built-in screen recorder). Link to comment https://forum.powerampapp.com/topic/20741-allow-recording-on-android-10/#findComment-100171 Share on other sites More sharing options...
void Posted August 25, 2021 Share Posted August 25, 2021 On 8/12/2021 at 8:53 PM, airmusic said: Here we go: https://issuetracker.google.com/issues/196413667 Nice! Also good news if this is fixed in Android 12 as @maxmpmentions. Would have been great if Google could have fixed it for Android 10 and 11 as well. Although I'm planning to get a new phone I'm not sure if it will that soon, haha.@airmusicas for the issue, seems like the Google team asks for some details about this, ref the last comment on the link. Link to comment https://forum.powerampapp.com/topic/20741-allow-recording-on-android-10/#findComment-100616 Share on other sites More sharing options...
Martin Lehmann Posted August 25, 2021 Share Posted August 25, 2021 Yes this would be good news. But I bet this won't happen for the previous versions. I have sadly no time to provide them more information (children, jobs, development, constructions...☹️), but as it seems to be fixed with Android 12 I think they won't even do anything to provide this fix earlier. If you like to, you might 'root' your phone and use AirMusic in root-mode to get around this issue earlier 😀 Link to comment https://forum.powerampapp.com/topic/20741-allow-recording-on-android-10/#findComment-100619 Share on other sites More sharing options...
Lukez Posted January 13, 2022 Share Posted January 13, 2022 Hey there, I just recently got my Pixel 6 with Android 12 and Poweramp is still not working with AirMusic (AirMusic works with other apps). Is there anything i need to activate in the settings or does the bug mentioned above still exist? Thx & BR Lukez Link to comment https://forum.powerampapp.com/topic/20741-allow-recording-on-android-10/#findComment-104726 Share on other sites More sharing options...
maxmp Posted January 13, 2022 Share Posted January 13, 2022 Audio capture does work on Android 12 + Poweramp (via MediaProjectionManager, tested on Pixel6 and Note20 on Android 12 + build-921). Also AirMusic (trial from Play) is able to capture Poweramp. Thanks! Link to comment https://forum.powerampapp.com/topic/20741-allow-recording-on-android-10/#findComment-104744 Share on other sites More sharing options...
Clark Kent Posted January 14, 2022 Share Posted January 14, 2022 please note that a FIX for this exists Poweramp does record ONLY IF the Poweramp Trial Unlocker is UNINSTALLED (Poweramp Equalizer APP seems fine however) once Poweramp Trial Unlocker is uninstalled Poweramp can be recorded again once its AudioStream is recreated either 1. CLOSE (X) the stream from notifications then remove Poweramp from recents, (BOTH need to be removed, order does not matter) or 2. force stop and then re-open Poweramp, this will re-create the stream do note that BOTH Poweramp and the Stream must be closed, closing the Stream while Poweramp is STILL OPEN (not removed from recents) will not work to clarify: the Poweramp Trial Unlocker MUST NOT be installed if you wish to record audio from Poweramp Link to comment https://forum.powerampapp.com/topic/20741-allow-recording-on-android-10/#findComment-104757 Share on other sites More sharing options...
maxmp Posted January 14, 2022 Share Posted January 14, 2022 @Clark Kent for Android 12 - it works fine with or without Unlocker as well. Link to comment https://forum.powerampapp.com/topic/20741-allow-recording-on-android-10/#findComment-104767 Share on other sites More sharing options...
Clark Kent Posted January 15, 2022 Share Posted January 15, 2022 9 hours ago, maxmp said: @Clark Kent for Android 12 - it works fine with Unlocker as well. hmm maybe a bug in the android 12 build im using, other people seem to have this as well, could just be phone maybe it cua im using PlayStore version and unlocker together? idk but if the "fix" works for anyone else then yay Link to comment https://forum.powerampapp.com/topic/20741-allow-recording-on-android-10/#findComment-104785 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now