Skip to main content
Inspiring
August 27, 2021
Solved

Bug in latest Quest 2 Os Version, createScreenCaptureIntent not working

Last version of Oculus 2 software
Version: 32.0.0.58.353.311069636
OS Version: user-18371800151900000

Edit: Latest version still not working
Version: 33.0.0.46.367.328965050
OS Version: user-19130100108500000

 

Edit2: Latest version still not working
Version: 34.0.0.91.366.316373824
OS Version: user-20169900217500000

 

Edit3: Latest version now working
Version: 42.....

But not working with handtracking. Confirm screen has it disabled and cannot do anything untill user picks up a controller and confirms/denies it.

 

has a new bug (was working in previous version 31.1....) and is working fine on other devices with android 10

The new bug is with asking for screen capture permission, If an app asks for it, exception is thrown.

This should be working, there is no other way to get the required permission for screenCapture / recording

 

 

 

 

 

 

 

private final ActivityResultLauncher<Intent> resultLauncher = registerForActivityResult
....
....

MediaProjectionManager mediaProjectionManager = (MediaProjectionManager) getSystemService(MEDIA_PROJECTION_SERVICE);
resultLauncher.launch(mediaProjectionManager.createScreenCaptureIntent());

 

 

 

 

 

 

 

 throws

 

 

 

 

 

 

 

    android.content.ActivityNotFoundException: Unable to find explicit activity class {com.android.systemui/com.android.systemui.media.MediaProjectionPermissionActivity}; have you declared this activity in your AndroidManifest.xml?
        at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2056)
        at android.app.Instrumentation.execStartActivity(Instrumentation.java:1716)
        at android.app.Activity.startActivityForResult(Activity.java:5211)
        at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:574)
        at androidx.core.app.ActivityCompat.startActivityForResult(ActivityCompat.java:234)
        at androidx.activity.ComponentActivity$2.onLaunch(ComponentActivity.java:208)
        at androidx.activity.result.ActivityResultRegistry$2.launch(ActivityResultRegistry.java:166)
        at androidx.activity.result.ActivityResultLauncher.launch(ActivityResultLauncher.java:47)

 

 

 

 

 

 

 

 

Any suggestions? Or is my only option to hope they fix it in another version?

michellaneous
Inspiring
March 21, 2022

Hey all! Good news - this issue should be resolved and released after v40. Our engineering team worked on restoring this feature so you can access the permission to cast again. Thank you for your patience. When v40 releases, please update your devices and try again. 

46 replies

New Participant
January 9, 2024

Is there some news about it ? I'm trying to use the AudioPlayBack and my app crash at the mediaProjection activity not being found aswell... I'm using the v60

New Participant
January 10, 2024

bump, using v60 as well and getting Unable to find explicit activity class {com.android.systemui/com.android.systemui.media.MediaProjectionPermissionActivity}

Is it official that Meta is removing it?

Participant
May 31, 2024

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?