Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[NDK & VNC] VNC server on Android

OP leenetwork

2nd June 2014, 08:40 PM   |  #1  
OP Junior Member
Thanks Meter: 0
 
4 posts
Join Date:Joined: Jun 2014
I am currently working on VNC server that can run in android native environment (AOSP).

With help from libvncserver and droid-vnc-server, I could load VNC server daemon running on the android.

So far, I tried in Nexus 7, Galaxy Tab 3 (10.1 x86), Galaxy prevail, Nexus 4, Galaxy S3.

Only in galaxy prevail returns a screen installed by libvncserver. I think libvncserver does not deal with 32 bpp.

Whereas droid-vnc-server runs fine in Nexus 7 and Galaxy Tab 3 but once I try to connect to VNC server, the server returns only black screen.

It looks like the problem is that rfb is not correctly getting framebuffer.

Nexus 7 has Tigra and Galaxy tab 3 uses raw fb0 (YAY x86!!)

Did anyone successfully run droid-vnc-server ????
30th November 2014, 08:43 AM   |  #2  
Junior Member
Thanks Meter: 0
 
3 posts
Join Date:Joined: Nov 2014
3120
As of now, I was able to:
* make it run on Samsung Galaxy S3 i9300 without code change
* make it run on Samsung Galaxy Tab 3 10.1 with code change:
- using fb method, mmap() call succeed but it appears that the virtual memory is never updated (a black screen if displayed on vnc cleint side) => so I have "simulated" the mmap() behavior by re-readingfb0 again and again (for sure it is not effeicient but it is functional)

However, I cannot make it run on Samsung Galaxy S3 i9305.
=> mmap() fails everytimes on fb0
=> ioctl always reports a bad height of ...50px => it corresponds to the android banner....
=> if I replace mmap() by the looping read algorithm, I could see the 720x50px windows reported on the VNC client side....so not the full screen....
=> using ioctl -rl 28 /dev/graphics/fb0 17920, I confirm that height is well seen at 50px .... so, again, seems to be a wrong value

Pierre
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes