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

Search This thread

overkill22

Senior Member
May 15, 2014
50
2
Trento
Hi guys,
I'm running CM11-20150823-NIGHTLY-i9300 and I have some problems.

1) sometimes I get an error about "Service Exchange". I notice when I was setting up the phone, adding the accounts.
2) in whatsapp the camera is not working, not taking pictures. it crash whatsapp after the first try and then a message "impossible to open the camera" edit: I noticed this with the frontal camera
3) can I add the red circle on the icon of whatsapp and facebook? (the notification about the number of the unread messages and notification)
4) it looks like that the display is with a wrong resolution... the pictures don't look nice either the icons... any suggestion?

edit:
5) using the whatsapp audio message, the phone record the voice super loud. even if I have the phone at 2mt away and I'm talking normally, the recording is super loud and the speaker will distort the sound even at low volume. any fix for this?
 
Last edited:

back2android

Senior Member
Dec 20, 2014
194
59
Ahmedabad
Has anyone of you ever faced phone turning off after using Camera with flash? I have mostly observed this when the battery is below 50%.

To switch it back on i need to remove and reinsert the battery.

I have my original stock battery in my S3 and i don't think there's anything wrong with the battery.

Using S3 running AD 3.1.3 with AK kernel.

Sent from my GT-I9300
 

mpadhu

Senior Member
Nov 22, 2012
298
47
Hi,

I am running Slimkat Build 9 Official ROM in Galaxy S3 SGH T999. I had flash all the below three zips one by one but nothing works. Actually it did not even replace the current camera app for the first two. But for the third the camera got installed and still getting FC error.
Please help.

1) OmniRom-Fixed_camera_Lib_V4.zip
2) OmniRom-Fixed_camera_Lib_with_Face_Detection_V2.zip
3) Omni_Fixed_Camera_for_OmniRom_by_RohanAJoshi_V5.0.zip
 

overkill22

Senior Member
May 15, 2014
50
2
Trento
Yes it was, but didnt use any script

As I wrote, I delted manually the files wich are mentioned in the script.

did you do this to fix the front camera problem?

---------- Post added at 06:18 PM ---------- Previous post was at 06:10 PM ----------

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!");

I really don't understand what did you delete.
I have found the script, and it is the same as yours.

edit:
I understood which files you manually deleted:

Code:
/system/app/Camera2.apk
/system/lib/hw/camera.smdk4x12.so
/system/lib/hw/vendor-camera.smdk4x12.so

Is this making the front camera working?
Thank you!
 
Last edited:

Tylonhh

Senior Member
May 26, 2011
228
86
Hamburg
Oh sorry for the misunderstanding.
Yes I deleted the files, which are mentioned in the script, directly on the phone with a SU file manager.
 

overkill22

Senior Member
May 15, 2014
50
2
Trento
Oh sorry for the misunderstanding.
Yes I deleted the files, which are mentioned in the script, directly on the phone with a SU file manager.

ok, but will this make the camera working?
because actually I tried just to rename the files and it will not recognise the camera anymore (because the Camera2.apk is the app of the camera)
 

Tylonhh

Senior Member
May 26, 2011
228
86
Hamburg
Did you boot into recovery to wipe cache and dalvik?
And it's right, you have to install a camera. I like the Google camera. I guess if you want to have the stock camera, just flash the Rom again.
 

overkill22

Senior Member
May 15, 2014
50
2
Trento
Did you boot into recovery to wipe cache and dalvik?
And it's right, you have to install a camera. I like the Google camera. I guess if you want to have the stock camera, just flash the Rom again.

ok, now I'm understanding better.

another question:

1) Does the google camera solve the problem of using the front camera in whatsapp?
 

amiro13

Senior Member
Jul 17, 2015
171
54
Tbilisi

overkill22

Senior Member
May 15, 2014
50
2
Trento
i tried to flash all of this zip for cm11 AOSP , but TWRP wrote zip file is corrupt...TWRP v2.8.6.0
samsung gt-s7392
[ROM][4.4.x][BETA-2][PORT][S7390/S7392][KTU84P]CyanogenMod 11 by fbli_41
:confused:

Try to download it again....did you check the md5sum, if not check it out to see if the files is correct. It happened to me more than I was expecting to have a corrupted file...
 
  • Like
Reactions: amiro13

amiro13

Senior Member
Jul 17, 2015
171
54
Tbilisi
Try to download it again....did you check the md5sum, if not check it out to see if the files is correct. It happened to me more than I was expecting to have a corrupted file...
thank you, yes, after check md5sum zip was installed, but wrote again "can't connect to camera"...ok, i installed vivavideo and it works perfectly, thank you:)
 

doublevit

New member
Sep 24, 2015
1
0
Fixed_Camera_V 4.0 has fix problem with switch camera in many apps like WhatsApp, Instagram and Twitter BUT this problem still exists in Periscope, the app I flashed my phone for. Very sad=(
 

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