Does modifying "adb shell wm size" affect touch response? - LG V30 Questions & Answers

I changed my settings for rounded corners and the display size but I forgot to backup what it was originally.
What are the defaults for:
Code:
adb shell settings get secure sysui_rounded_size
adb shell settings get secure sysui_rounded_content_padding
adb shell wm size
I found the following to be more to my preferences by toning down the large rounded corners:
Code:
adb shell settings put secure sysui_rounded_size 8
adb shell settings put secure sysui_rounded_content_padding 5
adb shell wm size 1440x2780
But I'm having an issue with touch responsiveness and I don't know if it's because I altered these settings. I will often have to tap multiple times for the screen to respond; but it's inconsistent. Kind of like the digitizer goes to sleep and I have to tap once to wake it up and then again for a touch to respond. But if I can end up tapping a bunch of times before it actually "wakes up".
I am running the latest LOS rom from this forum.

Hi. Would someone please type this adb command so that I can get the default values?
Code:
adb shell settings get secure sysui_rounded_size
adb shell settings get secure sysui_rounded_content_padding

Related

[Q] Disable Lock Screen thru ADB

I am running CM 7.1 Jordon Stable
So I disabled the slider unlock, but it stopped recognizing my gesture for some reason and I cannot figure out how to login to my phone. Not sure if I can change that setting somehow from ADP or do something from a terminal... Any ideas?
When I say gesture, I am not referring to the password based on the motion with the dots, I am saying the screen where the unlock / silent toggle was has been disabled and I cannot get passed there.
Here are the things I have tried already
----
Attempt 1:
$ ./adb -d shell
# cd data/data
# sqlite3 ./com.android.providers.settings/databases/settings.db
SQLite version 3.7.2
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> update system set value=1 where name='lockscreen_disabled';
sqlite> .exit
# reboot
Attempt 2:
adb shell
input keyevent 82
---
Neither of these worked. I think the solution should be in the updating the settings.db, but maybe its a different row/record that contains "ENABLE slider"?
Help would be appreciated!

Amazfit Pace / Stratos Tweak and Info Summary

These are tweaks i tested myself and wanted to make sure, that they don't get lost. Some may only work on custom roms. Please leave a post here, if you have any further settings or interesting commands.
# time format 12/24
adb shell settings get system time_12_24
> 24
adb shell settings put system time_12_24 {12/24}
# screen timeout (14s and 61s seems to work, not sure why others aren't working)
adb shell settings get system screen_off_timeout
> 14000
adb shell settings put system screen_off_timeout 61000
# font size
adb shell settings get system font_scale
> 1.0
adb shell settings put system font_scale 0.8
# display size
adb shell getprop ro.sf.lcd_density
> 238
adb shell wm size
> Physical size: 320x300
adb shell wm size 440x600
adb shell wm density
> Physical density: 238
adb shell wm density 200
# charging screen
adb shell getprop prop.sys.show_chargingui
> true
adb shell setprop prop.sys.show_chargingui false
# language
adb shell setprop persist.sys.language en
adb shell setprop persist.sys.country {DE,GB,...}
# adb shell over wifi
adb connect <IP>:5555
adb -s <IP>:5555 shell
# control touchscreen by remote adb
adb shell input touchscreen swipe <x1> <y1> <x2> <y2> [duration(ms)]
adb shell input touchscreen tap <x> <y>
# keep screen on without changing screen off time
while [ true ]; do adb shell input touchscreen swipe 0 0 0 0; sleep 5; done
# restart launcher
adb shell am force-stop com.huami.watch.launcher
# get all system properties
adb shell getprop
# get android version
adb shell getprop ro.build.version.release
# get battery status information
adb shell dumpsys battery
# create screenshot
adb shell screencap -p /sdcard/screen.png
# enable installation from unknown sources
adb shell settings put secure install_non_market_apps 1
# install apk
adb install *.apk
# list installed packages
adb shell pm list packages
# list only installed 3rd party packages
adb shell pm list packages -3
# show installed package version
adb shell dumpsys package <package> | grep versionName
# uninstall package
adb uninstall <package>
# useful good working watch apps
Android Filemanager
Calendar Widget
Rearrange Widgets
AMF, Reply to Notifications
# roms
stratosfied

Need help writing script

Greetings,
I have these commands I run from cmd :
Code:
adb shell settings put secure qs_tile_row 2
adb shell settings put secure qs_tile_column 5
adb shell settings put secure sysui_qqs_count 5
The thing is, that these do not survive a reboot, so I wanted to create a script that would run the shell commands on boot.
I created a file in init.d but I can't get a hold of the syntax to put these exact 3 commands.
Any help is appreciated.

How to turn on and off the WiFi through ADB (no root)?

I found I can use these ADB commands to turn on and of the WiFi of a rooted phone:
Code:
adb shell su -c 'svc wifi enable'
adb shell su -c 'svc wifi disable'
However, I'm interested in doing it without having to root the phone for an automatic testing I'm doing. Do you guys know if this is possible?
I found this project which allows me to connect to a WiFi through ADB commands not being a root user. I was wondering if anyone knows how to disconnect also from ADB and not being a root user.
UPDATE:
I've been recently trying:
Code:
C:\adb>adb shell am start -a android.intent.action.MAIN -n com.android.settings/.wifi.WifiSettings
adb server is out of date. killing...
* daemon started successfully *
Starting: Intent { act=android.intent.action.MAIN cmp=com.android.settings/.wifi.WifiSettings }
Warning: Activity not started, its current task has been brought to the front
and
Code:
C:\adb>adb -s serial_number shell am start -a android.intent.action.MAIN -n com.android.settings/.wifi.WifiSettings
Starting: Intent { act=android.intent.action.MAIN cmp=com.android.settings/.wifi.WifiSettings }
Warning: Activity not started, its current task has been brought to the front
I also found doing this type of command:
Code:
adb shell input keyevent 20 & adb shell input keyevent 23
I can navigate and click. The problem seems to be that I always finish in a different state so the next time I input the command
Code:
adb -s serial_number shell am start -a android.intent.action.MAIN -n com.android.settings/.wifi.WifiSettings
I start in a different place and start clicking elsewhere. I've tried returning home, but that doesn't fix the issue. Is there any way to start always from the same point inside the WiFi settings?
Thanks!
natiya said:
I found I can use these ADB commands to turn on and of the WiFi of a rooted phone:
Code:
adb shell su -c 'svc wifi enable'
adb shell su -c 'svc wifi disable'
However, I'm interested in doing it without having to root the phone for an automatic testing I'm doing. Do you guys know if this is possible?
Click to expand...
Click to collapse
Turn WiFi off
Code:
adb shell settings put global airplane_mode_on 1
adb shell settings put global wifi_on 0
adb shell settings put global wifi_scan_always_enabled 0
Afterwards you've to re-boot the device.
Turn WiFi on
Code:
adb shell settings put global airplane_mode 0
adb shell settings put global wifi_on 1
adb shell settings put global wifi_scan_always_enabled 1
jwoegerbauer said:
Turn WiFi off
Code:
adb shell settings put global airplane_mode_on 1
adb shell settings put global wifi_on 0
adb shell settings put global wifi_scan_always_enabled 0
Afterwards you've to re-boot the device.
Turn WiFi on
Code:
adb shell settings put global airplane_mode 0
adb shell settings put global wifi_on 1
adb shell settings put global wifi_scan_always_enabled 1
Click to expand...
Click to collapse
Thank you, but those don't produce any change on my device. Actually, if I put the first two commands without doing "adb kill-server" in between, I get this message:
error: more than one device/emulator
Click to expand...
Click to collapse
But the output when they work is:
adb server is out of date. killing...
* daemon started successfully *
Click to expand...
Click to collapse
and nothing happens.
I've been recently trying:
Code:
C:\adb>adb shell am start -a android.intent.action.MAIN -n com.android.settings/.wifi.WifiSettings
adb server is out of date. killing...
* daemon started successfully *
Starting: Intent { act=android.intent.action.MAIN cmp=com.android.settings/.wifi.WifiSettings }
Warning: Activity not started, its current task has been brought to the front
and
Code:
C:\adb>adb -s serial_number shell am start -a android.intent.action.MAIN -n com.android.settings/.wifi.WifiSettings
Starting: Intent { act=android.intent.action.MAIN cmp=com.android.settings/.wifi.WifiSettings }
Warning: Activity not started, its current task has been brought to the front
This opens the screen where you can turn on and off the WiFi but it doesn't do it...not sure if I'm missing something!
Just to be shure, make shure your using the latest version of ADB offered by google here:
https://developer.android.com/studio/releases/platform-tools
You could use adb wifi
After activating when using usb it and connecting through the same wifi:
svc wifi enable
works without root
I'm a little late to this thread, but if it still helps the OP, non-rooted Android 10 and below allowed wireless adb connections AFTER a USB connection was first established (adb start-server && adb tcpip 5555 && adb connect [IP]:5555), but that changed (for the better) in Android 11 and above with the new new Developer options Wireless debugging random port assignments (adb connect [IP]:[PORT] or adb pair [IP]:[PORT] [PIN]) such that the adb wireless connection never needs USB cable ever again.
Given Android 11 allows Developer options Wireless debugging via a random port, and Android 12 new Developer options Wireless debugging allows that to be accessed even easier with a new Developer options Wireless debugging tile, the only thing missing is a way to turn the non-rooted Android Wi-Fi on or off via adb (which was the OP's original question after all).
Maybe this will work if we can figure out how to tap the buttons?
adb shell "am start -a android.settings.WIFI_SETTINGS"
Click to expand...
Click to collapse
For swiping on the phone from adb this works...
C:\> adb shell input swipe 500 1000 500 100
This will instantly swipe from center to the top of the screen.
You can add a time period, e.g., take 3 seconds to swipe that.
C:\> adb shell input swipe 500 1000 500 100 3000
Click to expand...
Click to collapse
But you want to tap the buttons, right?
If we can figure out the positions, maybe this would work?
C:\> adb shell am start -n com.google.android.gms/.ads.settings.AdsSettingsActivity
That should pop up an Android "Reset Advertising ID" settings page.
C:\> adb shell input tap 500 400
If run after the command above, that will tap the button to
asking to "Opt out of Ads Personalization" in that Activity
if that button is like mine, at the X=500 & Y=400 location.
On my phone, this is the "Reset advertising ID" button location:
adb shell input tap 500 200
On my phone, this is the "OK" button on that GUI above.
adb shell input tap 700 1000
C:\> adb shell am force-stop com.google.android.gms
If run after bringing up the advertising-id reset Activity,
it will close the activity without doing anything else.
Click to expand...
Click to collapse
Here is a somewhat related post...
[adb,scrcpy,vysor] What ports does Android 12 randomly set when Wi-Fi connecting via Wireless debugging adb "pair" or "connect" commands?
Type adb tcpip 5555 in the command line or Terminal and press Enter.
Find your phone's IP address in Settings > About Phone > Status > IP Address.
Back in the command line or Terminal, type adb connect [your Android's IP address].
Finally, press Enter again.
Regards,
J Wick

Adaptive Icon Shape (need help!)

Hello!
I've been trying to get system wide circular Adaptive Icon shape on my S10.
I tried the app #Hex_. There's an Android Q theme that sets the Adaptive Icon to circular but It also changes a bunch of System UI elements that I don like and for some reason it has disappeared from the Google Play Store.
I also tried the following ADB commands, all of them but the one for circular icons work.
Pebble
adb shell
cmd overlay enable com.android.theme.icon.pebble
Vessel
adb shell
cmd overlay enable com.android.theme.icon.vessel
Tapered rectangle
adb shell
cmd overlay enable com.android.theme.icon.taperedrect
teardrop
adb shell
cmd overlay enable com.android.theme.icon.teardrop
Squircle
adb shell
cmd overlay enable com.android.theme.icon.squircle
Rounded rectangle
adb shell
cmd overlay enable com.android.theme.icon.roundedrect
Circular (not working)
adb shell
cmd overlay enable com.android.theme.icon_pack.circular.android
Does anyone know how to get circular Adaptive Icon shape?
Thanks in advance.

Categories

Resources