I'm trying to implement a sort of vnc (based on oNaiPs's droid-vnc-server) in my application. Since the mouse events don't work with my device, I'm trying the following: send datagrams from the native vnc framebuffer server, catch them in a Service
and use Instrumentation
's sendPointerSync
. And this is where the permission is needed.
I heard you can get all the needed permissions if you push the .apk to /system/app
with Root Exploter, chmod and reset, but that didn't work in my case, and I still get SecurityException
. I've also tried manually editing the /data/system/packages.xml
file.
Is there any other way to get the permission (maybe lower it's security level somehow? Since I only need this app to work on my device anyway), or probably a different way to do what I try to accomplish?
Thanks!