java.lang.SecurityException: Need BLUETOOTH PRIVILEGED permission

user2822074 picture user2822074 · Nov 14, 2013 · Viewed 15.4k times · Source

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

java.lang.SecurityException: Need BLUETOOTH PRIVILEGED permission

Note: BLUETOOTH_ADMIN permission is already included in AndroidManifest file.

Answer

wsgh picture wsgh · Jul 14, 2015

You can't use this permission if your app is a third party app (non-system app). To learn more, see Android API: BLUETOOTH_PRIVILEGED