Disconnect a non-audio Bluetooth device

MrDenis

New member
Hi all.

So I'm trying to control my car's BT connection, specifically disconnecting it if I choose to (it's unbelievably buggy and has a ridiculous range to boot).

I've seen the warning in MD saying since it's not an audio only device, disconnection may not work and sure enough, it's not.

Just wondering if there is any way to improve my odds with this, or some sort of workaround? I'm on a rooted Pixel 6.

Not holding my breath but shot in the dark...
Thanks!
 

Dm114

Well-known member
Hi all.

So I'm trying to control my car's BT connection, specifically disconnecting it if I choose to (it's unbelievably buggy and has a ridiculous range to boot).

I've seen the warning in MD saying since it's not an audio only device, disconnection may not work and sure enough, it's not.

Just wondering if there is any way to improve my odds with this, or some sort of workaround? I'm on a rooted Pixel 6.

Not holding my breath but shot in the dark...
Thanks!
I guess the workaround could be using UI interaction. At least it would worth give it a try...
 

MacroDroidDev

Administrator
Staff member
Unfortunately there are no APIs to allow bluetooth device connection/disconnection. A2DP devices can be done with a hack (that's why audio devices are supported), but there is no other hack that I'm aware of for any other device type I'm afraid.
 

MrDenis

New member
Unfortunately there are no APIs to allow bluetooth device connection/disconnection. A2DP devices can be done with a hack (that's why audio devices are supported), but there is no other hack that I'm aware of for any other device type I'm afraid.
Aaah shoot. I'll try to do it through UI but I don't like using those too much usually.

Thanks for the reply!
 

MrDenis

New member
Well I don't want to count my chickens yet but seems like I found a way: I added a Secure Settings action to disconnect the car (device) from Bluetooth and it worked flawlessly the 5 or 6 times I tried!

Of course Secure Settings is third party and I found it wonky in the past but this time around it seems pretty solid. Figured I'd add my solution here for archival purposes; if it goes south I'll edit this post.

Thanks everyone!
 

Jacob L

Moderator (Lawsonator)
Well I don't want to count my chickens yet but seems like I found a way: I added a Secure Settings action to disconnect the car (device) from Bluetooth and it worked flawlessly the 5 or 6 times I tried!

Of course Secure Settings is third party and I found it wonky in the past but this time around it seems pretty solid. Figured I'd add my solution here for archival purposes; if it goes south I'll edit this post.

Thanks everyone!
You may be able to change those settings with MacroDroid system setting action
 
Top