Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I completely mute the phone using ADB?

Tags:

android

adb

I would like to turn off all the sounds on my Android device, using ADB.

Is that possible?

like image 908
syntagma Avatar asked Nov 05 '14 09:11

syntagma


People also ask

What can I do with ADB commands?

Android Debug Bridge (adb) is a versatile command-line tool that lets you communicate with a device. The adb command facilitates a variety of device actions, such as installing and debugging apps, and it provides access to a Unix shell that you can use to run a variety of commands on a device.

How do I open ADB from command prompt?

Open a command window in the folder by holding shift and right-clicking in an empty spot in the folder and selecting "Open command prompt/PowerShell here" in the menu. Then you can start using ADB — connect your phone and try . ADB devices to see if it's working. A list with attached devices should show up.


1 Answers

In a terminal run:

adb shell input keyevent 164
like image 78
Nelson Almendra Avatar answered Sep 21 '22 00:09

Nelson Almendra