Security exception when launching bluetooth settings with adb command

0

I am running below adb command from terminal in Mac adb shell am start -a android.intent.action.MAIN -n com.android.settings/.bluetooth.BluetoothSettings

but this throws security exception. Logs are: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN flg=0x10000000 cmp=com.android.settings/.bluetooth.BluetoothSettings } from null (pid=21715, uid=2000) requires android.permission.BLUETOOTH_ADMIN

Device used is Galaxy S9 v8.0

android
bluetooth
adb
asked on Stack Overflow Dec 14, 2018 by user3770039

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0