FORUMS
Remove All Ads from XDA

[APP] Silent Samsung Camera App [EK02] [12/10/2011]

44 posts
Thanks Meter: 34
 
By kcbedo, Member on 28th September 2011, 05:03 PM
Post Reply Email Thread
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.
Attached Files
File Type: zip Silent-Camera.zip - [Click for QR Code] (1.11 MB, 973 views)
File Type: zip Silent-Camera-EK02.zip - [Click for QR Code] (1.11 MB, 700 views)
The Following 20 Users Say Thank You to kcbedo For This Useful Post: [ View ] Gift kcbedo Ad-Free
 
 
28th September 2011, 06:29 PM |#2  
Member
Thanks Meter: 3
 
More
Awesome, why couldn't you make it an install by .apk save some of us that are waiting to root.
28th September 2011, 06:37 PM |#3  
OP Member
Thanks Meter: 34
 
More
Quote:
Originally Posted by natelw

Awesome, why couldn't you make it an install by .apk save some of us that are waiting to root.

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.
28th September 2011, 06:51 PM |#4  
Junior Member
Thanks Meter: 0
 
More
can I just flash this through cwm?
28th September 2011, 07:28 PM |#5  
OP Member
Thanks Meter: 34
 
More
Quote:
Originally Posted by imacomputa

can I just flash this through cwm?

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
28th September 2011, 07:29 PM |#6  
KLLSWITCH's Avatar
Senior Member
Flag NOR CAL
Thanks Meter: 1,585
 
More
will this install along side the original or replace it?
28th September 2011, 07:49 PM |#7  
OP Member
Thanks Meter: 34
 
More
Quote:
Originally Posted by BLOWNCO

will this install along side the original or replace it?

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.
28th September 2011, 08:26 PM |#8  
Junior Member
Thanks Meter: 0
 
More
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?
28th September 2011, 08:33 PM |#9  
crawrj's Avatar
Senior Member
Thanks Meter: 3,879
 
More
Quote:
Originally Posted by kcbedo

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

Just tried it and it is working good. Any way to remove the shutter sound also?
28th September 2011, 08:49 PM |#10  
OP Member
Thanks Meter: 34
 
More
Quote:
Originally Posted by crawrj

Just tried it and it is working good. Any way to remove the shutter sound also?

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
The Following User Says Thank You to kcbedo For This Useful Post: [ View ] Gift kcbedo Ad-Free
28th September 2011, 08:52 PM |#11  
OP Member
Thanks Meter: 34
 
More
Quote:
Originally Posted by imacomputa

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?

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.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes