Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
alphasystems's avatar
alphasystems
Explorer
4 years ago

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.
 
We are unable to post the logs for our application, 
but were able to reproduce same log with the following mirriorg application.

 

5 Replies

  • Currently I'm getting this on Quest 2 with v65:

    2024-05-31 11:30:41.788 1167-5002 ActivityTaskManager system_server I START u0 {cmp=com.oculus.vrcast/.projection.MediaProjectionPermissionActivity} from uid 10156
    2024-05-31 11:30:42.394 6854-6854 MediaProje...onActivity com.oculus.vrcast E Screen recording via the Media Projection Manager is disabled; canceling operation

    Similar problem on Quest 3:

    2024-05-31 11:58:13.330 1077-2310 ActivityTaskManager system_server I START u0 {cmp=com.oculus.vrcast/.projection.MediaProjectionPermissionActivity} from uid 10159
    2024-05-31 11:58:13.372 1077-1131 ActivityManager system_server I Start proc 6423:com.oculus.vrcast/1000 for pre-top-activity {com.oculus.vrcast/com.oculus.vrcast.projection.MediaProjectionPermissionActivity}
    2024-05-31 11:58:14.130 1077-1122 ActivityTaskManager system_server W Activity top resumed state loss timeout for ActivityRecord{5564b58 u0 com.oculus.vrcast/.projection.MediaProjectionPermissionActivity t511}
    2024-05-31 11:58:14.132 1077-1122 ActivityTaskManager system_server W Activity pause timeout for ActivityRecord{5564b58 u0 com.oculus.vrcast/.projection.MediaProjectionPermissionActivity t511}
    2024-05-31 11:58:14.168 6423-6423 MediaProje...onActivity com.oculus.vrcast E Screen recording via the Media Projection Manager is disabled; canceling operation
    2024-05-31 11:58:14.444 1077-1129 UsageStatsService system_server W Unexpected activity event reported! (com.oculus.vrcast/com.oculus.vrcast.projection.MediaProjectionPermissionActivity event : 23 instanceId : 89239242)

    It seems like they have explicitly disabled the feature. Does anybody know of a way to enable it?

    We identified a device property named persist.device_config.oculus_shared_os_services.vros_enable_media_projection set to false. However, attempts to change this property to true have been unsuccessful.