Vee Posted November 16, 2019 Share Posted November 16, 2019 I have Poweramp that was force stopped and did not open it in my phone. I connect my phone Bluetooth with my car and when it connected Poweramp just auto start the app and play the audio. I did not ask to do that, I just want to connected the Bluetooth and choose the music player app myself. (because Poweramp did not support single play audio file). Quote Link to comment Share on other sites More sharing options...
andrewilley Posted November 16, 2019 Share Posted November 16, 2019 Settings > Headset/Bluetooth > Resume on Bluetooth (disable). If it still happens with that disabled, it's probably because the car headunit is sending a Play command when it connects - check Settings > Headset/Bluetooth > Last Processed Commands to see what it has sent. Andre Quote Link to comment Share on other sites More sharing options...
Vee Posted November 16, 2019 Author Share Posted November 16, 2019 It is already disabled. Almost everything about Bluetooth was disabled. This never happens before (as I remember, until last week). I was just reset everything about Poweramp so, I cannot see any command now. I'll try again tomorrow. Quote Link to comment Share on other sites More sharing options...
andrewilley Posted November 16, 2019 Share Posted November 16, 2019 You need to look at the Commands list a short while after connecting, to see what has just been sent. Andre Quote Link to comment Share on other sites More sharing options...
Vee Posted November 19, 2019 Author Share Posted November 19, 2019 Quote ================== 10:05:11.830 PSMediaButtonReceiver android.intent.action.MEDIA_BUTTON KEYCODE_MEDIA_PLAY ACTION_DOWN name=AVRCP source=0x101 virt=false repeat=0 actionTime=598402602 isAvrcp IGNORED isNotButtonPress=false enable_headset_controls=false ================== 10:05:11.833 PSMediaButtonReceiver android.intent.action.MEDIA_BUTTON KEYCODE_MEDIA_PLAY ACTION_UP name=AVRCP source=0x101 virt=false repeat=0 actionTime=598402633 isAvrcp IGNORED isNotButtonPress=false enable_headset_controls=false This never happens until ...(I'm not sure the exact date) last week. I force stopped Poweramp + Full version unlocker. Clear all opened apps. Connect smart phone with car bluetooth > push on aux button (to switch to bluetooth audio). What happened before is nothing happen, I can open music player of my choice (which is supported single play one track and end). 👍 What happened now is Poweramp open itself and I have to close it then I can control car audio with my app. 👎 👎 👎 Resume on Bluetooth was disabled but it does not help. Quote Link to comment Share on other sites More sharing options...
NewZed Posted February 16, 2021 Share Posted February 16, 2021 Why has this problem never been addressed? Auto-start on Bluetooth us completely ignored. Same result whether on or off it will always auto-start playing on my car stereo system. Beyond annoying 🤬. It's now 2021!!! Quote Link to comment Share on other sites More sharing options...
andrewilley Posted February 16, 2021 Share Posted February 16, 2021 5 hours ago, NewZed said: Why has this problem never been addressed? It has been addressed multiple times. There are options to control this action in Settings > Headset/Bluetooth. However sometimes the external headset or car stereo is the culprit, issuing a MEDIA_PLAY (or MEDIA_PLAY_PAUSE) event when it connects, which PA responds correctly to. To see if this is the case for you, after this issue occurs take a look at Settings > Headset/Bluetooth > Last Processed Commands and post the results here. Andre Quote Link to comment Share on other sites More sharing options...
Drey Posted February 22, 2022 Share Posted February 22, 2022 @andrewilley I'm experiencing the same issue as above. Whenever I turn on my car the radio connects vua Bluetooth and automatically opens PA and resumes my last played song. I don't want this. I've read your other forum responses to people with that same issue. I've disabled and renabled all those settings. No change. I'm wondering if the culprit is my stereo unit doing this. You mentuoned the way to find that out was to go to: Settings > Headset/Bluetooth > Last Processed Commands and post the results here. Here are my results. Please let me know what you think can be done to stop this from occuring.... Many thanks ================== 17:12:11.074 PSMediaButtonReceiver android.intent.action.MEDIA_BUTTON KEYCODE_MEDIA_PLAY ACTION_DOWN name=Virtual source=0x0 sources=0x301 virt=true repeat=0 actionTime=90720466 sourcePak=com.android.bluetooth isAvrcp flags=0x0 playerState=0 ================== 17:12:11.110 PSMediaButtonReceiver android.intent.action.MEDIA_BUTTON KEYCODE_MEDIA_PLAY ACTION_UP name=Virtual source=0x0 sources=0x301 virt=true repeat=0 actionTime=90720502 sourcePak=com.android.bluetooth isAvrcp flags=0x0 playerState=0 ================== 17:12:11.383 PlayerService RESUME from PSMediaButtonReceiver resumePlaying ================== 17:12:11.383 PlayerService RESUME from PSMediaButtonReceiver IGNORED ================== 17:12:17.717 HeadsetPlugReceiver headset event disconnection BT=false am mode=0 no_keep_notif_on_dscn=false ================== 17:12:18.834 BTReceiver headset event connection BT=true am mode=0 BOSS 616UAB ================== 17:12:20.640 BTReceiver headset event disconnection BT=true am mode=0 BOSS 616UAB no_keep_notif_on_dscn=false ================== 17:12:20.869 PlayerService onRoutingChanged newDevice=speaker oldDevice=bt ================== 17:12:20.869 PlayerService reloadPipeline allowPlaying=true forceResume=false state after reload=1 ================== 17:12:23.044 PlayerService TOGGLE_PLAY_PAUSE from NotificationHelperViaBuilder pausePlaying ================== 17:12:24.439 PlayerService STOP_SERVICE from NotificationHelperViaBuilder ================== 17:16:07.849 PSMediaButtonReceiver android.intent.action.MEDIA_BUTTON KEYCODE_MEDIA_PLAY ACTION_DOWN name=Virtual source=0x0 sources=0x301 virt=true repeat=0 actionTime=90957230 sourcePak=com.android.bluetooth isAvrcp flags=0x0 playerState=2 ================== 17:16:07.881 PSMediaButtonReceiver android.intent.action.MEDIA_BUTTON KEYCODE_MEDIA_PLAY ACTION_UP name=Virtual source=0x0 sources=0x301 virt=true repeat=0 actionTime=90957273 sourcePak=com.android.bluetooth isAvrcp flags=0x0 playerState=2 ================== 17:16:08.165 PlayerService RESUME from PSMediaButtonReceiver resumePlaying ================== 17:16:08.165 PlayerService RESUME from PSMediaButtonReceiver IGNORED ================== 17:16:15.306 BTReceiver headset event connection BT=true am mode=0 BOSS 616UAB ================== 17:16:16.979 PlayerService TOGGLE_PLAY_PAUSE from NotificationHelperViaBuilder pausePlaying ================== 17:16:17.668 PlayerService STOP_SERVICE from NotificationHelperViaBuilder ================== 17:16:49.645 HeadsetPlugReceiver headset event disconnection BT=false am mode=0 no_keep_notif_on_dscn=false ================== 17:17:00.407 BTReceiver headset event disconnection BT=true am mode=0 BOSS 616UAB no_keep_notif_on_dscn=false Quote Link to comment Share on other sites More sharing options...
andrewilley Posted February 22, 2022 Share Posted February 22, 2022 There seem to be a lot of events occurring during connection which @maxmp would be able to diagnose better then me, but could you confirm that you did not press the Play button at the following point, as the log is saying that PA received a Play comment from the Bluetooth device: 17:16:07.849 PSMediaButtonReceiver android.intent.action.MEDIA_BUTTON KEYCODE_MEDIA_PLAY ACTION_DOWN name=Virtual source=0x0 sources=0x301 virt=true repeat=0 actionTime=90957230 sourcePak=com.android.bluetooth isAvrcp flags=0x0 playerState=2 ================== 17:16:07.881 PSMediaButtonReceiver android.intent.action.MEDIA_BUTTON KEYCODE_MEDIA_PLAY ACTION_UP name=Virtual source=0x0 sources=0x301 virt=true repeat=0 actionTime=90957273 sourcePak=com.android.bluetooth isAvrcp flags=0x0 playerState=2 Andre Quote Link to comment Share on other sites More sharing options...
hugeblizzard Posted February 23, 2022 Share Posted February 23, 2022 I've found the culprit that caused the same issue with me. It was Poweramp Equalizer app which had the same setting turned on. I just turned it off and now everything is normal. Although, I don't see the same app as the culprit in the log posted above by others. Quote Link to comment Share on other sites More sharing options...
andrewilley Posted February 27, 2022 Share Posted February 27, 2022 On 2/23/2022 at 2:25 AM, krazzyvishal said: I've found the culprit that caused the same issue with me. It was Poweramp Equalizer app which had the same setting turned on. I'd been wondering why my Android Auto system had recently started exhibiting this auto-starting issue too, and when I checked the commands log I noticed a MEDIA_PLAY button event was being issued about 15 seconds after everything else had connected, but it was assigned from com.maxmpz.equalizer : 18:28:55.062 PSMediaButtonReceiver android.intent.action.MEDIA_BUTTON KEYCODE_MEDIA_PLAY ACTION_DOWN name=Virtual source=0x301 virt=true repeat=0 actionTime=182391645 sourcePak=com.maxmpz.equalizer flags=0x540 playerState=2 ================== 18:28:55.075 PSMediaButtonReceiver android.intent.action.MEDIA_BUTTON KEYCODE_MEDIA_PLAY ACTION_UP name=Virtual source=0x301 virt=true repeat=0 actionTime=182391648 sourcePak=com.maxmpz.equalizer flags=0x540 playerState=2 I checked the stand-alone PA-EQ app, and it had indeed activated this feature for some reason - and the fact that the main EQ functionality is disabled does not seem to prevent the auto-play mode from triggering. If this has started affecting anyone else, go into the Poweramp Equalizer app and in Settings > Utils you should turn OFF these top two items: Andre Quote Link to comment Share on other sites More sharing options...
roeezzz Posted January 13 Share Posted January 13 I'm still having this issue. I'm on Pixel 7 with Sony xm4's. I have both options on both apps (player and eq) turned off. I get the following commands (though I don't really know how to read them), and I don't press anything when I connecg the headphones. It happens only with Poweramp so I doubt it's somethin my headphones are sending. Quote Link to comment Share on other sites More sharing options...
andrewilley Posted January 13 Share Posted January 13 @roeezzz Poweramp is apparently receiving a button-press event KEYCODE_MEDIA_PLAY via Android, which it is responding correctly to. Looks like it's coming from com.android.nfc, though I don't know why the NFC service would be doing that. Do you have an NFC management app set to trigger on BT connection for some reason? Andre Quote Link to comment Share on other sites More sharing options...
roeezzz Posted January 15 Share Posted January 15 I use nfc to connect the headphones to my phone. The xm4's have a feature for that. Does it mean it's something with the headphones? Because it only happens with Poweramp. Quote Link to comment Share on other sites More sharing options...
andrewilley Posted January 15 Share Posted January 15 It means something in the NFC system that you are using is sending a KEYCODE_MEDIA_PLAY event to tell the current media software to start playing (a BUTTON_DOWN instance followed a few milliseconds later by a BUTTON_UP - so a simulation of a press and release interaction). Poweramp is correctly responding to that command by starting playback. You could prevent that from happening by disabling PA Settings=>Headset/Bluetooth=>Respond to Buttons, but that would mean you would not be able to use any other button functionality that the headset might offer either. @maxmp The button event does seem to be arriving very soon after the remote device has connected, I thought such commands were meant to be ignored for the first few seconds? Is it perhaps the fact that it is coming from the NFC module rather than from the headset directly that could be causing this? Andre Quote Link to comment Share on other sites More sharing options...
mOuStAcHe_BR Posted January 19 Share Posted January 19 on ANDROID AUTO OPTIONS/CONFIGS, just disable "START/PLAY MUSIC AUTOMATICALLY". Aparently my problem is solved. PS: this was happpening even when headphones were connected in the usb port, and bluetooth devices too. MOTO EDGE 20 PRO and MOTO EDGE 30 ULTRA here. I hope it helps anyone else. Quote Link to comment Share on other sites More sharing options...
mOuStAcHe_BR Posted January 20 Share Posted January 20 22 hours ago, mOuStAcHe_BR said: on ANDROID AUTO OPTIONS/CONFIGS, just disable "START/PLAY MUSIC AUTOMATICALLY". Aparently my problem is solved. PS: this was happpening even when headphones were connected in the usb port, and bluetooth devices too. MOTO EDGE 20 PRO and MOTO EDGE 30 ULTRA here. I hope it helps anyone else. UPDATE: unfortunatelly, the autostart problem is back again. Trying to disable AD2P HARDWARE on development options on android 12. I will update if it works. Quote Link to comment Share on other sites More sharing options...
andrewilley Posted January 20 Share Posted January 20 @mOuStAcHe_BR Have a look in Settings=>Headset/Bluetooth=>Last Processed Commands to see if a KEYCODE_MEDIA_PLAY or KEYCODE_MEDIA_PLAY_PAUSE event is being issued by the BT device (often Android Auto sends its media and commands via Bluetooth, even when a USB cable is plugged in). You can stop PA responding to that for testing purposes using the Button options in the same menu. Andre Quote Link to comment Share on other sites More sharing options...
mOuStAcHe_BR Posted January 20 Share Posted January 20 1 hour ago, andrewilley said: @mOuStAcHe_BR Have a look in Settings=>Headset/Bluetooth=>Last Processed Commands to see if a KEYCODE_MEDIA_PLAY or KEYCODE_MEDIA_PLAY_PAUSE event is being issued by the BT device (often Android Auto sends its media and commands via Bluetooth, even when a USB cable is plugged in). You can stop PA responding to that for testing purposes using the Button options in the same menu. Andre Andre, now I don't know what prevents the autoplay command but right now the issue seems to be there again. The button option is still enabled as I need to keep the car media controls functional. What I did was install greenefy, change this settings on development options on Android 12. The only action that prevents the issue is killing/force stop PA on Android. Follow the processed command line ================== 11:41:05.998 PlayerService onRoutingChanged newDevice=bt oldDevice=speaker ================== 11:41:05.998 PlayerService reloadPipeline allowPlaying=true forceResume=false state after reload=2 ================== 11:41:06.443 BTReceiver headset event connection BT=true am mode=0 Audi MMI 2002 ================== 11:41:06.898 PlayerService reloadPipeline allowPlaying=true forceResume=false state after reload=2 ================== 11:41:07.502 PlayerService reloadPipeline allowPlaying=true forceResume=false state after reload=2 ================== 11:41:09.371 PSMediaButtonReceiver android.intent.action.MEDIA_BUTTON KEYCODE_MEDIA_PAUSE ACTION_DOWN name=Virtual source=0x0 sources=0x301 virt=true repeat=0 actionTime=27796822 sourcePak=com.android.bluetooth isAvrcp flags=0x0 playerState=2 ================== 11:41:09.399 PSMediaButtonReceiver android.intent.action.MEDIA_BUTTON KEYCODE_MEDIA_PAUSE ACTION_UP name=Virtual source=0x0 sources=0x301 virt=true repeat=0 actionTime=27796851 sourcePak=com.android.bluetooth isAvrcp flags=0x0 playerState=2 ================== 11:41:09.740 PSMediaButtonReceiver android.intent.action.MEDIA_BUTTON KEYCODE_MEDIA_PLAY ACTION_DOWN name=Virtual source=0x0 sources=0x301 virt=true repeat=0 actionTime=27797191 sourcePak=com.android.bluetooth isAvrcp flags=0x0 playerState=2 ================== 11:41:09.746 PlayerService RESUME from PSMediaButtonReceiver resumePlaying Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.