kubo / plthook

Hook function calls by replacing PLT(Procedure Linkage Table) entries.
745 stars 152 forks source link

Is it possible to access VR service and hook custom code on Android? #5

Closed Harsh2098 closed 6 years ago

Harsh2098 commented 6 years ago

I want to apply custom distortion to any android VR app. Can I use this hook to access its GPU context and hook my custom code to create distortion ?

https://stackoverflow.com/questions/50753051/accessing-android-app-gpu-context

Is it possible to access any VR Android app's GPU context i.e. what images/graphics the other VR app is rendering on screen from our custom app. I want to get the images rendered by other VR app and apply custom distortion. If yes, how can it be achieved?

My idea was to hook a service the the buffer stream, i.e. read whatever is going to be displayed on screen, apply custom distortion/filter and display it back. Will SwapChain from gvr-android-sdk work in this scenario? Reading GPU buffer from an android service and displaying it back. (For now we don't worry about the DRM protection etc. later we'll be askig for permissions)

https://stackoverflow.com/questions/50920427/android-access-vr-apps-gpu-context

kubo commented 6 years ago

I (the author of plthook) don't have android development environments. It is better to ask other projects for android.

Harsh2098 commented 6 years ago

Oh man !