Hello,
I would like to turn on my bluetooth from PC (via usb for now) using adb commands.
until now I've found something like that:
HTML:
adb shell "am start -a android.bluetooth.adapter.action.REQUEST_ENABLE"
This works good but it requires user to accept a dialog, and if the phone would be 2 meters away it wouldn't be convenient.
I also found sth.like that:
HTML:
adb shell am start -a android.bluetooth.adapter.action.STATE_CHANGED
However it gives this error:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Original source is here: http://www.androidadb.com/source/backport-android-bluetooth-read-only/backport-android-bluetooth201/src/backport/android/bluetooth/BluetoothAdapter.java.html
If You know how to make it work, please help.
Anyone?
Related
Hallo,
after setting up SSHd in CM7 with 'dropbearkey -t rsa -f /data/dropbear/dropbear_rsa_host_key' it outputted the key to the screen with escape sequences. After that my console output (especially ls) looks like this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I tried 'reset' already but gives me some escape characters only as well. Restart of the phone doesn't help either.
How can i fix this?
Edit: Somehow color sequence codes have been enabled for ls. Don't know how this happened. I can temporarily (for one session) disable them with 'alias ls='ls --color=never''.
How can i do that permanently and how could that happen?
I am having issues trying to root my phone. I've been trying to found out what i can through the forums and google about how to fix the problem, but can't seem to find a way past it. So the problem must either be really obvious to fix or no one seems to have an answer out there.
After i reboot out of fast boot i try to execute the adb shell commands, i end up receiving a "permissions denied" message.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I should also note that "/preinstall/dosu" causes it error and exit from the adb shell.
Does anyone know how to get past the permissions error?
Hey @ all,
I've got a problem with the Android Virtual Device Manager.
I go step by step with this tutorial ([Guide] [Explained] Your first Android App
So i wan to create a new Virtual Device, but everytime I click on "OK" nothing happens. And with nothing, I mean nothing. Neither an force exit nor an error.
These are my settings, i hope someone can help me
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
What about the virtual devices list? Does that get updated?
Have you tried creating a new virtual device from a terminal?
Hello folks,
I currently try to set a developer option in a huawei device (PRA-LX1 | running android 7.0) using shell or SecureTask.
I found plenty info on google how to change the lock screen type but thats not what I'm looking for.
I tried finding the actual setting using
Code:
adb shell settings list secure
with no success.
The setting is called "Screen Lock" located in developer options. The device is rooted.
Can someone help me out with a command to toggle that?
Thank you very much!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hi guys, probably this is not the place but I'll try!
I'm having a little problem on my X2 6GB/128GB and I think this it's not a normal situation!
What happens is that, I can't get a response to any commands on the system terminal.
The only command I can get is this one: data/media/mm of the Magisk recovery module, but only at the TWRP terminal
In Termux says it was not found.
I need a little hand here, can somebody help me?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Before using the terminal command in android, it is important that busybox is installed, and in relation to its term while you are in the termux folder (/data/data/com.termux/files/home) it will use the (/data/data/com.termux/files/usr/bin), instead of using android itself (/ data / bin), then use the term in the root folder to do android or under the Android Emulator.