My motorola moto g smartphone has broken screen. Is there any way to connect to pc and sync my music.? I cant see the screen to turn bluetooth on so i cant get it into discovery mode.
2 Answers
To turn on bluetooth with root access it is this command:
adb shell su -c service call bluetooth_manager 6
To turn off Bluetooth with root access it is this command:
adb shell su -c service call bluetooth_manager 8
-
On which Android version(s) have you tested these commands? That service doesn't exist in Android 4.2.1. What's more, 6 and 8 are numbers for the functions which may vary in Android releases. It is better to mention Android version for which your commands would work.– Firelord ♦Commented Sep 6, 2015 at 18:54
-
I have tested on a a Samsung Galaxy tab pro with a rooted android 4.4.2. I have also tested this on a nexus 4. Sorry for the lack of backround information and references.grepcode.com/file/repository.grepcode.com/java/ext/… stackoverflow.com/questions/20044700/… Commented Sep 6, 2015 at 20:33