CameraService :: connect, исключающий конфликтующий клиент для идентификатора камеры 0 - PullRequest
0 голосов
/ 08 ноября 2018

Я хочу показать камеру на поверхностиПросмотреть ее работу в старых телефонах (например, Android v 14), но в Android 8 я один раз нажму на кнопку «Последние» телефона и вернусь к активности, чтобы изменить черный экран поверхности. Просмотр данных камеры , Это мой телефонный журнал:

2018-11-08 23:02:24.203 559-9894/? E/QCamera: <MCI><ERROR> mm_channel_fsm_fn_stopped: 893: invalid state (1) for evt (6)
2018-11-08 23:02:24.397 27171-5172/? E/CameraService: binderDied: Java client's binder died, removing it from the list of active clients
2018-11-08 23:02:24.477 13645-13645/? E/PBSessionCacheImpl: sessionId[60012886345435817] not persisted.
2018-11-08 23:02:24.622 585-604/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [4, 0]
2018-11-08 23:02:24.632 27176-29183/? E/msm8974_platform: platform_get_snd_device_backend_index: BE DAI Name Table is not present
2018-11-08 23:02:24.632 27176-29183/? E/audio_hw_utils: send_app_type_cfg_for_device: Couldn't get the backend index for snd device voice-rec-mic ret=-14
2018-11-08 23:02:24.633 27176-29183/? E/ACDB-LOADER: Error: ACDB AudProc vol returned = -19
2018-11-08 23:02:24.633 27176-29183/? E/ACDB-LOADER: Error: ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE Returned = -19
2018-11-08 23:02:24.633 27176-29183/? E/ACDB-LOADER: Error: ACDB AFE returned = -19
2018-11-08 23:02:24.760 668-18942/? E/installd: Failed to delete /data/app/vmdl1894063467.tmp: No such file or directory
2018-11-08 23:02:26.049 559-9560/? E/CamComm1.0-MD: Mismatched tag type when updating entry enable (-2146762752) of type byte; got type int32 data instead 
2018-11-08 23:02:26.049 559-9560/? E/CamComm1.0-MD: Mismatched tag type when updating entry is_main (-2146762751) of type byte; got type int32 data instead 
2018-11-08 23:02:26.152 559-9560/? E/QCamera: <MCI><ERROR> mm_channel_fsm_fn_stopped: 893: invalid state (1) for evt (6)
2018-11-08 23:02:26.936 559-9560/? E/CamComm1.0-MD: Mismatched tag type when updating entry enable (-2146762752) of type byte; got type int32 data instead 
2018-11-08 23:02:26.936 559-9560/? E/CamComm1.0-MD: Mismatched tag type when updating entry is_main (-2146762751) of type byte; got type int32 data instead 

То есть запуск окна вывода:

11/08 23:02:22: Launching app
$ adb push D:\DEV\!Doorban\source\app\build\outputs\apk\debug\app-debug.apk /data/local/tmp/com.azharja.doorban
$ adb shell pm install -t -r "/data/local/tmp/com.azharja.doorban"
Success
APK installed in 3 s 99 ms
$ adb shell am start -n "com.azharja.doorban/com.azharja.doorban.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Client not ready yet..Waiting for process to come online
Connected to process 29225 on device xiaomi-mi_5s-5e4757f3
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/zygote64: Do partial code cache collection, code=7KB, data=16KB
I/zygote64: After code cache collection, code=7KB, data=16KB
    Increasing code cache capacity to 128KB
I/zygote64: Do partial code cache collection, code=7KB, data=35KB
    After code cache collection, code=7KB, data=35KB
    Increasing code cache capacity to 256KB
    Compiler allocated 7MB to compile void android.widget.TextView.<init>(android.content.Context, android.util.AttributeSet, int, int)
I/DOZDGIRRRR: {checkInterval=500, start=0, minLuma=1000, vibrate=true, takePhoto=false, isActive=true, makeCall=false, cameraType=true, playAlarm=false, password=mmaa7711*, sendEmail=false, leniency=20, sendSms=false, isFirstRun=false, phone=, SubscribedToAlerts=true, end=24, email=mablue92@gmail.com}
D/DOZDGIRRRR: getCamType: numberOfCameras: 2
D/DOZDGIRRRR: Creating IAB helper.
    Starting setup.
D/IabHelper: Starting in-app billing setup.
D/DOZDGIRRRR: onCreate() orientation: -1
D/ContentValues: onResume: camType:0
    onResume: orient:1
D/OpenGLRenderer: HWUI GL Pipeline
D/IabHelper: Billing service connected.
D/IabHelper: Checking for in-app billing 3 support.
D/IabHelper: In-app billing version 3 supported for com.azharja.doorban
D/IabHelper: Subscriptions AVAILABLE.
D/DOZDGIRRRR: Setup finished.
D/DOZDGIRRRR: Setup successful. Querying inventory.
D/IabHelper: Starting async operation: refresh inventory
D/IabHelper: Querying owned items, item type: inapp
D/IabHelper: Package name: com.azharja.doorban
    Calling getPurchases with continuation token: null
I/Adreno: QUALCOMM build                   : 2ca8eb3, I354b4b02f7
    Build Date                       : 02/24/18
    OpenGL ES Shader Compiler Version: EV031.22.00.01
    Local Branch                     : 
    Remote Branch                    : quic/gfx-adreno.lnx.1.0.r36-rel
    Remote Branch                    : NONE
    Reconstruct Branch               : NOTHING
D/vndksupport: Loading /vendor/lib64/hw/gralloc.msm8996.so from current namespace instead of sphal namespace.
I/Adreno: PFP: 0x005ff087, ME: 0x005ff063
I/zygote64: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 2
D/vndksupport: Loading /vendor/lib64/hw/android.hardware.graphics.mapper@2.0-impl.so from current namespace instead of sphal namespace.
D/vndksupport: Loading /vendor/lib64/hw/gralloc.msm8996.so from current namespace instead of sphal namespace.
D/IabHelper: Owned items response: 0
D/IabHelper: Continuation token: null
    Querying SKU details.
    queryPrices: nothing to do because there are no SKUs.
    Querying owned items, item type: subs
    Package name: com.azharja.doorban
D/IabHelper: Calling getPurchases with continuation token: null
D/ContentValues: onResume: camType:0
    onResume: orient:1
D/IabHelper: Owned items response: 0
D/IabHelper: Sku is owned: test
D/IabHelper: Continuation token: null
D/IabHelper: Querying SKU details.
D/IabHelper: Ending async operation: refresh inventory
D/DOZDGIRRRR: Query inventory finished.
    Query inventory was successful.
    Initial inventory query finished; enabling main UI.
I/zygote64: Do full code cache collection, code=121KB, data=98KB
I/zygote64: After code cache collection, code=120KB, data=71KB
I/zygote64: Do partial code cache collection, code=125KB, data=82KB
I/zygote64: After code cache collection, code=125KB, data=82KB
    Increasing code cache capacity to 512KB
I/zygote64: Compiler allocated 6MB to compile void android.view.ViewRootImpl.performTraversals()
I/zygote64: Do full code cache collection, code=251KB, data=157KB
I/zygote64: After code cache collection, code=152KB, data=97KB

В чем проблема? Я не получил никаких ошибок при запуске Windows из студии Android это приложение детектор движения

...