How to change polling rate with adb? - General Questions and Answers

Using commands adb shell settings put system peak_refresh_rate and adb shell settings put system min_refresh_rate caps your refresh rate to the highest possible and lowest possible number to your liking, however is there a command that does this with sampling rate? adb shell settings put system peak_polling_rate for example does nothing.

Related

Change keys light duration whit terminal..

Hello,
Small guide to change the soft key light duration.
Download emulator.
Open and grant permissions (su)
After this you have to digit
settings put system button_key_light 0
THIS FOR ALWAYS OFF..
IF YOU NEED ALWAYS ON DIGIT
settings put system button_key_light -1
NEED 1.5 SEC? NO PROBLEM DIGIT
settings put system button_key_light 1500
FOR 6 SEC
settings put system button_key_light 6000
NO OTHER ENTRY ARE AVAILABLE..
TESTED ON S7 EDGE..EXYNOS G935F..
If you share please enter the link of my post. thank you.
Also works well with Tasker and the run shell command. I have them disabled at night when reading as they are to bright. Didn't know about the different time settings.

[Guide][NO ROOT][Android 7.x.x] How-To disable/enable Heads-Up Notifications (adb)

It is a persistent, nerve-racking and heated subject since the Android 7.x.x (nougat) release. Even if you can disable the heads-up notifications in an Android app, they still occur. This annoys many, especially if they is enough for them to display Android notifications in the status bar. This is due to a change in the Android operating system, which is only approached with adb/fastboot knowledge. How to disable these heads-up notifications globally, I show you in today's brief guide.
Requirements
Knowledge of adb / fastboot
Guideline
Enable the Developer Options:
Go to Settings > About
Tab build-number seven time, until you get the on-screen message that you are now a developer.
Enable USB Debugging:
Got to Settings > Developer Options and check USB Debugging
Connect your smartphone via USB to PC
Navigate to the folder where your adb/fastboot are installed to and open a CMD, by right-click > open command prompt here.
Now enter the command
Code:
adb devices
and wait until the CMD shows the serial number of your smartphone followed by the term devices
To disable the heads-up notifications from Android 7.x.x, enter the command
Code:
adb shell settings put global heads_up_notifications_enabled 0
If you want to re-enable the heads-up notifications, replace the command in the last step with
Code:
adb shell settings put global heads_up_notifications_enabled 1
That's it. You can disable nad/or enable heads-up notifications on Android 7.x.x acccording to your personal needs.
And here's a tutorial on how to use this command to block heads up notifications on a per-app basis, like when gaming or watching a video: https://www.xda-developers.com/block-heads-up-notifications-gaming-videos/
MishaalRahman said:
And here's a tutorial on how to use this command to block heads up notifications on a per-app basis, like when gaming or watching a video: https://www.xda-developers.com/block-heads-up-notifications-gaming-videos/
Click to expand...
Click to collapse
Oh didn't see that one. Only one mentioning an App for it that didn't work on my end, which is why I decided to open up this thread. Thanks for the heads up!
Sent from my htc_pmeuhl using XDA Labs

hiding the brightness slider and remove unneeded icons from the quick settings

hi dear friends , how are you?
i have samsung s6 with stock rom , android 7
i want to know if some one know if i will use the command
adb shell settings put system notification_panel_brightness_adjustment 0
if it will hide with brightness slider iin my phone
and also i want to know if i can remove unneeded icons from the quick settings
i want to keep only WiFI and Location
i heard of this command
adb shell settings put secure sysui_qs_tiles
it will work ?
thank u very much!

[TUTORIAL] How to turn off notification vibrations (Facebook Messenger)

Hi
So this is my first tutorial on XDA. I have been looking to turn off vibrations for Facebook Messenger on my Huawei Watch 2. I couldn't find any reasonable way to turn them off so I've spent some time thinking and I found a solution:
Install Messenger on your watch
Enable Developer Options also on your watch
Turn on ADB debugging in watch settings
Download platform tools
HTML:
https://developer.android.com/studio/releases/platform-tools
Connect the device and open an console with ADB (inside platform tools folder).
Code:
adb shell or .\adb shell (depending on what is working for you)
After that verify the name of the launcher package
Code:
pm list packages
There you should find a package called com.facebook.orca - this is the package we want to disable vibrations for the app
Code:
cmd appops set com.facebook.orca VIBRATE ignore
If you want to enable the vibrations again use:
Code:
cmd appops set com.facebook.orca VIBRATE allow
Hope that works for you!

Question ADB command for Edit the Quick panel? Remove icons with adb?

After connecting the watch over Wi-Fi to ADB server, how to delete each of the "Quick Panel" apps?
Do not think you can actually remove these items. They are not apps. You can only remove them from the panel with the Wear app.
captain_tyr said:
After connecting the watch over Wi-Fi to ADB server, how to delete each of the "Quick Panel" apps?
Click to expand...
Click to collapse
That's not really what ADB is used for. It would be faster and easier to remove them by swiping over and tapping the "+", then tap the "-" for each quick launch icon you want removed from the panel.
Yes.. I know for manual steps.. I'm building automatisation script using adb, so I can setup multiple watches to single application mode for one project. The script need to clean up watch from bulk apps, install requred apk, lock watch to that app (user should not be able to access tiles, applications and other stuff).
Current state: My script can enrol and setup 50 watches, all at same time. The only thing what is left in script to finish is cleaning up the quick panel. I know I can record screen and mimic swipes and taps over adb, but I was thinking if there is a way to get package name and activity from shortcuts in quick panel and do it simpler.
If you wake up the watch with (wrist up). How to open "Quick Settings panel" on Samsung Watch 4 and remove specific shortcuts, using ADB?
When I do:
adb shell dumpsys activity broadcasts | grep -iE ".+\.[0-9A-Z_\-]+:$"
I get:
com.google.android.apps.wearable.systemui.CLOSE_QUICK_PANEL
com.google.android.apps.wearable.systemui.DISABLE_EXPAND_QUICK_PANEL
com.google.android.apps.wearable.systemui.ENABLE_EXPAND_QUICK_PANEL
com.google.android.apps.wearable.systemui.OPEN_QUICK_PANEL
com.google.android.apps.wearable.systemui.QUICK_PANEL_STATE_CLOSED
com.google.android.apps.wearable.systemui.QUICK_PANEL_STATE_OPENED
All of this commands do not work:
adb shell am start com.google.android.apps.wearable.systemui.OPEN_QUICK_PANEL
adb shell am start -n com.google.android.apps.wearable.systemui.OPEN_QUICK_PANEL
adb shell am start -a com.google.android.apps.wearable.systemui.OPEN_QUICK_PANEL
I figure out how to navigate between shortcuts in Quick panel, but I can't press on "-" to disable (remove them). DPAD_ENTER do not work.
For navigating I use:
Array=("DPAD_LEFT" "DPAD_RIGHT" "DPAD_UP" "DPAD_DOWN")
for key in "${Array[@]}"; do
echo "$keypress";
adb shell input keyevent "$key";
done

Categories

Resources