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

Participant
November 5, 2021

Finally getting some movement

 

Inspiring
December 2, 2021

I got a reply on me ticket

Sorry for the delay! The fix has been made, but it will launch in V35, so as to not delay the launch of V34. We're sorry for the inconvenience. After the v35 launch and update, please let us know if the issue persists.

 So there is hope, but so far the V35 beta firmware does not seem to contain the fix.

Participant
December 2, 2021

Just tested on v35 on Quest 1, still crashes. Same error as before... f*ck...

CarpetFace
Inspiring
December 2, 2021

v35 is already out.  Maybe they meant to say v36 or v37?  

Participant
December 3, 2021

False hope, they just made a mistake.. 🙄

 

Participant
December 15, 2021

Latest reply:

Our engineering team was able to identify the issue. SystemUI was removed from VROS, which happened to remove MediaProjection permissions. 

At this time, I'm not certain whether the eng team will re-enable MediaProjection. Do you have an APK you can share + instructions on how we can repro the bug to test after the fix? 

We've sent a test APK. Fingers crossed!

January 7, 2022

Did you get some answers?

New Participant
February 1, 2022

any development?

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. 

Honored Contributor
April 6, 2022

Sounds good, can you give a bit of insight on how this will work together with the passthrough feature?

I.e. can you confirm that when passthrough is active, the captured content will include the data from the passthrough view?

New Participant
March 29, 2022

So looking at the release pattern does that mean not before july at the earliest?

 

New Participant
October 11, 2022

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" 

New Participant
November 17, 2022
> 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.