Android Question Unable to record second video on a locked phone

toby

Active Member
Licensed User
I want to find out whether I can start/stop video recording repeatedly from a service on a locked phone.

I started with the Camera2 library example(B4XPage version, https://www.b4x.com/android/forum/threads/camera2-still-images-and-videos.83920/) and made following minor modifications:
1. Added DrawOverPermission class
2. Added a service that restarts every 1 minute and that records a 30-second video
B4X:
Sub Service_Start (StartingIntent As Intent)
    'Service.StopAutomaticForeground 'Call this when the background task completes (if there is one)
    Service.AutomaticForegroundMode=Service.AUTOMATIC_FOREGROUND_ALWAYS
    StartServiceAt(Me, DateTime.Now+60000, True)
    StartActivity(Main)
    Dim Mainpage As B4XMainPage
    Mainpage=B4XPages.GetPage("MainPage")
    Mainpage.btnRecord_Click  'start recording
    Sleep(30000)
    Mainpage.btnRecord_Click  'stop recording
End Sub
3. Set VideoMode=True and request RECORD_AUDIO permission in B4XPage_Created()
4. Commented out: cam.stop in B4XPage_Background and openCamera() in B4XPage_Foreground


The results:
1. The first recording, 1.mp4, was recorded and saved correctly
2. It failed while trying to record the second time with the following log entries:
start called in an invalid state: 1
Error: (IllegalStateException) java.lang.IllegalStateException

** Activity (main) Pause event (activity is not paused). **
*** mainpage: B4XPage_Disappear [mainpage]
*** mainpage: B4XPage_Background [mainpage]
*** mainpage: B4XPage_PermissionResult [mainpage]
** Activity (main) Resume **
*** mainpage: B4XPage_Foreground [mainpage]
*** mainpage: B4XPage_Appear [mainpage]
[SurfaceTexture-1-22629-1] cancelBuffer: BufferQueue has been abandoned
uid=10131(com.ddg.camera2) Binder:22629_1 identical 3 lines
[SurfaceTexture-1-22629-1] cancelBuffer: BufferQueue has been abandoned
[SurfaceTexture-1-22629-1] connect: BufferQueue has been abandoned
[SurfaceTexture-1-22629-1] setMaxDequeuedBufferCount: BufferQueue has been abandoned
My question: Is it possible to somehow make the camera in a valid state for each subsequent recording? If so, some guide would be appreciated.


Logger connected to: asus ASUS_X017DA
--------- beginning of main
Not starting debugger since process cannot load the jdwp agent.
Connecting to perf service.
SetAppTypeFace- try to flip, app = com.ddg.camera2
Typeface getFontPathFlipFont - systemFont = default#default
SetAppTypeFace- try to flip, app = com.ddg.camera2
Typeface getFontPathFlipFont - systemFont = default#default
common created.
Starting remote logger. Port: 15174
Skia GL Pipeline
*** Service (starter) Create ***
** Service (starter) Start **
QUALCOMM build : cf57c9c, I1cb5c4d1cc
Build Date : 10/15/18
OpenGL ES Shader Compiler Version: EV031.25.03.01
Local Branch :
Remote Branch : refs/tags/AU_LINUX_ANDROID_LA.UM.7.2.R1.09.00.00.442.049
Remote Branch : NONE
Reconstruct Branch : NOTHING
Build Config : S L 6.0.7 AArch64
Loading /vendor/lib64/hw/gralloc.sdm660.so from current namespace instead of sphal namespace.
** Activity (main) Create, isFirst = true **
type=1400 audit(0.0:891): avc: denied { search } for name="proc" dev="debugfs" ino=11655 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:qti_debugfs:s0 tclass=dir permissive=0
PFP: 0x005ff110, ME: 0x005ff066
android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
Initialized EGL, version 1.4
Swap behavior 2
*** : B4XPage_Foreground
*** mainpage: B4XPage_Appear
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
** Activity (main) Resume **
Loading /vendor/lib64/hw/android.hardware.graphics.mapper@2.0-impl.so from current namespace instead of sphal namespace.
Loading /vendor/lib64/hw/gralloc.sdm660.so from current namespace instead of sphal namespace.
Permission: true
*** mainpage: B4XPage_PermissionResult [mainpage]
Connecting to camera service
Access denied finding property "vendor.camera.aux.packagelist"
type=1400 audit(0.0:892): avc: denied { read } for name="u:eek:bject_r:vendor_camera_prop:s0" dev="tmpfs" ino=17641 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:vendor_camera_prop:s0 tclass=file permissive=0
Access denied finding property "vendor.camera.aux.packagelist"
Access denied finding property "vendor.camera.aux.packagelist"
[soar.cts] ignore the status update of camera: 2
Access denied finding property "vendor.camera.aux.packagelist"
type=1400 audit(0.0:893): avc: denied { read } for name="u:eek:bject_r:vendor_camera_prop:s0" dev="tmpfs" ino=17641 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:vendor_camera_prop:s0 tclass=file permissive=0
[soar.cts] ignore the status update of camera: 3
Access denied finding property "vendor.camera.aux.packagelist"
type=1400 audit(0.0:894): avc: denied { read } for name="u:eek:bject_r:vendor_camera_prop:s0" dev="tmpfs" ino=17641 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:vendor_camera_prop:s0 tclass=file permissive=0
uid=10131(com.ddg.camera2) identical 1 line
type=1400 audit(0.0:896): avc: denied { read } for name="u:eek:bject_r:vendor_camera_prop:s0" dev="tmpfs" ino=17641 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:vendor_camera_prop:s0 tclass=file permissive=0
Access denied finding property "vendor.camera.aux.packagelist"
Access denied finding property "vendor.camera.aux.packagelist"
ignore the torch status update of camera: 2
Access denied finding property "vendor.camera.aux.packagelist"
ignore the torch status update of camera: 3
type=1400 audit(0.0:897): avc: denied { read } for name="u:eek:bject_r:vendor_camera_prop:s0" dev="tmpfs" ino=17641 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:vendor_camera_prop:s0 tclass=file permissive=0
LEGACY
*** mainpage: B4XPage_PermissionResult [mainpage]
Access denied finding property "vendor.camera.aux.packagelist"
Access denied finding property "persist.vendor.camera.privapp.list"
Using legacy camera HAL.
Access denied finding property "vendor.camera.aux.packagelist"
Access denied finding property "vendor.camera.aux.packagelist"
Access denied finding property "vendor.camera.aux.packagelist"
Failed to load library: libstagefright_ccodec.so (dlopen failed: library "libstagefright_ccodec.so" not found)
Handle or CreateInputSurface symbol is null
IOmx service obtained
Legacy camera service transitioning to state CONFIGURING
Configure outputs: 2 surfaces configured.
app passed NULL surface
Access denied finding property "persist.camera.legacy_perf"
Legacy camera service transitioning to state IDLE
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Start success: true
Legacy camera service transitioning to state CAPTURING
After accept
** Activity (main) Pause event (activity is not paused). **
*** mainpage: B4XPage_Disappear [mainpage]
*** mainpage: B4XPage_Background [mainpage]
** Activity (main) Resume **
*** mainpage: B4XPage_Foreground [mainpage]
*** mainpage: B4XPage_Appear [mainpage]
** Activity (main) Pause event (activity is not paused). **
*** mainpage: B4XPage_Disappear [mainpage]
*** mainpage: B4XPage_Background [mainpage]
[SurfaceTexture-0-21277-0] dequeueBuffer: BufferQueue has been abandoned
DequeueBuffer: dequeueBuffer failed
Surface abandoned, dropping frame.
android.hardware.camera2.legacy.LegacyExceptionUtils$BufferQueueAbandonedException
at android.hardware.camera2.legacy.SurfaceTextureRenderer.swapBuffers(SurfaceTextureRenderer.java:552)
at android.hardware.camera2.legacy.SurfaceTextureRenderer.drawIntoSurfaces(SurfaceTextureRenderer.java:792)
at android.hardware.camera2.legacy.GLThreadManager$1.handleMessage(GLThreadManager.java:105)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:198)
at android.os.HandlerThread.run(HandlerThread.java:65)
Repeating capture request cancelled.
Legacy camera service transitioning to state IDLE
Not starting debugger since process cannot load the jdwp agent.
Connecting to perf service.
SetAppTypeFace- try to flip, app = com.ddg.camera2
Typeface getFontPathFlipFont - systemFont = default#default
SetAppTypeFace- try to flip, app = com.ddg.camera2
Typeface getFontPathFlipFont - systemFont = default#default
common created.
Starting remote logger. Port: 15174
Skia GL Pipeline
*** Service (starter) Create ***
** Service (starter) Start **
QUALCOMM build : cf57c9c, I1cb5c4d1cc
Build Date : 10/15/18
OpenGL ES Shader Compiler Version: EV031.25.03.01
Local Branch :
Remote Branch : refs/tags/AU_LINUX_ANDROID_LA.UM.7.2.R1.09.00.00.442.049
Remote Branch : NONE
Reconstruct Branch : NOTHING
Build Config : S L 6.0.7 AArch64
Loading /vendor/lib64/hw/gralloc.sdm660.so from current namespace instead of sphal namespace.
** Activity (main) Create, isFirst = true **
type=1400 audit(0.0:906): avc: denied { search } for name="proc" dev="debugfs" ino=11655 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:qti_debugfs:s0 tclass=dir permissive=0
PFP: 0x005ff110, ME: 0x005ff066
android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
Initialized EGL, version 1.4
Swap behavior 2
*** : B4XPage_Foreground
*** mainpage: B4XPage_Appear
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
** Activity (main) Resume **
Loading /vendor/lib64/hw/android.hardware.graphics.mapper@2.0-impl.so from current namespace instead of sphal namespace.
Loading /vendor/lib64/hw/gralloc.sdm660.so from current namespace instead of sphal namespace.
Permission: true
*** mainpage: B4XPage_PermissionResult [mainpage]
After accept
Connecting to camera service
type=1400 audit(0.0:907): avc: denied { read } for name="u:eek:bject_r:vendor_camera_prop:s0" dev="tmpfs" ino=17641 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:vendor_camera_prop:s0 tclass=file permissive=0
type=1400 audit(0.0:908): avc: denied { read } for name="u:eek:bject_r:vendor_camera_prop:s0" dev="tmpfs" ino=17641 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:vendor_camera_prop:s0 tclass=file permissive=0
Access denied finding property "vendor.camera.aux.packagelist"
type=1400 audit(0.0:909): avc: denied { read } for name="u:eek:bject_r:vendor_camera_prop:s0" dev="tmpfs" ino=17641 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:vendor_camera_prop:s0 tclass=file permissive=0
type=1400 audit(0.0:910): avc: denied { read } for name="u:eek:bject_r:vendor_camera_prop:s0" dev="tmpfs" ino=17641 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:vendor_camera_prop:s0 tclass=file permissive=0
Access denied finding property "vendor.camera.aux.packagelist"
Access denied finding property "vendor.camera.aux.packagelist"
[soar.cts] ignore the status update of camera: 2
Access denied finding property "vendor.camera.aux.packagelist"
[soar.cts] ignore the status update of camera: 3
Access denied finding property "vendor.camera.aux.packagelist"
uid=10131(com.ddg.camera2) identical 1 line
Access denied finding property "vendor.camera.aux.packagelist"
ignore the torch status update of camera: 2
Access denied finding property "vendor.camera.aux.packagelist"
ignore the torch status update of camera: 3
LEGACY
*** mainpage: B4XPage_PermissionResult [mainpage]
Access denied finding property "vendor.camera.aux.packagelist"
Access denied finding property "persist.vendor.camera.privapp.list"
Using legacy camera HAL.
Access denied finding property "vendor.camera.aux.packagelist"
Access denied finding property "vendor.camera.aux.packagelist"
Access denied finding property "vendor.camera.aux.packagelist"
Failed to load library: libstagefright_ccodec.so (dlopen failed: library "libstagefright_ccodec.so" not found)
Handle or CreateInputSurface symbol is null
IOmx service obtained
Legacy camera service transitioning to state CONFIGURING
Configure outputs: 2 surfaces configured.
app passed NULL surface
Access denied finding property "persist.camera.legacy_perf"
Legacy camera service transitioning to state IDLE
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Start success: true
Legacy camera service transitioning to state CAPTURING
** Activity (main) Pause event (activity is not paused). **
*** mainpage: B4XPage_Disappear [mainpage]
*** mainpage: B4XPage_Background [mainpage]
** Service (starter) Destroy (ignored)**
Error 3
Flushing all pending requests.
Repeating capture request cancelled.
Capture failed for request: 0
Legacy camera service transitioning to state ERROR
Legacy camera service transitioning to state IDLE
Cannot call idle while in state: 0
Access denied finding property "vendor.camera.aux.packagelist"
type=1400 audit(0.0:921): avc: denied { read } for name="u:eek:bject_r:vendor_camera_prop:s0" dev="tmpfs" ino=17641 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:vendor_camera_prop:s0 tclass=file permissive=0
type=1400 audit(0.0:922): avc: denied { read } for name="u:eek:bject_r:vendor_camera_prop:s0" dev="tmpfs" ino=17641 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:vendor_camera_prop:s0 tclass=file permissive=0
Access denied finding property "vendor.camera.aux.packagelist"
** Receiver (svcrecordcontrol) OnReceive **
*** Service (svcrecordcontrol) Create ***
** Service (svcrecordcontrol) Start **
start recording
** Activity (main) Pause event (activity is not paused). **
*** mainpage: B4XPage_Disappear [mainpage]
** Activity (main) Resume **
*** mainpage: B4XPage_Foreground [mainpage]
*** mainpage: B4XPage_Appear [mainpage]
stop recording, video file: 1.mp4
Error: (CameraAccessException) android.hardware.camera2.CameraAccessException: CAMERA_ERROR (3): The camera device has encountered a serious error
*** mainpage: B4XPage_PermissionResult [mainpage]
type=1400 audit(0.0:923): avc: denied { read } for name="u:eek:bject_r:vendor_camera_prop:s0" dev="tmpfs" ino=17641 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:vendor_camera_prop:s0 tclass=file permissive=0
Access denied finding property "vendor.camera.aux.packagelist"
type=1400 audit(0.0:924): avc: denied { read } for name="u:eek:bject_r:vendor_camera_prop:s0" dev="tmpfs" ino=17641 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:vendor_camera_prop:s0 tclass=file permissive=0
Access denied finding property "persist.vendor.camera.privapp.list"
Using legacy camera HAL.
type=1400 audit(0.0:925): avc: denied { read } for name="u:eek:bject_r:vendor_camera_prop:s0" dev="tmpfs" ino=17641 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:vendor_camera_prop:s0 tclass=file permissive=0
type=1400 audit(0.0:926): avc: denied { read } for name="u:eek:bject_r:vendor_camera_prop:s0" dev="tmpfs" ino=17641 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:vendor_camera_prop:s0 tclass=file permissive=0
Access denied finding property "vendor.camera.aux.packagelist"
Access denied finding property "vendor.camera.aux.packagelist"
type=1400 audit(0.0:927): avc: denied { read } for name="u:eek:bject_r:vendor_camera_prop:s0" dev="tmpfs" ino=17641 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:vendor_camera_prop:s0 tclass=file permissive=0
Access denied finding property "vendor.camera.aux.packagelist"
camex2_closesession (java line: 211)
android.hardware.camera2.CameraAccessException: CAMERA_ERROR (3): The camera device has encountered a serious error
at android.hardware.camera2.impl.CameraDeviceImpl.checkIfCameraClosedOrInError(CameraDeviceImpl.java:2448)
at android.hardware.camera2.impl.CameraDeviceImpl.stopRepeating(CameraDeviceImpl.java:1116)
at android.hardware.camera2.impl.CameraCaptureSessionImpl.stopRepeating(CameraCaptureSessionImpl.java:409)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:131)
at com.ddg.camera2.camex2._closesession(camex2.java:211)
at com.ddg.camera2.camex2$ResumableSub_PrepareSurfaceForVideo.resume(camex2.java:1164)
at com.ddg.camera2.camex2._preparesurfaceforvideo(camex2.java:1114)
at com.ddg.camera2.b4xmainpage$ResumableSub_PrepareSurface.resume(b4xmainpage.java:786)
at com.ddg.camera2.b4xmainpage._preparesurface(b4xmainpage.java:739)
at com.ddg.camera2.b4xmainpage$ResumableSub_OpenCamera.resume(b4xmainpage.java:684)
at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:267)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:207)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
at anywheresoftware.b4a.keywords.Common$14.run(Common.java:1760)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:198)
at android.app.ActivityThread.main(ActivityThread.java:6732)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
--------- beginning of crash
FATAL EXCEPTION: main
Process: com.ddg.camera2, PID: 21716
android.hardware.camera2.CameraAccessException: CAMERA_ERROR (3): The camera device has encountered a serious error
at android.hardware.camera2.impl.CameraDeviceImpl.checkIfCameraClosedOrInError(CameraDeviceImpl.java:2448)
at android.hardware.camera2.impl.CameraDeviceImpl.stopRepeating(CameraDeviceImpl.java:1116)
at android.hardware.camera2.impl.CameraCaptureSessionImpl.stopRepeating(CameraCaptureSessionImpl.java:409)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:131)
at com.ddg.camera2.camex2._closesession(camex2.java:211)
at com.ddg.camera2.camex2$ResumableSub_PrepareSurfaceForVideo.resume(camex2.java:1164)
at com.ddg.camera2.camex2._preparesurfaceforvideo(camex2.java:1114)
at com.ddg.camera2.b4xmainpage$ResumableSub_PrepareSurface.resume(b4xmainpage.java:786)
at com.ddg.camera2.b4xmainpage._preparesurface(b4xmainpage.java:739)
at com.ddg.camera2.b4xmainpage$ResumableSub_OpenCamera.resume(b4xmainpage.java:684)
at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:267)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:207)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
at anywheresoftware.b4a.keywords.Common$14.run(Common.java:1760)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:198)
at android.app.ActivityThread.main(ActivityThread.java:6732)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Sending signal. PID: 21716 SIG: 9
Not starting debugger since process cannot load the jdwp agent.
Connecting to perf service.
SetAppTypeFace- try to flip, app = com.ddg.camera2
Typeface getFontPathFlipFont - systemFont = default#default
SetAppTypeFace- try to flip, app = com.ddg.camera2
Typeface getFontPathFlipFont - systemFont = default#default
common created.
Starting remote logger. Port: 15174
Skia GL Pipeline
*** Service (starter) Create ***
** Service (starter) Start **
QUALCOMM build : cf57c9c, I1cb5c4d1cc
Build Date : 10/15/18
OpenGL ES Shader Compiler Version: EV031.25.03.01
Local Branch :
Remote Branch : refs/tags/AU_LINUX_ANDROID_LA.UM.7.2.R1.09.00.00.442.049
Remote Branch : NONE
Reconstruct Branch : NOTHING
Build Config : S L 6.0.7 AArch64
Loading /vendor/lib64/hw/gralloc.sdm660.so from current namespace instead of sphal namespace.
type=1400 audit(0.0:935): avc: denied { search } for name="proc" dev="debugfs" ino=11655 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:qti_debugfs:s0 tclass=dir permissive=0
** Activity (main) Create, isFirst = true **
PFP: 0x005ff110, ME: 0x005ff066
android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
Initialized EGL, version 1.4
Swap behavior 2
*** : B4XPage_Foreground
*** mainpage: B4XPage_Appear
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
** Activity (main) Resume **
Loading /vendor/lib64/hw/android.hardware.graphics.mapper@2.0-impl.so from current namespace instead of sphal namespace.
Loading /vendor/lib64/hw/gralloc.sdm660.so from current namespace instead of sphal namespace.
Permission: true
*** mainpage: B4XPage_PermissionResult [mainpage]
Connecting to camera service
type=1400 audit(0.0:936): avc: denied { read } for name="u:eek:bject_r:vendor_camera_prop:s0" dev="tmpfs" ino=17641 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:vendor_camera_prop:s0 tclass=file permissive=0
Access denied finding property "vendor.camera.aux.packagelist"
type=1400 audit(0.0:937): avc: denied { read } for name="u:eek:bject_r:vendor_camera_prop:s0" dev="tmpfs" ino=17641 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:vendor_camera_prop:s0 tclass=file permissive=0
Access denied finding property "vendor.camera.aux.packagelist"
Access denied finding property "vendor.camera.aux.packagelist"
type=1400 audit(0.0:938): avc: denied { read } for name="u:eek:bject_r:vendor_camera_prop:s0" dev="tmpfs" ino=17641 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:vendor_camera_prop:s0 tclass=file permissive=0
type=1400 audit(0.0:939): avc: denied { read } for name="u:eek:bject_r:vendor_camera_prop:s0" dev="tmpfs" ino=17641 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:vendor_camera_prop:s0 tclass=file permissive=0
[soar.cts] ignore the status update of camera: 2
type=1400 audit(0.0:940): avc: denied { read } for name="u:eek:bject_r:vendor_camera_prop:s0" dev="tmpfs" ino=17641 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:vendor_camera_prop:s0 tclass=file permissive=0
Access denied finding property "vendor.camera.aux.packagelist"
[soar.cts] ignore the status update of camera: 3
Access denied finding property "vendor.camera.aux.packagelist"
uid=10131(com.ddg.camera2) Binder:22629_3 identical 1 line
Access denied finding property "vendor.camera.aux.packagelist"
ignore the torch status update of camera: 2
Access denied finding property "vendor.camera.aux.packagelist"
ignore the torch status update of camera: 3
LEGACY
*** mainpage: B4XPage_PermissionResult [mainpage]
Access denied finding property "vendor.camera.aux.packagelist"
Access denied finding property "persist.vendor.camera.privapp.list"
Using legacy camera HAL.
Access denied finding property "vendor.camera.aux.packagelist"
Access denied finding property "vendor.camera.aux.packagelist"
Access denied finding property "vendor.camera.aux.packagelist"
Failed to load library: libstagefright_ccodec.so (dlopen failed: library "libstagefright_ccodec.so" not found)
Handle or CreateInputSurface symbol is null
IOmx service obtained
Legacy camera service transitioning to state CONFIGURING
Configure outputs: 2 surfaces configured.
app passed NULL surface
Access denied finding property "persist.camera.legacy_perf"
Legacy camera service transitioning to state IDLE
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Start success: true
After accept
Legacy camera service transitioning to state CAPTURING
** Activity (main) Pause event (activity is not paused). **
*** mainpage: B4XPage_Disappear [mainpage]
*** mainpage: B4XPage_Background [mainpage]
** Receiver (svcrecordcontrol) OnReceive **
*** Service (svcrecordcontrol) Create ***
** Service (svcrecordcontrol) Start **
start recording
** Activity (main) Pause event (activity is not paused). **
*** mainpage: B4XPage_Disappear [mainpage]
** Activity (main) Resume **
*** mainpage: B4XPage_Foreground [mainpage]
*** mainpage: B4XPage_Appear [mainpage]
stop recording, video file: 1.mp4
Repeating capture request cancelled.
Flushing all pending requests.
cancel failed: no repeating request exists.
Legacy camera service transitioning to state IDLE
previewProduced called with no preview request on queue!
** Receiver (svcrecordcontrol) OnReceive **
** Service (svcrecordcontrol) Start **
start recording
start called in an invalid state: 1
Error: (IllegalStateException) java.lang.IllegalStateException
** Activity (main) Pause event (activity is not paused). **
*** mainpage: B4XPage_Disappear [mainpage]
*** mainpage: B4XPage_Background [mainpage]
*** mainpage: B4XPage_PermissionResult [mainpage]
** Activity (main) Resume **
*** mainpage: B4XPage_Foreground [mainpage]
*** mainpage: B4XPage_Appear [mainpage]
[SurfaceTexture-1-22629-1] cancelBuffer: BufferQueue has been abandoned
uid=10131(com.ddg.camera2) Binder:22629_1 identical 3 lines
[SurfaceTexture-1-22629-1] cancelBuffer: BufferQueue has been abandoned
[SurfaceTexture-1-22629-1] connect: BufferQueue has been abandoned
[SurfaceTexture-1-22629-1] setMaxDequeuedBufferCount: BufferQueue has been abandoned
type=1400 audit(0.0:952): avc: denied { read } for name="u:eek:bject_r:vendor_camera_prop:s0" dev="tmpfs" ino=17641 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:vendor_camera_prop:s0 tclass=file permissive=0
Access denied finding property "vendor.camera.aux.packagelist"
Access denied finding property "vendor.camera.aux.packagelist"
type=1400 audit(0.0:953): avc: denied { read } for name="u:eek:bject_r:vendor_camera_prop:s0" dev="tmpfs" ino=17641 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:vendor_camera_prop:s0 tclass=file permissive=0
Access denied finding property "vendor.camera.aux.packagelist"
type=1400 audit(0.0:954): avc: denied { read } for name="u:eek:bject_r:vendor_camera_prop:s0" dev="tmpfs" ino=17641 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:vendor_camera_prop:s0 tclass=file permissive=0
Access denied finding property "persist.vendor.camera.privapp.list"
Using legacy camera HAL.
type=1400 audit(0.0:955): avc: denied { read } for name="u:eek:bject_r:vendor_camera_prop:s0" dev="tmpfs" ino=17641 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:vendor_camera_prop:s0 tclass=file permissive=0
Access denied finding property "vendor.camera.aux.packagelist"
Access denied finding property "vendor.camera.aux.packagelist"
Access denied finding property "vendor.camera.aux.packagelist"
type=1400 audit(0.0:958): avc: denied { read } for name="u:eek:bject_r:vendor_camera_prop:s0" dev="tmpfs" ino=17641 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:vendor_camera_prop:s0 tclass=file permissive=0
** Activity (main) Resume **
Handle or CreateInputSurface symbol is null
IOmx service obtained
Legacy camera service transitioning to state CONFIGURING
Configure outputs: 2 surfaces configured.
app passed NULL surface
Access denied finding property "persist.camera.legacy_perf"
type=1400 audit(0.0:959): avc: denied { read } for name="u:eek:bject_r:camera_prop:s0" dev="tmpfs" ino=17543 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:camera_prop:s0 tclass=file permissive=0
Legacy camera service transitioning to state IDLE
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Start success: true
Legacy camera service transitioning to state CAPTURING
** Activity (main) Pause event (activity is not paused). **
*** mainpage: B4XPage_Disappear [mainpage]
*** mainpage: B4XPage_Background [mainpage]
[SurfaceTexture-0-22629-2] dequeueBuffer: BufferQueue has been abandoned
DequeueBuffer: dequeueBuffer failed
Surface abandoned, dropping frame.
android.hardware.camera2.legacy.LegacyExceptionUtils$BufferQueueAbandonedException
at android.hardware.camera2.legacy.SurfaceTextureRenderer.swapBuffers(SurfaceTextureRenderer.java:552)
at android.hardware.camera2.legacy.SurfaceTextureRenderer.drawIntoSurfaces(SurfaceTextureRenderer.java:792)
at android.hardware.camera2.legacy.GLThreadManager$1.handleMessage(GLThreadManager.java:105)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:198)
at android.os.HandlerThread.run(HandlerThread.java:65)
Repeating capture request cancelled.
Legacy camera service transitioning to state IDLE
start recording
** Receiver (svcrecordcontrol) OnReceive **
** Service (svcrecordcontrol) Start **
stop recording, video file: 3.mp4
stop failed: -1007
(RuntimeException) java.lang.RuntimeException: stop failed.
handleWindowVisibility: no activity for token android.os.BinderProxy@e5136c5
SetAppTypeFace- try to flip, app = com.ddg.camera2
Typeface getFontPathFlipFont - systemFont = default#default
ignoring event: create_menu
** Activity (main) Create, isFirst = false **
*** : B4XPage_Foreground
*** mainpage: B4XPage_Appear
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
** Activity (main) Resume **
Permission: true
*** mainpage: B4XPage_PermissionResult [mainpage]
LEGACY
*** mainpage: B4XPage_PermissionResult [mainpage]
Access denied finding property "vendor.camera.aux.packagelist"
type=1400 audit(0.0:961): avc: denied { read } for name="u:eek:bject_r:vendor_camera_prop:s0" dev="tmpfs" ino=17641 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:vendor_camera_prop:s0 tclass=file permissive=0
Access denied finding property "persist.vendor.camera.privapp.list"
type=1400 audit(0.0:962): avc: denied { read } for name="u:eek:bject_r:vendor_camera_prop:s0" dev="tmpfs" ino=17641 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:vendor_camera_prop:s0 tclass=file permissive=0
Using legacy camera HAL.
Error 2
Flushing all pending requests.
cancel failed: no repeating request exists.
Legacy camera service transitioning to state ERROR
type=1400 audit(0.0:963): avc: denied { read } for name="u:eek:bject_r:vendor_camera_prop:s0" dev="tmpfs" ino=17641 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:vendor_camera_prop:s0 tclass=file permissive=0
Access denied finding property "vendor.camera.aux.packagelist"
type=1400 audit(0.0:964): avc: denied { read } for name="u:eek:bject_r:vendor_camera_prop:s0" dev="tmpfs" ino=17641 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:vendor_camera_prop:s0 tclass=file permissive=0
Access denied finding property "vendor.camera.aux.packagelist"
type=1400 audit(0.0:965): avc: denied { read } for name="u:eek:bject_r:vendor_camera_prop:s0" dev="tmpfs" ino=17641 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:vendor_camera_prop:s0 tclass=file permissive=0
Access denied finding property "vendor.camera.aux.packagelist"
type=1400 audit(0.0:967): avc: denied { read } for name="u:eek:bject_r:vendor_camera_prop:s0" dev="tmpfs" ino=17641 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:vendor_camera_prop:s0 tclass=file permissive=0
Access denied finding property "vendor.camera.aux.packagelist"
camera disconnected
Legacy camera service transitioning to state CONFIGURING
Cannot call configure while in state: 0
Handle or CreateInputSurface symbol is null
IOmx service obtained
Legacy camera service transitioning to state CONFIGURING
Configure outputs: 2 surfaces configured.
app passed NULL surface
type=1400 audit(0.0:968): avc: denied { read } for name="u:eek:bject_r:camera_prop:s0" dev="tmpfs" ino=17543 scontext=u:r:untrusted_app:s0:c131,c256,c512,c768 tcontext=u:eek:bject_r:camera_prop:s0 tclass=file permissive=0
Access denied finding property "persist.camera.legacy_perf"
Legacy camera service transitioning to state IDLE
Repeating capture request set.
convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
Only received metering rectangles with weight 0.
Only received metering rectangles with weight 0.
Start success: true
Legacy camera service transitioning to state CAPTURING
** Activity (main) Pause event (activity is not paused). **
*** mainpage: B4XPage_Disappear [mainpage]
*** mainpage: B4XPage_Background [mainpage]
[SurfaceTexture-0-22629-4] dequeueBuffer: BufferQueue has been abandoned
DequeueBuffer: dequeueBuffer failed
Surface abandoned, dropping frame.
android.hardware.camera2.legacy.LegacyExceptionUtils$BufferQueueAbandonedException
at android.hardware.camera2.legacy.SurfaceTextureRenderer.swapBuffers(SurfaceTextureRenderer.java:552)
at android.hardware.camera2.legacy.SurfaceTextureRenderer.drawIntoSurfaces(SurfaceTextureRenderer.java:792)
at android.hardware.camera2.legacy.GLThreadManager$1.handleMessage(GLThreadManager.java:105)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:198)
at android.os.HandlerThread.run(HandlerThread.java:65)
Repeating capture request cancelled.
Legacy camera service transitioning to state IDLE
 
Top