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

Search This thread

nstarz

Member
Jun 1, 2012
10
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
1,451
301
50
reggio emilia
Xiaomi Mi A3
*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

Senior Member
Feb 9, 2015
66
7
Xiaomi Mi 9
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
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
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
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
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
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...
 

Minto107

Senior Member
Aug 10, 2013
3,939
1,385
22
Will it work on Android 5.1?(If I delete lines from upd script of course :D)
 

doiscavalos

Member
May 25, 2012
19
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
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
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!
 

atomic.echo

Member
Jul 17, 2015
5
0
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.
 
Last edited:

ajeevlal

Senior Member
May 11, 2008
417
272
Houston
Did you red my post before yours?

getapatalked mit Android 5.1

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 ----------

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.

did it worked on CM 12.1? what android version do you have friend?
 

atomic.echo

Member
Jul 17, 2015
5
0
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?

No I am on CM11 nightlies. It actually hasn't totally fixed the cannot connect to camera message - but it happens much less frequently now.
 

Tylonhh

Senior Member
May 26, 2011
228
86
Hamburg

REVERENDO75

Senior Member
Oct 18, 2013
669
65
47
hi i'm on latest nameless rom and i have camera problem, can i flash this fix? and if yes what file i must to download?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 263
    *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
    23
    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
    10
    Update is coming soon..
    probably most bugs fixed..
    both omni and cm..
    10
    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
    7
    Screenshots :

    Screenshot_2013-11-26-23-34-00.jpg
    Screenshot_2013-11-26-23-34-07.jpg
    Screenshot_2013-11-26-23-34-14.png
    Screenshot_2013-11-26-23-34-35.jpg