Bluetooth connected trigger on PX5

Post your questions and help other users.

Moderator: Martin

Post Reply
bzzz
Posts: 1
Joined: 18 Apr 2019 21:32

Bluetooth connected trigger on PX5

Post by bzzz » 18 Apr 2019 21:46

Hello,
I've an issue with Automagic and my Android Headunit car stereo (PX5 with Android 8.0 Hal9k ROM).

I've a flow that start with a "Bluetooth Device Connected" trigger on "all devices", but the flow doesn't run automatically neither when I've Automagic shown on foreground; I've enabled all possible permissions but I can't find any clue on the logs so I can't understand what's happening (it doesn't logs anything when a bluetooth device connects).

The same flow works ok on my Android 6.0 phone.

Can someone help me on how to debug this wrong behaviour?

Thanks!

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Bluetooth connected trigger on PX5

Post by Desmanto » 20 Apr 2019 14:00

it seems the OS block the events of bluetooth device connected to be sent to Automagic. This might be related with some extra security/privacy permission. In LineageOS based ROM, there is extra feature called privacy guard. If this is enabled for the app, Automagic can't detect the bluetooth device connected event, as it is blocked immediately. You might need to find if there is this extra setting/permission in the settings of the ROM.

I have no problem with the bluetooth device connected, either the trigger or condition in my Xiaomi RN5, RR 7.0.1 Pie 9.0. You might want to debug your phone too, setup adb with logcat and connect the bluetooth. See if there is log for the connection at the logcat.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Post Reply