我有一个强制用户限制的 DevicePolicyManager 应用程序DISALLOW_SHARE_LOCATION
。我注意到的是,当限制被强制执行时,蓝牙会停止发现设备。在 logcat 输出中,我发现了一些消息:
09-27 09:09:16.564 629-676/system_process W/BroadcastQueue: Appop Denial: receiving Intent { act=android.bluetooth.device.action.FOUND flg=0x10 (has extras) } to ProcessRecord{c929e01 1066:com.android.systemui/u0a15} (pid=1066, uid=10015) requires appop android:coarse_location due to sender com.android.bluetooth (uid 1002)
似乎蓝牙发现与android:coarse_location
?DISALLOW_SHARE_LOCATION
据我所知,禁用。有解决方法吗?