Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android 14 Crash - FOREGROUND_SERVICE_MEDIA_PROJECTION or CAPTURE_VIDEO_OUTPUT #14137

Closed
dakshay-devstree opened this issue Dec 8, 2023 · 3 comments

Comments

@dakshay-devstree
Copy link

dakshay-devstree commented Dec 8, 2023

Jitsi Meet SDK Versioin - 8.6.0
Device - Google Pixel 6 and Google Pixel 6a
Android OS - 14

java.lang.RuntimeException: Unable to create service org.jitsi.meet.sdk.JitsiMeetOngoingConferenceService: java.lang.SecurityException: Starting FGS with type mediaProjection callerApp=ProcessRecord{c721d92 17287:com.example.android/u0a1009} 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)
Caused by: java.lang.SecurityException: Starting FGS with type mediaProjection callerApp=ProcessRecord{c721d92 17287:com.example.android/u0a1009} 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.os.Parcel.createExceptionOrNull(Parcel.java:3057)
at android.os.Parcel.createException(Parcel.java:3041)
at android.os.Parcel.readException(Parcel.java:3024)
at android.os.Parcel.readException(Parcel.java:2966)
at android.app.IActivityManager$Stub$Proxy.setServiceForeground(IActivityManager.java:6761)
at android.app.Service.startForeground(Service.java:775)
at org.jitsi.meet.sdk.JitsiMeetOngoingConferenceService.onCreate(JitsiMeetOngoingConferenceService.java:97)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:4651)
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) 
Caused by: android.os.RemoteException: Remote stack trace:
at com.android.server.am.ActiveServices.validateForegroundServiceType(ActiveServices.java:2611)
at com.android.server.am.ActiveServices.setServiceForegroundInnerLocked(ActiveServices.java:2322)
at com.android.server.am.ActiveServices.setServiceForegroundLocked(ActiveServices.java:1679)
at com.android.server.am.ActivityManagerService.setServiceForeground(ActivityManagerService.java:13281)
at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:3385)

image

@saghul
Copy link
Member

saghul commented Dec 8, 2023

Are you building with a target SDK level of 34? Our SDK does not support it yet, it's being worked on here: #14129

@saghul saghul closed this as completed Dec 8, 2023
@dakshay-devstree
Copy link
Author

Yes, I'm building the project with Target SDK 34. Hope it get it resolve soon. Thanks for updates.

@saghul
Copy link
Member

saghul commented Jan 6, 2024

This is not a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants