Forum Discussion
alphasystems
4 years agoExplorer
Media Projection is disabled on v44
We are developing VR device management system that can monitor VR viewers' screens.
we are implementing mirroring function using MediaProjection API, and it worked in v43.
However, after updating to v44 it was not working and we found the following log.
10-13 16:41:59.750 4070 4070 E MediaProjectionPermissionActivity: Screen recording via the Media Projection Manager is disabled; canceling operation
It seems to be happening in MediaProjectionManager.createScreenCaptureIntent().
The expected behavior is for a permission confirmation dialog to appear, but no dialog is displayed.
MediaProjection is not available in the future? Is there an alternative?
We are very troubled as we consider this an important feature.
The detailed logs are shown below. We are unable to post the logs for our application,
but were able to reproduce same log with the following mirriorg application.
10-13 16:41:59.491 1018 4021 I ActivityTaskManager: START u0 {cmp=com.oculus.vrcast/.projection.MediaProjectionPermissionActivity} from uid 10084
10-13 16:41:59.491 1018 1105 V InputDispatcher: Asynchronous input event injection succeeded.
10-13 16:41:59.500 1018 4021 W InputReader: Device has associated, but no associated display id.
10-13 16:41:59.501 1018 4021 I chatty : uid=1000(system) Binder:1018_11 identical 2 lines
10-13 16:41:59.502 1018 4021 W InputReader: Device has associated, but no associated display id.
10-13 16:41:59.510 1018 1105 V InputDispatcher: Asynchronous input event injection succeeded.
10-13 16:41:59.514 1018 1105 V InputDispatcher: Asynchronous input event injection succeeded.
10-13 16:41:59.514 602 3160 D AF::RecordHandle: OpRecordAudio: track:61 uid:10053 pkg:com.oculus.horizon usage:0 not muted
10-13 16:41:59.515 602 3159 D AF::TrackHandle: OpPlayAudio: track:60 uid:10023 pkg:com.oculus.vrshell usage:1 not muted
10-13 16:41:59.515 602 3593 D AF::TrackHandle: OpPlayAudio: track:62 uid:10035 pkg:com.oculus.systemux usage:10 not muted
10-13 16:41:59.515 602 3316 D AF::TrackHandle: OpPlayAudio: track:63 uid:1000 pkg:com.android.networkstack.inprocess usage:13 not muted
10-13 16:41:59.515 602 852 D AF::TrackHandle: OpPlayAudio: track:56 uid:10015 pkg:com.oculus.shellenv usage:1 not muted
10-13 16:41:59.520 602 602 D AF::RecordHandle: OpRecordAudio: track:55 uid:10015 pkg:com.oculus.shellenv usage:0 not muted
10-13 16:41:59.523 1399 4024 E ACRA : Handling exception for soft error
10-13 16:41:59.523 1399 4024 E ACRA : X.ho: failed_to_parse_telemetry_data | oculus_mr_sporadic_event|Forbidden numeric value: NaN
10-13 16:41:59.523 1399 4024 E ACRA : at X.ig.A4P(:320)
10-13 16:41:59.523 1399 4024 E ACRA : at com.oculus.errorreporting.ErrorReporter.A4N(:28)
10-13 16:41:59.523 1399 4024 E ACRA : at com.oculus.unifiedtelemetry.unifiedlogging.LoggingHandler.A04(:182)
10-13 16:41:59.523 1399 4024 E ACRA : at com.oculus.unifiedtelemetry.unifiedlogging.LoggingHandler.A07(:68495)
10-13 16:41:59.523 1399 4024 E ACRA : at com.oculus.unifiedtelemetry.unifiedlogging.LoggingHandler$5.reportEvents(:34)
10-13 16:41:59.523 1399 4024 E ACRA : at com.oculus.aidl.IUnifiedTelemetryService$Stub.onTransact(IUnifiedTelemetryService.java:297)
10-13 16:41:59.523 1399 4024 E ACRA : at android.os.Binder.execTransactInternal(Binder.java:1021)
10-13 16:41:59.523 1399 4024 E ACRA : at android.os.Binder.execTransact(Binder.java:994)
10-13 16:41:59.527 2970 2970 D [SUI] NotificationBroadcastReceiver: action: com.oculus.intent.action.NOTIF_CHANGE
10-13 16:41:59.529 1018 4021 E WindowManager: App trying to use insecure INPUT_FEATURE_NO_INPUT_CHANNEL flag. Ignoring
10-13 16:41:59.529 1018 1105 V InputDispatcher: Asynchronous input event injection succeeded.
10-13 16:41:59.533 1947 1947 D VrNotificationAnalytics: logNotificationPosted: key(0|tech.takenoko.screenmirror|1|null|10084), type(third_party), isToast(false)
10-13 16:41:59.536 1947 1947 I [OAO] VrNotificationListenerService: onNotificationPosted() - key = 0|tech.takenoko.screenmirror|1|null|10084, type = third_party, isToast = false, isBlocked with reason = true Blocked by does not contain all markers for a toast notification
10-13 16:41:59.537 1947 1947 D [OAO] VrNotificationService: VrNotificationService onStartCommand() Intent { cmp=com.oculus.vrshell/.VrNotificationService }
10-13 16:41:59.545 1018 1105 V InputDispatcher: Asynchronous input event injection succeeded.
10-13 16:41:59.556 711 711 D Zygote : Forked child process 4070
10-13 16:41:59.559 1018 1049 I ActivityManager: Start proc 4070:com.oculus.vrcast/1000 for activity {com.oculus.vrcast/com.oculus.vrcast.projection.MediaProjectionPermissionActivity}
10-13 16:41:59.559 1018 1105 V InputDispatcher: Asynchronous input event injection succeeded.
10-13 16:41:59.561 2970 3520 D NotificationsBadgeLiveData: MessageBadgeData, pullAndCheckNotifs, old data source notif count: 0, oc chats count: 0, messenger count: 0
10-13 16:41:59.573 4070 4070 E m.oculus.vrcas: Not starting debugger since process cannot load the jdwp agent.
10-13 16:41:59.578 1018 3517 W InputDispatcher: Focused display #0 does not have a focused window.
10-13 16:41:59.578 1018 3517 E InputDispatcher: But another display has a focused window:
10-13 16:41:59.578 1018 3517 E InputDispatcher: Display #23 has focused window: 'Window{47d6c2c u0 tech.takenoko.screenmirror/tech.takenoko.screenmirror.MainActivity}'
10-13 16:41:59.580 1682 1682 I ClientMgr: FocusedWindowChanged: falling back to client with same uid: 10023, and pid: 1983
10-13 16:41:59.580 1682 1682 I ClientMgr: ClientMgr::SetFocusedClient: 1983:com.oculus.vrshell type 1
10-13 16:41:59.580 1682 1682 I ClientMgr: SetFocusedPackageName - packageName com.oculus.vrshell processName com.oculus.vrshell clientId 1847878938 clientPid 1983
10-13 16:41:59.582 1018 1105 V InputDispatcher: Asynchronous input event injection succeeded.
10-13 16:41:59.596 1018 1105 V InputDispatcher: Asynchronous input event injection succeeded.
10-13 16:41:59.597 1963 1963 I OVRMediaServiceManager: Sending onAppStart (com.oculus.shellenv) to SocialPlatform (com.oculus.socialplatform.infra)
10-13 16:41:59.603 1018 1105 V InputDispatcher: Asynchronous input event injection succeeded.
10-13 16:41:59.613 1018 3517 I ActivityManager: Killing 1550:com.android.settings/1000 (adj 985): empty #17
10-13 16:41:59.616 1018 1105 V InputDispatcher: Asynchronous input event injection succeeded.
10-13 16:41:59.630 1963 2352 W OVRLibrary: null cursor received for query content://com.oculus.ocms.library/apps/com.oculus.vrshell
10-13 16:41:59.633 1018 1105 V InputDispatcher: Asynchronous input event injection succeeded.
10-13 16:41:59.644 1018 1105 V InputDispatcher: Asynchronous input event injection succeeded.
10-13 16:41:59.648 1018 1131 W InputReader: Device has associated, but no associated display id.
10-13 16:41:59.648 1018 1131 I chatty : uid=1000(system) Binder:1018_3 identical 1 line
10-13 16:41:59.649 1018 1131 W InputReader: Device has associated, but no associated display id.
10-13 16:41:59.678 1018 1105 V InputDispatcher: Asynchronous input event injection succeeded.
10-13 16:41:59.680 711 711 I Zygote : Process 1550 exited due to signal 9 (Killed)
10-13 16:41:59.683 1018 1105 V InputDispatcher: Asynchronous input event injection succeeded.
10-13 16:41:59.690 1682 1682 D VrRuntimeService: onForegroundActivitiesChanged: pid=4070, uid=1000, hasForegroundActivities=true
10-13 16:41:59.691 1018 1042 W ActivityManager: setHasOverlayUi called on unknown pid: 1550
10-13 16:41:59.694 1963 1963 E OVRMediaServiceManager: LivestreamingManager Not initialized
10-13 16:41:59.696 1018 1105 V InputDispatcher: Asynchronous input event injection succeeded.
10-13 16:41:59.712 1018 1050 I libprocessgroup: Successfully killed process cgroup uid 1000 pid 1550 in 96ms
10-13 16:41:59.713 1018 1105 V InputDispatcher: Asynchronous input event injection succeeded.
10-13 16:41:59.725 1018 1105 I chatty : uid=1000(system) InputDispatcher identical 1 line
10-13 16:41:59.740 1018 1105 V InputDispatcher: Asynchronous input event injection succeeded.
10-13 16:41:59.747 4070 4070 D VrUiWrapper: Started on non-primary display 23, running in 2D mode.
10-13 16:41:59.750 4070 4070 E MediaProjectionPermissionActivity: Screen recording via the Media Projection Manager is disabled; canceling operation
2 Replies
- n3me5is0Honored Guest
Any news regarding this issue?
- alphasystemsExplorer
Sorry, but this post did not work and I sent the following post separately and it seems to have duplicated the publication.
https://forums.oculusvr.com/t5/Quest-Development/Media-Projection-is-disabled-on-v44/td-p/992715
I have reported this issue to Meta's zendesk support and they are investigating. I will reply to the above post if I find out anything.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 months ago
- 4 months ago
- 9 months ago