abrenoch/hyperion-android-grabber

App not getting required permissions

The-Techy opened this issue · 3 comments

Hi!

I have a bit of an odd use case, and so my issue probably isn't fixable. Figured I'd try anyway though! btw, I have used Hyperion before, using the built in screen capture on my computer.

Basically, I have an Oculus Quest 2 that I want to use this with

I want to capture the edges of what's being displayed and broadcast that to leds around the inside edge of the headset, giving the illusion of a wider field of view. I have a pi lying around to act as the Hyperion server, and want to use WLED for the leds.

So, I've installed the APK on to my quest, and it runs. However, upon trying to click the TV icon, it says it doesn't have screen recording permissions. Unfortunately, the version of android that runs on the quest is pretty locked down (and old, its android 10), so this can't be granted in settings.

However, you can use ADB commands. I verified that screen capture was a valid permission, and then attempted to grant it to this app. It wouldn't do it, as apparently the app hasn't requested that permission. Using ADB, I can confirm it doesn't appear to have requested this.

Without the app requesting permission, I can't grant it, and so it can't work.

Any idea how to get around this? Some hidden command or something? Thanks!

Had a thought, I was trying to give permissions to com.abrenoch.hyperiongrabber , as that's what's visible on my quest. Is the actual screen grabber different, and is that why it didn't show up?

Some more googling, seems like it could just be changing some stuff in the AndroidManifest.xml file to make screen capture a required permission, as right now it seems like its not, since it can't be granted. Shouldn't be too difficult hopefully

Well, a lot of googling later I was able to change the manifest file and rebuild the app. Unfortunately, CAPTURE_VIDEO_OUTPUT just isn't a permission that I can grant on my quest, even if it's required. Annoying