java.lang.SecurityException: Need BLUETOOTH PRIVILEGED permission

前端 未结 5 2279
天涯浪人
天涯浪人 2021-02-19 22:12

Has anyone meet the same problem as the following error message shows when calling bluetoothDeive.createBond() method with android 4.4 api?

j

5条回答
  •  粉色の甜心
    2021-02-19 22:38

    I run on this error, and only I can say, you need to install your app as a system privileged app, to go to system folder and try to copy app to the app folder or priv_app folder. On my Android platform, when I made folder inside priv_app folder for my app and copied my apk to it and restarted Android, everything worked OK. I my case I added in manifest all this permissions at the beginning, but it worked only after this step above.

提交回复
热议问题