[Q] Can't connect to camera and I've tried everything - Galaxy S III Q&A, Help & Troubleshooting

This problem has been encountered by tons of people and there are tons of threads, which I think I have read all of, but I still can't solve the problem. My problem started when I decided I want to put CM10.2 (cyanogenmod for those who don't know) on my Galaxy S3 (i9300 intl version). I use a mac and so I looked up how to root from a mac. I found this site and followed the instructions. After finishing, my phone was not rooted and for some strange reason, my camera stopped working. I decided to ignore that since I figured once I rooted it and put CM on it, it would solve itself. Note: I didn't make a backup. I know, stupid stupid stupid. Once I got CM on there however, the problem persisted. I have now spent 3 days and untold number of hours on this and I can't solve it.
The following is a log of everything I have done from the very beginning:
1. Tried to root using method from this site. It tells you to download a zip file which contains: heimdall suite 1.3.2 (mac) and CWM-SuperSU-v0.87.zip which further contains an apk called Superuser.apk and also su command for xbin. It also contains a file called s3pit.pit which you flash via heimdall first. Result of this was camera on original stock rom not working and not rooted.
2. I rooted my s3 using the proper method which involved using my PC using Odin3 v1.85 to flash CF-Auto-Root-m0-m0xx-gti9300.tar.md5. This worked fine.
3. Flashed clockworkmod recovery using Odin3 v.3.07 and file recovery-cwmtouch-6.0.3.2-GTI9300.tar
4. Installed CM 10.2 without any issues. Tried camera, no go.
5. I am in spain and bought my phone here unlocked. I did the best I could to find out what my original stock rom was. Using This thread as a guide I restored GT-I9300XXEMG4_KOR_MULTI_FACTORY which included new pit, modem and bootloader. Still no dice.
6. I read multiple posts in which people were able to fix the problem by simply putting the correct camera firmware .bin file into the /data/cfw folder. I downloaded every .bin I could find and put them in there but... no dice.
7. Using the dialer, I enter *#34971539# to find out what firmware and camera I have but nothing comes up. It just says "Standard Firmware"
8. I flashed an updated stock firmware: PHE-I9300XXUGMK6-20131228140138. Everything great... except for the camera
9. Opened up ADB and started looking for clues in the log. Here's the log I got under this ROM:
E/SecCameraHardware( 1919): camFW =
E/SecCameraHardware( 1919): FimcV4l2 init: error -1, VIDIOC_S_INPUT
E/SecCameraHardware( 1919): initCamera X: error, /dev/video0
V/SecCameraHardware( 1919): FimcV4l2 deinit EX
E/SecCameraHardware( 1919): createInstance: error, camera cannot be initialiezed
E/SecCameraHardware( 1919): Instance is not created
E/SecCameraCoreManager( 1919): Could not open camera 0: -38
D/SecCameraCoreManager( 1919): SecCameraCoreManager destroyed: pid=1919
I/SecCameraCoreManager( 1919): Destroying camera 0
E/CameraEngine(20826): service cannot connect. critical exception occured.
"destroying camera" (and soul)
I'm not convinced the fw files I placed in the /data/cfw folder are being recognized or used because where it says in the log "camFW=", the value is null. Other users' log files for this problem usually have a value in there for the firmware.
10. I decided to hell with this, I need my phone back to at least usable state so I reflashed my nandroid backup of CM10.2 (still no camera) but had a look at the log to see if it was different and it is. I guess because of exynos:
--------- beginning of /dev/log/main
D/exynos_camera( 1911): exynos_camera_get_number_of_cameras()
D/exynos_camera( 1911): exynos_camera_get_camera_info(0, 0x41255c18)
D/exynos_camera( 1911): Selected camera: S5C73M3
D/exynos_camera( 1911): exynos_camera_get_camera_info(1, 0x41738c18)
D/exynos_camera( 1911): Selected camera: S5K6A3
--------- beginning of /dev/log/system
D/exynos_camera( 1911): exynos_camera_get_camera_info(0, 0x41902c18)
D/exynos_camera( 1911): Selected camera: S5C73M3
D/exynos_camera( 1911): exynos_camera_get_camera_info(1, 0xbeed47d0)
D/exynos_camera( 1911): Selected camera: S5K6A3
V/CameraHolder( 6705): open camera 0
D/exynos_camera( 1911): exynos_camera_get_camera_info(0, 0x41738bb0)
D/exynos_camera( 1911): Selected camera: S5C73M3
D/exynos_camera( 1911): exynos_camera_get_camera_info(0, 0x41738ba0)
D/exynos_camera( 1911): Selected camera: S5C73M3
D/exynos_camera( 1911): exynos_camera_open(0x40dca004, 0, 0x40d8e8dc)
E/exynos_camera( 1911): exynos_camera_start: Unable to set inputs
E/exynos_camera( 1911): exynos_camera_open: Unable to start camera
E/CameraHolder( 6705): fail to connect Camera
E/CameraHolder( 6705): java.lang.RuntimeException: Fail to connect to camera service
E/CameraHolder( 6705): at android.hardware.Camera.native_setup(Native Method)
E/CameraHolder( 6705): at android.hardware.Camera.<init>(Camera.java:366)
E/CameraHolder( 6705): at android.hardware.Camera.open(Camera.java:322)
E/CameraHolder( 6705): at com.android.camera.CameraManager.cameraOpen(CameraManager.java:304)
E/CameraHolder( 6705): at com.android.camera.CameraHolder.open(CameraHolder.java:210)
E/CameraHolder( 6705): at com.android.camera.Util.openCamera(Util.java:457)
E/CameraHolder( 6705): at com.android.camera.PhotoModule$CameraStartUpThread.run(PhotoModule.java:311)
D/exynos_camera( 1911): exynos_camera_get_camera_info(0, 0x41902c18)
D/exynos_camera( 1911): Selected camera: S5C73M3
D/exynos_camera( 1911): exynos_camera_get_camera_info(1, 0xbeed47d0)
D/exynos_camera( 1911): Selected camera: S5K6A3
V/CameraHolder( 6705): open camera 0
D/exynos_camera( 1911): exynos_camera_get_camera_info(0, 0x41902bb0)
D/exynos_camera( 1911): Selected camera: S5C73M3
D/exynos_camera( 1911): exynos_camera_get_camera_info(0, 0x41902ba0)
D/exynos_camera( 1911): Selected camera: S5C73M3
D/exynos_camera( 1911): exynos_camera_open(0x40dca004, 0, 0x41efbc44)
E/exynos_camera( 1911): exynos_camera_start: Unable to set inputs
E/exynos_camera( 1911): exynos_camera_open: Unable to start camera
E/CameraHolder( 6705): fail to connect Camera
E/CameraHolder( 6705): java.lang.RuntimeException: Fail to connect to camera service
E/CameraHolder( 6705): at android.hardware.Camera.native_setup(Native Method)
E/CameraHolder( 6705): at android.hardware.Camera.<init>(Camera.java:366)
E/CameraHolder( 6705): at android.hardware.Camera.open(Camera.java:322)
E/CameraHolder( 6705): at com.android.camera.CameraManager.cameraOpen(CameraManager.java:304)
E/CameraHolder( 6705): at com.android.camera.CameraHolder.open(CameraHolder.java:210)
E/CameraHolder( 6705): at com.android.camera.Util.openCamera(Util.java:457)
E/CameraHolder( 6705): at com.android.camera.PhotoModule$CameraStartUpThread.run(PhotoModule.java:311)
D/exynos_camera( 1911): exynos_camera_get_camera_info(0, 0x41902c18)
D/exynos_camera( 1911): Selected camera: S5C73M3
D/exynos_camera( 1911): exynos_camera_get_camera_info(1, 0xbeed47d0)
D/exynos_camera( 1911): Selected camera: S5K6A3
V/CameraHolder(12444): open camera 0
D/exynos_camera( 1911): exynos_camera_get_camera_info(0, 0x41738bb0)
D/exynos_camera( 1911): Selected camera: S5C73M3
D/exynos_camera( 1911): exynos_camera_get_camera_info(0, 0x41738ba0)
D/exynos_camera( 1911): Selected camera: S5C73M3
D/exynos_camera( 1911): exynos_camera_open(0x40dca004, 0, 0x40d9b6cc)
E/exynos_camera( 1911): exynos_camera_start: Unable to set inputs
E/exynos_camera( 1911): exynos_camera_open: Unable to start camera
E/CameraHolder(12444): fail to connect Camera
E/CameraHolder(12444): java.lang.RuntimeException: Fail to connect to camera service
E/CameraHolder(12444): at android.hardware.Camera.native_setup(Native Method)
E/CameraHolder(12444): at android.hardware.Camera.<init>(Camera.java:366)
E/CameraHolder(12444): at android.hardware.Camera.open(Camera.java:322)
E/CameraHolder(12444): at com.android.camera.CameraManager.cameraOpen(CameraManager.java:304)
E/CameraHolder(12444): at com.android.camera.CameraHolder.open(CameraHolder.java:210)
E/CameraHolder(12444): at com.android.camera.Util.openCamera(Util.java:457)
E/CameraHolder(12444): at com.android.camera.PhotoModule$CameraStartUpThread.run(PhotoModule.java:311)
To my knowledge, there is only one thing I have not tried yet which I read in another thread which is that in addition to putting the .bin FW files into /data/cfw, you also need to place them into /system/cameradata. For some reason, even with root access I cannot copy files into that folder. I get a permission denied if I try to do it with ES File explorer app and via ADB I cannot do an mv command between the data folder and that system folder. I'm not a very experienced linux user.
I really don't know where to go from here. I have a feeling it all went to sh*t with the original s3pit.pit file but I really do not have the expertise to know what could have happened there. I know very vaguely that a pit file allocates the partitions but I wouldnt know what the implications of changing it are. Yeah... shoulda done a full nandroid backup first. DOH!!!!

I feel your pain.. There is a pool of people out there, me included, that have this issue with the s3 and aosp ROMs. I hope a fix comes along soon.

How I fixed the camera error
I have had the same error as lots of other folk.
I flashed the AOKP latest nightly and the error occurred, needed to reboot after taking one photo.
I than flashed the latest Liquidsmooth rom and that did exactly the same.
Yesterday as the camera would not work after taking one photo without a reboot.
I did as suggested elsewhere and un-installed a lot of the apps to no avail.
I then decide to re-install the original AOKP rom that I first flashed.
aokp-i9300-kitkat-nightly-2014-03-27
I then installed all my apps using Titanium backup and guess what the camera works faultlessly.
All the apps are updated so not them causing the problem
Conclusion:
The cause of the camera failing is the Rom.
Both the Liquidsmooth and AOKP latest roms cause the same problem.
Not technically savy enough to understand why this should be but it is a fact.
Camera error Remedy is flash an earlier rom.
I may flash some later ones and see if I can determine when the error started happening.
Hope this help
If anyone does flash later roms than the one I did and no fault occurs please post which one here.

Related

[Q] help..[SOLVED]

i am trying build a custom rom everything is working execpt camera ...can anyone help
here is logcat
E/AKMD2 (10488): akmd2 : Device can't be opened.
E/AKMD2 (10493): akmd2 : Device can't be opened.
E/QualcommCameraHardware( 290): ***read_camera_id: open CAM_ID_FILE failed!No such file or directory
E/QualcommCameraHardware( 290): Unable to determine the target type. Camera will not work
E/QualcommCameraHardware( 290): createInstance: startCamera failed!
E/CameraHolder(10495): fail to connect Camera
E/CameraHolder(10495): java.lang.RuntimeException: Fail to connect to camera service
E/CameraHolder(10495): at android.hardware.Camera.native_setup(Native Method)
E/CameraHolder(10495): at android.hardware.Camera.<init>(Camera.java:110)
E/CameraHolder(10495): at android.hardware.Camera.open(Camera.java:90)
E/CameraHolder(10495): at com.android.camera.CameraHolder.open(CameraHolder. java:100)
E/CameraHolder(10495): at com.android.camera.Camera.ensureCameraDevice(Camer a.java:2019)
E/CameraHolder(10495): at com.android.camera.Camera.access$6900(Camera.java: 105)
E/CameraHolder(10495): at com.android.camera.Camera$4.run(Camera.java:1133)
E/CameraHolder(10495): at java.lang.Thread.run(Thread.java:1096)
W/Process ( 339): Unable to open /proc/10466/status
E/AKMD2 (10505): akmd2 : Device can't be opened.
W/InputMethodManager(10507): Ignoring onBind: cur seq=217, given seq=216
E/AKMD2 (10517): akmd2 : Device can't be opened.
E/AKMD2 (10523): akmd2 : Device can't be opened.
P500 device doesnt have a akmd2 sensor, you need to replace the sensor files
and camera libs.
Thanks andy i will try that now.....

Q-Camera Crashes on Gingerbread AOSP ROMS on GSM EVO 3D (Can any CDMA devs help out?)

As I understand, the Sprint Evo 3D has two 5 megapixel cameras. I noticed that the camera works in gingerbread AOSP ROMS for the CDMA Evo 3D, such as KMyers' CM7 ROM. In gingerbread AOSP ROMs on the GSM Evo 3D, the camera only works on versions of the device that have a 5mp and 3mp camera, but crashes on devices with two 5mp cameras.
Here is a logcat from Adiost's GSM CM7 ROM on a device with two 5mp cameras when trying to open the camera app:
E/mm-camera( 198): camera_issue_ctrl_cmd: error (Connection timed out): type 85, length 56, status 53129, FD: 25 25
E/mm-camera( 198): mm_camera_exec: CAMERA_GET_CAPABILITIES failed
E/QualcommCameraHardware3D( 198): startCamera: mm_camera_exec failed:
E/QualcommCameraHardware3D( 198): createInstance: startCamera failed!
E/CameraService( 198): Fail to open camera hardware (id=0)
E/CameraHolder( 3398): fail to connect Camera
E/CameraHolder( 3398): java.lang.RuntimeException: Fail to connect to camera service
E/CameraHolder( 3398): at android.hardware.Camera.native_setup(Native Method)
E/CameraHolder( 3398): at android.hardware.Camera.<init>(Camera.java:258)
E/CameraHolder( 3398): at android.hardware.Camera.open(Camera.java:220)
E/CameraHolder( 3398): at com.android.camera.CameraHolder.open(CameraHolder. java:124)
E/CameraHolder( 3398): at com.android.camera.Camera.ensureCameraDevice(Camer a.java:1821)
E/CameraHolder( 3398): at com.android.camera.Camera.startPreview(Camera.java :1873)
E/CameraHolder( 3398): at com.android.camera.Camera.access$5600(Camera.java: 94)
E/CameraHolder( 3398): at com.android.camera.Camera$3.run(Camera.java:952)
E/CameraHolder( 3398): at java.lang.Thread.run(Thread.java:1019)
Can any CDMA users help us GSM users who have 5mp*2 devices to get the camera working on gingerbread AOSP ROMS?
I think we were lied to. Mike says I have two 5 mp cameras (cdma btw), but I have to use the amaze camera with the lowering resolution. Maybe it really is a hardware limitation for you.
Sent from my PG86100 using XDA

Camera app crash

L.S.,
As the title of the thread explains my camera seems to fail for no reason. When the camera app is initialized I get the error 'Camera failed'. This error is application independent, as I tried different camera apps.
When I launch the factory test app (*#0*#), i cannot launch the 'Megacam', but the front-camera is working. When I start the camera firmware app (*#7412365#), the program force closes. I am still running on stock rom (I9100XENLP5), already performed factory reset but no improvement.
I've attached a log file, main error code seems to be: E/SecCameraHardware( 1832): FimcV4l2 init: error -1, VIDIOC_S_INPUT. After which the camera instance is destroyed.
Help is appreciated.
NotwNL said:
I've attached a log file, main error code seems to be: E/SecCameraHardware( 1832): FimcV4l2 init: error -1, VIDIOC_S_INPUT. After which the camera instance is destroyed.
Help is appreciated.
Click to expand...
Click to collapse
I am by no means an expert, but this suggests a hardware problem.

i9305 Cant connect to camera on AOSP roms

Hi, I'm trying to setup an AOSP rom for my brother on his i9305 and everything is working great for the latest CM build but the camera app cannot start saying it cannot connect to camera:
02-16 02:37:04.725: E/SecCameraHardware(1951): camFW = GHFJ02
02-16 02:37:04.725: E/SecCameraHardware(1951): FimcV4l2 init: error -1, VIDIOC_S_INPUT
02-16 02:37:04.725: E/SecCameraHardware(1951): initCamera X: error, /dev/video0
02-16 02:37:04.725: V/SecCameraHardware(1951): FimcV4l2 deinit EX
02-16 02:37:04.725: E/SecCameraHardware(1951): createInstance: error, camera cannot be initialiezed
02-16 02:37:04.725: E/SecCameraHardware(1951): Instance is not created
02-16 02:37:04.725: E/CameraWrapper(1951): vendor camera open fail
02-16 02:37:04.725: E/CameraClient(1951): Could not open camera 0: -38
02-16 02:37:04.725: E/CameraClient(1951): initialize: Camera 0: unable to initialize device: Function not implemented (-38)
02-16 02:37:04.725: I/CameraClient(1951): Destroying camera 0
02-16 02:37:04.730: E/CameraHolder(3885): fail to connect Camera
02-16 02:37:04.730: E/CameraHolder(3885): java.lang.RuntimeException: Fail to connect to camera service
02-16 02:37:04.730: E/CameraHolder(3885): at android.hardware.Camera.native_setup(Native Method)
02-16 02:37:04.730: E/CameraHolder(3885): at android.hardware.Camera.<init>(Camera.java:340)
02-16 02:37:04.730: E/CameraHolder(3885): at android.hardware.Camera.open(Camera.java:302)
02-16 02:37:04.730: E/CameraHolder(3885): at com.android.camera.CameraManager.cameraOpen(CameraManager.java:283)
02-16 02:37:04.730: E/CameraHolder(3885): at com.android.camera.CameraHolder.open(CameraHolder.java:210)
02-16 02:37:04.730: E/CameraHolder(3885): at com.android.camera.Util.openCamera(Util.java:366)
02-16 02:37:04.730: E/CameraHolder(3885): at com.android.camera.PhotoModule$CameraStartUpThread.run(PhotoModule.java:323)
Now, the camera firmware version GHFJ02 is nothing like any I've been able to come across (none start with GH****) and have seen that changing the firmware can help with this problem. Does anyone know if it would be ok for me to install (downgrade as I could figure from the letters - revisions) a differently labeled firmware like for instance GDFE01 which (mostly) works ok with CM? Also, is it possible to backup the current firmware so I can restore it in case of problems? I see a dump firmware option but dont have a clue where this dump ends up being stored.
Also, if someone can give any more info on the above error message and what exactly does it mean? Maybe I can help in fixing the camera interface if it's possible.
Since it's such a crucial part of the phone, either I get it working somehow or he's better of with a rooted stock rom.
Thanks
I9305 forum .
jje
Post at I9305 section thanks
Sent from my GT-I9300 using xda premium
XeactorZ said:
Post at I9305 section thanks
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
I'm sorry, I must have been blind. I'll reply to the associated thread with a similar issue in the i9305 section.

[Q] i9300 USB Error on BT3900U

Hi,
Internation Pardus v15 image on rooted i9300, works very well except for this really odd USB connection error when connecting it to my Sony BT3900u car stereo, it was previously connecting without issue on the v15 Pardus build but for unknown reasons to myself now always presents an error.
Does anyone have any ideas as to what might be causing this issue? Any help would be greatly appreciated.
After getting this issue the first time, I ran through a full rebuild, wiped phone/cache/dalvick and error still persisted post rebuild.
Model:
GT-i9300
Android Version:
4.2.2
Baseband
I9300XXEMA5
Kernel version:
3.0.31-702147
Build Number:
Pardus HD Rom XV XXUDME7
Logcat:
E/MTPRx ( 8982): Read Error Came false
E/ ( 8982): read error [0] [Success]
E/MTPRx ( 8982): state from USB_STATE eventDISCONNECTED
E/MTPRx ( 8982): /data/data/com.samsung.android.MtpApplication/gadgetDisconnectAndConnect.txt: open failed: ENOENT (No such file or directory)
E/MTPRx ( 8982): stop observing and calling usbRemoved
E/MTPRx ( 8982): In usbRemoved Status bar enabled
E/MTPRx ( 8982): Sending Broadcast
E/MtpService( 8982): onDestroy.
E/MtpService( 8982): Unregister Mtp disable Receiver
E/MtpService( 8982): Receiver not registered: [email protected]
E/MtpService( 8982): unregistering mtpMediaReceiver in UnregisterAllIntent
E/MtpService( 8982): Receiver not registered: [email protected]
E/MTPJNIInterface( 8982): noti = 3
E/ ( 8982): ****** [mtp_usb_mtp_finalize] mtp_close_fd Calling
E/ ( 8982): [mtp_close_fd] fd = 50...
E/ ( 8982): [mtp_close_fd] USB endpoint [50] closed...
E/ ( 8982): ****** [mtp_usb_mtp_finalize] Updating the gInitializeFlag Flag to FALSE
E/ ( 8982): ****** [mtp_usb_mtp_finalize] Calling mtp_stop_io
E/SEC PowerHAL( 2447): sysfs_write : Error opening /sys/class/input/input1/enabled: No such file or directory
E/SEC PowerHAL( 2447): sysfs_write : Error opening /sys/class/input/input8/enabled: No such file or directory
E/videowall-TranscodeReceiver(10572): broadcastMSG : android.intent.action.ACTION_POWER_DISCONNECTED
E/MTPRx (10600): In MtpReceiverandroid.hardware.usb.action.USB_STATE
E/MTPRx (10600): check value of boot_completed is1
E/MTPRx (10600): check booting is completed_sys.boot_completed
E/MTPRx (10600): Sd-Card path/storage/extSdCard
E/MTPRx (10600): Status for mount/Unmount :mounted
E/MTPRx (10600): SDcard is available
E/MTPRx (10600): The value of first_boot is 1
E/MTPRx (10600): [ 662] The value of first_boot is 1NORMAL SEQUENCE
E/MTPRx (10600): Received USB_STATE with sdCardLaunch = 0
E/MTPRx (10600): configured is false
I'm guessing this is the correct part of the log that pretains to the MTP/USB part. If not I have attached a full log.
Try typing this in a terminal window or adb shell on your phone:
Code:
touch /data/data/com.samsung.android.MtpApplication/gadgetDisconnectAndConnect.txt
Or, make a txt file called gadgetDisconnectAndConnect and place it in /data/data/com.samsung.android.MtpApplication folder.
xpmode said:
Try typing this in a terminal window or adb shell on your phone:
Code:
touch /data/data/com.samsung.android.MtpApplication/gadgetDisconnectAndConnect.txt
Or, make a txt file called gadgetDisconnectAndConnect and place it in /data/data/com.samsung.android.MtpApplication folder.
Click to expand...
Click to collapse
Hi, thanks for the reply.
I did that as quoted, nothing seems to have changed, What should I be looking for?
Thanks!

Categories

Resources