I'm creating tests with UiAutomator and Vibration is used in app, but don't need it in tests.
I'm doing so:
InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand("adb shell cmd appops set <app package name> VIBRATE ignore")
but this command is not working for me, maybe its because vibration goes from notification.