[Android 34] Vidéo recording not working
complete
T
Thibault Fighiera
Pre-requirement:
add permission
android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION
in app's manifestsee https://feedback.shakebugs.com/bugs/p/android-34-missing-foregroundservicemediaprojection-permission
Bug:
When targeting and running on android 34 video recording doesn't work properly. Service does try to record something but it's appears to be empty. Tried to read content on shakebugs dashboard and in ticket itself before sending feedback.
Log In
Mislav Stanic
complete
Fixed in 16.2.3 version
Mislav Stanic
in progress
Mislav Stanic
under review
Mislav Stanic
Merged in a post:
[Android 34] missing FOREGROUND_SERVICE_MEDIA_PROJECTION permission
T
Thibault Fighiera
Missing permission in shakebug 16.2.2 manifest makes app crash:
java.lang.RuntimeException: Unable to create service com.shakebugs.shake.internal.shake.recording.ScreenRecordingService: java.lang.SecurityException: Starting FGS with type mediaProjection callerApp=ProcessRecord{d397fda 14946:**.****/u0a442} targetSDK=34 requires permissions: all of the permissions allOf=true [android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION] any of the permissions allOf=false [android.permission.CAPTURE_VIDEO_OUTPUT, android:project_media]
at android.app.ActivityThread.handleCreateService(ActivityThread.java:4664)
at android.app.ActivityThread.-$$Nest$mhandleCreateService(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2264)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:205)
at android.os.Looper.loop(Looper.java:294)
at android.app.ActivityThread.main(ActivityThread.java:8177)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
just add android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION to your shakebug manifest