First off I wanna say a HUGE HUGE HUUUUUGE thanks for this. I have spent the last 2 days endlessl looking and testing and trying to find a fix.
Funny thing I landed on this and this was my very last ditch effort at tring to fix this. I had just texted people about if this fix doesn;t work I am reverting back to 4.3 tw stock rooted. To my pleasant surprise, this fix worked for me.
I am currently on Octos 4.4.4 KK rom and have sent the last 2 days exhaustingly and tireingly trying to get a fix for this.
I am so very greatful for whoever made this fix, I thank you a million times over.
I am on a T999L tmobile s3, and for whatever reason this phones camea seems to have issues with aosp style roms. I tried cm11, carbon rom, and Octos rom all 4.4.x KK roms and had the exact same camera issue on all of them.
Again I thank you for ending my tireless search for a fix.
*OmniRom/based users, flash Omni Rom Mod*
.
Steps for install :
1. Reboot to recovery.
2. Flash zip.
3. Wipe cache and dalvik.
4. Reboot phone normally.
This will replace your current camera app.
Tested on : Official cm10.2 nightlies, Temasek's Unofficial cm10.2, Temasek's Unofficial cm11.0.
Works on : Mostly all CM/AOSP based roms like PA,,AOKP, Carbonn Rom, PAC, etc.
Changelog :
V5 Update on 17/05/2014 :
For CM Mod : 1. New camera app from CM11S with cool UI and more features.
2. Added wrapper to blob camera.
3. Fixed Goggle camera freeze after 1st shot. (http://review.cyanogenmod.org/64070)
4. Added perfectly working snapshot while video recording feature. (http://review.cyanogenmod.org/64071)
For OmniRom : New camera app from CM11S with cool UI and more features.
Downloads :
1. For CM, Slim Rom, AOKP, Carbonn Rom, Temasek Rom, Neat AOSP, C-Rom etc which are using blob camera : Click here for download
2. For Omni Rom users which is using Open Source camera HAL : Click here for download
V4.0 Update on 01/04/2014:
Completely reworked and new camera HAL by @dhiru1602 with help of @tdcfpp aka Javier Ferrer.
.
Fixes / New features :
1. Most causes of "Can't Connect Camera" error are resolved, For me, no more can't connect camera error whatever I do.
2. Included Snapshot while video recording.
3. Fixed : Video recording focus issues.
4. Fixed : Sometimes shutter gets disabled, no matter how hard we bash it.
5. Fixed : Sometimes Pictures comes blurry ever after correct focus.
6. Most of front camera issues are fixed.
7. More those I did not remember.
.
Bugs :
1. Stock Camera app does not refocus after 1st shot in Continuous Picture Mode, Use any 3rd party app I mentioned previously for Continuous Picture Mode.
WorkAroud : Set focus to Auto in default camera settings.
2. Snapshot while video recording only working nice till 480p size, in 720p and 1080p snapshots stops after few shots and camera becomes unstable.
3. Face detection is broken.
.
I have changed stock camera app to camera from AOSP Neat Rom 3.10, Thanks to @_Sale_ and @tarzan11
V3 / OmniRom Lib V2 :
* Added latest patches by @dhiru1602
http://review.cyanogenmod.org/#/c/57294/
http://review.cyanogenmod.org/#/c/57293/
* Added support for face detection without any crash.
* Added Power and Volume button as shutter. Thanks to @rori~ Camera CM_11 Fix & Features v.3 by rori~
Bugs From cm11 camera App which are available in this mod for CM based roms :
*Continuous Picture mode is taking only 1 pic with focus, other pictures comes without focus,so use bellow given app.
*Face Detection is not working in stock camera app, you need to use supported app, some of them are listed below.
1. Nexus 5 Galley and Camera by RagzDog
2. Lenovo Super Camera
3. Camera Awesome
OmniRom users, Enjoy lib, your camera will work without any crash.
V2.3 / OmniRom lib V1.1 :
* added latest lib with following commits merged [Thanks to @Moster2 for lib] :
http://review.cyanogenmod.org/#/c/54818/
http://review.cyanogenmod.org/#/c/54817/
http://review.cyanogenmod.org/#/c/54690/ [patch 2]
V2.2 :
* Changed camera and gallery app to cm10.2 latest, same features with nice UI.
V2.1 :
* Added latest lib with minor fixes by DhiruCVR
* Now all functions working properly.
V2 :
* Support for Android 4.4 roms.
* Using latest lib provided by DhiruCVR.
Pros:
1. Storage to external SD. (Tested on Temasek's cm11 builds)
2. Timely synchronized flash when auto focus is on.
3. All camera features those were available on cm10.2 nightlies.
Cons/Bugs :
1. Video recording previews are stretched, but recording comes normal.
2. Gallery can't delete images captured from camera from external sd card, internal sdcard working good.
Screenshots : http://forum.xda-developers.com/showpost.php?p=46994259&postcount=5
For "Can't connect camera" error please use following app (Credit to Temasek) :
Restart Camera by temasek APK from attachments
Credits :
Dhiru1602(For perfectly working lib),Temasek(for camera app).
Downloads :
1. For CM, Slim Rom, AOKP, Carbonn Rom, Temasek Rom, Neat AOSP, C-Rom etc which are using blob camera : Click here for download
2. For Omni Rom users which is using Open Source camera HAL : Click here for download
*OmniRom/based users, flash Omni Rom Mod*
.
Steps for install :
1. Reboot to recovery.
2. Flash zip.
3. Wipe cache and dalvik.
4. Reboot phone normally.
1. For CM, Slim Rom, AOKP, Carbonn Rom, Temasek Rom, Neat AOSP, C-Rom etc which are using blob camera : Click here for download
soooo, how can I get that Camera app back to android because no Camera app works anymore?
Is that really needed? Why doesn't a reflash of the Rom help? Do I have to delete some files?No, it doesn't work. I tried it myself. Had to do a full wipe and reinstall the ROM to get it working again. Do not try it.
ui_print("Fixed Camera App and Lib for CM/All AOSP roms by RohanAJoshi");
ui_print("Mounting system...");
run_program("/sbin/busybox", "mount", "/system");
ui_print("Deleting previous Camera and lib ...");
delete("/system/app/Camera2.apk");
delete("/system/lib/hw/camera.smdk4x12.so");
delete("/system/lib/hw/vendor-camera.smdk4x12.so");
ui_print("Deleting done, now installing new gallery and libs ...");
package_extract_dir("system", "/system");
ui_print("Fixing Permissions...");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
set_perm_recursive(0, 0, 0755, 0644, "/system/lib/hw");
set_perm(0, 0, 0755, "/system/addon.d/75-rohancamera.sh");
ui_print("Un-Mounting system...");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Installation Complete!");
Ok, I got it. Here it's how I uninstalled the script CM_Fixed_Camera_for_CM_All_AOSP_roms_by_RohanAJoshi_V5.0.zip
Within in that zip there is a script which files are replaced, so I deleted them, wiped dalvik and cashes and rebooted.
This is what's inside that script
Code:ui_print("Fixed Camera App and Lib for CM/All AOSP roms by RohanAJoshi"); ui_print("Mounting system..."); run_program("/sbin/busybox", "mount", "/system"); ui_print("Deleting previous Camera and lib ..."); delete("/system/app/Camera2.apk"); delete("/system/lib/hw/camera.smdk4x12.so"); delete("/system/lib/hw/vendor-camera.smdk4x12.so"); ui_print("Deleting done, now installing new gallery and libs ..."); package_extract_dir("system", "/system"); ui_print("Fixing Permissions..."); set_perm_recursive(0, 0, 0755, 0644, "/system/app"); set_perm_recursive(0, 0, 0755, 0644, "/system/lib/hw"); set_perm(0, 0, 0755, "/system/addon.d/75-rohancamera.sh"); ui_print("Un-Mounting system..."); run_program("/sbin/busybox", "umount", "/system"); ui_print("Installation Complete!");
Hi,
Can you explain how you did this - I flashed the zip and it removed my camera app, and if install a different camera it gives me an error message straight away. I am using the latest cm11 nightly on a i9305lte
Thanks
Oh - actually I found a solution to the problem - just flash v4 of the zip - it has sorted all the problems, and I have a working camera.
was it successful on yours and if yes can you share how the script exactly should look like? thanks
---------- Post added at 04:41 PM ---------- Previous post was at 04:39 PM ----------
did it worked on CM 12.1? what android version do you have friend?
Yes it was, but didnt use any scriptwas it successful on yours and if yes can you share how the script exactly should look like? thanks?
As I wrote, I delted manually the files wich are mentioned in the script.Within in that zip there is a script which files are replaced, so I deleted them, wiped dalvik and cashes and rebooted.