[FIX] All in One Camera & Mic fixes for CM.7

Search This thread

TakamineSubasa

Senior Member
Sep 4, 2011
436
168
Um he probably took the wrong camera fix, or did not set permisions on apk and libs right.

GO to my original thread with the camera fixes, and if you want brighter exposures flash my N2 libs fix, it should definately work, tested 100x on my own phone.

http://xdaforums.com/showthread.php?t=1604205

Uhm i'm pretty sure that updater-script is correct... And as stated by 2-3 ppl, it seems to work..

Code:
ui_print("Mounting system...");
run_program("/sbin/busybox", "mount", "/system");
show_progress(1, 15);
ui_print("Installating fixes...");
package_extract_dir("system", "/system");
ui_print("Setting permissions...");
set_perm(0, 0, 0644, "/system/app/camera.apk");
set_perm(0, 0, 0644, "/system/lib/libaudio.so");
set_perm(0, 0, 0644, "/system/lib/libaudiopolicy.so");
set_perm(0, 0, 0644, "/system/lib/libcamera.so");
set_perm(0, 0, 0644, "/system/lib/libcamera_client.so");
set_perm(0, 0, 0644, "/system/lib/libcameraservice.so");
set_perm(0, 0, 0644, "/system/lib/libhardware_legacy.so");
set_perm(0, 0, 0644, "/system/lib/libmmipl.so");
set_perm(0, 0, 0644, "/system/lib/libmmjpeg.so");
set_perm(0, 0, 0644, "/system/lib/liboemcamera.so");
set_perm(0, 0, 0644, "/system/lib/libstagefright.so");
set_perm(0, 0, 0644, "/system/lib/libwebcore.so");
ui_print("Unmounting system...");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Installation complete!");
 
Last edited:

deniso177

Senior Member
Aug 27, 2011
558
145
Uhm i'm pretty sure that updater-script is correct... And as stated by 2-3 ppl, it seems to work..

Code:
ui_print("Mounting system...");
run_program("/sbin/busybox", "mount", "/system");
show_progress(1, 15);
ui_print("Installating fixes...");
package_extract_dir("system", "/system");
ui_print("Setting permissions...");
set_perm(0, 0, 0644, "/system/app/camera.apk");
set_perm(0, 0, 0644, "/system/lib/libaudio.so");
set_perm(0, 0, 0644, "/system/lib/libaudiopolicy.so");
set_perm(0, 0, 0644, "/system/lib/libcamera.so");
set_perm(0, 0, 0644, "/system/lib/libcamera_client.so");
set_perm(0, 0, 0644, "/system/lib/libcameraservice.so");
set_perm(0, 0, 0644, "/system/lib/libhardware_legacy.so");
set_perm(0, 0, 0644, "/system/lib/libmmipl.so");
set_perm(0, 0, 0644, "/system/lib/libmmjpeg.so");
set_perm(0, 0, 0644, "/system/lib/liboemcamera.so");
set_perm(0, 0, 0644, "/system/lib/libstagefright.so");
set_perm(0, 0, 0644, "/system/lib/libwebcore.so");
ui_print("Unmounting system...");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Installation complete!");
hmm looks right, can those people that have cam errors try my zips separetely and tell us if cam is still broken. remember this is for stock cm 7.2 RC1 only
 

kutysam

Senior Member
Apr 7, 2010
136
42
This works on Adam's N2 CM7, However, there were some issues along the way.
- I installed it using clockworkmod and cleared cache and dalvik cache etc.
- Camera gave me FC 100% of the time. Camera zoom worked probably though. Which meant that the 'new' camera apk was giving problems.
- So i removed camera.apk using titanium backup and simply 'moved' the camera apk from the zip file to the designated location using a cut and paste with ES File explorer.
And it worked!

1) Videos immediately start recording
2) Able to talk thru handphone's mic when hearing thru headphones.
3) Sound recorder works fine too!

Thank you for the amazing fix!
 

pikas23

Senior Member
May 29, 2011
80
5
Tagbilaran City

Umang96

Inactive Recognized Developer / Themer
Oct 1, 2011
2,757
9,683
New Delhi
This is a funny story,
Trettet posted a fix from CM latest sources
I posted a fix from N2 sources to make a better fix
then Deniso17 combined both for experiments on quality and zoom
Now you are combining it with audio fix, what a combination :p
 

pikas23

Senior Member
May 29, 2011
80
5
Tagbilaran City
Only lgCamerapro video recordning works on my phone. :(

Tried dude umangleekha's fix but CameraZoom FX's video recording Force CLoses... Evertym.. :(

Im Using GTR ROM 4.5X P500.. :(

Whats funny is (on my phone with GTR ROM) stock GTR Camera App Cant take pictures or record at all.. I installed CAmera FX and photo and video recording works.. so I uninstalled Stock GTR Roms CAmera app thru Titanium back up.. tHEn Camera FX video recording doesnt Work... I think its dependednt on Stock Camera App???

But, i repeat, LGCameraPro works . both photo and video recording. :)
 
Last edited:

deniso177

Senior Member
Aug 27, 2011
558
145
This is a funny story,
Trettet posted a fix from CM latest sources
I posted a fix from N2 sources to make a better fix
then Deniso17 combined both for experiments on quality and zoom
Now you are combining it with audio fix, what a combination :p
Well my fix has the apk, and the permissions work with it, so people for camcorder fix flash my fixes directly

---------- Post added at 03:09 PM ---------- Previous post was at 03:07 PM ----------

Thanks dude!
Will test..

BTW,, All else failed except LG CAmera Pro.. I got it working but Picture Qualtiy is Poor..
Try my last file, with that quality is the highest
 
  • Like
Reactions: pikas23

cybojenix

Retired Forum Mod / Retired Recognized Developer
Apr 7, 2012
801
1,864
Sorry for bringing back an old thread
I am from p350,and we've had requests for this feature. Would it be possible to see the sources please, so we can have a chance of improving our cm7?

Sent from my LG-P350 using xda app-developers app
 
OMG, it really works!! Im using neko95 G-T-R 1.9 ROM, Hats off to you sir...

BTW, i've just copied libs and set permissions in rootexplorer ;)

Finally --> [BUG] Headphones are always recognized as mic+headphones. Internal mic is then disabled thus making it impossible to answer calls on headphones with no mic.

WORKING 100% on C.M RC1 !!! And it has also improved the voice quality during calls immensely! Thank you 1000 times!!!

What if my headset have both mic as well as headphone? Will it still work? Will it then allow me to use the headset mic when it is connected?
 

Xazdron

Senior Member
Dec 4, 2012
138
2
Kulim
can anybody help solve my problem?

while recording/ (calls) loudspeaker mode my mic wont detect sound.. anybody can try help me?

xperia neo l

cm7.2 by bootbu9
 

Top Liked Posts

  • There are no posts matching your filters.
  • 18
    This flashable zip contains fixes for camera and microphone in CM 7.2 nightly builds...

    [CAMERA FIX] fixes camera Exposures, instant video record (no delays), and gives the best image quality

    [MIC FIX] fixes the audio routing so we can use you common favourite headphone and use built-in mic for calling, recording, voice-chat apps, etc..

    Installation:
    Download and flash with your favourite recovery...

    * In case it doesn't flash correctly you can grab the libs from the zip and replace it manually and set the corresponding permissions but remember to reboot when you finish the replacement to avoid DSP Manager FC's...

    All credits goes to Kiril "mik_os and Adfad666" :cool:

    Special thanks to umangleekha & deniso17 for posting libs and updater-scripts...

    --> Original Camera Fix thread
    2
    Updated to Adams lastest fixed libs!!! (calls + recoding with headphones...)

    All credits to Adam "adfad666" and Kiril "mik_os"

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

    Also added a flashable zip for camera & mic fixes



    @credits to adfad666, umhangleekha and deniso17
    1
    Dev and Dudes,

    Since Yesterday, My camera doesnt work anymore... I had the GTR ROm 4.5x that time,...

    Tried everything to fix it, flashed kernels, reflashing ROMs nothing works..

    Now, even my Nandbackup of a stable ROM is affected.. the CAmera doesnot work!

    BTW, I tried this fix ang still doesnt work.. hope u guys have an answer..
    Um he probably took the wrong camera fix, or did not set permisions on apk and libs right.

    GO to my original thread with the camera fixes, and if you want brighter exposures flash my N2 libs fix, it should definately work, tested 100x on my own phone.

    http://xdaforums.com/showthread.php?t=1604205
    1
    This is a funny story,
    Trettet posted a fix from CM latest sources
    I posted a fix from N2 sources to make a better fix
    then Deniso17 combined both for experiments on quality and zoom
    Now you are combining it with audio fix, what a combination :p
    Well my fix has the apk, and the permissions work with it, so people for camcorder fix flash my fixes directly

    ---------- Post added at 03:09 PM ---------- Previous post was at 03:07 PM ----------

    Thanks dude!
    Will test..

    BTW,, All else failed except LG CAmera Pro.. I got it working but Picture Qualtiy is Poor..
    Try my last file, with that quality is the highest