I have tested this to work on LP8, should work on other stock ROMs too.
Step 1.
Rename the camera shutter sounds. You can find these files in /system/media/audio/ui. The files are outlined below. You can either do this in a file explorer that supports root, or through adb. In fact the commands below are the exact commands you need to use after you use adb root and remount the /system as read/write.
Code:
adb shell
su
cd /system/media/audio/ui
mv camera_click.ogg camera_click.ogg.bak
mv Shutter_01.ogg Shutter_01.ogg.bak
mv camera_click_short.ogg camera_click_short.ogg.bak
mv Cam_Start.ogg Cam_Start.ogg.bak
mv Cam_Stop.ogg Cam_Stop.ogg.bak
Step 2.
The above will still leave the camera auto-focus sound. To remove that, replace the Camera.apk in /system/app with the attached file.
It is best to take a backup of the Camera.apk before you replace it by copying it somewhere else.
If you have placed the Camera.apk attached here in a folder called NoSound, then the commands below can be run on adb to do this -
Code:
adb pull /system/app/Camera.apk
adb pull /system/app/Camera.odex
adb push NoSound\Camera.apk /system/app/Camera.apk
works perfectly on lpf
What also works: use Automateit Pro or Tasker:
Make a rule that kicks in when:
camera starts -> disable sound
camera stops -> eable sounds
That kills the focus beep, also the crazy beep beep with the self timer.
As simple as that.
Plus remove all unwanted oggs with root explorer.
A couple of questions...
Can I manage the focus beep by downloading Automatelt or do I need Pro ??
also can post 1 be done on a rooted Gingerbread 2.3.6 phone or only ICS ?
markmessier8888 said:
A couple of questions...
Can I manage the focus beep by downloading Automatelt or do I need Pro ??
Click to expand...
Click to collapse
can anyone verfiy that it 100% works?
I have been looking for this, i will try it
Any one tried this on LPS?
it seems to work only on LPF, when i tried on LPG, my camera app was lost.
it shouldn't affect your camera app in any way but I dunno why it happened to you. I removed all the ogg files in the /system/media/audio/ui/ folder except the one for low battery notification since it's the only one I ever need. After that no more focus, shutter or beep sounds.
Working fine on my lpg. the icon itself may have moved location in touchwiz...
The autofocus sound is part of the camera.apk
You can create this yourself with your current camera.apk by copying it to you computer, open in 7zip (or similar) and replacing 2 sound files
To remove sound from the apk, all that is needed is for 2 sound files to be
replaced by empty files (0k in size):
camera.apk\res\raw
autofocus_error.ogg
autofocus_ok.ogg
Click to expand...
Click to collapse
I've attached two blank files you can use
Brendo said:
Working fine on my lpg. the icon itself may have moved location in touchwiz...
The autofocus sound is part of the camera.apk
You can create this yourself with your current camera.apk by copying it to you computer, open in 7zip (or similar) and replacing 2 sound files
I've attached two blank files you can use
Click to expand...
Click to collapse
THANK YOU!!!
i copied the original camera apk to my computer,
use 7zip to open it, its my first time looking inside an apk file, didnt know 7zip can do that.
i replaced the 2 files with yours, and it worked!!!
simply amazing!!!!
i'm so happy, thanks.
Good to hear
I tried playing around with vrtheme to see if I could create flashable zip, but having not created one before, kept getting errors...
-----
Sent from my GT-P7310 CM10 using XDA Premium HD app
So I have exactly the same problem in my SGS II phone (JB ROM): after renaming all the sounds in the mentioned directory, the focus sound is still there (although it is silent when phone is silent mode but I want the camera to be always silent).
I tried replacing those two files in SamsungCamera.apk (the camera app in Jelly Bean). After restarting, I launched the camera app and the focus sound was gone. But there is one significant problem: the camera does not focus at all - picture taken is all blurry!
I really have no idea what this could have to do with the sound files!
So I thought that maybe it does not like the ogg files being just 0 B files (which is no proper format for empty ogg file). I made an empty ogg file in Audacity and exported it, it had like 4 kB. I used it to replace the two files in the apk. After replacing it in my phone, the camera does not even start and tells me that Camera app has stopped. Any idea what might have gone wrong?
Related
For some reason, the autofocus beep on the Samsung camera really bugs me.
The audio files for this are inside Camera.apk:
/res/raw/autofocus_ok.ogg
/res/raw/autofocus_error.ogg
/res/raw/cameratimer.ogg
I tried 7zip, MetaMorph, and a few other things to replace these with silent ogg files, but Camera.apk would Force Close.
I ended up just decompiling Camera.apk using apktool version 1.4.1, replacing the ogg files with silent ogg files, recompiling, signing, and then replacing the stock Camera.apk/odex files.
The attached Camera.apk worked for me, with no autofocus beep, and no Force Crashes.
REQUIRES ROOT
MAKE SURE YOU BACK UP YOUR EXISTING /system/app/Camera.apk and Camera.odex
IN CASE THIS DOESN'T WORK FOR YOU
Edit: To clear up some of the confusion, I'm going to explain the steps a little more clearly.
First, unzip the attached file as Camera.apk to the root of the sdcard ( /sdcard ).
Using ADB (original files will be backed up to /system/bak) :
Code:
adb remount
adb shell
# mkdir /system/bak
# mv /system/app/Camera.* /system/app/bak/
# cp /sdcard/Camera.apk /system/app/
exit
Or Using Root Explorer (original files will be backed up to /system/bak) :
Code:
Go to /system
- Mount R/W
- Menu - New Folder - Name: bak
Go to /system/app
- Move Camera.apk and Camera.odex to /system/bak
Go to /sdcard
- Copy Camera.apk to /system/app
If you want to change the other camera sounds, they are in:
\system\media\audio\ui
You can just rename, move, or delete (after backing up) them.
The files are:
Cam_Start.ogg
Cam_Stop.ogg
camera_click.ogg
camera_click_short.ogg
Shutter_01.ogg
VideoRecord.ogg
EDIT 2 (12/10/2011): I've added the Camera.apk from EK02 with silent focus sounds. The newer camera version seems to have a few more options in the settings than my first upload.
Awesome, why couldn't you make it an install by .apk save some of us that are waiting to root.
natelw said:
Awesome, why couldn't you make it an install by .apk save some of us that are waiting to root.
Click to expand...
Click to collapse
The only way to make it installable to update the existing Camera.apk is to sign this with the Samsung signature. I don't have that.
can I just flash this through cwm?
imacomputa said:
can I just flash this through cwm?
Click to expand...
Click to collapse
I'm not quite sure how to make it flashable. I just used ADB in the Android SDK:
adb remount
adb pull /system/app/Camera.apk ./Camera.apk.backup
adb push Camera.apk /system/app
will this install along side the original or replace it?
BLOWNCO said:
will this install along side the original or replace it?
Click to expand...
Click to collapse
It replaces the original Camera.apk. That's why you should make a backup of the original first. The only difference is that there is no focus sound. You will still have the shutter sounds in the \system\media\audio\ui directory, but those are easy to change if you need to.
If you really wanted to, I suppose you could recompile it under a different app name, so that you could have both versions.
I just used root explorer instead and replaced the camera app, however its constantly force-closing whenever I go into settings or try to take a video. The focus square in the middle of the camera is all crazy too. It takes photos just fine though. Should I try again using adb instead?
kcbedo said:
For some reason, the autofocus beep on the Samsung camera really bugs me.
The audio files for this are inside Camera.apk:
/res/raw/autofocus_ok.ogg
/res/raw/autofocus_error.ogg
/res/raw/cameratimer.ogg
I tried 7zip, MetaMorph, and a few other things to replace these with silent ogg files, but Camera.apk would Force Close.
I ended up just decompiling Camera.apk using apktool version 1.4.1:
apktool if framework-res.apk
apktool if twframework-res.apk
apktool d Camera.apk
Replacing the ogg files with silent ogg files,
...and then recompiling:
apktool b Camera
Finally, I signed the Camera.apk and pushed it to /system/app.
The attached Camera.apk worked for me, with no autofocus beep, and no Force Crashes.
REQUIRES ROOT
MAKE SURE YOU BACK UP YOUR EXISTING /system/app/Camera.apk
IN CASE THIS DOESN'T WORK FOR YOU
Click to expand...
Click to collapse
Just tried it and it is working good. Any way to remove the shutter sound also?
crawrj said:
Just tried it and it is working good. Any way to remove the shutter sound also?
Click to expand...
Click to collapse
The other camera sounds are in \system\media\audio\ui
You can just rename, move, or delete them.
The files are:
Cam_Start.ogg
Cam_Stop.ogg
camera_click.ogg
camera_click_short.ogg
Shutter_01.ogg
VideoRecord.ogg
imacomputa said:
I just used root explorer instead and replaced the camera app, however its constantly force-closing whenever I go into settings or try to take a video. The focus square in the middle of the camera is all crazy too. It takes photos just fine though. Should I try again using adb instead?
Click to expand...
Click to collapse
I'm not quite sure why it would do that. You could try rebooting and clearing Dalvik cache. You are using it on an SPH-D710 with Samsung firmware, right?
I forgot to check video recording, but I went back and it didn't Force Close on me. I'm able to get to Settings okay also.
kcbedo said:
I'm not quite sure why it would do that. You could try rebooting and clearing Dalvik cache. You are using it on an SPH-D710 with Samsung firmware, right?
I forgot to check video recording, but I went back and it didn't Force Close on me. I'm able to get to Settings okay also.
Click to expand...
Click to collapse
Yep I am. I'll try it again wiping the dalvik cache and report back. thanks.
---------- Post added at 11:43 PM ---------- Previous post was at 11:25 PM ----------
Nope, still not working.
---------- Post added at 11:53 PM ---------- Previous post was at 11:43 PM ----------
Okaaaay... so I made a few mistakes here and there, SOMEHOW it's working now. Went into recovery (did the stock kernel + root trick, so I am on stock) but for some reason the stock recovery immediately scanned my sdcard root for apks and started installing them by itself(where the camera.apk of yours was stored). I forgot I needed Clockworkmod, so I went ahead and reflashed cwm and cleared dalvik cache but it didn't work. So next thing I tried was just installing the camera.apk like a normal apk. It didn't work and actually made my phone reboot. I then reinstalled the stock apk like a normal apk, then went back and cleared the dalvik cache again. Finally, I went back into root explorer again and copied over the camera.apk file (yours) and replaced the old one, AND installed it like a normal app. It now works totally flawless with the exception of the video recording still making shutter noises, but still pictures is completely silent. Thanks for all your help!
I tried installing this but didn't have any luck. First when I would browse to your .apk and download it, I'd tap it and get the warning about replacing an existing app. I would say OK, but kept getting "application not installed". So I manually removed /system/app/Camera.apk and retried. This time it let me, but when I would open the app it would force close - i.imgur.com/INl0Z.jpg . I would up restoring the stock Camera.apk and it's ok now. Any idea what I'm doing wrong?
OK to get this to work with Root Explorer and have everything working perfectly (No weird autofocus crosshairs) I moved BOTH orginal Camera.apk and Camera.ODEX out of the system/apps folder and onto my memory card for backup purposes.
Then extracted the camera.apk from OPs zip file and moved it into System/Apps and DID NOT install. Just placed it in there and then went and ran the program. I am running perfectly fine. No FCs, and it is completely silent.
I did also go into the sounds folder like OP says and changed the name of all the sounds that you will have to do. But other than that I hope that clears up any confusion on how to get this working by using root explorer.
you cannot install it you have to remove the old version and replace it using adb or root explorer
aiverson23 said:
OK to get this to work with Root Explorer and have everything working perfectly (No weird autofocus crosshairs) I moved BOTH orginal Camera.apk and Camera.ODEX out of the system/apps folder and onto my memory card for backup purposes.
Then extracted the camera.apk from OPs zip file and moved it into System/Apps and DID NOT install. Just placed it in there and then went and ran the program. I am running perfectly fine. No FCs, and it is completely silent.
I did also go into the sounds folder like OP says and changed the name of all the sounds that you will have to do. But other than that I hope that clears up any confusion on how to get this working by using root explorer.
Click to expand...
Click to collapse
Confirmed. I had to remove Camera.odex as well and NOT install the .apk, simply replace it. Now I have regular crosshairs and no sounds. Thanks for the tip!
Thanks, I figured out it was the odex file that was screwing me up. Thanks!
Got it working with Root Explorer... I had the issue yesterday with FC and crazy focus bracket things being I didn't remove the Odex file.
Anyone else have problems with the Camera "shortcuts" within the camera app disappearing after the app closes?
WOndering if this is a bug in the Camera app itself. Most settings save but not the shortcuts. The other thing I noticed with the unmodded app was the if you set the camera to black and white, the selection does not survive a reboot. On the original Epic, the selections remained until changed.
Great find. This was driving me crazy. This was the one place I hadn't looked.
Hi, could someone please help me mod the ICS camera so that it does not have an autofocus sound?
I tried using APK Manager 4.9 to remove autofocus_ok.ogg and autofocus_error.ogg from /raw and even made blank ogg files with Audacity and recompiled it (kept system app signature), but it wouldn't work and froze for a minute before giving me the Not Responding dialogue every time.
So if someone could figure out where I went wrong or succeed where I failed, it would be very much appreciated!
Camera.apk is attached to the post if needed; I am using Westcrip's Remix 9.4 ROM.
Dude get camera ics on market.it hv option to disable shutter sound
Its better to hv someone can mod the camera to use vol button to capture a photo
Sent from my GT-I9100 using xda premium
If you are rooted... here's how I did it (since I didn't want to lose my CM9 modded camera that uses the power button on my Nexus S as a shutter key).
Step 1: Use an app like Root Explorer to navigate to /system/media/audio/ui
Step 2: Mount R/W
Step 3: Delete the file called camera_tick.ogg
Done.
That doesn't work because it's the camera's autofocus sound I can't get rid of, and that's embedded within Camera.apk.
ICS Camera app works fine but if you accidentally try to zoom while recording video it freezes my phone entirely, and I usually have to reboot.
So I'm still trying to figure out how to mod it, but after I recompile, it never works.
Sent from my GT-I9100
Delete ore rename the following files in /system/media/audio/ui
camera_click.ogg --> camera_click.ogg.bak
camera_focus.ogg --> camera_focus.ogg.bak
Works for me
There is no such file in the folder. The autofocus sound is embedded into the camera apk itself. There is no way to get rid of it without modding the camera apk.
Note: this is the Android 4.0.3 AOSP camera
Sent from my GT-I9100
waylaidwanderer said:
Hi, could someone please help me mod the ICS camera so that it does not have an autofocus sound?
I tried using APK Manager 4.9 to remove autofocus_ok.ogg and autofocus_error.ogg from /raw and even made blank ogg files with Audacity and recompiled it (kept system app signature), but it wouldn't work and froze for a minute before giving me the Not Responding dialogue every time.
So if someone could figure out where I went wrong or succeed where I failed, it would be very much appreciated!
Camera.apk is attached to the post if needed; I am using Westcrip's Remix 9.4 ROM.
Click to expand...
Click to collapse
hi waylaidwanderer,
I've tried too to remove those files and to recompile the apk but without success...
the app crashes at startup...
if I find something I will write here
You could try this, those files have been removed and volume key capture is enabled too
http://forum.xda-developers.com/showthread.php?p=24593016
Sent from my GT-I9100
Stumbled upon this:
http://www.chromefans.org/android/h...us-sounds-on-your-samsung-galaxy-s2-i9100.htm
I haven't tried it myself, but seems promising...
Hi there,
Thanks a lot for this fix. I was searching for this since ages.
Sorry to post this, it seems like it should be such an easy thing.
I'm on a rooted GB.EL29 stock and wanted to silence the camera.
I've done both of the methods below, but I still get a double 'ding' sound when I set the phone to silence and take a pic.
Please help, or at least let me know im not alone.
Methods tried:
1. Rename sound effects in /system/media/audio/ui
Files to rename:
Cam_Start
Cam_Stop
camera_click
camera_click_short
Shutter_01
2. Create local.prop in /data/
File contains ro.camera.sound.forced=0
TheRealJobe said:
Sorry to post this, it seems like it should be such an easy thing.
I'm on a rooted GB.EL29 stock and wanted to silence the camera.
I've done both of the methods below, but I still get a double 'ding' sound when I set the phone to silence and take a pic.
Please help, or at least let me know im not alone.
Methods tried:
1. Rename sound effects in /system/media/audio/ui
Files to rename:
Cam_Start
Cam_Stop
camera_click
camera_click_short
Shutter_01
2. Create local.prop in /data/
File contains ro.camera.sound.forced=0
Click to expand...
Click to collapse
Coincidentally, I also have tried the #2 option after researching earlier today how to silence the camera shutter. It did not silence it.
In fact, the first time I deleted the folder and files after it didn't work, I must have deleted the wrong file because I got all kinds of pop ups, force closes, and a boot loop that would end in a power down.
I had to Flash a Nandroid Backup. Luckily I had 2 Nandroid backups, because one of them was bad due to checksums not matching.
I have found answers regarding silencing the shutter, including
ROM's that have this baked in, and there is a camera app, camera fx I believe.
I have the ICS Camera installed from Overstew and ssconceptz. I may ask them regarding this.
Anyway, you're not alone, and ALWAYS have a Nandroid Backup, just in case
delete the media files, then edit the apk and remove the additional hidden media files compiled into the apk.
TheRealJobe said:
Sorry to post this, it seems like it should be such an easy thing.
I'm on a rooted GB.EL29 stock and wanted to silence the camera.
I've done both of the methods below, but I still get a double 'ding' sound when I set the phone to silence and take a pic.
Please help, or at least let me know im not alone.
Methods tried:
1. Rename sound effects in /system/media/audio/ui
Files to rename:
Cam_Start
Cam_Stop
camera_click
camera_click_short
Shutter_01
2. Create local.prop in /data/
File contains ro.camera.sound.forced=0
Click to expand...
Click to collapse
download Camera ICS from the market coupled with rom toolbox and block ads and your are good to go... It has an option to silence camera
playya said:
download Camera ICS from the market coupled with rom toolbox and block ads and your are good to go... It has an option to silence camera
Click to expand...
Click to collapse
I downloaded the Camera ICS app.
I silenced the camera, but the shutter still click clacks.
remove the camera apk file from any custom Rom in the development section and replace your existing one.
Found a Very Easy Solution!!
Shut up! Camera!
http://forum.xda-developers.com/showthread.php?t=1237466
Just download, and you're good to go.
You can turn it on and off with a touch.
Works Perfectly on my SE4GT!!
No more Shutter click clack!!
Big thanks to kcbedo for this thread, and Neotelos_com for his apkTools.
This is the stock EL29 camera with the autofocus, autofocus_error, and cameratimer silenced.
I did this because after installing kcbedo's hack for the EK02 silenced camera, my gallery was showing error triangles for any pictures I took prior to installing his hack. With this hack, that no longer happens and the camera is still silent.
Since this is exactly like his hack, I'm going to quote his install instructions. They're the exact same.
kcbedo said:
For some reason, the autofocus beep on the Samsung camera really bugs me.
The audio files for this are inside Camera.apk:
/res/raw/autofocus_ok.ogg
/res/raw/autofocus_error.ogg
/res/raw/cameratimer.ogg
I tried 7zip, MetaMorph, and a few other things to replace these with silent ogg files, but Camera.apk would Force Close.
I ended up just decompiling Camera.apk using apktool version 1.4.1, replacing the ogg files with silent ogg files, recompiling, signing, and then replacing the stock Camera.apk/odex files.
The attached Camera.apk worked for me, with no autofocus beep, and no Force Crashes.
REQUIRES ROOT
MAKE SURE YOU BACK UP YOUR EXISTING /system/app/Camera.apk and Camera.odex
IN CASE THIS DOESN'T WORK FOR YOU
Edit: To clear up some of the confusion, I'm going to explain the steps a little more clearly.
First, copy the attached file 'Camera.apk' to the root of the sdcard ( /sdcard ).
Using ADB (original files will be backed up to /system/bak) :
Code:
adb remount
adb shell
# mkdir /system/bak
# mv /system/app/Camera.* /system/app/bak/
# cp /sdcard/Camera.apk /system/app/
exit
Or Using Root Explorer (original files will be backed up to /system/bak) :
Code:
Go to /system
- Mount R/W
- Menu - New Folder - Name: bak
Go to /system/app
- Move Camera.apk and Camera.odex to /system/bak
Go to /sdcard
- Copy Camera.apk to /system/app
If you want to change the other camera sounds, they are in:
\system\media\audio\ui
You can just rename, move, or delete (after backing up) them.
The files are:
Cam_Start.ogg
Cam_Stop.ogg
camera_click.ogg
camera_click_short.ogg
Shutter_01.ogg
VideoRecord.ogg
Click to expand...
Click to collapse
Note: to edit the files mentioned at the end you MUST be rooted (or using adb shell on your computer). Some popular file browsers are Rootexplorer ($), ES File Explorer, and Astro
Finally, if this helped you please feel free to thank me.
his EKO2 worked flawlessly with EL29. no camera issues or gallary.
locoboi187 said:
his EKO2 worked flawlessly with EL29. no camera issues or gallary.
Click to expand...
Click to collapse
It had issues with my phone (which is stock), so I posted this in case someone else's phone has issues.
If yours didn't, move along.
not working
after following the exact root explorer steps my camera was gone from the launcher. i rebooted and it was still gone. i then tried matching the new camera.apk permissions to the old camera.apk permissions, rebooted and still not showing up.
do i need a new camera.odex, too? am i missing something?
using stock rooted SGSII EL29 (odin one touch)
currently went back to stock camera and is working fine. still want silence...
UPDATE:
tried again, this time leaving the Camera.odex in /system/app and it works! i'm also not getting some of the weird crosshairs or FCs as mentioned in the original thread.
THANKS!!
Worked perfectly for me. Haven't found any glitches at all.
Most UI sounds can be found and replaced simply in /system/media/audio/ui, but not so with the screen unlock sound. Replacing it is rather more involved. I'll assume some familiarity with using adb to move files around and rename them.
Tools you need: WinRAR, adb, zipalign
Procedure:
Create new unlock sounds named "lens_flare_unlock.ogg" and "lens_flare_tap.ogg". These can be oggs or mp3s but the files must be named exactly as stated with the .ogg extension.
Copy /system/framework/framework-res.apk to your computer and make a backup copy.
Rename your working copy to framework-res.zip
Double-click to open the file in WinRAR.
In WinRAR navigate to res/raw. You should see the files to be replaced.
Drag your replacement files into WinRAR and (here's the important part) in the Compression Method drop-down choose "Store".
Hit OK in WinRAR. Make sure the Size and Packed columns are the same for the replaced files. If they aren't you didn't choose 'Store' as the compression method.
Close WinRAR.
zipalign the file with this command: "zipalign 4 framework-res.zip framework-res.apk.mod"
Reboot the phone into recovery and plug it in. See this thread to get adb working.
Mount /system.
Use adb to push framework-res.apk.mod to /system/framework.
In /system/framework rename framework-res.apk (the original) to framework-res.apk.orig (so you have a convenient backup.)
Rename framework-res.apk.mod to framework-res.apk
chmod 644 framework-res.apk
Reboot and you should be good.
If your boot gets stuck after the T-Mobile animation something has gone wrong. To recover, reboot to recovery and use adb to rename framework-res.apk to framework-res.apk.mod and rename framework-res.apk.orig to framework-res.apk
If someone can tells us how to add files uncompressed using 7zip or Winzip that would be great. I used WinRAR because it's what I had.
You can also try replacing framework-res.apk using this method but I haven't.
thank you! ive been trying to figure this out! now if only I coudl find a way to change the actual lens flare to the lightning ive been seeing on youtube.
Synergy-7 said:
thank you! ive been trying to figure this out! now if only I coudl find a way to change the actual lens flare to the lightning ive been seeing on youtube.
Click to expand...
Click to collapse
flash this if you are on touchwiz...doesnt matter what rom or version you are on...its just images that will push to the framework
Lightening Lockscreen
How would I go about replacing the key press tone for my device? Currently it's the stock water droplet sound. Would I need adb since it is a system file? Or is there another method that would allow me to override this?
Sent from my SGH-M919 using xda app-developers app
cant you just replace the ogg files and that would be that??
btw how do you get the file to your computer and back?
Man this seems tough
Sent from my SGH-M919 using XDA Premium 4 mobile app
..