How to execute adb commands for ON and OFF bluetooth and Location?

Hi Guys
I open Notifications and try to click Bluetooth and Location ,The Notifications opened but not click on Bluetooth or Location button :frowning:
so i want to try run driver.executeScript(“mobile: shell”, lsCmd); for example
for ON and OFF Bluetooth and Location
i search for solution Anyone have an example to send me

Thanks :slight_smile:

I Found solution
Enable bluetooth: adb shell am broadcast -a io.appium.settings.bluetooth --es setstatus enable
Disable bluetooth: adb shell am broadcast -a io.appium.settings.bluetooth --es setstatus disable
Enable location: adb shell settings put secure location_mode 3
Disable location: adb shell settings put secure location_mode 0