summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2017-08-21 16:09:56 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2017-08-21 16:09:56 +0800
commit8a18d1ca47b40f00e76cc437f8d7582c9c3fb949 (patch)
treeb1049da223420046e63bea6cdcb8229653f0781b
parent261674d1c23bb5e1883ea28a9e3b28074e7e1b76 (diff)
able to be called, but still has crash
08-21 06:54:08.864 2933 2933 I crash_dump32: obtaining output fd from tombstoned, type: kDebuggerdTombstone 08-21 06:54:08.865 1953 1953 I /system/bin/tombstoned: received crash request for pid 2859 08-21 06:54:08.866 2933 2933 I crash_dump32: performing dump of process 2859 (target tid = 2922) 08-21 06:54:08.867 2933 2933 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 08-21 06:54:08.867 2933 2933 F DEBUG : Build fingerprint: 'Android/hikey/hikey:O/NYC/liu08181645:userdebug/test-keys' 08-21 06:54:08.867 2933 2933 F DEBUG : Revision: '0' 08-21 06:54:08.867 2933 2933 F DEBUG : ABI: 'arm' 08-21 06:54:08.867 2933 2933 F DEBUG : pid: 2859, tid: 2922, name: CameraPreviewTh >>> /system/bin/cameraserver <<< 08-21 06:54:08.867 2933 2933 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xf71b0000 08-21 06:54:08.868 2933 2933 F DEBUG : r0 00000004 r1 f71b0000 r2 00000420 r3 f5118ffe 08-21 06:54:08.868 2933 2933 F DEBUG : r4 00052000 r5 00000000 r6 f5118ffc r7 00000000 08-21 06:54:08.868 2933 2933 F DEBUG : r8 f50c7000 r9 f715e000 sl 00096000 fp 00000000 08-21 06:54:08.868 2933 2933 F DEBUG : ip 00000087 sp f57ff890 lr ffff2200 pc f6460092 cpsr 80070030 08-21 06:54:08.885 2933 2933 F DEBUG : 08-21 06:54:08.885 2933 2933 F DEBUG : backtrace: 08-21 06:54:08.885 2933 2933 F DEBUG : #00 pc 00007092 /system/lib/hw/camera.webcam.default.so (convertYUYVtoRGB565+29) 08-21 06:54:08.885 2933 2933 F DEBUG : #01 pc 00006191 /system/lib/hw/camera.webcam.default.so (android::CameraHardware::previewThread()+196) 08-21 06:54:08.885 2933 2933 F DEBUG : #02 pc 00006fe1 /system/lib/hw/camera.webcam.default.so (android::CameraHardware::PreviewThread::threadLoop()+4) 08-21 06:54:08.886 2933 2933 F DEBUG : #03 pc 0000e617 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+274) 08-21 06:54:08.886 2933 2933 F DEBUG : #04 pc 0004739b /system/lib/libc.so (__pthread_start(void*)+22) 08-21 06:54:08.886 2933 2933 F DEBUG : #05 pc 0001ad01 /system/lib/libc.so (__start_thread+32) 08-21 06:54:09.057 2039 2160 W NativeCrashListener: Couldn't find ProcessRecord for pid 2859 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rw-r--r--libcamera/Android.mk2
-rw-r--r--webcam.mk3
2 files changed, 4 insertions, 1 deletions
diff --git a/libcamera/Android.mk b/libcamera/Android.mk
index caa7ba2..8118324 100644
--- a/libcamera/Android.mk
+++ b/libcamera/Android.mk
@@ -37,7 +37,7 @@ LOCAL_SHARED_LIBRARIES:= \
libjpeg \
libexif
-LOCAL_MODULE_RELATIVE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
+LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_MODULE:= camera.webcam.default
LOCAL_MODULE_TAGS:= optional
diff --git a/webcam.mk b/webcam.mk
index 8e030c8..afe276d 100644
--- a/webcam.mk
+++ b/webcam.mk
@@ -9,3 +9,6 @@ PRODUCT_PACKAGES += camera.usb.default \
LegacyCamera \
PRODUCT_VENDOR_KERNEL_HEADERS := hardware/linaro/common/kernel-headers
+
+PRODUCT_COPY_FILES += \
+ frameworks/native/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.xml