Is there a way to grant/revoke bluetooth device permission

maretodoric

New member
Hello everyone, great project!
I've been using MacroDroid to automatically enable hotspot on my phone when it gets connected to my car bluetooth system, that way the system will access WiFi and use live maps etc...

Now i have an issue with my stock ROM (i presume) that it sometimes forgets that the device should have access to contact sharing, so car auto cannot automatically download contacts because of it and i constantly need to enable "Contact sharing" for that bluetooth device once i enter car.
Is there a chance to automatically assign this with MacroDroid?
I would just add that action to previous macro for hotspot and be happy with it!
 

Qarboz

Well-known member
Before experimenting with Macrodroid, try canceling the radio-phone pairing and doing it again in reverse of how you did it. Let me explain: if you did the search and pairing with the radio before, now you search and pair with the phone (or vice versa)


Ps
Sorry for my english
 

maretodoric

New member
Unfortunately i did do that, it's still the same. It will work couple of times and then again forget the permission after some time... I wanted to try a custom rom but couldn't find one stable enough. This is the only other way i could think of.
 

MacroDroidDev

Administrator
Staff member
Sorry I can't think of any way you can do this unless you can somehow fake a series of UI presses with UI Interaction to grant the permission.
 

Jacob L

Moderator (Lawsonator)
ADB permissions maybe granted in the shell action of MacroDroid perhaps. You may need root for this
 

maretodoric

New member
I do have root, but is it possible? I know permissions can be granted using "pm" command but isn't that for applications, not Bluetooth devices? I mean, if you have an idea, I'm up for it!
 
Top