• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[TIP] Disable Camera Sounds (root required)

Search This thread

j4mm3r

Senior Member
May 12, 2010
248
74
Ah... just having fun with root...!

So, if you want to get rid of the camera sounds, follow these steps on your rooted X10:

Prerequisite:
Rooted X10 using the root tutorial (http://forum.xda-developers.com/showthread.php?t=711907).

Busybox installed (download from market)

Fire up your favorite terminal emulator on the phone or launch a shell using "adb shell" (requires android sdk) and run along:

First make the /system partition writable:
Code:
# mount -o remount,rw -t yaffs2 /dev/mtdblock2 /system

Checkout these files:
Code:
# cd /system/media/audio/camera
# ls -l sound0
-rw-r--r--    1 0        0             9164 Feb 21 02:48 no_sound.ogg
# ls -l sound1
-rw-r--r--    1 0        0             4384 Jun 29 04:33 af_success.ogg
-rw-r--r--    1 0        0             6515 Jun 29 04:33 self_timer.ogg
-rw-r--r--    1 0        0           10806 Jun 29 04:33 shutter.ogg
-rw-r--r--    1 0        0            5987 Jun 29 04:33 start_rec.ogg
-rw-r--r--    1 0        0             6279 Jun 29 04:33 stop_rec.ogg

And there are more directories like sound2 and sound3. OK so basically, just replace each of the sounds under soundX folder with no_sound.ogg
Code:
# cp sound0/no_sound.ogg sound1/af_success.ogg
# cp sound0/no_sound.ogg sound1/self_timer.ogg
# cp sound0/no_sound.ogg sound1/shutter.ogg
# cp sound0/no_sound.ogg sound1/start_rec.ogg
# cp sound0/no_sound.ogg sound1/stop_rec.ogg

So when you've got sound1 folder fully patched, simply copy it over sound2 and sound3:
Code:
# cp sound1/* sound2/
# cp sound1/* sound3/

Et Voila!

(You may have to restart the Camera app by killing it via Task killer application or simply restart your phone)


Further development:

Want the phone to say "Say Cheese..."?

You can basically record your own sounds in "ogg" format and replace them in the respective folder either sound1, 2 or 3... but just make sure that you record sounds which are under 5 seconds or so... longer sounds really doesnt make much sense and I really don't know how the Camera app is designed to handle it... YMMV.