Fixing Nokia X2 camera

Материал из Toshiba AC100 wiki
Версия от 15:00, 18 мая 2015; Zombah (обсуждение | вклад) (→‎Current state: update current state)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)
Перейти к навигации Перейти к поиску

Current state

kernel error:

<3>[   35.480057] init: sys_prop: permission denied uid:1013  name:camera.4k2k.enable
<3>[   35.482319] init: sys_prop: permission denied uid:1013  name:camera.4k2k.enable
<3>[   35.499531] init: sys_prop: permission denied uid:1013  name:camera.4k2k.enable
<3>[   35.499718] init: sys_prop: permission denied uid:1013  name:camera.4k2k.enable
<3>[   35.549140] msm_post_event : msm event queue not available Line 682
<3>[   35.549153] camera_v4l2_open : posting of NEW_SESSION event failed
<3>[   35.549161] camera_v4l2_open : Line 577 rc -19

system error:

I/CameraClient(  292): Opening camera 0
E/QCamera2HWI(  292): [KPI Perf] int qcamera::QCamera2HardwareInterface::openCamera(hw_device_t**): E PROFILE_OPEN_CAMERA camera id 0
E/mm-camera-intf(  292): mm_camera_open: dev name = /dev/video1, cam_idx = 1
E/mm-camera-intf(  292): mm_camera_open:  opened, break out while loop
E/mm-camera-intf(  292): mm_camera_open: cannot open control fd of '/dev/video1' (No such device)
E/mm-camera-intf(  292): camera_open: mm_camera_open err = -1
E/QCamera2HWI(  292): camera_open failed.
D/QCameraStateMachine(  292): static void* qcamera::QCameraStateMachine::smEvtProcRoutine(void*): E
D/QCameraStateMachine(  292): static void* qcamera::QCameraStateMachine::smEvtProcRoutine(void*): X
E/CameraClient(  292): Could not open camera 0: -2147483648
E/CameraClient(  292): initialize: Camera 0: unable to initialize device: Unknown error -2147483648 (-2147483648)
I/CameraClient(  292): Destroying camera 0

Old errors

I/CameraService(  291): CameraService started (pid=291)
E/HAL     (  291): load: module=/system/lib/hw/camera.msm8610.so
E/HAL     (  291): dlopen failed: cannot locate symbol "_ZN7android10VectorImpl19reservedVectorImpl1Ev" referenced by "camera.msm8610.so"...
  1. Fix1 to test, source https://github.com/AscendG630-DEV/android_device_huawei_g630/blob/cm-11.0/patches/frameworks_av/0001-Camera-Fix-Huawei-MSM8610-camera-load.patch
<zombah> для services/camera/libcameraservice/CameraService.cpp
<zombah> +extern "C" void _ZN7android10VectorImpl19reservedVectorImpl1Ev()
<zombah> +{
<zombah> +}
    1. Не помогает
  1. Fix2 to test, source https://github.com/CyanogenMod/android_system_core/commit/4a96b3b52dcdda49f0a7a7c411600a674fb18e62
в BoardConfig.mk
COMMON_GLOBAL_CFLAGS += -DNEEDS_VECTORIMPL_SYMBOLS
    1. this one is right for cm-11.0