[Q] help..[SOLVED] - Optimus One, P500, V General

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

Related

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!

[Q] [dev's please]Help needed in porting rom

Hey guyz having a doubt,
If i try to port a rom of a single camera smartphone to a dual camera phone
what are the changes to be made to the files???
is it relared to modules or kernel changes??
Also tell what are the files needed to be replaced from base to port??
i tried replacing the libs and i personally think some issue with boot.img if so tell me what are the changes to be made to init.rc of the boot.img??
thx in advance !!!
This is the logcat when i tried opening camera
Logcat :
E/CameraClient(111): Invalid setDisplayOrientation degrees=40
E/AndroidRuntime(1593): FATAL EXCEPTION: Camera Handler Thread
E/AndroidRuntime(1593): java.lang.RuntimeException: set display orientation failed
E/AndroidRuntime(1593): at android.hardware.Camera.setDisplayOrientation(Native Method)
E/AndroidRuntime(1593): at com.mediatek.camera.AndroidCamera.setDisplayOrientation(AndroidCamera.java:111)
E/AndroidRuntime(1593): at com.android.camera.CameraManager$CameraHandler.handleMessage(CameraManager.java:199)
E/AndroidRuntime(1593): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(1593): at android.os.Looper.loop(Looper.java:153)
E/AndroidRuntime(1593): at android.os.HandlerThread.run(HandlerThread.java:60)
E/AppErrorDialog(489): Failed to get ILowStorageHandle instance
Main culprit :
E/IspHal(111): [init]Err( 461):mpMcuDrv->init() fail

[Q] Can't connect to camera and I've tried everything

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.

Titanium Backup don't work

Hi,
I need an alternate for it, I search.
Help please and thanks
joke19 said:
Hi,
I need an alternate for it, I search.
Help please and thanks
Click to expand...
Click to collapse
If u have patched it wrong just delete odex file it will more fine
Thanks , to patch help. :angel: The odex was not the problem.
Just clean installed AOSP Extended 6.2 and titanium backup hasn't worked from the start.
Anyone know how to fix?
Below is the crash report:
time: 1548402717610
msg: android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14 SQLITE_CANTOPEN): Could not open database
stacktrace: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.keramidas.TitaniumBackup/com.keramidas.TitaniumBackup.MainActivity}: android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14 SQLITE_CANTOPEN): Could not open database
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2953)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3088)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1818)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6744)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:495)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Caused by: android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14 SQLITE_CANTOPEN): Could not open database
at android.database.sqlite.SQLiteConnection.nativeOpen(Native Method)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:211)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:195)
at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:503)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:204)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:196)
at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:889)
at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:874)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:748)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:738)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:365)
at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:322)
at o.dj.ˊ(Source:192)
at com.keramidas.TitaniumBackup.MainActivity.onCreate(Source:391)
at android.app.Activity.performCreate(Activity.java:7144)
at android.app.Activity.performCreate(Activity.java:7135)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1272)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2933)
... 11 more

Categories

Resources