cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in latest Quest 2 Os Version, createScreenCaptureIntent not working

vit.hlavacek
Protege

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?

46 REPLIES 46

Just confirmed it, it works now. (v42)

Ok so i was too quick to mark it as solved. It works but not with handtracking. The activity now shows the dialog, but even in app with handtraking support, when the confirmation dialog to allow screen capture shows up, it disables handtracking and user must pick up the controller to do anything, -- without controller on hand gets completely stuck untill he finds it.

JohnNMorgan
Explorer

Is this working with v46? I had some initial code working for this, but since the latest updates, anything resulting from mediaProjectionManager.createScreenCaptureIntent() is instantly denied:

 

"MediaProjectionPermissionActivity: Screen recording via the Media Projection Manager is disabled; canceling operation" 

alphasystems
Explorer
> Is this working with v46? I had some initial code working for this, but since the latest updates, anything resulting from mediaProjectionManager.createScreenCaptureIntent() is instantly denied:
 
We are facing the same problem from v44 and have sent two posts to this forum.
 
 
In the latter post, Basti564 provided information that the v44 patch seems to have disabled it due to security issues. We have also contacted developer support but have yet to get a response from the technical team.
 
We do not have commercial support like Oculus ISV or Oculus for Business and
even if we did, it would seem to be a hard road to resolution as far as this thread goes.
 
Any help from those who have the ability to speak up would be appreciated.

 

andwan2000
Honored Guest

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

jba-gg
Honored Guest

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?

ynkfish
Protege

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?