Bluetooth Enable Not Working

Seamus911

New member
Since the latest update, v.5.36.5, any of my macros that enable or disable my Bluetooth are not working. Any ideas?
 

MacroDroidDev

Administrator
Staff member
Yes sadly another casualty of the forced target SDK updates Google make us do to keep distributing on the Play Store. I hate having to put more and more stuff in the helper file but it's the only choice to keep these sort of things functional.
 

Endercraft

Moderator (& bug finder :D)
I'm not getting the same error as you but it seems like it's because someone forgot to add a permission to the app manifest.xml
Screenshot_2023-08-31-16-06-17-661_com.arlosoft.macrodroid.helper-edit.jpg
 

Endercraft

Moderator (& bug finder :D)
Send an email to support to pake sure they developer is aware of this.
I haven't checked but I'll do now to see if they issue is what I think it is.
 

Endercraft

Moderator (& bug finder :D)
Seems like the Xiaomi helper is missing the Bluetooth admin, Bluetooth, Bluetooth privileged, Bluetooth scan and Bluetooth advertise permissions.
Not Allowed of them are necessary but I think only having the Bluetooth connect permission isn't enough - I could be wrong as I don't have time to search these permissions right now.
 

Alan 643228485

New member
I updated Macrodroid today and that asked me to update to MD Helper V1.10 & MD Xiaomi helper 1.2 as well.
Now I have the same problem as you, Bluetooth can't be switched off, it worked with the last version.
I'm getting the same security exceptions as detailed above
Bluetooth and Wifi permission are switched on.
 

Endercraft

Moderator (& bug finder :D)
It still works perfectly fine for me (except connecting to device), can you specify your device - and especially MIUI related info ?
 

Alan 643228485

New member
I have a Xiaomi Redmi note 10
Running MIUI 14.0.3 / Android 13

MD Can still enable/disable WiFi but not Bluetooth

Macrodroid V5.36.8
MD Helper V1.10
MD Xiaomi helper 1.2

Permission & MD helper pages are below.
 

Attachments

  • Screenshot_2023-09-01-18-20-48-456_com.miui.securitycenter.jpg
    Screenshot_2023-09-01-18-20-48-456_com.miui.securitycenter.jpg
    278.7 KB · Views: 8
  • Screenshot_2023-09-01-18-22-16-692_com.arlosoft.macrodroid.helper.jpg
    Screenshot_2023-09-01-18-22-16-692_com.arlosoft.macrodroid.helper.jpg
    681 KB · Views: 7

Endercraft

Moderator (& bug finder :D)
I have a Xiaomi Redmi note 10
Running MIUI 14.0.3 / Android 13

MD Can still enable/disable WiFi but not Bluetooth

Macrodroid V5.36.8
MD Helper V1.10
MD Xiaomi helper 1.2

Permission & MD helper pages are below.
Just enable ALL permissions (including nearby devices) then you can submit a bug report.
I have Redmi Note 11 with MIUI 14.0.1 and it works.
 

MacroDroidDev

Administrator
Staff member
It has become apparent that for whatever reason some users are having permissions issues and the Bluetooth permission is not quite functioning correctly. The solution is always to add the nearby devices permission to the Xiaomi Helper file (There is some slightly confusing relationship between Bluetooth permission and Nearby Devices permission and the OS can get into a state where it incorrectly tells the app it has Bluetooth permission when it really doesn't).

Later on I will be releasing an updated helper app containing a new Xiaomi app which aims to make the issue clear and assist in enabling the correct permission.
 

Alan 643228485

New member
The solution is always to add the nearby devices permission to the Xiaomi Helper file

Aha - yes, adding that permission makes it work again.

It's not obvious as it doesn't appear on the page that is shown when you tap "Check wifi permission" on the Xiaomi helper app, you have to go into the "App info" pages to find it.

Thanks.
 

Dimlos

Well-known member
I had reported that it didn't work either, but I turned the permissions on and off and it works.
 

SonnyOla

New member
Aha - yes, adding that permission makes it work again.

It's not obvious as it doesn't appear on the page that is shown when you tap "Check wifi permission" on the Xiaomi helper app, you have to go into the "App info" pages to find it.

Thanks.

You are absolutely right brother thanks! I forgot that Xiaomi devices have 2 forms of app info settings. The one that needs to be checked is this version:
 

Attachments

  • Screenshot_2023-09-05-15-41-12-903_com.android.settings-edit.jpg
    Screenshot_2023-09-05-15-41-12-903_com.android.settings-edit.jpg
    289.8 KB · Views: 4
  • Screenshot_2023-09-05-15-44-46-736_com.miui.home-edit.jpg
    Screenshot_2023-09-05-15-44-46-736_com.miui.home-edit.jpg
    207 KB · Views: 4
Top