Skip to content

This repository contains a bash script that allows you to disable the microphone at the Linux OS level.

License

Notifications You must be signed in to change notification settings

SergeyIvanovDevelop/Microphone-Off

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

This repository contains a bash script that allows you to disable the microphone at the Linux OS level.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages