Skip to content

Latest commit

 

History

History
executable file
·
33 lines (21 loc) · 1.92 KB

README.md

File metadata and controls

executable file
·
33 lines (21 loc) · 1.92 KB

Microphone-Off

Microphone-Off

Microphone-Off · GitHub license BASH Linux LinkedIn Telegram

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.

💻 Getting Started

Step 1

  1. Go to home directory and clone repository from github: cd ~ && git clone https://SergeyIvanovDevelop@github.com/SergeyIvanovDevelop/Microphone-Off

Step 2

  1. Go to the directory of the downloaded repository: cd ~/Microphone-Off

Step 3

  1. 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

⚠️ With a little adaptation of this script, it can also be used on rooted Android devices (tested on Samsung Galaxy J7. Android 6 (Marshmallow))

📑 Licence

Microphone-Off is CC BY-NC-SA 3.0 licensed.