[Magisk Module] Disable camera and screenshot sound

Search This thread

creeve4

Senior Member
Jan 5, 2011
2,852
582
Bountiful
Attached is a simple magisk module to disable the camera shutter and screenshot sound.
It replaces camera_click.ogg with a blank file.

Camera shutter and screenshot both use the same sound file; this disables both the camera shutter and screenshot sound.
 

Attachments

  • Disable_camera_and_screenshot_sound.zip
    18.7 KB · Views: 3,398

RikRong

Senior Member
Feb 16, 2013
1,511
586
Google Pixel 5
Google Pixel 6a
But you cannot disable the screenshot sound. This is the reason I created the module.

Mine doesn't make a noise when I have the phone on vibrate or silent. Maybe it's dependent on the carrier model of the phone?

I'm also not trying to downplay your work, I just figured some people won't root, so they might want to know you can disable the sound in the camera settings.
 
  • Like
Reactions: creeve4

Toilet Paper

Senior Member
Mar 5, 2018
69
19
Mine doesn't make a noise when I have the phone on vibrate or silent. Maybe it's dependent on the carrier model of the phone?

I'm also not trying to downplay your work, I just figured some people won't root, so they might want to know you can disable the sound in the camera settings.

I was told many years ago, that in some regions, by law, cameras should make a sound. Maybe phones in those regions have the option to disable the sound locked out/removed?
 

thanqxda

New member
Jul 4, 2019
2
2
Big thank you, mate. Even in India where there is no law prohibiting silent screenshot and silent photography, Google completely removes the option to silence camera shutter sound. No VPN or mock location helps here because this is based on the inserted SIM card.

Earlier, the only option to silence camera shutter was to go to /data/data/com.google.android.GoogleCamera/shared_prefs/com.google.android.GoogleCamera_preferences.xml
then change this value to 0:
<string name="pref_camera_sounds_key">0</string>
<string

But inexplicably, the value would nastily reset to 1 from time to time and you would get a rude sound when expecting a silent camera shot.

Thanks to OP, I just extracted his zip and replaced the original /system/product/media/audio/ui/camera_click.ogg
with OP's camera_click.ogg which in fact can be created easily as a new empty file.

Thanks to OP once again from the world of chains and fetters, gags and censors!
 
  • Like
Reactions: creeve4

Uzephi

Inactive Recognized Contributor
Apr 20, 2012
3,439
1,891
Phoenix
Google Pixel 3a
I believe that's only in japan

It is in the US as well... Section 3a:

3.

Audible Sound Standard

(a)

Requirement

Beginning 1 year after the date of enactment of this Act, any mobile phone containing a digital camera that is manufactured for sale in the United States shall sound a tone or other sound audible within a reasonable radius of the phone whenever a photograph is taken with the camera in such phone. A mobile phone manufactured after such date shall not be equipped with a means of disabling or silencing such tone or sound.

https://www.congress.gov/bill/111th-congress/house-bill/414

So it is kinda funny we can silence here in the US, but other countries that don't have this law can't.
 
Last edited:
  • Like
Reactions: Toilet Paper

Toilet Paper

Senior Member
Mar 5, 2018
69
19
It is in the US as well... Section 3a:

3.

Audible Sound Standard

(a)

Requirement

Beginning 1 year after the date of enactment of this Act, any mobile phone containing a digital camera that is manufactured for sale in the United States shall sound a tone or other sound audible within a reasonable radius of the phone whenever a photograph is taken with the camera in such phone. A mobile phone manufactured after such date shall not be equipped with a means of disabling or silencing such tone or sound.

https://www.congress.gov/bill/111th-congress/house-bill/414

So it is kinda funny we can silence here in the US, but other countries that don't have this law can't.

Interesting. What I did notice it is that you can't control the volume of the shutter audio clip. However, on my old phone Windows 10 Mobile device it would follow the Media volume, and the shutter sound was more of a nice high-resolution dim 'click' sound which sounds as if there is an actual mechanical part in the phone (someone at MS had too much fun perfecting this). Shame you can't configure any of it under Android, at least with the PIxel camera app, I should say.
 
G

GuestK00262

Guest
I was told many years ago, that in some regions, by law, cameras should make a sound. Maybe phones in those regions have the option to disable the sound locked out/removed?
Bit late here but yes you're right. However sometimes a carrier has to request the function (like samsung in UK) as some networks have the options and others dont. Stupidity at its finest.
 

thanqxda

New member
Jul 4, 2019
2
2
Alas! The solution does not work. Today after a long time I opened camera app and the shutter sound WAS there in its full rudeness. The file
/system/product/media/audio/ui/camera_click.ogg
was 0 byte and played no sound.

I had to use the old but temporary method of modifying pref_camera_sounds_key value to 0 then force stopping and restarting camera app.

Has anybody found a better solution yet to silence camera app?

However this method (camera_click.ogg) did silence screenshot which was and is not possible otherwise, as per my little research.

Big thank you, mate. Even in India where there is no law prohibiting silent screenshot and silent photography, Google completely removes the option to silence camera shutter sound. No VPN or mock location helps here because this is based on the inserted SIM card.

Earlier, the only option to silence camera shutter was to go to /data/data/com.google.android.GoogleCamera/shared_prefs/com.google.android.GoogleCamera_preferences.xml
then change this value to 0:
<string name="pref_camera_sounds_key">0</string>
<string

But inexplicably, the value would nastily reset to 1 from time to time and you would get a rude sound when expecting a silent camera shot.

Thanks to OP, I just extracted his zip and replaced the original /system/product/media/audio/ui/camera_click.ogg
with OP's camera_click.ogg which in fact can be created easily as a new empty file.

Thanks to OP once again from the world of chains and fetters, gags and censors!
 
  • Like
Reactions: Green-Bot

Green-Bot

Senior Member
Nov 2, 2012
329
88
Alas! The solution does not work. Today after a long time I opened camera app and the shutter sound WAS there in its full rudeness. The file
/system/product/media/audio/ui/camera_click.ogg
was 0 byte and played no sound.

I had to use the old but temporary method of modifying pref_camera_sounds_key value to 0 then force stopping and restarting camera app.

Has anybody found a better solution yet to silence camera app?

However this method (camera_click.ogg) did silence screenshot which was and is not possible otherwise, as per my little research.
I installed this primarily to disable camera click. However, the camera click sound is still strong like earlier. The screenshot sound is disabled though.
I am on rooted pixel 2 XL android 11 Proton AOSP ROM. Any ideas?
 

noyalas

New member
Apr 8, 2022
4
1
Attached is a simple magisk module to disable the camera shutter and screenshot sound.
It replaces camera_click.ogg with a blank file.

Camera shutter and screenshot both use the same sound file; this disables both the camera shutter and screenshot sound.
How can install this module into magisk? thanks in advance
 

lukepushsolo

New member
Aug 16, 2022
1
0
Attached is a simple magisk module to disable the camera shutter and screenshot sound.
It replaces camera_click.ogg with a blank file.

Camera shutter and screenshot both use the same sound file; this disables both the camera shutter and screenshot sound.
In Android 13 running on pixel 4 xl, screenshots can't be saved. This module will cause system UI to crash.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    I was told many years ago, that in some regions, by law, cameras should make a sound. Maybe phones in those regions have the option to disable the sound locked out/removed?
    I believe that's only in japan

    Sent from my Pixel 3a using Tapatalk
    1
    But you cannot disable the screenshot sound. This is the reason I created the module.

    Mine doesn't make a noise when I have the phone on vibrate or silent. Maybe it's dependent on the carrier model of the phone?

    I'm also not trying to downplay your work, I just figured some people won't root, so they might want to know you can disable the sound in the camera settings.
    1
    Big thank you, mate. Even in India where there is no law prohibiting silent screenshot and silent photography, Google completely removes the option to silence camera shutter sound. No VPN or mock location helps here because this is based on the inserted SIM card.

    Earlier, the only option to silence camera shutter was to go to /data/data/com.google.android.GoogleCamera/shared_prefs/com.google.android.GoogleCamera_preferences.xml
    then change this value to 0:
    <string name="pref_camera_sounds_key">0</string>
    <string

    But inexplicably, the value would nastily reset to 1 from time to time and you would get a rude sound when expecting a silent camera shot.

    Thanks to OP, I just extracted his zip and replaced the original /system/product/media/audio/ui/camera_click.ogg
    with OP's camera_click.ogg which in fact can be created easily as a new empty file.

    Thanks to OP once again from the world of chains and fetters, gags and censors!
    1
    I believe that's only in japan

    It is in the US as well... Section 3a:

    3.

    Audible Sound Standard

    (a)

    Requirement

    Beginning 1 year after the date of enactment of this Act, any mobile phone containing a digital camera that is manufactured for sale in the United States shall sound a tone or other sound audible within a reasonable radius of the phone whenever a photograph is taken with the camera in such phone. A mobile phone manufactured after such date shall not be equipped with a means of disabling or silencing such tone or sound.

    https://www.congress.gov/bill/111th-congress/house-bill/414

    So it is kinda funny we can silence here in the US, but other countries that don't have this law can't.
    1
    Alas! The solution does not work. Today after a long time I opened camera app and the shutter sound WAS there in its full rudeness. The file
    /system/product/media/audio/ui/camera_click.ogg
    was 0 byte and played no sound.

    I had to use the old but temporary method of modifying pref_camera_sounds_key value to 0 then force stopping and restarting camera app.

    Has anybody found a better solution yet to silence camera app?

    However this method (camera_click.ogg) did silence screenshot which was and is not possible otherwise, as per my little research.

    Big thank you, mate. Even in India where there is no law prohibiting silent screenshot and silent photography, Google completely removes the option to silence camera shutter sound. No VPN or mock location helps here because this is based on the inserted SIM card.

    Earlier, the only option to silence camera shutter was to go to /data/data/com.google.android.GoogleCamera/shared_prefs/com.google.android.GoogleCamera_preferences.xml
    then change this value to 0:
    <string name="pref_camera_sounds_key">0</string>
    <string

    But inexplicably, the value would nastily reset to 1 from time to time and you would get a rude sound when expecting a silent camera shot.

    Thanks to OP, I just extracted his zip and replaced the original /system/product/media/audio/ui/camera_click.ogg
    with OP's camera_click.ogg which in fact can be created easily as a new empty file.

    Thanks to OP once again from the world of chains and fetters, gags and censors!