Saturday, December 13, 2014

samsung galaxy s 3 - How to make stock Camera app silent when shot is taken without preventing phone call ringtone sounds?


This question is basically the same as this one but the canonical answer for that post is not compatible with my particular device for which a discussion and a solution can be found below.


I would often like to use the Samsung Galaxy SIII Neo stock Camera app but would like to keep the sound it makes while pictures are shot on silent (so that when I take a shot people are not distracted by the sound so that the resulting pictures taken look more natural). However, I've figured out that to turn such sound off, out of the volume settings Ringtone, Notifications, Media, and System, it is the Ringtone volume setting which must be turned off for this to take place (click on any of the volume hardware buttons and then on the volume settings cogwheel to see these). Unfortunately, setting the Ringtone to silent means no sound will be made when a phone call is received.



So, I would like to know whether newer phones have a Camera setting menu list entry for enabling or disabling the sound specifically for the Camera application. And, if not, then I would like to know where to place a feature request width Samsung for this to be implemented in future releases of the stock Camera software.


Anyways, I think, as a hack, if one knew where the mp3 sound file for the camera app is stored, one could just deleted (or perhaps replaced it with an mp3 file producing no sound to resolve the problem). Anyone know where I could find such a file?




UPDATE: I've tried rooting my device and then following this solution but I still get an error message saying the filesystem is read-only. Not sure if Samsung KNOX is causing this. Thank you for your replies.


enter image description here




UPDATE: Remounting the system with the following command as root:


mount -o remount,rw /system

Allowed me to rename the file, but it seems it's the wrong file as the stock Camera app still produces a snap sound when taking a picture after the rename. Candidate files related to the stock Camera app under /system/media/audio/ui could be the following:




  • Cam_Start.ogg

  • Cam_Stop.ogg

  • Camera_click_short.ogg

  • Camera_click.ogg

  • Camera_empty.ogg

  • camera_focus.ogg

  • Camera_Timer_2sec.ogg

  • Camera_Timer.ogg



I've tried renaming both Camera_click.ogg and Camera_click_short.ogg to Camera_click.ogg.bak and Camera_click_short.ogg.bak but no luck! Even after rebooting the phone, the stock Camera application still produces a sound when a picture is taken with the Ringtone Volume enabled. The Camera_empty.ogg sound file produces no sound; ideally I would like this one to play when the camera takes a picture.


Anyone know where the problem may be and how to fix it?




UPDATE: After installing the BusyBox app in order to have the Unix find tool and then running:


find / -name '*.ogg' > out.txt

the contents of out.txt were the following:


/storage/emulated/legacy/Ringtones/hangouts_message.ogg
/storage/emulated/legacy/Ringtones/hangouts_incoming_call.ogg
/storage/emulated/legacy/Notifications/Calendar Notification.ogg

/storage/emulated/0/Ringtones/hangouts_message.ogg
/storage/emulated/0/Ringtones/hangouts_incoming_call.ogg
/storage/emulated/0/Notifications/Calendar Notification.ogg
/mnt/shell/emulated/0/Ringtones/hangouts_message.ogg
/mnt/shell/emulated/0/Ringtones/hangouts_incoming_call.ogg
/mnt/shell/emulated/0/Notifications/Calendar Notification.ogg
/system/media/audio/alarms/Alarm_Day_by_day.ogg
/system/media/audio/alarms/Alarm_Morning_flower.ogg
/system/media/audio/alarms/Dawn_chorus.ogg
/system/media/audio/alarms/Daybreak.ogg

/system/media/audio/alarms/Sea_breeze.ogg
/system/media/audio/alarms/Serene_morning.ogg
/system/media/audio/alarms/Springtime_memories.ogg
/system/media/audio/alarms/Ticktac.ogg
/system/media/audio/alarms/Walk_in_the_forest.ogg
/system/media/audio/notifications/Beep_once.ogg
/system/media/audio/notifications/Hang_drum.ogg
/system/media/audio/notifications/Harp_glissando.ogg
/system/media/audio/notifications/S_Bubbles.ogg
/system/media/audio/notifications/S_Charming_bell.ogg

/system/media/audio/notifications/S_Chirps.ogg
/system/media/audio/notifications/S_Dew_drops.ogg
/system/media/audio/notifications/S_Flowers.ogg
/system/media/audio/notifications/S_Good_News.ogg
/system/media/audio/notifications/S_Harmonics.ogg
/system/media/audio/notifications/S_Knock.ogg
/system/media/audio/notifications/S_On_time.ogg
/system/media/audio/notifications/S_Opener.ogg
/system/media/audio/notifications/S_Postman.ogg
/system/media/audio/notifications/S_Pure_Bell.ogg

/system/media/audio/notifications/S_Temple_bell.ogg
/system/media/audio/notifications/S_Tickety_tock.ogg
/system/media/audio/notifications/S_Whistle.ogg
/system/media/audio/notifications/Sweet_favour.ogg
/system/media/audio/notifications/Whisper.ogg
/system/media/audio/ringtones/A_rustling_in_the_trees.ogg
/system/media/audio/ringtones/Basic_bell.ogg
/system/media/audio/ringtones/Basic_tone.ogg
/system/media/audio/ringtones/Beep-beep.ogg
/system/media/audio/ringtones/Beep_once.ogg

/system/media/audio/ringtones/Blowing_dandelion_seeds.ogg
/system/media/audio/ringtones/Break_of_day.ogg
/system/media/audio/ringtones/Breeze.ogg
/system/media/audio/ringtones/Bugs_story.ogg
/system/media/audio/ringtones/Chime.ogg
/system/media/audio/ringtones/Drifting_downstream.ogg
/system/media/audio/ringtones/Ecliptic.ogg
/system/media/audio/ringtones/Flying_in_the_sky.ogg
/system/media/audio/ringtones/Fog_on_the_water.ogg
/system/media/audio/ringtones/Glissando_tone.ogg

/system/media/audio/ringtones/Ice_blue_tone.ogg
/system/media/audio/ringtones/In_your_mind.ogg
/system/media/audio/ringtones/Journey.ogg
/system/media/audio/ringtones/Leisure_time.ogg
/system/media/audio/ringtones/Over_the_horizon.ogg
/system/media/audio/ringtones/Popcorn_tone.ogg
/system/media/audio/ringtones/Quantum_bell.ogg
/system/media/audio/ringtones/Rainbow.ogg
/system/media/audio/ringtones/Rainy_day.ogg
/system/media/audio/ringtones/Rays_of_the_sun.ogg

/system/media/audio/ringtones/Rolling_tone.ogg
/system/media/audio/ringtones/Scampering_tone.ogg
/system/media/audio/ringtones/Writing_adventure.ogg
/system/media/audio/ui/Alert_on_call.ogg
/system/media/audio/ui/Auto_focus.ogg
/system/media/audio/ui/Auto_focus_error.ogg
/system/media/audio/ui/Birdsong_by_the_lake.ogg
/system/media/audio/ui/Call_Connect.ogg
/system/media/audio/ui/Cam_Start.ogg
/system/media/audio/ui/Cam_Stop.ogg

/system/media/audio/ui/Camera_Timer.ogg
/system/media/audio/ui/Camera_Timer_2sec.ogg
/system/media/audio/ui/Camera_empty.ogg
/system/media/audio/ui/Charger_Connection.ogg
/system/media/audio/ui/Dialer_new.ogg
/system/media/audio/ui/Dock.ogg
/system/media/audio/ui/Effect_Tick.ogg
/system/media/audio/ui/Fairy_fountain.ogg
/system/media/audio/ui/Highlight.ogg
/system/media/audio/ui/HoverPointer.ogg

/system/media/audio/ui/KeypressDelete.ogg
/system/media/audio/ui/KeypressInvalid.ogg
/system/media/audio/ui/KeypressReturn.ogg
/system/media/audio/ui/KeypressSpacebar.ogg
/system/media/audio/ui/KeypressStandard.ogg
/system/media/audio/ui/Lock.ogg
/system/media/audio/ui/Lock_none_effect.ogg
/system/media/audio/ui/LowBattery.ogg
/system/media/audio/ui/New_chat.ogg
/system/media/audio/ui/Pen_att_noti.ogg

/system/media/audio/ui/Pen_att_noti1.ogg
/system/media/audio/ui/Pen_att_noti2.ogg
/system/media/audio/ui/Pen_att_noti3.ogg
/system/media/audio/ui/Pen_det_alert.ogg
/system/media/audio/ui/Pen_det_beep1.ogg
/system/media/audio/ui/Pen_det_beep2.ogg
/system/media/audio/ui/Pen_det_beep3.ogg
/system/media/audio/ui/Pen_det_beep4.ogg
/system/media/audio/ui/Pen_det_beep5.ogg
/system/media/audio/ui/Pen_det_noti.ogg

/system/media/audio/ui/Pen_det_noti1.ogg
/system/media/audio/ui/Pen_det_noti2.ogg
/system/media/audio/ui/Pen_det_noti3.ogg
/system/media/audio/ui/PowerOn.ogg
/system/media/audio/ui/S_Beam_end.ogg
/system/media/audio/ui/S_Beam_error.ogg
/system/media/audio/ui/S_Beam_start.ogg
/system/media/audio/ui/S_HW_Touch.ogg
/system/media/audio/ui/S_SIP_Backspace.ogg
/system/media/audio/ui/Sent_chat.ogg

/system/media/audio/ui/Serenity.ogg
/system/media/audio/ui/Shutter.ogg
/system/media/audio/ui/Shutter_multiple.ogg
/system/media/audio/ui/Sparkling_mist.ogg
/system/media/audio/ui/TW_Battery_caution.ogg
/system/media/audio/ui/TW_Battery_swelling_warning.ogg
/system/media/audio/ui/TW_Call_Disconnect.ogg
/system/media/audio/ui/TW_SIP.ogg
/system/media/audio/ui/TW_Silent_mode_off.ogg
/system/media/audio/ui/TW_Touch.ogg

/system/media/audio/ui/TW_Volume_control.ogg
/system/media/audio/ui/The_secret_forest.ogg
/system/media/audio/ui/Undock.ogg
/system/media/audio/ui/Unlock.ogg
/system/media/audio/ui/Unlock_none_effect.ogg
/system/media/audio/ui/VideoRecord.ogg
/system/media/audio/ui/Voice_processing.ogg
/system/media/audio/ui/Voice_start.ogg
/system/media/audio/ui/Voice_stop.ogg
/system/media/audio/ui/WirelessChargingStarted.ogg

/system/media/audio/ui/Zero_Clickr_Ready.ogg
/system/media/audio/ui/airbutton_close.ogg
/system/media/audio/ui/airbutton_open.ogg
/system/media/audio/ui/camera_focus.ogg
/system/media/audio/ui/lens_flare_lock.ogg
/system/media/audio/ui/lens_flare_unlock_silence.ogg
/data/media/0/Ringtones/hangouts_message.ogg
/data/media/0/Ringtones/hangouts_incoming_call.ogg
/data/media/0/Notifications/Calendar Notification.ogg


At this stage I'm not sure whether the stock Camera app is really taking the shutter sound from one of these .ogg files or whether the actual .ogg file is hardcoded into the stock Camera app's binary file.



Answer



On my Samsung Galaxy SIII Neo (Android 4.4.2) I was able to solve my problem as follows:


C:\> adb shell

and then


# su
# mount -o remount,rw /
# cd /system/media/audio/ui/
# mv Shutter.ogg Shutter.ogg.bak


This solved the problem.


No comments:

Post a Comment

samsung galaxy s 2 - Cannot restore Kies backup after firmware upgrade

I backed up my Samsung Galaxy S2 on Kies before updating to Ice Cream Sandwich. After the upgrade I tried to restore, but the restore fails ...