yashsingh1/xdaforums huggingface dataset:
[Galaxy S III Themes and Apps] mironmizrahi:
Hi there,

I hope someone can help me out with my "cannot connect to camera" error.

Some background:

My phone is an HTC One (M7) which I got from Telstra

The process thus far: install all my apps. ADB backup, unlocked bootloader, flashed TWRP, rooted, ADB restore. at this point I had a rooted phone, stock ROM. did a nandroid backup using TWRP. Tried installing CM using the installer but if failed after flashing CWM recovery. since my backup was done using TWRP, I reflashed it (openrecovery-twrp-2.7.0.0-m7.img) and installed CM (cm-10.2.1-m7ul) manually. installed Gapps (gapps-jb-20130813-signed) and redownloaded all my apps. so far so good. tried the camera and got the dreaded error. spent a few hours googling and fiddling to no avail. came upon this thread and tried every version of the fix from 4.0 down to 2.3. wipe cache/dalvik each time. no luck. tried the restart camera app, as well as clearing app data with Titanium backup. no luck.

so I am kinda stumped. I don't want to go back to the stock rom but without a functional camera, I am going to have to.

UPDATE: restored backup to stock and validated that camera is fine. reflushed CM and tested - no good. installed v2.3 of fix - no good. still stumped

any ideas?

thanks in advance
[Galaxy S III Themes and Apps] are2power:
Try download restart camera by temasek.(read op).install as normal apk and then reboot..
[Galaxy S III Themes and Apps] mironmizrahi:
1401 24536835

as stated, I already did that. I just tried installing it again )on top of a brand new CM reflush) via CM file manager but after hitting "install" it comes up with "app not installed". I have allowed apps from unknown sources. where is the OP?

UPDATE: installed GApps and managed to install restart camera. no good. seeing that camera works on stock rom it is not a HW issue. seeing that it does not work on a clean CM install suggests it is either driver or OS issue. the fixed app posted in this thread seems to work for some so not sure why it does not work for me. is there any logging that can be turned on? does anyone have an HTC One with CM 10.2 and has it working?
[Galaxy S III Themes and Apps] RohanAJoshi:
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
[Galaxy S III Themes and Apps] szunyi77:
Hello

Thanks for the update!

I can see already available "Cm" and "Omni" version V5!

nice work

Now I use the SOKP Milestone1, you need to CM_Fixed_Camera_for_CM_All_AOSP ... V5?

So far I have used the V4.
[Galaxy S III Themes and Apps] RohanAJoshi:
Yes, 1st try cm version, if its not working then flash omni version..
[Galaxy S III Themes and Apps] bornlivedie:
SOKP uses CM as a base (using the blob camera) so flash the new V5.

Flashing older versios or Omni version will replace the camera.
[Galaxy S III Themes and Apps] c.pereira1:
Omni camera has some problems with the power button shot

Enviado desde mi GT-I9300 mediante Tapatalk
[Galaxy S III Themes and Apps] Kapiljhajhria:
[MENTION=3814993]RohanAJoshi[/MENTION] CM11S camera app keeps crashing after two pics. Other camera apps are working fine.

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

Here is the logcat

https://mega.co.nz/#!sNZRzTjL!Vc6fHzoTwmnNdLcCoD9aSQVq7XfNAfhULSc6lN-9kTo
[Galaxy S III Themes and Apps] forumber2:
[MENTION=3814993]RohanAJoshi[/MENTION]

Why the patch uses wrapper?
[Galaxy S III Themes and Apps] adripred:
V5: "Can't connect to camera" error still happening here opening CM11x camera after using Google Camera. I'm using CM11 20140517 nightly.
[Galaxy S III Themes and Apps] mindphaser2k9:
I'm using MoKee OpenSource ROM and I thought it is CM based so first flashed Fixed camera for CM version v5. But it didn't work. Then I flashed Omni version, it works, but is this correct? Fixed camera v4 for CM worked fine for me.
[Galaxy S III Themes and Apps] forumber2:
Did you try camera without install this patch?
[Galaxy S III Themes and Apps] bornlivedie:
V5 totally broke the camera in CM11

A pic and "can't connect to the camera". And apps like Translate doesn't work and crash the camera.

Rolling back.
[Galaxy S III Themes and Apps] Unutulan:
Thanks very well :)

GT-I9300 cihazımdan Tapatalk kullanılarak gönderildi
[Galaxy S III Themes and Apps] Yeti47:
That odd because I'm on cm11 with boeffla v3 (with camera patch) and the patch all works great, including translate. Did a clean cm11 nightly install today.

Guess that why these fixes are so hard to get right for everyone :(
[Galaxy S III Themes and Apps] DualJoe:
What a nice camera... Just did a quick test. Shooting 5 pics in a row after using Google camera. No problems. Thank you. :)

Temasek + Devil3
[Galaxy S III Themes and Apps] bornlivedie:
Weird.

I'm too on a clean install (latest nightly) with latest Boeffla test.

Gonna try with Google Camera.
[Galaxy S III Themes and Apps] Yeti47:
I did also do a full cache clear, which may of helped. Google Camera froze for me, so I removed it, only needed 1 working camera....

Boeffla v3 did not cure the freezing for me when I was using omni, but v4 omni lib from rohan did. So suspect we have a number of different issues all going on.
[Galaxy S III Themes and Apps] bornlivedie:
Installing google camera fixed it.

Google Translate works now and I can take more than 2 pictures without the camera crashing.

Seems like the new camera app is the culprit.
[Galaxy S III Themes and Apps] Kapiljhajhria:
I flashed this patch and got new CM11S camera app.

It kept crashing after I changed storage to external sd.

So my ADVICE keep storage to INTERNAL only. If anyone of you are facing the same problem.
[Galaxy S III Themes and Apps] Tyrigi:
Omni v5 make cm11 camera crash on archidroid..
[Galaxy S III Themes and Apps] adripred:
Before install I had this error too. I have to turn off the phone to bypass the error because restarting system doesn't work. Only Snap camera works with less errors.
[Galaxy S III Themes and Apps] 2uk3y:
tested v5, all going right. take picture while recording no problem.

also works fine with google camera.

temasek v83 + boeffla beta2
[Galaxy S III Themes and Apps] trancoss2:
Thanks

Enviado desde mi GT-I9300 mediante Tapatalk
[Galaxy S III Themes and Apps] JohnnyGT:
Missing option of viewing Photosphere pics in gallary ?

Edit: found I have 2 galleries disabled earlier version and got it back
[Galaxy S III Themes and Apps] enigma1981:
**Silly question alert**

Is this only of benefit if we're using the Google Camera from the PS? Or will I see improvements in the stock cm11 camera too?

Thanks :)
[Galaxy S III Themes and Apps] iceman0826:
so hows the quality of video recording when this patch is applied? can it do 30fps@30mbps?
[Galaxy S III Themes and Apps] RohanAJoshi:
for fixing bugs in blob lib, we normally use wrapper for it..

CM fix worked for 1st time ? it is directly giving you can't cannect camera error ?

For those getting errors :

One thing I forgot to mention that this mod replaces your stock camera with camera from cm11s, so data for both camera is different, that is why its crashing after 1st shot.

for that go to settings => apps => all tab => camera => and clear data.

.

then you will not any crashes.

but in rare conditions, can't connect camera happens then use restart camera apk.

.

and even after these steps, you get can't connect camera error at launch of app, then you need to use Omni Mod.
[Galaxy S III Themes and Apps] mindphaser2k9:
No, CM fix v5 never worked for MoKee ROM. I'm using Snap Camera, it crashes with v5. Other camera applications either crash or can't connect to the camera. With Omni fix v5 the camera works but the capturing photo during video doesn't work.

Flashed v4 for now, it works great!
[Galaxy S III Themes and Apps] Tyrigi:
Yes i have cant connect camera error at launch of app Also After cleared camera app, other camera apps seems work so wich omni mod should i use?
[Galaxy S III Themes and Apps] RohanAJoshi:
I am downloading mokee, lets see whats happens..
[Galaxy S III Themes and Apps] N-TheAndroNoob:
How do I install Google Camera as a user app onto my phone with your Mod in it [MENTION=3814993]RohanAJoshi[/MENTION]?

When I try to install, it says App not installed afetr two seconds... If I flash Google Cam as a user app, will that affect CameraNext?
[Galaxy S III Themes and Apps] RohanAJoshi:
no, I am on temasek rom, and I can install google camera easily..

try latest version which .042 version
[Galaxy S III Themes and Apps] N-TheAndroNoob:
You mean Google Camera's latest version right?
[Galaxy S III Themes and Apps] RohanAJoshi:
yes
[Galaxy S III Themes and Apps] :
Tried flashing cm v5 over stock cm11 on galaxy s3 i9300. Any fixes?
[Galaxy S III Themes and Apps] N-TheAndroNoob:
I am on nightly of 16/05 of CM11 Offical. Trying to install latest version didnt work, so I flashed it as a user app. But that didnt work...

Please help
[Galaxy S III Themes and Apps] peter.neilmann:
I tried over t0lte using omni rom. The camera to photos itself worked flawlessly, however to record video it's froze and I had to reboot the phone. Any clue?
[Galaxy S III Themes and Apps] daweed Ds:
Exelent on boeffla fusion 1.0.3 thx man!
[Galaxy S III Themes and Apps] sjthuss:
What's the best way to roll back to a previous version? I installed V5, but it crashed when I tried setting the power button as shutter, and now crashes every time I open the new camera app (can't connect to camera). Tried to reinstall the zip, but same problem.

Running a S3, SGH-I747, with the installer version of CM11.

Also still can't use the Google camera, or generally any other 3rd party camera app, just trying to get something that works.
[Galaxy S III Themes and Apps] Yeti47:
Have u followed the additional instructions from Ronan?

http://xdaforums.com/showthread.php?p=52741553

Failing that format /system and reinstall your rom, gapps, SuperSu and kernel again. It puts a script in /system/addon.d that keeps the update installed across

Rom updates, so a rebuild is safer.
[Galaxy S III Themes and Apps] sjthuss:
Clear data for camera under apps? Yes, tried that, still no luck. Was hoping to not have to reinstall the Rom, but sounds like that might be the best option now.

I really wish the camera wasn't so buggy with CM. It's a bit of a deal-breaker, might have to go back to stock if this doesn't work out.
[Galaxy S III Themes and Apps] LostSon:
Hi Guys!

v5 crash on cm10.2 stable

dont think that the v5 support cm10.2 stable but tried it

and it doesnt work for me ^^

Anyways, nice work for all guys which can use this hot stuff
[Galaxy S III Themes and Apps] Math_Apolo:
Hi everyone

In v5 I can't take pictures with power button, is someone with same "problem"?

Thanks for reply.
[Galaxy S III Themes and Apps] khanmein:
[MENTION=220117]Rohan[/MENTION], ur v5 got included below updates? thanks~

Rename camera blob (android_device_samsung_i9300)

camerawrapper: Do not cancel auto focus when preview is not running (android_device_samsung_i9300)

Rename camera blob (android_device_samsung_i9300)

Build camera wrapper (android_device_samsung_i9300)

Revert "Camera2: Don't try to cancel focus messages when preview stops" (android_device_samsung_i9300)

camera: Add wrapper (android_device_samsung_i9300)
[Galaxy S III Themes and Apps] mironmizrahi:
same here. also tried http://xdaforums.com/showpost.php?p=49708402&postcount=24 but still no luck.

so I wiped /system and restarted. clean CM 10.2 install + v5 fix. oddly, after this I had 2 camera icons in apps list . but only one (from v5) appearing in settings -> apps. class was com.cyngen.cameranext.

ran logcat

for the CM camera (pre v5 ) the only meaningful lines (to me at least) are

E/CameraWrapper( 238): vendor camera open fail

E/CameraClient( 238): Could not open camera 0: -1

E/CameraClient( 238): initialize: Camera 0: unable to initialize device: Operation not permitted (-1)

.... some more log line here

I/CameraClient( 238): Destroying camera 0

E/CameraHolder( 2823): fail to connect Camera

E/CameraHolder( 2823): java.lang.RuntimeException: Fail to connect to camera service

thev5 camera gives another error "camera has stopped working"

logcat reveals this

I/dalvikvm( 2239): Could not find method android.os.Environment.getStorageState,

referenced from method com.android.camera.Storage.getAvailableSpace

W/dalvikvm( 2239): VFY: unable to resolve static method 658: Landroid/os/Environ

ment;.getStorageState (Ljava/io/File;)Ljava/lang/String;

D/dalvikvm( 2239): VFY: replacing opcode 0x71 at 0x000b

D/AndroidRuntime( 2239): Shutting down VM

W/dalvikvm( 2239): threadid=1: thread exiting with uncaught exception (group=0x4

15cc7c0)

E/AndroidRuntime( 2239): FATAL EXCEPTION: main

so looks like a CM camera has permission issue. looks like v5 is calling a method which does not exist while trying to figure out how much space is left which is weird since it is a pretty basic bug so I am assuming maybe this was build for 4.4 and CM 10.2 is 4.3 so methods might vary slightly? but this is all conjecture.

[MENTION=220117]Rohan[/MENTION]: any ideas?
[Galaxy S III Themes and Apps] RohanAJoshi:
wipe data of camera app, you will resolve crash by this, for reverting, delete 75-rohancamera.sh file from addon.d using root browser and flash rom again.

.

I will upload soon full roll back version.
[Galaxy S III Themes and Apps] RohanAJoshi:
CM10.2 is based on Open source camera HAL, and my version v5 is based on proprietary blob, do v5 will not work on cm10.2.

but try Onmi Mod v5..
[Galaxy S III Themes and Apps] Tyrigi:
Tried OmniMod v5 and it broke all camera, tried also CM mod and nothing, come back to omni v4 libs, stock camera don't work anymore, others take a few shot and stop working >_< im running archidroid wich is omni base.
[Galaxy S III Themes and Apps] LostSon:
Same Problem with omni v5 in cm10.2.

Open cam and instant crash.

Thanks for your response mate
[Galaxy S III Themes and Apps] mironmizrahi:
same result, exact same error message
[Galaxy S III Themes and Apps] _Negan_:
Here aosp v5 works very well on liquid smooth rom. Thanks Rohan
[Galaxy S III Themes and Apps] funk_doc:
That'll be great. I installed v5 on SlimKat Stable 4.0 and there isn't a camera app anymore, no stock, no v5, nothing ;)

Edit: Flashed v4 afterwards and it runs...?
[Galaxy S III Themes and Apps] rascal0pl:
After first recording, I can't record again, restart camera apk not helping, If I want record another video, I must restart my phone (v5 temasek CM11 v83)
[Galaxy S III Themes and Apps] bornlivedie:
Oh boy... Not again

Cm11 uses propietary blobs and slim uses open camera hal

V4 is using camera hal files and v5 is using te blobs.

With slim you have to flash the omni version
[Galaxy S III Themes and Apps] RohanAJoshi:
clear camera data..

working fine here with v83
[Galaxy S III Themes and Apps] lacoska:
And v 84?????:)

Envoyé depuis mon GT-I9300 avec Tapatalk
[Galaxy S III Themes and Apps] Full HD:
Working fine here on v84, too :good:
[Galaxy S III Themes and Apps] rascal0pl:
I can read... I did it, before I wrote this post ... + I installed it on clean rom.
[Galaxy S III Themes and Apps] _Negan_:
New camera focus speed and quality is awesome imho. Maybe better than stock.
[Galaxy S III Themes and Apps] Tyrigi:
Can you try fix v5 for Archidroid ? :crying: now im back on v4 but camera don't take picture most of times..
[Galaxy S III Themes and Apps] onggie:
Word of warning for anyone on Carbon (i9305, latest nightly (18/05/2014)). I flashed V5 Update (17/05/2014), it removed the stock camera app, and installed the new CM11s app. CM11s app doesn't appear in the app drawer, it says it's installed under settings -> apps -> all. But I am unable to run it.

Also no amount of reboots, reinstalling of Google Camera App or Stock Camera app will let the camera connect.
[Galaxy S III Themes and Apps] Math_Apolo:
Sorry if I was rude

I really want to say thanks to this cam, this really WORK in Temasek CM11 (build 8x +), I really apreciate this :laugh::good::laugh:

I just want to know if someone can configure the power button to shoot with v5, I am not enable to do that, thank you folks.
[Galaxy S III Themes and Apps] rascal0pl:
I flashed it again after update to v84 and once again cleared camera data, the same problem - after first recording I must restart my phone, If I want record another video, photos - no problem at all.

Could it be kernel problem (arter97 2.0)?
[Galaxy S III Themes and Apps] RohanAJoshi:
maybe..

do one thing, backup your rom, then full wipe, and flash rom with stock kernel, then flash my mod and test it..
[Galaxy S III Themes and Apps] RohanAJoshi:
Sorry, ArchiDroid is using omni rom as base and Omni Rom using Open Source Camera HAL, you can try omni rom v5 but this only changes your camera app..

As you can see here : https://github.com/CyanogenMod/android_device_samsung_i9305/commits/cm-11.0 i9305 still on Open Source Camera HAL in cm or in any other rom and cm v5 is based on Blob camera, it will not work i9305..

but you can try Omnirom v5..

me too, don't know why power stutter not working on temasek rom..

it was working on cm..
[Galaxy S III Themes and Apps] onggie:
My apologies I did not realise this. I know this would be the wrong thread to ask in, but do you know if this will be changing any time to use the blob camera?
[Galaxy S III Themes and Apps] RohanAJoshi:
I think no..

Open Source HAL is working best on other smdk4x12 devices but only i9300 was buggy, so cm added blob camera again..
[Galaxy S III Themes and Apps] onggie:
Thanks for taking the time to reply.
[Galaxy S III Themes and Apps] IceFresh:
Works perfect with Slimkat build 5, but I have 1 question. When I tick the "Power shutter" option the camera app stops. Do I need any other things to get this working? Not a big deal, but power shutter is a nice feature.
[Galaxy S III Themes and Apps] metalgearhathaway:
http://review.cyanogenmod.org/#/c/64325/

i9300 Camera HAL, that is to be in tonight's CM and other popular kang nightly builds :good:
[Galaxy S III Themes and Apps] AssassinGEO:
That means,finally we'll have smooth and stock quality camera?
[Galaxy S III Themes and Apps] metalgearhathaway:
Here's hoping!:fingers-crossed:
[Galaxy S III Themes and Apps] onggie:
Just updated Carbon to the latest nightly which had i9300 camera fixes in the change log. Seems good so far. Switching between video and camera no connection issues.
[Galaxy S III Themes and Apps] SuperAce609:
Question, can you guys take photo spheres and panoramas using Google camera without the camera going wild after the first shot? Wild being it moves by itself randomly even if the phone is still.
[Galaxy S III Themes and Apps] onggie:
Did the same thing for me while I was on Omni. I knew Omni had an issue with the compass and would screw with Google Maps and would point the wrong way. I assume these are all related.
[Galaxy S III Themes and Apps] Buckycasuals:
[MENTION=2069027]metalgearhathaway[/MENTION] still unable to set Auto in focus mode
[Galaxy S III Themes and Apps] metalgearhathaway:
I'm hankering for video record fix more than anything, as I can take pictures with Camera Zoom instead, which is nicer just in my opinion :)
[Galaxy S III Themes and Apps] maclick245:
camera issue

Kindly help, I have tried camera fix several times without success. Camera doesn't open at all
[Galaxy S III Themes and Apps] SuperAce609:
Thanks. I read it's a compass issue with omni that somehow managed it's way to ultima aosp.

---------- Post added at 05:03 AM ---------- Previous post was at 04:28 AM ----------

Can you link me to it? Only temasek thread i can find is the closed one.
[Galaxy S III Themes and Apps] 2uk3y:
http://xdaforums.com/galaxy-s3/general/4-4-2-cm11-temaseks-unofficial-build-t2681344
[Galaxy S III Themes and Apps] mindphaser2k9:
Is this the reason why V5 doesn't work for me? I use MoKee for i9305. But why V4 works fine?
[Galaxy S III Themes and Apps] RohanAJoshi:
V4 using Open Source Camera HAL, so V4 will work on most smdk4x12 devices like N7100, i9305 etc..

but CM v5 is specifically for i9300 which is using blob camera as per CM changes.

Omni Rom for i9300 is still on Open Source Camera HAL, so you can try omni v5 which is based on same v4 lib but includes camera apps from cm11s.
[Galaxy S III Themes and Apps] mindphaser2k9:
Somehow with omni v5 the capturing photo during video doesn't work for me, so I will keep using V4, thank you!
[Galaxy S III Themes and Apps] _Negan_:
Am I the only one that noticed very cold colours on automatic mode of new camera app inside v5?
[Galaxy S III Themes and Apps] N-TheAndroNoob:
It works perfectly well for me. No mod kernels or anything and I am on 05/22 of official CM11. PA GApps too. I was able to take several shots on my phone. No lag or slowdown or crash or explosions. *Just humour*

---------- Post added at 02:16 PM ---------- Previous post was at 02:15 PM ----------

@RohanAJoshi, I can't change between capture modes for the front camera and also front cam has no Auto mode. Is this a bug or is it just me?
[Galaxy S III Themes and Apps] RohanAJoshi:
there are no modes for front camera, I checked in stock cm app also..
[Galaxy S III Themes and Apps] N-TheAndroNoob:
oooooookay..... this is bad.
[Galaxy S III Themes and Apps] diug:
I get "Gallery stopped working". Cleared gallery data/cache, still does not work. Is there any fix for this? I saw 2 other people having this issue, but they didn't get an answer.

Thank you.
[Galaxy S III Themes and Apps] RohanAJoshi:
Sorry, but its totally random..

I never get that problem..

This does not touch gallery app..
[Galaxy S III Themes and Apps] diug:
I figured it out.

I was trying to open the app from my homescreen. Apparently the shortcut had an issue. I started the Camera app from the App drawer and it works. :)

// But I have an issue with the video - it appears squashed somehow. I mean a square in reality is a rectangle in the video - it's like watching a 4:3 TV channel on 16:9 TV - I don't know how to explain it better. So..is there any solution to this?
[Galaxy S III Themes and Apps] :
Works great on CM11 M6 20140504 with CM's own Gapps KK-20140105-signed!

No more "cant connect to camera"

Thanks!
[Galaxy S III Themes and Apps] andrew.mackew:
Awesome work on Omni/CM patch! Kudos! I wonder where the camera app comes from.. it's cool and plenty off features.

@OP

Please keep up the excellent work!
[Galaxy S III Themes and Apps] gian90marco:
I'm experiencing FCs when selecting "shoot with on/off button" in settings. Any idea?
[Galaxy S III Themes and Apps] SuperAce609:
If someone ever wants to remove this mod what do they do? Does this add extra libs or files besides the camera and gallery?
[Galaxy S III Themes and Apps] RohanAJoshi:
Delete rohancamera.sh from system/addon.d.

Then either flash rom again without wipe or manually paste original files from rom.
[Galaxy S III Themes and Apps] Omar97:
Wich One

Hey All

which one be can used to fix "Resurrection Remix 4.4.2 KitKat" Camera !!
[Galaxy S III Themes and Apps] B@sti:
The cm one.

With kind regards,

Sebastian

Sent from SAMSUNG Galaxy S3