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

vit.hlavacek
Protege

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.

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

CarpetFace
Expert Protege

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

ynkfish
Protege

False hope, they just made a mistake.. 🙄

ynkfish_0-1638518462837.png

 

ynkfish
Protege

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!

Did you get some answers?

sjonkooy
Honored Guest

any development?

michellaneous
Meta Employee

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. 

SUengTEL
Honored Guest

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

 

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?