SecurityException:缺少android.permission.INTERACT_ACROSS_USERS进行蓝牙访问

时间:2018-11-13 13:15:25

标签: android android-permissions android-bluetooth

尝试在非系统应用程序上解决此问题:“ BluetoothAdapter :: getProfileProxy”。仅在android 8.1上观察到,但不可重现。

Caused by: java.lang.SecurityException: query intent receivers: Neither user 15010171 nor current process has android.permission.INTERACT_ACROSS_USERS.
at android.os.Parcel.readException(Parcel.java:2021)
at android.os.Parcel.readException(Parcel.java:1967)
at android.content.pm.IPackageManager$Stub$Proxy.queryIntentServices(IPackageManager.java:4830)
at android.app.ApplicationPackageManager.queryIntentServicesAsUser(ApplicationPackageManager.java:1255)
at android.content.Intent.resolveSystemServiceAsUser(Intent.java:8365)
at android.bluetooth.BluetoothA2dp.doBind(BluetoothA2dp.java:432)
at android.bluetooth.BluetoothA2dp.<init>(BluetoothA2dp.java:405)
at android.bluetooth.BluetoothAdapter.getProfileProxy(BluetoothAdapter.java:3034) 

问题:

想知道是否有人可以解释这个问题。

0 个答案:

没有答案