android vnc server in externals/libvncserver is too simple using framebuffer which is not compatible with drm, drm use other buffer which can't be access the same way as frame buffer. using framebuffer grabs only console screen not drm screen
https://github.com/viren-nadkarni/droid-vnc-server is however implemented with surfaceflinger and drm grabber. although the drm one doesn't work for me, the surfaceflinger one works (slowly), except some layer is drew to top left corner. while everything looks good in the real output (to monitor), the navbar shows at top (left) to vnc client
i don't think it's droidvncserver problem, the flinger grabber is really simple, it's just a screenshot client. is it possible that the drm_gralloc is doing it wrong? can anyone fix it?
i change it to build with nougat, linking with cm's libvncserver, static link everything so it can be use simply without any addition *.so files