adb shell command to Turn ON Bluetooth & make it discoverable

We can turn on the Bluetooth using adb command as below,

 $ adb shell am start -a android.bluetooth.adapter.action.REQUEST_ENABLE

once you type this on your desktop/laptop, Android will prompt the user on Mobile / Android device for allowing permissions to turn ON the bluetooth, like below

We can make the Bluetooth Discoverable using adb command as below,


Subscribe with Valid Email Id to receive updates in Inbox. ( Secured by Google FeedBurner )

   


$ adb shell am start -a android.bluetooth.adapter.action.REQUEST_DISCOVERABLE 

This will prompt user on android device requesting permissions to make your device discoverable as,

Reference : https://developer.android.com/reference/android/bluetooth/BluetoothAdapter#ACTION_REQUEST_ENABLE

lynxbee_ezoic

Leave a Comment

Android Android Build system Android Commands Android Java Applications Application Libraries Application Stack / User Interface Bash / Shell Scripts Bluetooth driver Cloud Technologies Commands and Packages Compilation Content Management System Core Kernel C Programs Development & Build Development, Debugging and Performance Tools Development Environment Setup Django & REST Api Errors & Failures Git Hardware Platforms HTML JAVA Programs Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL Multimedia Audio, Video, Images NDK / Middleware / HAL OS Concepts PHP Programming Languages Scripting and Automation Search Engine Optimisation ( SEO ) Social Media Source Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized Web design and development Website Hosting Wordpress Yocto / Bitbake / Openembedded