I couldn't find an option to disable the camera click noise when you take pictures, but if you remove the file associated with the click the camera fails gracefully and doesn't make that obnoxious, loud noise anymore.
I believe this requires a rooted phone but I'm too new to android to know if that is, indeed, the case.
You can likely do this with a terminal emulator, but these are the steps I took:
Connect your phone to a computer with the sdk and drivers installed
Open a command prompt and navigate to your sdk/tools folder
Type 'adb shell' in a command prompt
Type the following commands in the shell (omitting the #)
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# mv /system/media/audio/ui/camera_click.ogg /system/media/audio/ui/camera_click.bak
# mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system
The mount commands remount the readonly filesystem so you can write and then mounts it back. The move command renames the sound file of the click.
There is also a 'VideoRecord.ogg' file that can be moved to disable the 'ding' that occurs when you start and stop the video. I prefer that so did not move it on my device.
Hope it helps someone.
My phone doesn't make camera clicks when vibrate or silent is on.
madforpancakes said:
My phone doesn't make camera clicks when vibrate or silent is on.
Click to expand...
Click to collapse
Same here.
jsoverson said:
I couldn't find an option to disable the camera click noise when you take pictures, but if you remove the file associated with the click the camera fails gracefully and doesn't make that obnoxious, loud noise anymore.
I believe this requires a rooted phone but I'm too new to android to know if that is, indeed, the case.
You can likely do this with a terminal emulator, but these are the steps I took:
Connect your phone to a computer with the sdk and drivers installed
Open a command prompt and navigate to your sdk/tools folder
Type 'adb shell' in a command prompt
Type the following commands in the shell (omitting the #)
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# mv /system/media/audio/ui/camera_click.ogg /system/media/audio/ui/camera_click.bak
# mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system
The mount commands remount the readonly filesystem so you can write and then mounts it back. The move command renames the sound file of the click.
There is also a 'VideoRecord.ogg' file that can be moved to disable the 'ding' that occurs when you start and stop the video. I prefer that so did not move it on my device.
Hope it helps someone.
Click to expand...
Click to collapse
or you just can set your phone in silence or vibrate....duh??!!
Thanks for posting that, very interesting.
Unfortunately, it does appear that you need to be root to rename the file. If you haven't rooted the phone then the mount commands fail.
Maybe it's time to root this thing!
DKM119 said:
or you just can set your phone in silence or vibrate....duh??!!
Click to expand...
Click to collapse
You're right, silly me, why go through the effort of making the phone do precisely what I want and be exactly what I need?
What is this, an effing iPhone forum?
DKM119 said:
or you just can set your phone in silence or vibrate....duh??!!
Click to expand...
Click to collapse
Wow, I don't know why you have to crap on the post. I think this post is very useful. I, like the OP, don't like having my camera make a sound whenever it takes a picture. I can clearly see that the picture has taken (unless I'm trying to take a picture of myself, but I can tell you I don't do that very often), so I don't see a need for an audio cue if it's not necessary.
Turning the sound down before taking a picture would be a hassle. What if I do it, take my picture and then forget to turn it back on? I don't see a need for this type of deconstructive criticism, especially when people have already said what you have said without the disdain.
Anyway, thanks jsoverson, it worked for me.
Perhaps you want to take a picture without the subject knowing? ;-)
jsoverson said:
You're right, silly me, why go through the effort of making the phone do precisely what I want and be exactly what I need?
What is this, an effing iPhone forum?
Click to expand...
Click to collapse
Lol funny tou said that...I didn't mean to sound that bad...but really there is no need to go trough all that hassle if all you need to do is put your phone in silence unless you're a sick person that wanna take pictures of other people without their consent...anyway good job with the codes but useless for regular people...oh yeah this is just my opinion.
I think it's useful to note how you may disable the sound permanently, and also useful to note that you can disable it temporarily by silencing your phone. These facts don't need to be mutually exclusive, guys
Thanks OP! I'd like to permanently disable the sound. I turn on a LOUD profile when I'm out, and it's always annoying to hear that "CRACK" shutter sound
i usually don't mind the sounds phones make from the camera shutter, but on the nexus one it's very loud. this guide worked to disable sound, thanks
Nice post. This way you can have your phone on loud AND not have the camera click. FYI: To turn the camera sound back on, simply reverse the second command like so
Code:
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# mv /system/media/audio/ui/camera_click.bak /system/media/audio/ui/camera_click.ogg
# mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system
Thanks for this. The noise is really irritating.
My phone makes the sound with the sound set to silent and vibrate. And its very loud. Much louder than even my ringtones or notifications.
Hi, and thanks for the code.
I was wondering if someone could make a gscript code for this so that we could toggle camera sound on/off without a computer.
thanks
L
samawil said:
Hi, and thanks for the code.
I was wondering if someone could make a gscript code for this so that we could toggle camera sound on/off without a computer.
thanks
L
Click to expand...
Click to collapse
If you have one of the many file browser applications (Astro is a decent free one) you can rename it manually
bobtentpeg said:
If you have one of the many file browser applications (Astro is a decent free one) you can rename it manually
Click to expand...
Click to collapse
insufficient permission according to Astro.
I'm rooted etc, running Cyan b3...did you manage to change it this way?
In Astro I went to the file, long press, edit, rename, and get insufficient permision message.
L
Related
Can someone show me or post a link on how to install an app as a system app so it can not be uninstalled. I wanna do this with Mobile Defense so it can have access to the GPS as well since you can't get an exact location without GPS. I couldn't find anything useful while searching.
If you have root, you can pull the apk from /data and put it in /system with all the other system apps, but that won't give it access to gps. That is to say, no app will use gps unless it's designed to use gps. Moving it from one part of the phone to another doesn't re-write the code. So installing it to /system will do no good whatsoever.
carnegie0107 said:
If you have root, you can pull the apk from /data and put it in /system with all the other system apps, but that won't give it access to gps. That is to say, no app will use gps unless it's designed to use gps. Moving it from one part of the phone to another doesn't re-write the code. So installing it to /system will do no good whatsoever.
Click to expand...
Click to collapse
Mobile Defense in the description on the Market that it can auto enable GPS if it has root. Also what tool could I use to move it to the system folder?
There's absolutely no reason why you would need to move it to /system man... it won't operate any differently. As for preventing it from being uninstalled, that's a problem with any of the security apps...
uansari1 said:
There's absolutely no reason why you would need to move it to /system man... it won't operate any differently. As for preventing it from being uninstalled, that's a problem with any of the security apps...
Click to expand...
Click to collapse
Moving it to /system/app will prevent it from being un-installed via the phone GUI or via a wipe. It makes it much harder for a casual user (or dumb thief) to remove it. So it does add some security... and it also allows the app to enable GPS even if the user has GPS disabled, which may be a big win for some.
Personally, I leave GPS enabled all the time. It doesn't use extra battery unless an app is actually trying to get a GPS fix. The rest of the time the GPS receiver is powered off. I don't keep apps on my phone that wake up GPS all the time.
All you need to do is open a superuser shell and move the apk from /data/app to /system/app ... or use one of the superuser file managers to do it.
Note that you won't get updates this way, which is somewhat of a pain.
Bicster_ said:
Moving it to /system/app will prevent it from being un-installed via the phone GUI or via a wipe. It makes it much harder for a casual user (or dumb thief) to remove it. So it does add some security... and it also allows the app to enable GPS even if the user has GPS disabled, which may be a big win for some.
Personally, I leave GPS enabled all the time. It doesn't use extra battery unless an app is actually trying to get a GPS fix. The rest of the time the GPS receiver is powered off. I don't keep apps on my phone that wake up GPS all the time.
All you need to do is open a superuser shell and move the apk from /data/app to /system/app ... or use one of the superuser file managers to do it.
Note that you won't get updates this way, which is somewhat of a pain.
Click to expand...
Click to collapse
Pretty sure apps installed to /data can enable GPS as well. Anyway, without rooting your phone, you can't move stuff to /system.
Frankly, I think the best security regime we can presently employ on our phones is a combination of the security pattern lock and WaveSecure. The phone will be locked down if there are too many wrong attempts at the pattern, and WaveSecure will automatically lock down the phone and send GPS location if a SIM card is replaced.
uansari1 said:
Pretty sure apps installed to /data can enable GPS as well. Anyway, without rooting your phone, you can't move stuff to /system.
Frankly, I think the best security regime we can presently employ on our phones is a combination of the security pattern lock and WaveSecure. The phone will be locked down if there are too many wrong attempts at the pattern, and WaveSecure will automatically lock down the phone and send GPS location if a SIM card is replaced.
Click to expand...
Click to collapse
Apps in /data can't enable GPS anymore. I think 1.6 changed that policy, but it might have been 1.5.
I tried wavesecure but I found it way too easy to circumvent, and it didn't always work. In fact last time I tried it their web portal was down. I prefer the design of Mobile Defense, but to each his own - I'm happy there's competition!
Bicster_ said:
Moving it to /system/app will prevent it from being un-installed via the phone GUI or via a wipe. It makes it much harder for a casual user (or dumb thief) to remove it. So it does add some security... and it also allows the app to enable GPS even if the user has GPS disabled, which may be a big win for some.
Personally, I leave GPS enabled all the time. It doesn't use extra battery unless an app is actually trying to get a GPS fix. The rest of the time the GPS receiver is powered off. I don't keep apps on my phone that wake up GPS all the time.
All you need to do is open a superuser shell and move the apk from /data/app to /system/app ... or use one of the superuser file managers to do it.
Note that you won't get updates this way, which is somewhat of a pain.
Click to expand...
Click to collapse
I opened superuser but I wasn't sure what to do with it so I got a root file manager and tried to move it over but it said the system folder was read only. Anyway to get around this?
iVisionX01 said:
I opened superuser but I wasn't sure what to do with it so I got a root file manager and tried to move it over but it said the system folder was read only. Anyway to get around this?
Click to expand...
Click to collapse
The root file manager should offer a way to remount /system as a read-write filesystem. Normally it's read-only. You should set it back to read-only when you're done.
Bicster_ said:
The root file manager should offer a way to remount /system as a read-write filesystem. Normally it's read-only. You should set it back to read-only when you're done.
Click to expand...
Click to collapse
Yea I switched over but it will wouldn't let me write
So, I've had my Incredible for exactly a week, and needing to turn the phone off for 20-30 minutes to get a full charge is really getting on my nerves. I've been poking around in /sys/ and /system/ trying to see what I could find, and I found this directory that looks rather promising.
My issue is that I can't read any of the files on my phone using Astro (they show as blank with a file-size of zero). I've tried doing an 'adb pull', doing cp to the sd card via adb shell (both in and out of recovery), etc.
No matter what I try, I'm unable to get more than modalias, uevent, and /power/wakeup. Anyone have any ideas, or have any experience with this directory? Is the answer to what I'm looking for hidden here?
I'm guessing the 'drivers' directory is a symlink, and that's why I can't pull it, but I don't know. (This is my first Android phone, BTW, so I'm a bit noobish)
Looking for a little help here!
Bump, because it got lost in the pages of Froyo threads.
Does this not bother anyone else? Let's fix it!
I cant say anything to help you out... but I definately want this fixed... its REAL annoying
On the G2, when you take a picture or start a recording, it makes a pretty loud sound. It's pretty annoying for me, so I decided to replace them with silent files. The files still plays when you take a picture or record a video, but since it's silent nothing can be heard.
I have this working for stock and enom's rom. Not sure if it works with CM6.1.
I have included the silent files as well as the originals. Obviously you can use whatever sound you want.
camera_click.ogg
VideoRecord.ogg
camera_click-original.ogg
VideoRecord-original.ogg
[*Please suggest if there are better ways of doing this. I'm a total noob at this.*]
to back up original files on G2:
These are the two files on your phone you'll want to back up in case you need to restore them later.
/system/media/audio/ui/camera_click.ogg
/system/media/audio/ui/VideoRecord.ogg
adb push camera_click.ogg /data/local/camera_click.ogg
adb push VideoRecord.ogg /data/local/VideoRecord.ogg
adb shell
$ su
# mount -o remount,rw /dev/block/mmcblk0p25 /system
# rm /system/media/audio/ui/camera_click.ogg
# rm /system/media/audio/ui/VideoRecord.ogg
# cp /data/local/camera_click.ogg /system/media/audio/ui/camera_click.ogg
# cp /data/local/VideoRecord.ogg /system/media/audio/ui/VideoRecord.ogg
# cd data/local/
# rm camera_click.ogg
# rm VideoRecord.ogg
*I'm not sure if I need to mount /dev/block/mmcblk0p25. Can someone clarify?
Thanks - worked for me (froydvillain1.7.1)
The commands are done through Android Terminal? Also does it matter where I download the zip (root of sd, etc)?
Sent from my T-Mobile G2 using XDA App
I usually just delete those before I flash a rom. This also works for CM but I think they have different names. +1 for showing everyone how to do it w/ terminal. I wasn't going to because of the implications it [no camera sound] could have. Some countries legally require manufactures to have the sound there for either corporate/government settings dealing with proprietary or sensitive information or to discourage voyeuristic tendencies (you all know what I'm talking about). Just make sure to not get in trouble with it. OP, may want to put some sort of disclaimer in the post dealing with that subject, you know - CYA (google it if you don't know).
And no,
mount -o remount,rw /system
is all that's needed. I've never had to use the other remount line to delete/add to the system. Especially the media folder.
EDIT: I was thinking about this last night and remembered it can be done with Root Exlporer (or any file explorer than can mount /system r/w). Just navigate to those directories, MOVE, not copy, the files somewhere else like your sdcard or the data/local directory. That way you have the originals and the sounds are gone. I'd put an X at the end of the name too just to be safe. I'll post the terminal script for this since it's much shorter than your current method for those that just love using terminal.
Great - I was looking for a way to silence that camera shutter sound.
Thanks for this.
Thanks for sharing this! I had been using Tasker to silence all audio whenever the camera app was open, but this is a much more elegant solution.
chaose said:
On the G2, when you take a picture or start a recording, it makes a pretty loud sound.
Click to expand...
Click to collapse
Do you happen to know what the sound files are for when you depress the shutter button halfway (which causes the camera to focus in preparation for taking an image, if your device is configured to do that)? That sound is even more annoying than the shutter sound itself. I've poked around in /system/media/audio/ui, but I haven't been able to find the right sound file.
Also, you can just delete the files - it doesn't cause problems if they aren't present.
mikedoherty said:
Do you happen to know what the sound files are for when you depress the shutter button halfway (which causes the camera to focus in preparation for taking an image, if your device is configured to do that)? That sound is even more annoying than the shutter sound itself. I've poked around in /system/media/audio/ui, but I haven't been able to find the right sound file.
Click to expand...
Click to collapse
I would also like to know this one as well, as I haven't figured out where that sound is located either.
dustrho said:
I would also like to know this one as well, as I haven't figured out where that sound is located either.
Click to expand...
Click to collapse
I think it must be baked into the OS somehow, I've played every sound file I could find, and none of them were it. Incredibly ridiculously frustrating.
I rooted my Dx some time ago and removed the standard bloatware.
The one that I can't get rid of is that damned motohelper installer that pops up on my pc when I plug in my phone. It seems like it would be an 8mb ISO somewhere in /system/ but after spending WAY too much browsing everywhere that seemed meaningful I've got nothing.
dialing ##program doesn't show me the features option on 2.2.1 the same way that the incredible does. bummer.
I'm sure somebody here has been more successful than myself at nuking this thing.
I would also love to kill this thing... with fire.
80hd said:
I'm sure somebody here has been more successful than myself at nuking this thing.
Click to expand...
Click to collapse
Sadly, not that I've been able to find. BTW, I started another thread here the other day. I've searched many Android forums and have posted several times to Motorola's own seemingly pointless Support Forum. Welcome to the club
http://forum.xda-developers.com/showthread.php?t=929242
The cd is its own partition... /cdrom and mounted when needed. Doesn't waste space in system
Sent from my DROIDX using XDA App
It still consumes storage space somewhere. Anyway, it's still an annoying issue that we need a solution to prevent from mounting. I really dislike not being able to use my DX to play music through the USB port in my car stereo.
Good point
just edit this line in the build.prop:
persist.mot.usb.mediasync = 1
change it to 0
crud, didnt work
fmkaiba said:
The cd is its own partition... /cdrom and mounted when needed. Doesn't waste space in system
Sent from my DROIDX using XDA App
Click to expand...
Click to collapse
Then, in theory, you should be able to delete/format the partition using something along the lines of GParted.
I don't know what effects this would have on the phone though. I assume it wouldn't brick; however, I guess it would have to be tested to know for sure.
Would an SBF restore this CD partition if the phone did brick?
I am sure you can just kill it by disabling autorun on your windows. Sure it will kill it for everything, but that is why the setup.exe was invented.
bravo1234 said:
I am sure you can just kill it by disabling autorun on your windows. Sure it will kill it for everything, but that is why the setup.exe was invented.
Click to expand...
Click to collapse
The concern isn't with preventing the image from mounting on a computer, that's easy to remedy, either by disabling autorun for Windows and/or enabling USB debugging mode on the DX. The crux of the issue is mounting my DX on my car stereo. USB debugging doesn't appear to help "fix" that situation
This problem adds insult to injury for me. I use a Mac (it was a gift) so every time I mount my phone to the computer, the motohelper disc pops up, but I can't even use it because it's a Windows only executable.
Sent from my DROIDX using XDA App
Hi, the only way I found was disabling it service "Motorola Device Manager Service".
I think it's annoying that shutter sound exists and you can't just shut it off in the camera app. The only way is to be in silent mode, which I am in most of the time. But today I forgot while using a computer lab at school and a loud shutter click went off. Ugh.
I realize that renaming/removing the OGG files for the shutter sound and video sound are the easiest.... BUT I see myself flashing new ROMs left and right.
Perhaps there's a way to write a script to do this? I'm not too good with scripting as easy as that sounds... lol.
Edit: Something like this for script manager?
Code:
mount -o remount,rw /dev/block/mtdblock4 /system
mv /system/media/audio/ui/camera_click.ogg /system/media/audio/ui/camera_click.ogg.old
mv /system/media/audio/ui/VideoRecord.ogg /system/media/audio/ui/VideoRecord.ogg.old
mount -o remount,ro /dev/block/mtdblock4 /system
bumpity help anyone?
doesnt seem like script manager likes my script lol.
Well you didn't replace it with anything... Wouldn't you need to replace it with a sound file that is silent?
AtomicPC said:
Well you didn't replace it with anything... Wouldn't you need to replace it with a sound file that is silent?
Click to expand...
Click to collapse
I know you can rename the file to something else and just have a nonexistent file. I've tried it on other phones. Should be the same on NS. I just fail at scripting.
I mean what I essentially typed out up there was what you woudl type into terminal window. Is that what you would put in a script? LoL.
I've had the camera app fc when I removed the sound. I just made a silent ogg file with the same bitrate, sampling, and compression characteristics as the one it's replacing. Rename the silent file to camera_click.ogg and VideoRecord.ogg and it's silent from then on.