[TUTORIAL] How to turn off notification vibrations (Facebook Messenger) - Huawei Watch 2

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!

Related

change when automatic power saving turn on in cm13

Go to settings enable developer options check root and allow apps and then scroll down and toggle terminal app
Go to settings database editor in Google play download and allow it root
use stock cm13 terminal app allow root
And plug this in
Su
Allow root then
Plug this in
pm grant by4a. setedit android. permission. WRITE_SECURE_SETTINGS
Then go to settings database editor app and go to global then find low power and set to whatever you want I set it to 25 as in 25% text should be entered as only numbers

[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

[TIP] Immersive Mode: No Root Required

Take full advantage of the display with enabling Immersive Mode on a per-app basis,by using ADB commands w/this app,NO ROOT REQUIRED! :good:
(others are available,look around in the Google Play Store/APK Mirror/F-Droid/etc. for your app of choice):
https://play.google.com/store/apps/details?id=jp.sakeapps.immersivesettings&hl=en
"Immersive Settings" is an application that displays the screen in immersive mode by rewriting the system settings.
Software keyboard operates normally even in immersive mode.
Before using this application, you need to grant the following "WRITE_SECURE_SETTINGS" permission via ADB:
adb shell pm grant jp.sakeapps.immersivesettings android.permission.WRITE_SECURE_SETTINGS
Immersive mode will continue even after uninstalling this application.
I hope Razer implements this

Changing animations scale without developer options

Hi everybody,
Is there any way to change animations scale with spesific app, i need this because banking apps don't allow nfc payment with developer options turned on. I searched google but i couldn't find anything relatable to my issue. Any bypassing method is welcome, for example, i don't turn off developer options but somehow nfc payment works.
Late reply but here's how i made it work on Samsung OneUI 5.1 Android 13 , installed com.zacharee1.systemuituner (SystemUI Tuner) by Zachary Wander from Play Store , granted it WRITE_SECURE_SETTINGS permission through adb by enabling developer options and usb debugging.
Steps
1. Install app (the app also guides you)
2. Turn on dev options , turn on usb debug , connect to pc
3. go to abd shell of the device , type "pm grant com.zacharee1.systemuituner android.permission.WRITE_SECURE_SETTINGS"
4. revoke usb debug if you want and turn off developer options
5. go to app and tweak animation speed in the UI menu (0.4 is sweet)
6. set up persistant options (there is a guide in the app)
7. restart and check if the settings persists.
8. put system ui tuner to deep sleep if you only use it for animation scaling

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