Я делаю так:
Код: Выделить всё
InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand("adb shell cmd appops set VIBRATE ignore")
Подробнее здесь: https://stackoverflow.com/questions/635 ... ps-via-adb
Код: Выделить всё
InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand("adb shell cmd appops set VIBRATE ignore")