This repository contains a bash
script that allows you to disable the microphone at the Linux
OS level. As you know, in Linux
ALL is a file, therefore, to ensure that microphones are disabled in the system (there may be many reasons why this may be necessary), it is enough to delete the microphone files. To restore the files, just restart the device discovery service. This functionality is implemented in the bash
script below.
Step 1
- Go to home directory and clone repository from github:
cd ~ && git clone https://SergeyIvanovDevelop@github.com/SergeyIvanovDevelop/Microphone-Off
Step 2
- Go to the directory of the downloaded repository:
cd ~/Microphone-Off
Step 3
- Execute the
bash
script:./mic_switch <mic_device_filename> <on>|<off>
Note: The hardest part is identifying the microphone file. For example, it could be pcmC1D0c
Android
devices (tested on Samsung Galaxy J7. Android 6 (Marshmallow)
)
Microphone-Off is CC BY-NC-SA 3.0 licensed.