[17 May][AOSP 4.3, 4.4][PORT][APP]Fixed Camera App and Lib for CM/All AOSP roms

RazorMC

Senior Member
Feb 12, 2011
426
96
58
SiN CiTY
i think cm12 does not need this fix anymore..
use nameless rom and use Google camera, you will get perfectly working camera..
I know it's been a long time since you posted, but what is your advice in this regard (as someone who used Nameless) ?
I've tried other CM12 ROMs (not Nameless yet) and they all have the same issue (can't connect to camera) even with 3rd party apps.

I've tried your fix on CM11 and it solved the issue btw. It's the only thing that convinced me to abandon stock and go for CM11.
Is there any development on this fix for CM12? I guess the fix is still needed for other ROMs even if Nameless got it solved. :good:

Thanks.
 
Last edited:

ps89

Member
Jul 3, 2013
46
18
0
Hello guys. I'm using Paranoid Android 4.6 Beta 5 on my Samsung Galaxy S3 (i9300). Which version of the fix should I flash? CM or Omni. Thanks. :)
 

ayoubij

Senior Member
Jan 28, 2013
2,565
751
0
Tripoli
I know it's been a long time since you posted, but what is your advice in this regard (as someone who used Nameless) ?
I've tried other CM12 ROMs (not Nameless yet) and they all have the same issue (can't connect to camera) even with 3rd party apps.

I've tried your fix on CM11 and it solved the issue btw. It's the only thing that convinced me to abandon stock and go for CM11.
Is there any development on this fix for CM12? I guess the fix is still needed for other ROMs even if Nameless got it solved. :good:

Thanks.
For the cm12 you only have @Moster2 if he agree to fix it
 

nstarz

Member
Jun 1, 2012
10
0
0
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.
Which download file did you use?
 

wetito

Senior Member
Dec 12, 2014
381
76
58
48
reggio emilia
*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. :D
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
tested on galaxy s3 neo+ i9301 with cm11. Work perfect!!! thank you very much
 

miksly

Member
Feb 9, 2015
48
5
0
I'm using Paranoid Android 4.6 Beta 5 on my Samsung Galaxy S3 (i9300). When i rec a video and i stop the recording , camera app will crash.
i use CM11 version.
it's correct?!!?
 

Norbufs

New member
Aug 11, 2013
3
0
0
Working like a boss!

*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
I used to have problems with the camera button animating but no picture was taken on the built-in camera.
I am on a Samsung Galaxy S4 I9505 International and Cyanogenmod 12-20150310 (Android 5.0.2) and this method worked for me. Now I can take endless amount of pictures! So happy :D Thanks a million!
 

Banayat

Senior Member
Apr 18, 2014
72
10
0
bahaha...Android completed the misery by just deleting my replaced camera on Slimkat 4.4.4 after tryin to open it :D soooo, how can I get that Camera app back to android because no Camera app works anymore? btw I've installed the prescribed version:
CM_Fixed_Camera_for_CM_All_AOSP_roms_by_RohanAJoshi_V5.0.zip
 

Tylonhh

Senior Member
May 26, 2011
228
86
0
Hamburg
soooo, how can I get that Camera app back to android because no Camera app works anymore?
Did you solved it? I deleted odex and flashed the rom, wiped the cashes but can't run the Google camera.
I'm on LP

Any suggestions?

---------- Post added at 01:13 AM ---------- Previous post was at 01:06 AM ----------

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.
Is that really needed? Why doesn't a reflash of the Rom help? Do I have to delete some files?
 

Tylonhh

Senior Member
May 26, 2011
228
86
0
Hamburg
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!");
 

kbuss

Senior Member
May 14, 2013
121
17
0
this fix just rendered my camera totally inoperable! even other camera apps (Insta, Google camera), and full factory reset dont work, I had to reflash from zip.

9305 latest CM official nightly, 04/12 I think, few days old fresh install. maybe its not the right thread to ask, but what is this camera misery anyways??? why isnt this integrated in CM ages ago? and whats the point of compiling official CM nightlies till its camera is not working flawlessly out of the box?

stay away, idk why this thread is not closed...?? it looks it was abandoned almost a year ago...
 

doiscavalos

Member
May 25, 2012
17
0
0
Porto
I need some help on how to install those files.
I have the latest CM 11 (20150517 Nightly) working on my i9300 and suffering from issues with camera. Mainly its detected when i try to access the camera directly from inside. To repair it I have to reboot the phone and take the pictures from the camera app and then share into whatsapp.

Anyone can help me? Thanks!!
 

Danielfuchs1

New member
Jun 14, 2015
1
1
0
Dont work

I am on CM 12.1. on Samsung Galaxy S3 (i9300).
I habe flashed the ZIP and after reboot none camera is there :eek:
When i install a Camera from Play Store the apps crashed all.
By flashing the ZIP, on the display stand "deleting camera libery"
Is this the Problem?
Now i cant take any photo.
Data wipe and New CM Installation doesnt work:(
Please help me
Thanks
 
  • Like
Reactions: robert2103

wichoxp

Senior Member
Feb 3, 2013
71
31
0
Thank you, thank you, thank you!!!

This "FIX" finally fixed my Camera app from FC's after finishing any HD Recording.

It fits perfectly on my Galaxy Exhibit T599 using CM11 [4.4.4] ROM from [HERE!]

See ya!