I'd like to know how to change the default camera on Android to a USB camera, I'd like to use my webcam to authenticate QR codes, but with emulator, the camera doesn't start, I can only get video through a USB camera (v4l2)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I compiled redroid11 from GitHub
Here some logs
Code:
06-20 21:04:15.902 16876 16876 F DEBUG : #08 pc 00003ceb /vendor/lib/hw/[email protected] (virtual thunk to android::hardware::camera::provider::V2_4::implementation::CameraProvider<android::hardware::camera::provider::V2_4::implementation::ExternalCameraProviderImpl_2_4>::~CameraProvider()+75) (BuildId: 61f370932646d54b04cc68702a95f8fa)
06-20 21:04:15.902 16876 16876 F DEBUG : #12 pc 00001aee /vendor/bin/hw/[email protected]4-external-service (BuildId: e02058b00fe96b518e5b0b850ff2870c)
06-20 21:04:15.902 16876 16876 F DEBUG : #13 pc 00001993 /vendor/bin/hw/[email protected] (main+179) (BuildId: e02058b00fe96b518e5b0b850ff2870c)
06-20 21:04:20.913 16884 16884 I [email protected]: [email protected] legacy service is starting.
06-20 21:04:20.913 16883 16883 I [email protected]: External camera provider service is starting.
06-20 21:04:20.925 16884 16884 E [email protected]: Could not load camera HAL module: -2 (No such file or directory)
06-20 21:04:20.925 16884 16884 E [email protected]: getProviderImpl: camera provider init failed!
06-20 21:04:20.925 16883 16883 I [email protected]: loadFromCfg: load external camera config succeed!
06-20 21:04:20.925 16883 16883 I [email protected]: loadFromCfg: device 0 will be ignored by external camera provider
06-20 21:04:20.926 16883 16883 I [email protected]: loadFromCfg: external camera cfg loaded: maxJpgBufSize 3145728, num video buffers 4, num still buffers 2, orientation 0
06-20 21:04:20.926 16883 16883 E HidlServiceManagement: Service [email protected]::ICameraProvider/external/0 must be in VINTF manifest in order to register/get.
06-20 21:04:20.926 16883 16883 E LegacySupport: Could not register service [email protected]::ICameraProvider/external/0 (-2147483648).
06-20 21:04:20.928 16884 16884 E LegacySupport: Could not get passthrough implementation for [email protected]::ICameraProvider/legacy/0.
06-20 21:04:20.934 16888 16888 F DEBUG : pid: 16883, tid: 16883, name: android.hardwar >>> /vendor/bin/hw/[email protected] <<<
06-20 21:04:20.937 16888 16888 F DEBUG : #06 pc 0000e293 /vendor/lib/[email protected] (android::hardware::camera::provider::V2_4::implementation::ExternalCameraProviderImpl_2_4::HotplugThread::~HotplugThread()+99) (BuildId: c893ccbbe5cfdc71842b89443e84b793)
06-20 21:04:20.937 16888 16888 F DEBUG : #07 pc 0000e12d /vendor/lib/[email protected] (android::hardware::camera::provider::V2_4::implementation::ExternalCameraProviderImpl_2_4::~ExternalCameraProviderImpl_2_4()+45) (BuildId: c893ccbbe5cfdc71842b89443e84b793)
06-20 21:04:20.937 16888 16888 F DEBUG : #08 pc 00003ceb /vendor/lib/hw/[email protected] (virtual thunk to android::hardware::camera::provider::V2_4::implementation::CameraProvider<android::hardware::camera::provider::V2_4::implementation::ExternalCameraProviderImpl_2_4>::~CameraProvider()+75) (BuildId: 61f370932646d54b04cc68702a95f8fa)
06-20 21:04:20.937 16888 16888 F DEBUG : #12 pc 00001aee /vendor/bin/hw/[email protected] (BuildId: e02058b00fe96b518e5b0b850ff2870c)
06-20 21:04:20.937 16888 16888 F DEBUG : #13 pc 00001993 /vendor/bin/hw/[email protected] (main+179) (BuildId: e02058b00fe96b518e5b0b850ff2870c)
06-20 21:04:24.573 150 281 E CameraService: cameraIdIntToStrLocked: input id 0 invalid: valid range (0, 0)
06-20 21:04:24.573 150 281 I CameraService: CameraService::connect call (PID -1 "com.whatsapp", camera ID ) for HAL version default and Camera API version 1
06-20 21:04:24.573 150 281 E CameraService: shouldRejectSystemCameraConnection: Invalid camera id ,
06-20 21:04:24.573 150 281 W CameraService: Attempting to connect to system-only camera id , connection rejected
06-20 21:04:24.573 1455 16941 W CameraBase: An error occurred while connecting to camera 0: Status(-8, EX_SERVICE_SPECIFIC): '4: validateClientPermissionsLocked:1158: No camera device with ID "" isavailable'
06-20 21:04:25.914 17093 17093 I [email protected]: External camera provider service is starting.
06-20 21:04:25.920 17094 17094 I [email protected].4-service: [email protected] legacy service is starting.
06-20 21:04:25.932 17093 17093 I [email protected]: loadFromCfg: load external camera config succeed!
06-20 21:04:25.932 17093 17093 I [email protected]: loadFromCfg: device 0 will be ignored by external camera provider
06-20 21:04:25.932 17093 17093 I [email protected]: loadFromCfg: external camera cfg loaded: maxJpgBufSize 3145728, num video buffers 4, num still buffers 2, orientation 0
06-20 21:04:25.932 17093 17093 E HidlServiceManagement: Service [email protected]::ICameraProvider/external/0 must be in VINTF manifest in order to register/get.
06-20 21:04:25.932 17094 17094 E [email protected]: Could not load camera HAL module: -2 (No such file or directory)
06-20 21:04:25.933 17093 17093 E LegacySupport: Could not register service [email protected]::ICameraProvider/external/0 (-2147483648).
06-20 21:04:25.933 17094 17094 E [email protected]: getProviderImpl: camera provider init failed!
06-20 21:04:25.935 17094 17094 E LegacySupport: Could not get passthrough implementation for [email protected]::ICameraProvider/legacy/0.
06-20 21:04:25.942 17101 17101 F DEBUG : pid: 17093, tid: 17093, name: android.hardwar >>> /vendor/bin/hw/[email protected] <<<
06-20 21:04:25.945 17101 17101 F DEBUG : #06 pc 0000e293 /vendor/lib/[email protected] (android::hardware::camera::provider::V2_4::implementation::ExternalCameraProviderImpl_2_4::HotplugThread::~HotplugThread()+99) (BuildId: c893ccbbe5cfdc71842b89443e84b793)
06-20 21:04:25.945 17101 17101 F DEBUG : #07 pc 0000e12d /vendor/lib/[email protected] (android::hardware::camera::provider::V2_4::implementation::ExternalCameraProviderImpl_2_4::~ExternalCameraProviderImpl_2_4()+45) (BuildId: c893ccbbe5cfdc71842b89443e84b793)
06-20 21:04:25.945 17101 17101 F DEBUG : #08 pc 00003ceb /vendor/lib/hw/[email protected] (virtual thunk to android::hardware::camera::provider::V2_4::implementation::CameraProvider<android::hardware::camera::provider::V2_4::implementation::ExternalCameraProviderImpl_2_4>::~CameraProvider()+75) (BuildId: 61f370932646d54b04cc68702a95f8fa)
06-20 21:04:25.945 17101 17101 F DEBUG : #12 pc 00001aee /vendor/bin/hw/[email protected] (BuildId: e02058b00fe96b518e5b0b850ff2870c)
06-20 21:04:25.945 17101 17101 F DEBUG : #13 pc 00001993 /vendor/bin/hw/[email protected] (main+179) (BuildId: e02058b00fe96b518e5b0b850ff2870c)
artbreguez said:
I'd like to know how to change the default camera on Android to a USB camera, I'd like to use my webcam to authenticate QR codes, but with emulator, the camera doesn't start, I can only get video through a USB camera (v4l2)
Click to expand...
Click to collapse
Hello and good afternoon, @artbreguez
Welcome to XDA. I hope you'll always find and get the support you require.
However, prior to your next posting please read the guidances that are stuck on top of every forum like
Note: Questions go in Q&A Forum
If you are posting a Question Thread post it in the Q&A forum. Technical discussion of Android development and hacking. No noobs, please. Device-specific releases should go under the appropriate device forum...
forum.xda-developers.com
and the others. I've moved the thread to Android Q&A.
Thanks for your cooperation!
Regards
Oswald Boelcke
Senior Moderator
Related
Hello, i m trying to port pac rom to zte blade.I used an 4.3 cm rom as a base and 4.3 pac as port.I got it to install but its bootlooping.The logcat gives me this error :
11-12 15:42:32.790 1263 1263 D AndroidRuntime:
11-12 15:42:32.790 1263 1263 D AndroidRuntime: >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
11-12 15:42:32.790 1263 1263 D AndroidRuntime: CheckJNI is OFF
11-12 15:42:32.870 1263 1263 D dalvikvm: Trying to load lib libjavacore.so 0x0
11-12 15:42:32.890 1263 1263 D dalvikvm: Added shared lib libjavacore.so 0x0
11-12 15:42:32.970 1263 1263 D dalvikvm: Trying to load lib libnativehelper.so 0x0
11-12 15:42:32.970 1263 1263 D dalvikvm: Added shared lib libnativehelper.so 0x0
11-12 15:42:33.090 1263 1263 W dalvikvm: PR_SET_NO_NEW_PRIVS failed. Is your kernel compiled correctly?: Invalid argument
11-12 15:42:33.100 1263 1263 E dalvikvm: ERROR: couldn't find native method
11-12 15:42:33.100 1263 1263 E dalvikvm: Requested: Landroid/content/res/AssetManager;.setConfigurationIILjava/lang/String;IIIIIIIIIIIIII)V
11-12 15:42:33.100 1263 1263 E dalvikvm: Candidate: Landroid/content/res/AssetManager;.setConfigurationIILjava/lang/String;IIIIIIIIIIIIIII)V
11-12 15:42:33.100 1263 1263 E dalvikvm: JNI posting fatal error: RegisterNatives failed for 'android/content/res/AssetManager', aborting
11-12 15:42:33.100 1263 1263 I dalvikvm: "main" prio=5 tid=1 NATIVE
11-12 15:42:33.100 1263 1263 I dalvikvm: | group="main" sCount=0 dsCount=0 obj=0x41528578 self=0x15428
11-12 15:42:33.100 1263 1263 I dalvikvm: | sysTid=1263 nice=0 sched=0/0 cgrp=default handle=1073815288
11-12 15:42:33.110 1263 1263 I dalvikvm: | state=R schedstat=( 0 0 0 ) utm=76 stm=14 core=0
11-12 15:42:33.150 1263 1263 I dalvikvm: #00 pc 0000132e /system/lib/libcorkscrew.so (unwind_backtrace_thread+25)
11-12 15:42:33.150 1263 1263 I dalvikvm: #01 pc 00060d9c /ystem/lib/libdvm.so (dvmDumpNativeStack(DebugOutputTarget const*, int)+31)
11-12 15:42:33.150 1263 1263 I dalvikvm: #02 pc 000546de /system/lib/libdvm.so (dvmDumpThreadEx(DebugOutputTarget const*, Thread*, bool)+425)
11-12 15:42:33.150 1263 1263 I dalvikvm: #03 pc 0005474a /system/lib/libdvm.so (dvmDumpThread(Thread*, bool)+25)
11-12 15:42:33.150 1263 1263 I dalvikvm: #04 pc 000491da /system/lib/libdvm.so
11-12 15:42:33.150 1263 1263 I dalvikvm: #05 pc 000491f6 /system/lib/libdvm.so
11-12 15:42:33.150 1263 1263 I dalvikvm: #06 pc 00000a38 /system/lib/libnativehelper.so (jniRegisterNativeMethods+87)
11-12 15:42:33.150 1263 1263 I dalvikvm: #07 pc 0004ceb6 /system/lib/libandroid_runtime.so (android::AndroidRuntime::registerNativeMethods(_JNIEnv*, char const*, JNINativeMethod const*, int)+1)
11-12 15:42:33.150 1263 1263 I dalvikvm: #08 pc 0007020e /system/lib/libandroid_runtime.so (android::register_android_content_AssetManager(_JNIEnv*)+281)
11-12 15:42:33.150 1263 1263 I dalvikvm: #09 pc 0004cd58 /system/lib/libandroid_runtime.so
11-12 15:42:33.150 1263 1263 I dalvikvm: #10 pc 0004d076 /system/lib/libandroid_runtime.so (android::AndroidRuntime::startReg(_JNIEnv*)+29)
11-12 15:42:33.150 1263 1263 I dalvikvm: #11 pc 0004da1a /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+209)
11-12 15:42:33.150 1263 1263 I dalvikvm: #12 pc 00001034 /system/bin/app_process
11-12 15:42:33.150 1263 1263 I dalvikvm: #13 pc 0000e0fa /system/lib/libc.so (__libc_init+49)
11-12 15:42:33.150 1263 1263 I dalvikvm: at dalvik.system.NativeStart.main(Native Method)
11-12 15:42:33.150 1263 1263 I dalvikvm: at dalvik.system.NativeStart.main(Native Method)
11-12 15:42:33.150 1263 1263 I dalvikvm:
11-12 15:42:33.150 1263 1263 E dalvikvm: VM aborting
11-12 15:42:33.150 1263 1263 F libc : Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 1263 (zygote)
So i decompiled framework.jar/clasees.dex of base and port and tried to diff at android/content/res/AssetManager but i didnt find any missing line only few diffrences.I found at assetmanager.smali base this line:
.method public final native setConfiguration(IILjava/lang/String;IIIIIIIIIIIIII)V
.end method
and at port this:
.method public final native setConfiguration(IILjava/lang/String;IIIIIIIIIIIIIII)V
.end method
I dont know what to do or where to look so any help would be useful.
thanks in advance
flashing any rom on MTK MT6753 unbootable: library "libterservice.so" not found
Heya,
Attempting to flash any rom on a cherry mobile flare s4 which uses MT6753 chipset fails to boot resulting in endless loop animation.
The adb logcat shows the problem right on the first few lines of the logfile:
--------- beginning of system
01-01 00:06:03.740 254 254 I vold : Vold 3.0 (the awakening) firing up
01-01 00:06:03.742 254 254 V vold : Detected support for: exfat ext4 ntfs vfat
01-01 00:06:03.747 254 254 W Vold : Tearing down stale mount /storage/usbotg
01-01 00:06:03.747 254 254 W Vold : Tearing down stale mount /mnt/media_rw
01-01 00:06:04.032 254 267 D vold : e4crypt_init_user0
01-01 00:06:04.032 254 267 D vold : e4crypt_prepare_user_storage for volume null, user 0, serial 0, flags 1
01-01 00:06:04.032 254 267 D vold : Preparing: /data/system/users/0
01-01 00:06:04.033 254 267 D vold : Preparing: /data/misc/profiles/cur/0
01-01 00:06:04.034 254 267 D vold : Preparing: /data/misc/profiles/cur/0/foreign-dex
01-01 00:06:04.034 254 267 D vold : Preparing: /data/system_de/0
01-01 00:06:04.035 254 267 D vold : Preparing: /data/misc_de/0
01-01 00:06:04.035 254 267 D vold : Preparing: /data/user_de/0
01-01 00:06:04.036 254 267 D vold : e4crypt_unlock_user_key 0 serial=0 token_present=0
01-01 00:06:04.036 254 267 E vold : Failed to chmod /data/system_ce/0: No such file or directory
01-01 00:06:04.036 254 267 E vold : Failed to chmod /data/misc_ce/0: No such file or directory
01-01 00:06:04.036 254 267 E vold : Failed to chmod /data/media/0: No such file or directory
--------- beginning of crash
01-01 00:06:04.296 277 277 F libc : CANNOT LINK EXECUTABLE "/system/bin/terservice": library "libterservice.so" not found
01-01 00:06:04.297 277 277 F libc : Fatal signal 6 (SIGABRT), code -6 in tid 277 (terservice)
01-01 00:06:04.382 282 282 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-01 00:06:04.382 282 282 F DEBUG : LineageOS Version: 'unknown'
01-01 00:06:04.382 282 282 F DEBUG : Build fingerprint: 'Highscreen/lineage_primel/primel:7.1.1/NOF26W/afc8d87b91:userdebug/test-keys'
01-01 00:06:04.382 282 282 F DEBUG : Revision: '0'
01-01 00:06:04.382 282 282 F DEBUG : ABI: 'arm64'
01-01 00:06:04.382 282 282 F DEBUG : pid: 277, tid: 277, name: terservice >>> /system/bin/terservice <<<
01-01 00:06:04.382 282 282 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
01-01 00:06:04.382 282 282 F DEBUG : x0 0000000000000000 x1 0000000000000115 x2 0000000000000006 x3 0000000000000008
01-01 00:06:04.382 282 282 F DEBUG : x4 0000000000000028 x5 0000000000000050 x6 12feff636d746e65 x7 7f7f7f7f7f7f7f7f
01-01 00:06:04.382 282 282 F DEBUG : x8 0000000000000083 x9 ffffffffffffffdf x10 0000000000000000 x11 0000000000000001
01-01 00:06:04.382 282 282 F DEBUG : x12 0000007f7915aa3c x13 30733a706f72705f x14 ffffffffffff0000 x15 ffffffffffffffff
01-01 00:06:04.382 282 282 F DEBUG : x16 0000000000000009 x17 01dc98150d40b832 x18 34c7225a10482d65 x19 0000007f79184b40
01-01 00:06:04.382 282 282 F DEBUG : x20 0000000000000006 x21 0000007f79184a98 x22 0000000000000002 x23 0000007f790ba010
01-01 00:06:04.382 282 282 F DEBUG : x24 000000000000000b x25 0000007fdeab5190 x26 0000007f790c01b8 x27 0000000000000000
01-01 00:06:04.382 282 282 F DEBUG : x28 0000007f790c0010 x29 0000007fdeab5000 x30 0000007f791438a0
01-01 00:06:04.382 282 282 F DEBUG : sp 0000007fdeab4fe0 pc 0000007f79144414 pstate 0000000060000000
01-01 00:06:04.389 282 282 F DEBUG :
01-01 00:06:04.389 282 282 F DEBUG : backtrace:
01-01 00:06:04.389 282 282 F DEBUG : #00 pc 0000000000077414 /system/bin/linker64 (__dl_tgkill+8)
01-01 00:06:04.389 282 282 F DEBUG : #01 pc 000000000007689c /system/bin/linker64 (__dl_pthread_kill+64)
01-01 00:06:04.389 282 282 F DEBUG : #02 pc 0000000000069f8c /system/bin/linker64 (__dl_raise+24)
01-01 00:06:04.389 282 282 F DEBUG : #03 pc 0000000000067930 /system/bin/linker64 (__dl_abort+52)
01-01 00:06:04.389 282 282 F DEBUG : #04 pc 0000000000069b1c /system/bin/linker64 (__dl___libc_fatal+104)
01-01 00:06:04.389 282 282 F DEBUG : #05 pc 0000000000010fc4 /system/bin/linker64 (__dl__ZL29__linker_init_post_relocationR19KernelArgumentBlocky+6296)
01-01 00:06:04.389 282 282 F DEBUG : #06 pc 000000000000f68c /system/bin/linker64 (__dl___linker_init+528)
01-01 00:06:04.389 282 282 F DEBUG : #07 pc 0000000000006cec /system/bin/linker64 (_start+4)
--------- beginning of main
01-01 00:06:14.220 280 330 W hwcomposer: [JOB] (0) Timed out waiting for vsync...
01-01 00:06:14.274 280 330 W hwcomposer: [JOB] (0) Timed out waiting for vsync...
01-01 00:06:14.347 280 330 W hwcomposer: [JOB] (0) Timed out waiting for vsync...
01-01 00:06:14.421 280 330 W hwcomposer: [JOB] (0) Timed out waiting for vsync...
01-01 00:06:14.475 280 330 W hwcomposer: [JOB] (0) Timed out waiting for vsync...
01-01 00:06:14.548 280 330 W hwcomposer: [JOB] (0) Timed out waiting for vsync...
01-01 00:06:14.621 280 330 W hwcomposer: [JOB] (0) Timed out waiting for vsync...
01-01 00:06:14.694 280 330 W hwcomposer: [JOB] (0) Timed out waiting for vsync...
01-01 00:06:14.749 280 330 W hwcomposer: [JOB] (0) Timed out waiting for vsync...
Click to expand...
Click to collapse
I don't know what that is but i suspect this is the reason /system/bin/bootanimation keeps on going forever.
Any fix ? thx.
I had modified the aosp generic version 6.0.71r in order for the emulator and the host to be able to used tcp streams for gpu host, but I am getting the error below. Can someone help me to understand what else I need to modified? Clearly said that it cannot connect to the tcp stream that mean on the emulator I have to change some parameters as well?
OpenglSystemCommon/HostConnection.cpp
/* Set to 1 to use a QEMU pipe, or 0 for a TCP connection */
#define USE_QEMU_PIPE 1
Error:
init: Starting service 'media'...
init: Starting service 'zygote'...
emulator: Error while connecting to socket '127.0.0.1:1970': 111 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 35
10-22 20:17:11.612 64 64 F DEBUG :
10-22 20:17:11.612 64 64 F DEBUG : Tombstone written to: /data/tombstones/tombstone_04
init: Service 'surfaceflinger' (pid 204) killed by signal 6
init: Service 'surfaceflinger' (pid 204) killing any children in process group
init: Service 'zygote' is being killed...
init: Service 'zygote' (pid 216) killed by signal 9
init: Service 'zygote' (pid 216) killing any children in process group
init: write_file: Unable to open '/sys/android_power/request_state': No such file or directory
init: write_file: Unable to write to '/sys/power/state': Invalid argument
init: Service 'media' is being killed...
init: Service 'netd' is being killed...
init: Service 'netd' (pid 203) killed by signal 9
init: Service 'netd' (pid 203) killing any children in process group
init: Service 'media' (pid 215) killed by signal 9
init: Service 'media' (pid 215) killing any children in process group
init: Untracked pid 223 killed by signal 9
init: Starting service 'netd'...
init: Starting service 'surfaceflinger'...
emulator: Error while connecting to socket '127.0.0.1:1970': 111 -> Connection refused
emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 35
10-22 20:17:13.956 226 226 I Netd : Netd 1.0 starting
10-22 20:17:13.959 226 226 D TetherController: Setting IP forward enable = 0
10-22 20:17:14.223 227 227 I SurfaceFlinger: SurfaceFlinger is starting
10-22 20:17:14.236 227 227 I SurfaceFlinger: SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
10-22 20:17:14.253 227 227 D libEGL : loaded /system/lib/egl/libEGL_emulation.so
10-22 20:17:14.260 227 227 D libEGL : loaded /system/lib/egl/libGLESv1_CM_emulation.so
10-22 20:17:14.337 227 227 D libEGL : loaded /system/lib/egl/libGLESv2_emulation.so
10-22 20:17:14.419 227 227 E : Failed to connect to host (TcpStream)!!!
10-22 20:17:14.419 227 227 E EGL_emulation: Failed to establish connection with the host
10-22 20:17:14.419 227 227 W libEGL : eglInitialize(0xb667a014) failed (EGL_SUCCESS)
init: Starting service 'media'...
init: Starting service 'zygote'...
10-22 20:17:14.447 227 227 E : Failed to connect to host (TcpStream)!!!
10-22 20:17:14.447 227 227 E gralloc_goldfish: gralloc: Failed to get host connection
10-22 20:17:14.451 227 227 E SurfaceFlinger: hwcomposer module not found
10-22 20:17:14.451 227 227 E SurfaceFlinger: ERROR: failed to open framebuffer (I/O error), aborting
10-22 20:17:14.453 227 227 F libc : Fatal signal 6 (SIGABRT), code -6 in tid 227 (surfaceflinger)
10-22 20:17:14.583 64 64 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
10-22 20:17:14.599 64 64 F DEBUG : Build fingerprint: 'Android/aosp_arm/generic:6.0.1/M4B30Z/michel10171819:eng/test-keys'
10-22 20:17:14.599 64 64 F DEBUG : Revision: '0'
10-22 20:17:14.599 64 64 F DEBUG : ABI: 'arm'
10-22 20:17:14.602 64 64 F DEBUG : pid: 227, tid: 227, name: surfaceflinger >>> /system/bin/surfaceflinger <<<
10-22 20:17:14.603 64 64 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
10-22 20:17:14.642 64 64 F DEBUG : r0 00000000 r1 000000e3 r2 00000006 r3 b6f6fb7c
10-22 20:17:14.642 64 64 F DEBUG : r4 b6f6fb84 r5 b6f6fb34 r6 00000002 r7 0000010c
10-22 20:17:14.642 64 64 F DEBUG : r8 ffffffbc r9 b6629018 sl b6f20940 fp be99fbbc
10-22 20:17:14.642 64 64 F DEBUG : ip 00000006 sp be99f9d8 lr b6db6f69 pc b6db9364 cpsr 40000010
10-22 20:17:14.776 64 64 F DEBUG :
10-22 20:17:14.776 64 64 F DEBUG : backtrace:
10-22 20:17:14.777 64 64 F DEBUG : #00 pc 00041364 /system/lib/libc.so (tgkill+12)
10-22 20:17:14.777 64 64 F DEBUG : #01 pc 0003ef65 /system/lib/libc.so (pthread_kill+32)
10-22 20:17:14.777 64 64 F DEBUG : #02 pc 0001b55b /system/lib/libc.so (raise+10)
10-22 20:17:14.777 64 64 F DEBUG : #03 pc 0001870f /system/lib/libc.so (__libc_android_abort+34)
10-22 20:17:14.777 64 64 F DEBUG : #04 pc 00017490 /system/lib/libc.so (abort+4)
10-22 20:17:14.778 64 64 F DEBUG : #05 pc 00022d11 /system/lib/libsurfaceflinger.so
10-22 20:17:14.778 64 64 F DEBUG : #06 pc 00018993 /system/lib/libsurfaceflinger.so (_ZN7android14SurfaceFlinger4initEv+266)
10-22 20:17:14.778 64 64 F DEBUG : #07 pc 00000e9d /system/bin/surfaceflinger
10-22 20:17:14.778 64 64 F DEBUG : #08 pc 0001733d /system/lib/libc.so (__libc_init+44)
10-22 20:17:14.778 64 64 F DEBUG : #09 pc 00000d60 /system/bin/surfaceflinger
10-22 20:17:16.802 64 64 F DEBUG :
10-22 20:17:16.802 64 64 F DEBUG : Tombstone written to: /data/tombstones/tombstone_05
I am having issues with custom rom that i built using lineage-15.1. My device is sanders. The camera is not working. The camera 2 app disappears soon after booting after installation. I installed open camera and it says camera is in use.
I got the logcats and i see this error -
02-12 10:46:44.252 760 760 F DEBUG : Abort message: 'CANNOT LINK EXECUTABLE "/system/vendor/bin/mm-qcamera-daemon": cannot locate symbol "_Z35eglQueryStringImplementationANDROIDPvi" referenced by "/system/vendor/lib/libguy.so"...'
I ran the nm command on the libguy.so and I find an undefined symbol there. I searched and found a shim that has this very symbol - libshim_camera_hal.so, I also found source files for this and found the function in device/motorola/sanders/libshims/camera_hal.cpp
I checked the shim file on the device, the shim file is present in /system/lib64 and /system/lib folders. libguy.so is in /system/vendor/lib and is 32bit.
Is this an LD_LIBRARY_PATH issue?
What can i do to fix this issue.
doors666 said:
I am having issues with custom rom that i built using lineage-15.1. My device is sanders. The camera is not working. The camera 2 app disappears soon after booting after installation. I installed open camera and it says camera is in use...
Click to expand...
Click to collapse
I don't have this device but, the following threads, that's device specific, may be helpful for what you are looking for and don't be afraid to ask for some member guidance within one of them.
https://forum.xda-developers.com/showthread.php?t=3722844
https://forum.xda-developers.com/showthread.php?t=3708082
https://forum.xda-developers.com/showthread.php?t=3708997
If all else fails, try posting your question within the following thread that's specific to your device.
https://forum.xda-developers.com/showthread.php?t=3593531
Good Luck!
~~~~~~~~~~~~~~~
I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.
are you building that lib shims?
in libshims/Android.mk
and in device.mk
Refer to this tree: https://github.com/Keertesh19/device_motorola_sanders
yes I am building that. the files do have slight differences though as I took the device,vendor,kernel from validus links. I also downloaded the validus tree using the manifest and built it and i get the same issue there also. but its not there in the latest published rom.
I still have this issue, tried a lot of things, but still no fix.
I downloaded the latest validus published ROM build and that works fine, no issues with the camera.
I synced the validus repo using the manifest file and made a build, camera does not work.
Steps -
repo sync with validus manifest.
lunch validus_sanders-userdebug
brunch sanders
clean install.
Am I missing some step here? One thing that bothered me is that brunch works fine, but make fails. The error (I think it was about java doc, it asks me to run make update-api, that also fails.
I extracted both the ROMs and did a compare on both ramdisk and /system, no significant difference that could cause this.
I extracted the shims from good rom and copied it onto the phone which had my built rom and it still did not work.
I tried fedora (26 and 27) and ubuntu (17.10 and 16.04 LTS) to make build, no difference.
I modified the initrc and modified the LD_SHIM_LIBS to include the full path for the shims, still does not work.
This is the error that I get in the logs -
03-02 09:32:31.853 2558 2558 I init : type=1400 audit(0.0:520): avc: denied { execute_no_trans } for uid=1006 path="/system/vendor/bin/mm-qcamera-daemon" dev="mmcblk0p53" ino=2817 scontext=u:r:init:s0 tcontext=ubject_r:vendor_file:s0 tclass=file permissive=1
03-02 09:32:31.924 2558 2558 F libc : CANNOT LINK EXECUTABLE "/system/vendor/bin/mm-qcamera-daemon": cannot locate symbol "_Z35eglQueryStringImplementationANDROIDPvi" referenced by "/system/vendor/lib/libguy.so"...
03-02 09:32:31.924 2558 2558 F libc : Fatal signal 6 (SIGABRT), code -6 in tid 2558 (mm-qcamera-daem), pid 2558 (mm-qcamera-daem)
03-02 09:32:31.939 2561 2561 E cutils-trace: Error opening trace file: No such file or directory (2)
03-02 09:32:31.936 2562 2562 I crash_dump32: type=1400 audit(0.0:521): avc: denied { ptrace } for uid=1006 scontext=u:r:crash_dump:s0 tcontext=u:r:init:s0 tclass=process permissive=1
03-02 09:32:31.945 2562 2562 I crash_dump32: obtaining output fd from tombstoned, type: kDebuggerdTombstone
03-02 09:32:31.946 691 691 I /system/bin/tombstoned: received crash request for pid 2558
03-02 09:32:31.947 2562 2562 I crash_dump32: performing dump of process 2558 (target tid = 2558)
03-02 09:32:31.947 2562 2562 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-02 09:32:31.947 2562 2562 F DEBUG : Build fingerprint: 'google/walleye/walleye:8.1.0/OPM1.171019.011/4448085:user/release-keys'
03-02 09:32:31.947 2562 2562 F DEBUG : Revision: '0'
03-02 09:32:31.947 2562 2562 F DEBUG : ABI: 'arm'
03-02 09:32:31.947 2562 2562 F DEBUG : pid: 2558, tid: 2558, name: mm-qcamera-daem >>> /system/vendor/bin/mm-qcamera-daemon <<<
03-02 09:32:31.947 2562 2562 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
03-02 09:32:31.948 2562 2562 F DEBUG : Abort message: 'CANNOT LINK EXECUTABLE "/system/vendor/bin/mm-qcamera-daemon": cannot locate symbol "_Z35eglQueryStringImplementationANDROIDPvi" referenced by "/system/vendor/lib/libguy.so"...'
03-02 09:32:31.948 2562 2562 F DEBUG : r0 00000000 r1 000009fe r2 00000006 r3 00000008
03-02 09:32:31.948 2562 2562 F DEBUG : r4 000009fe r5 000009fe r6 ff8a460c r7 0000010c
03-02 09:32:31.949 2562 2562 F DEBUG : r8 00000000 r9 ed86e010 sl 00000000 fp ff8a58a4
03-02 09:32:31.949 2562 2562 F DEBUG : ip ff8a4630 sp ff8a45f8 lr ed907309 pc ed905808 cpsr 200f0030
03-02 09:32:31.950 2562 2562 F DEBUG :
03-02 09:32:31.950 2562 2562 F DEBUG : backtrace:
03-02 09:32:31.950 2562 2562 F DEBUG : #00 pc 0005f808 /system/bin/linker (__dl_abort+63)
03-02 09:32:31.950 2562 2562 F DEBUG : #01 pc 00010931 /system/bin/linker (__dl___linker_init+2820)
03-02 09:32:31.950 2562 2562 F DEBUG : #02 pc 000156a4 /system/bin/linker (_start+4)
the latest changes to the device tree seems to have fixed this issue. thanx guys. though would love to know what was causing this issue.
Hi there,
add these proprietrary files to your device tree :
/system/lib/libFileMux.so
/system/lib64/libFileMux.so
/product/lib/[email protected]
/product/lib64/[email protected]
janhammer504 said:
Hi there,
add these proprietrary files to your device tree :
/system/lib/libFileMux.so
/system/lib64/libFileMux.so
/product/lib/[email protected]
/product/lib64/[email protected]
Click to expand...
Click to collapse
Is this for broadcast ?
Wtf is that
noskojv said:
Is this for broadcast ?
Click to expand...
Click to collapse
for wifidisplay ... this is for ROM devs not for final users !
janhammer504 said:
for wifidisplay ... this is for ROM devs not for final users !
Click to expand...
Click to collapse
nitrogenos I don't have such files in the system but wifidisplay works.
Module for magisk
noskojv said:
Module for magisk
Click to expand...
Click to collapse
Quick question: is your module an end-user fix for anyone on an AOSP-based ROM which doesn't already include the fix?
noskojv said:
Module for magisk
Click to expand...
Click to collapse
Thanks for this!
on arrow os didnt work wdf service error again i go back to my pixel 10 rom works fine without trics but its android 10
nikolas60 said:
on arrow os didnt work wdf service error again i go back to my pixel 10 rom works fine without trics but its android 10
Click to expand...
Click to collapse
Did you use the magisk module provided on this thread?
yes man of course i have poco x3 nfc
arrow android 11
nikolas60 said:
arrow android 11
Click to expand...
Click to collapse
Maybe it does not work with Android 11 at all?
Just tested with crDroid 7.2 (Android 11) and its not working.
Does it work on eu rom or elite rom?
Or only for Aosp
The magisk module is not working in my case.
Helppp
janhammer504 said:
Hi there,
add these proprietrary files to your device tree :
Click to expand...
Click to collapse
I
I have them right but no way to make wft work.
heartbr said:
I
I have them right but no way to make wft work.
Click to expand...
Click to collapse
check the symlink for the lib in the wfd apk folder
Good afternoon everyone! As for the screen broadcast (Miracast), when connected to the TV, it gives an error, "The Wfd Service application crashed again." Does anyone know a solution to these problems? I have root access. Motorola Moto G6 ali, ROM: Pixel Experience 11. Many thanks to everyone!
Do you have a fix for this?
Razer Phone 2 (aura) on LineageOS for MicroG 19.1
Tried finding this missing library but no luck so far.
During a short stint on /e/OS, this worked fine. The only hint I found is that it might be a proprietary (vendor) file.
Help appreciated
Code:
06-20 17:31:13.941 1532 1532 E LightsService: Light requested not available on this device. 2
06-20 17:31:14.223 941 2915 E msm8974_platform: platform_check_backends_match: Invalid snd_device =
06-20 17:31:14.227 941 2915 E ACDB-LOADER: Error: ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE Returned = -19
06-20 17:31:14.227 941 2915 E ACDB-LOADER: Error: ACDB AFE returned = -19
06-20 17:31:14.319 6443 6443 E ice:wfd_servic: Not starting debugger since process cannot load the jdwp agent.
06-20 17:31:14.404 6443 6458 E JavaBinder: *** Uncaught remote exception! (Exceptions are not yet supported across processes.)
06-20 17:31:14.404 6443 6458 E JavaBinder: java.lang.UnsatisfiedLinkError: dlopen failed: library "libmmosal.so" not found: needed by /system/system_ext/lib64/libwfdclient.so in namespace classloader-namespace-shared
06-20 17:31:14.404 6443 6458 E JavaBinder: at java.lang.Runtime.loadLibrary0(Runtime.java:1077)
06-20 17:31:14.404 6443 6458 E JavaBinder: at java.lang.Runtime.loadLibrary0(Runtime.java:998)
06-20 17:31:14.404 6443 6458 E JavaBinder: at java.lang.System.loadLibrary(System.java:1656)
06-20 17:31:14.404 6443 6458 E JavaBinder: at com.qualcomm.wfd.WFDSession.<clinit>(WFDSession.java:56)
06-20 17:31:14.404 6443 6458 E JavaBinder: at com.qualcomm.wfd.WFDSession.createWFDSession(WFDSession.java:403)
06-20 17:31:14.404 6443 6458 E JavaBinder: at com.qualcomm.wfd.service.SessionManagerService.setDeviceType(SessionManagerService.java:175)
06-20 17:31:14.404 6443 6458 E JavaBinder: at com.qualcomm.wfd.service.ISessionManagerService$Stub.onTransact(ISessionManagerService.java:655)
06-20 17:31:14.404 6443 6458 E JavaBinder: at android.os.Binder.execTransactInternal(Binder.java:1184)
06-20 17:31:14.404 6443 6458 E JavaBinder: at android.os.Binder.execTransact(Binder.java:1143)
06-20 17:31:14.404 6443 6458 E AndroidRuntime: FATAL EXCEPTION: Binder:6443_2
06-20 17:31:14.404 6443 6458 E AndroidRuntime: Process: com.qualcomm.wfd.service:wfd_service, PID: 6443
06-20 17:31:14.404 6443 6458 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: library "libmmosal.so" not found: needed by /system/system_ext/lib64/libwfdclient.so in namespace classloader-namespace-shared
06-20 17:31:14.404 6443 6458 E AndroidRuntime: at java.lang.Runtime.loadLibrary0(Runtime.java:1077)
06-20 17:31:14.404 6443 6458 E AndroidRuntime: at java.lang.Runtime.loadLibrary0(Runtime.java:998)
06-20 17:31:14.404 6443 6458 E AndroidRuntime: at java.lang.System.loadLibrary(System.java:1656)
06-20 17:31:14.404 6443 6458 E AndroidRuntime: at com.qualcomm.wfd.WFDSession.<clinit>(WFDSession.java:56)
06-20 17:31:14.404 6443 6458 E AndroidRuntime: at com.qualcomm.wfd.WFDSession.createWFDSession(WFDSession.java:403)
06-20 17:31:14.404 6443 6458 E AndroidRuntime: at com.qualcomm.wfd.service.SessionManagerService.setDeviceType(SessionManagerService.java:175)
06-20 17:31:14.404 6443 6458 E AndroidRuntime: at com.qualcomm.wfd.service.ISessionManagerService$Stub.onTransact(ISessionManagerService.java:655)
06-20 17:31:14.404 6443 6458 E AndroidRuntime: at android.os.Binder.execTransactInternal(Binder.java:1184)
06-20 17:31:14.404 6443 6458 E AndroidRuntime: at android.os.Binder.execTransact(Binder.java:1143)
06-20 17:31:14.419 6464 6464 F linker : CANNOT LINK EXECUTABLE "/system_ext/bin/wfdservice": library "libmmosal.so" not found: needed by main executable
06-20 17:31:14.425 1532 6442 E ExtendedRemoteDisplay: WfdService init() failed
06-20 17:31:14.425 1532 6442 E ExtendedRemoteDisplay: android.os.DeadObjectException
06-20 17:31:14.425 1532 6442 E ExtendedRemoteDisplay: at android.os.BinderProxy.transactNative(Native Method)
06-20 17:31:14.425 1532 6442 E ExtendedRemoteDisplay: at android.os.BinderProxy.transact(BinderProxy.java:571)
06-20 17:31:14.425 1532 6442 E ExtendedRemoteDisplay: at com.qualcomm.wfd.service.ISessionManagerService$Stub$Proxy.setDeviceType(ISessionManagerService.java:1210)
06-20 17:31:14.425 1532 6442 E ExtendedRemoteDisplay: at com.qualcomm.wfd.ExtendedRemoteDisplay$ExtendedRemoteDisplayHandler.handleMessage(ExtendedRemoteDisplay.java:770)
06-20 17:31:14.425 1532 6442 E ExtendedRemoteDisplay: at android.os.Handler.dispatchMessage(Handler.java:106)
06-20 17:31:14.425 1532 6442 E ExtendedRemoteDisplay: at android.os.Looper.loopOnce(Looper.java:201)
06-20 17:31:14.425 1532 6442 E ExtendedRemoteDisplay: at android.os.Looper.loop(Looper.java:288)
06-20 17:31:14.425 1532 6442 E ExtendedRemoteDisplay: at android.os.HandlerThread.run(HandlerThread.java:67)
06-20 17:31:14.425 1532 6442 E ExtendedRemoteDisplay: Why on earth is surface null??
06-20 17:31:14.486 3465 3465 E .ss.squarehome: Invalid ID 0x00000000.
06-20 17:31:14.487 3465 3465 E .ss.squarehome: Invalid ID 0x00000000.
06-20 17:31:14.489 3465 3465 E .ss.squarehome: Invalid ID 0x00000000.
06-20 17:31:14.490 3465 3465 E .ss.squarehome: Invalid ID 0x00000000.
06-20 17:31:14.491 3465 3465 E .ss.squarehome: Invalid ID 0x00000000.
06-20 17:31:15.590 6466 6466 E ice:wfd_servic: Not starting debugger since process cannot load the jdwp agent.
06-20 17:31:15.639 6466 6481 E JavaBinder: *** Uncaught remote exception! (Exceptions are not yet supported across processes.)
06-20 17:31:15.639 6466 6481 E JavaBinder: java.lang.UnsatisfiedLinkError: dlopen failed: library "libmmosal.so" not found: needed by /system/system_ext/lib64/libwfdclient.so in namespace classloader-namespace-shared
06-20 17:31:15.639 6466 6481 E JavaBinder: at java.lang.Runtime.loadLibrary0(Runtime.java:1077)
06-20 17:31:15.639 6466 6481 E JavaBinder: at java.lang.Runtime.loadLibrary0(Runtime.java:998)
06-20 17:31:15.639 6466 6481 E JavaBinder: at java.lang.System.loadLibrary(System.java:1656)
06-20 17:31:15.639 6466 6481 E JavaBinder: at com.qualcomm.wfd.WFDSession.<clinit>(WFDSession.java:56)
06-20 17:31:15.639 6466 6481 E JavaBinder: at com.qualcomm.wfd.WFDSession.createWFDSession(WFDSession.java:403)
06-20 17:31:15.639 6466 6481 E JavaBinder: at com.qualcomm.wfd.service.SessionManagerService.setDeviceType(SessionManagerService.java:175)
06-20 17:31:15.639 6466 6481 E JavaBinder: at com.qualcomm.wfd.service.ISessionManagerService$Stub.onTransact(ISessionManagerService.java:655)
06-20 17:31:15.639 6466 6481 E JavaBinder: at android.os.Binder.execTransactInternal(Binder.java:1184)
06-20 17:31:15.639 6466 6481 E JavaBinder: at android.os.Binder.execTransact(Binder.java:1143)
06-20 17:31:15.640 6466 6481 E AndroidRuntime: FATAL EXCEPTION: Binder:6466_3
06-20 17:31:15.640 6466 6481 E AndroidRuntime: Process: com.qualcomm.wfd.service:wfd_service, PID: 6466
06-20 17:31:15.640 6466 6481 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: library "libmmosal.so" not found: needed by /system/system_ext/lib64/libwfdclient.so in namespace classloader-namespace-shared
06-20 17:31:15.640 6466 6481 E AndroidRuntime: at java.lang.Runtime.loadLibrary0(Runtime.java:1077)
06-20 17:31:15.640 6466 6481 E AndroidRuntime: at java.lang.Runtime.loadLibrary0(Runtime.java:998)
06-20 17:31:15.640 6466 6481 E AndroidRuntime: at java.lang.System.loadLibrary(System.java:1656)
06-20 17:31:15.640 6466 6481 E AndroidRuntime: at com.qualcomm.wfd.WFDSession.<clinit>(WFDSession.java:56)
06-20 17:31:15.640 6466 6481 E AndroidRuntime: at com.qualcomm.wfd.WFDSession.createWFDSession(WFDSession.java:403)
06-20 17:31:15.640 6466 6481 E AndroidRuntime: at com.qualcomm.wfd.service.SessionManagerService.setDeviceType(SessionManagerService.java:175)
06-20 17:31:15.640 6466 6481 E AndroidRuntime: at com.qualcomm.wfd.service.ISessionManagerService$Stub.onTransact(ISessionManagerService.java:655)
06-20 17:31:15.640 6466 6481 E AndroidRuntime: at android.os.Binder.execTransactInternal(Binder.java:1184)
06-20 17:31:15.640 6466 6481 E AndroidRuntime: at android.os.Binder.execTransact(Binder.java:1143)
06-20 17:31:15.649 6485 6485 F linker : CANNOT LINK EXECUTABLE "/system_ext/bin/wfdservice": library "libmmosal.so" not found: needed by main executable