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

atomic.echo

Member
Jul 17, 2015
5
0
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
271
83
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
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.
 

overkill22

Senior Member
May 15, 2014
50
2
0
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
0
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
261
31
0
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
0
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:

overkill22

Senior Member
May 15, 2014
50
2
0
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
0
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
0
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?