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

TakamineSubasa

Senior Member
Sep 4, 2011
436
168
0
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://forum.xda-developers.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
0
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
131
42
0
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
78
5
0
Tagbilaran City
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://forum.xda-developers.com/showthread.php?t=1604205
Thanks dude!
Will test..

BTW,, All else failed except LG CAmera Pro.. I got it working but Picture Qualtiy is Poor..
 

Umang96

Recognized Developer / Themer
Oct 1, 2011
2,755
9,661
0
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
78
5
0
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
0
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 Moderator / Retired Recognized Devel
Apr 7, 2012
801
1,864
0
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
 

krazzyvishal

Senior Member
Oct 1, 2011
443
285
93
Mumbai
www.facebook.com
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
0
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
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone