Help setting developer settings using shell or SecureTask - Android Q&A, Help & Troubleshooting

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"
}

Related

[Q] How do I set up Face Unlock?

Can anyone help me to set up the face unlock thing? I cant seem to be able to enable it.
Yes I am on .28 stock and rooted. (not unlocked)
Here is a screen shot of were I usually go to set a different security option:
{
"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"
}
It seems that I have some options grey'd out. I am currently using a Pattern.
I had to delete my credential storage (had my pad setup to connect to work email and the policy didn't allow face unlock). Then all the options were available but I wouldn't do this if you have policies for Email or vpn and so on.
Thank you, that worked.
Thread can be closed...

[Q] Little help with coding

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?

[Q] Problem with Android Virtual Device Manager

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?

How to add/edit/rearrange drop down/notification shortcuts?

Guys,
Bought the RN9 PRO today, but I cannot find a way to edit/add/rearrange the shortcuts in the drop down notification area. I'm on the latest update for MIUI 11.
Any ideas? This is what I see:
{
"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"
}
Thanks.
Same here.
I think we cannot arrange it.
It's a bug that happens after restoring Google backup. The fix is easy using adb, just type: adb shell settings put secure sysui_qs_tiles default
Check there if you need more instructions https://xiaomi.eu/community/threads/quick-settings-edit-tile-missing.54865/#post-543658
This restores quick settings back to default and the "edit" button will reappear. Worked for me.

Help identifying settings table names for Location Preferenecs

Hey I'm trying to use the "settings put" commands to change these 2 settings here:
{
"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"
}
Any idea which names correspond to these 2 settings?
Many apps want the "High Accuracy" location enabled to perform some function, so I'm constantly toggling them back and forth.
I figure I'll let a script run in the background to auto-disable them after every 30 minutes or so.
Someone gave me the bright idea of comparing the outputs of "settings list". Seems obvious in hindsight.
Code:
[global]
wifi_scan_always_enabled=0
assisted_gps_enabled=0
network_recommendations_enabled=0
[secure]
location_changer=2
location_mode=0
I'm getting warmer...

Categories

Resources