[MOD] Hacked Camera.APK for better audio quality, usage with any battery life & MORE!

Search This thread

Potatoman

Senior Member
Nov 17, 2007
127
249
The soundless versions are identical to their counterparts.
Soundless Standard = All the features of Standard Mod (high quality audio, normal video bitrate), but with no autofocus noises in the APK,
and Soundless HighBit = All the features of highbit (high quality audio, high video bitrate, large file sizes) but with no autofocus noises in the APK.

So yes, EVERY version has the higher audio quality regardless which you download. :)

And with that, you punks have worn me out for the night, I was supposed to be in bed an hour ago -.- :p Goodnight all.
 

slind

Senior Member
Aug 18, 2007
391
80
Bremen
Thanks a lot. Just tested and its working like a charm.

Sent from my GT-I9100 using XDA Premium App
 

julian071

Senior Member
Nov 3, 2010
70
4
I find sound is often more important then video when trying to capture the atmosphere of some place, so I'm really gratefull for this mod!!

I used to use a Nokia N93 (still have it). It recorded in stereo, it had mics on the left and right of the camera. That really adds to video's, you not only see but also hear stuff moving. The SGSII like the N93 has two microphones. But one is only used for noise cancellation (which works really well btw). It would be great if the second mic could also be used for filming... I have no idea how hard that would be to code, and maybe there's a good reason why Samsung did not choose to implement it themselves. My hardly educated guess is that the way the second mic is adressed by the noise cancellation 'app' is closed source stuff? If not maybe more is possible...
 

crypticc

Senior Member
Aug 22, 2009
1,249
174
London
Looks really interesting. Cyanogen mod had mod to record using mp4 codec rather than 3gp. It was a prop change only I think. Good idea?

Sent from my GT-I9100 using Tapatalk
 

RainesX

Senior Member
Nov 4, 2008
254
13
Karlshamn
Subscribed :)
I too feel the need to ask if its possible to get audiorecording in stereo?

Realy great work and will look forward to it as soon as i flash a custom rom and root :)
 

nevetx

Member
Aug 8, 2008
11
3
Hong Kong
I wrote some simple command to enable / disable some unwanted UI sounds by using gscript.

the unwanted sounds,
- camera sounds. (camera_click.ogg, camera_click_short.ogg, Cam_Start.ogg, Cam_Stop.ogg, Shutter_01.ogg, VideoRecord.ogg)
- battery fully charged sound. (TW_Battery_caution.ogg)

what the command does is just renaming the files to be xxx.ogg.bak
and rename them back to normal for restoring.

of course, root is needed.

how to use:
1. download and unzip 2 sh file to your /sdcard/gscript/
2. download gscript from Market, which is free, and install it.
3. run gscript > Add Script > Load file > (load the sh file and save, twice, because there are 2 sh files.)
4. tab on "stop unwanted sound" to mute the sounds OR "restore unwanted sound" to restore the sounds .


simple script, hope it helps.

20110607 - script updated: sorry I missed out the mount command!
 
Last edited:

zxz0O0

Senior Member
Apr 18, 2011
1,533
5,169
I used your camera apk with sounds but my gallery didn't work anymore. I'm on KE7 Chainfire Root
 

aottesen

Member
Mar 22, 2011
25
0
What am I doing wrong?

I've renamed Camera.apk to Camera.apk.bak
Copied new Camera.apk to /system/app
Hit Install, Install again (the next question): Green arrow, Application not installed.

Whaaat? (On KE7 btw)
 

hyperX-

Senior Member
Apr 6, 2011
129
574
Since some of you know me... i imigrated from Symbian here to Android.
Now i am working on several mods with Potatoman to bring you more mods/tweaks stuff.

have prepared a package, with the following settings:

1080p mode: Normal – 17 Mbit Fine – 24 Mbit – Super fine – 30 Mbit

720p mode Normal – 9 Mbit Fine – 13 Mbit Super fine – 17 Mbit

Both modes have audio at 48000 khz at 192 kbit

Download

Also for those, who are interessted, my site will be soon updated for an Android section.

www.hx-custom-roms.com
 

BoneMo

Senior Member
Jun 25, 2009
2,018
290
Prague
Since some of you know me... i imigrated from Symbian here to Android.
Now i am working on several mods with Potatoman to bring you more mods/tweaks stuff.

have prepared a package, with the following settings:

1080p mode: Normal – 17 Mbit Fine – 24 Mbit – Super fine – 30 Mbit

720p mode Normal – 9 Mbit Fine – 13 Mbit Super fine – 17 Mbit

Both modes have audio at 48000 khz at 192 kbit

Download

Also for those, who are interessted, my site will be soon updated for an Android section.

www.hx-custom-roms.com

is the 30Mbit video nicer, better then stock ? how the quality differs ?
PS: now i am using camera with CD quality sound
 

aottesen

Member
Mar 22, 2011
25
0
Since some of you know me... i imigrated from Symbian here to Android.
Now i am working on several mods with Potatoman to bring you more mods/tweaks stuff.

have prepared a package, with the following settings:

1080p mode: Normal – 17 Mbit Fine – 24 Mbit – Super fine – 30 Mbit

720p mode Normal – 9 Mbit Fine – 13 Mbit Super fine – 17 Mbit

Both modes have audio at 48000 khz at 192 kbit

Download

Also for those, who are interessted, my site will be soon updated for an Android section.

www.hx-custom-roms.com

Hi, and thanks for your modded Camera.apk.

Could you please help me with installing it?
As I mentioned two threads up, I cant install the modified camera.
I've just upgraded to KE7 and rooted with CF-Root.
Used rootexplorer to rename Camera.apk --> Camera.apk.bak
Moved (modified) Camera.apk to /system/app
Hit Install, agree, install. Then it displays a green arrow (as if it was successful) with the message: Program not installed.

Why could that be ?

Thanks in advance!!
 

hyperX-

Senior Member
Apr 6, 2011
129
574
Hi, and thanks for your modded Camera.apk.

Could you please help me with installing it?
As I mentioned two threads up, I cant install the modified camera.
I've just upgraded to KE7 and rooted with CF-Root.
Used rootexplorer to rename Camera.apk --> Camera.apk.bak
Moved (modified) Camera.apk to /system/app
Hit Install, agree, install. Then it displays a green arrow (as if it was successful) with the message: Program not installed.

Why could that be ?

Thanks in advance!!

You can't directly install System apps, just copy the apk in your system/apps directory and the Camera-app should work WITHOUT installing it.
 

BoneMo

Senior Member
Jun 25, 2009
2,018
290
Prague
Hi, and thanks for your modded Camera.apk.

Could you please help me with installing it?
As I mentioned two threads up, I cant install the modified camera.
I've just upgraded to KE7 and rooted with CF-Root.
Used rootexplorer to rename Camera.apk --> Camera.apk.bak
Moved (modified) Camera.apk to /system/app
Hit Install, agree, install. Then it displays a green arrow (as if it was successful) with the message: Program not installed.

Why could that be ?

Thanks in advance!!

with root explorer try to mount /system/app as R/W and just replace camera.apk,, no installing
 
Last edited:

Potatoman

Senior Member
Nov 17, 2007
127
249
Great work, any chance we can get stereo sound recording?
This might be of use to you: http://xdaforums.com/showthread.php?t=860609
Much appreciated, I saw that one and Rafalense's mod, that's what i'm digging through to see how they did it :)

I find sound is often more important then video when trying to capture the atmosphere of some place, so I'm really gratefull for this mod!!

I used to use a Nokia N93 (still have it). It recorded in stereo, it had mics on the left and right of the camera. That really adds to video's, you not only see but also hear stuff moving. The SGSII like the N93 has two microphones. But one is only used for noise cancellation (which works really well btw). It would be great if the second mic could also be used for filming... I have no idea how hard that would be to code, and maybe there's a good reason why Samsung did not choose to implement it themselves. My hardly educated guess is that the way the second mic is adressed by the noise cancellation 'app' is closed source stuff? If not maybe more is possible...

Whilst it shouldn't be impossible, I think it might be beyond my capabilities at the moment. I'll look at it after the current tasks are done.

Looks really interesting. Cyanogen mod had mod to record using mp4 codec rather than 3gp. It was a prop change only I think. Good idea?

The SGSII records all video above 320x240 in an MP4 h.264 codec already. Only 176x144 and 320x240 are in 3gp for filesize purposes. This is true of all the modded versions and also the stock camera.

I used your camera apk with sounds but my gallery didn't work anymore. I'm on KE7 Chainfire Root

Odd. Did you try a reboot? If that doesnt fix it tell me which version are you using via PM so that I can try to replicate it on my handset.

What am I doing wrong?
I've renamed Camera.apk to Camera.apk.bak
Copied new Camera.apk to /system/app
Hit Install, Install again (the next question): Green arrow, Application not installed.
Whaaat? (On KE7 btw)
Once the apk is renamed to Camera.apk and placed in system/app, it should still be usable regardless of whether you install or not. I had a couple issues where the shortcut was disappearing, so I tell people to "install" it as well to avoid that (that's how I got the shortcut to reappear.) Reboot the phone and you should be able to use it anyway. If not, tell me in PM what version you're using and I'll try to resign it for you.


with root explorer try to mount /system/app as R/W and just replace camera.apk,, no installing
You can't directly install System apps, just copy the apk in your system/apps directory and the Camera-app should work WITHOUT installing it.
^This. Installing it is only needed in rare cases, I included it in the instruction because it does no harm and it prevents the rare cases where people see dead shortcuts in the menu(they see "application installed sucessfully" instead).
 

Top Liked Posts

  • There are no posts matching your filters.
  • 155
    [MOD] Hacked Camera.APK for better audio quality, usage with any battery life & MORE!

    Final Update-

    Some people have been asking for sourcecode/instructions, so once more, this is the method I used, all credit to Rafalense.
    http://xdaforums.com/showpost.php?p=10980448&postcount=268

    Those of you wanting me to reupload the APK's, I'm sorry, I don't have them stored anymore, and I wouldn't put them up even if I did. They're based on ANCIENT firmware revisions, and whilst I can appreciate you still would like the functionality somehow, I'm not interested in taking on the project again at this time. Thank you very much for your continued use and desire for my work though, it's very flattering.

    I won't be actively developing or supporting this anymore because of it's defunct nature. If you want something similar, I highly recommend the lgCamera app, which has a far better implementation of improved bitrates (select whatever bitrates you want in a menu.) You can get lgCamera on the market- I highly reccomend it.

    Anyone who wants to pick up this project can feel free to discuss here or make a new thread, as you please. If you do, please include the link to the guide by Rafalense, as it was the basis for this mod and will doubtlessly be of use to someone.

    (Original Post Below)
    -----

    In light of my new student status, and since my student loan doesn't even cover my accommodation... I have made a donate link.

    If you use the mod regularly, please consider donating, it would really help me out. Don't worry if you can't though, the mod will always be free for all to use. :)



    Thanks for all the support-

    - Potatoman.

    ------------------------------------------------------------------------------

    Hey folks-

    It's with great pleasure that I'm releasing a hacked Camera.apk for you all today! This is my first android mod, so be gentle :p

    Info-
    The apk replaces the stock Camera.Apk in the Galaxy S II (or Samsung Captivate!), and has the following features-

    - Allows use of the camera & camcorder at any battery life
    - Records Audio in 192kbps/44.1Khz quality (CD Quality) rather than stock (64kbps/16khz quality)
    - Increased Video Bitrate in 1080 and 720p modes* (See 2nd post for info and download link for this version)
    - Optional No Sounds versions (for Standard and Highbit versions!). All of the features, None of the noise! Yes, even the autofocus noise is gone!
    - HyperX-'s SuperHighBit version now available (See 2nd post for info and download link for this version)

    I have left the settings for the 320x240 and 176x144 resolution modes as stock, so they will be the same size and with the same audio. This is to ensure video messages are kept within the filesize limits :)

    Before/After Comparison (thanks robbiekhan)-
    Before:

    After:
    Treble is high for loud sources in this mod, I'm working on improving it in v2. for now, just stand further back like robbiekhan said :) - Potatoman
    Treble seems high so apologies for that, car volume was higher than I realised ¬_¬

    Additional info:
    If you want to get rid of the shutter sound, create a file in /data called local.prop and add the line "ro.camera.sound.forced=0" and restart your phone. This removes both the shutter sound and the focus sound when your phone is on silent, but keeps the sound when it's not on silent. - llBlackenedll

    Install Guide:
    1) Root & install a file manager which lets you browse root
    2) browse to /system/app, and rename your Camera.apk to Camera.apk.bak and your Camera.odex to Camera.odex.bak (for use as a backup to restore from)
    3) Unrar my APK (password: potatoman@xda) and copy it over to /system/app.
    4) Rename it Camera.apk
    5) Close the file manager and run the Camera app from the main menu
    6) IF the app fails to run, or the shortcut is missing, go back to the /system/app folder and try to install it (tap it in root explorer then "install"). This step is only a fallback, do NOT do this if it works already at step 5.
    7) Enjoy!

    ADB Install Guide- See 2nd post!

    This mod was tested on my own Galaxy S II with KE2, KE7, KG1, VillainROM and CognitionROM firmwares.

    -------------------------------------------------------------------------

    Thanks all, hope you enjoy! Thank if you like it :)
    (Download: http://www.multiupload.com/KHRWLERS4J)
    (Download with no sounds: http://www.multiupload.com/NNR1SYDYL6 Same password. Be sure to remove cam_start.ogg, cam_stopp.ogg, Camera_click.ogg, Camera_click_short.ogg, Shutter_01.ogg and videoRecord.ogg from /system/media/audio/ui as well!)

    -------------------------------------------------------------------------
    Credits-
    Potatoman - Sound implimentation & merging of features & Version Splitting/Maintainance
    Soraxd - Original battery life functionality & upcoming music playing functionality
    Rafalense - A great post which lead me through how to do this mod over on the Galaxy S forums
    pulser_g2 - Original battery life functionality (with soraxD :))
    llBlackenedll - tip on how to disable shutter sounds
    robbiekhan - Before/After Comparison videos
    Antoniotdi - An excellent bugfix :)
    hyperX - Great minds think alike eh? HyperX released a similar mod to this on the same day as me! Anyway, we'll be working together on cameramods from now on. Good news huh? :D
    Knightnz - The ADB install guide
    28
    ADB Install guide (Thanks knightnz!)-

    How to install using adb with phone connected to your computer:

    Copy the new .apk to the root of the internal sdcard of the phone. then run the appropriate set of commands:

    STANDARD VERSION:
    adb shell
    su
    mount -o remount,rw -t ext4 /dev/block/mmcblk0p9 /system
    cp -r /sdcard/Camera.apk /system/app/Camera.apk
    chmod 644 /system/app/Camera.apk

    NO SOUND VERSION:
    adb shell
    su
    mount -o remount,rw -t ext4 /dev/block/mmcblk0p9 /system
    cp -r /sdcard/CameraSoundless.apk /system/app/Camera.apk
    chmod 644 /system/app/Camera.apk
    cd /system/media/audio/ui
    rm cam*
    rm Cam*
    rm Shut*
    rm Video*

    -----------------------------------------

    HyperX-'s SuperHighBit version released!
    This is kept here because it isn't mine to remove, and I haven't heard from HyperX in a while. Please note I wont be able to support anyone with this if you choose to use it.

    Since some of you know me... i imigrated from Symbian here to Android.
    Now i am working on several mods with Potatoman to bring you more mods/tweaks stuff.
    I have prepared a package, with the following settings:
    1080p mode: Normal – 17 Mbit Fine – 24 Mbit – Super fine – 30 Mbit
    720p mode Normal – 9 Mbit Fine – 13 Mbit Super fine – 17 Mbit
    Both modes have audio at 48000 khz at 192 kbit
    Download
    Also for those, who are interessted, my site will be soon updated for an Android section.
    www.hx-custom-roms.com

    DISCLAIMER TO AVOID DRAMA-
    I work on this in my own time as a project, as and when I see fit. At no point does using or donating to the development of this app entitle you to demand anything from me other than what has already been shared. The app is also for use "as is", with no warranty. Support is provided by me (and other helpful members) in this thread and in my PM box as and when we desire.
    Anyone who takes an issue with this is more than welcome to not use the app, not post here, and otherwise avoid being a nuisance to the rest of us in this thread.
    9
    Since some of you know me... i imigrated from Symbian here to Android.
    Now i am working on several mods with Potatoman to bring you more mods/tweaks stuff.

    have prepared a package, with the following settings:

    1080p mode: Normal – 17 Mbit Fine – 24 Mbit – Super fine – 30 Mbit

    720p mode Normal – 9 Mbit Fine – 13 Mbit Super fine – 17 Mbit

    Both modes have audio at 48000 khz at 192 kbit

    Download

    Also for those, who are interessted, my site will be soon updated for an Android section.

    www.hx-custom-roms.com
    6
    After flash that MOD, audio is still 44KHz/61Kbit...
    btw. VolumeKey works perfectly :)

    Thanks for letting me know
    Here are the two versions, normal and higher quality audio


    Hey guys
    I Mod, Camera Hack, to XXI4
    I want to share


    LINK Install CWM
    http://www.mediafire.com/file/ta06qoagn3s7w0c/UpdateCriskeloRomGSGII-CameraHack-Bat-2%-48000khz.zip

    Camera hack XXKI4
    * Hack VOL + / -
    Hold Volumekey to focus and release to shoot.
    Tap Volumekey will take a direct snapshot
    * Allows you to take pictures with less than 2%
    * Audio is original 44KHz/61Kbit...



    LINK install CWM
    http://www.mediafire.com/?ta06qoagn3s7w0c

    Camera hack XXKI4
    * Hack VOL + / -
    Hold Volumekey to focus and release to shoot.
    Tap Volumekey will take a direct snapshot
    * Allows you to take pictures with less than 2%
    *1080p @ 30 Mbit and 48000 khz/192 kbit Audio Recording



    :)
    5
    You had no problem asking for donations to encourage your ''desire'' to mod...
    Did you get less than you expected???

    Sent from my GT-I9100 using XDA App

    You dont understand! making yourself look a twat

    Sent from my GT-I9100 using XDA App

    No mate, you're making yourself look like a twat. Does my app not work? Is it wrong of me to ask for a VOLUNTARY donation for something I put a lot of effort into? If I wanted it to be a scheme where you pay money and I do new features at the snap of your fingers, I would have made a Pro version and a Lite version and charged for it like a normal app. If you don't like what I do, feel free to leave and never come back.

    I hate arrogant pricks like you. What have you done for the community lately? Donations are just that, a DONATION. I don't give to cancer research then come back 3 months later demanding a refund because people still get cancer. Even while I'm not working on the mod, I still reply to PM's and posts helping people with the current version of the mod on a regular basis, which is more than most dev's would do when they're supposed to be on a break.

    Lots of people use my app daily on their phones, and I ask nothing in return. The generous ones who WANT to give can do so using the donation button, for which I am very grateful. That's as complex as it gets.

    ---------- Post added at 11:49 PM ---------- Previous post was at 11:41 PM ----------

    Potatoman said:
    DISCLAIMER TO AVOID DRAMA-
    I work on this in my own time as a project, as and when I see fit. At no point does using or donating to the development of this app entitle you to demand anything from me other than what has already been shared. The app is also for use "as is", with no warranty. Support is provided by me (and other helpful members) in this thread and in my PM box as and when we desire.
    Anyone who takes an issue with this is more than welcome to not use the app, not post here, and otherwise avoid being a nuisance to the rest of us in this thread.

    Disclaimer added in post 2 to avoid any more ignorant posters.