androidvncserver
androidvncserver copied to clipboard
Can only system app be used? Why does it crash.
I got a crash log when I run it with common app.
setprop: failed to set property 'service.adb.tcp.port' to '-1'
sh: /sbin/adbd: not found
Initializing grabber method...
No grabber method selected, auto-detecting...
--Loading flinger native lib--
Couldnt load flinger library /data/local/tmp/libdvnc_flinger_sdk.so! Error string: (null)
--Loading gralloc native lib--
Loading lib: /data/local/tmp/libdvnc_gralloc_sdk25.so
Couldnt load library /data/local/tmp/libdvnc_gralloc_sdk25.so! Error string: (null)
--Initializing framebuffer access method--
Cannot open fb device /dev/graphics/fb0
--Initializing adb access method--
30/06/2020 22:11:20 Listening for VNC connections on TCP port 5901
30/06/2020 22:11:20 Listening for VNC connections on TCP6 port 5900
30/06/2020 22:11:20 Listening for HTTP connections on TCP port 5801
30/06/2020 22:11:20 URL http://localhost:5801
30/06/2020 22:11:20 Listening for HTTP connections on TCP6 port 5800
30/06/2020 22:11:20 URL http://localhost:5800
Initializing grabber method...
No grabber method selected, auto-detecting...
--Loading flinger native lib--
Couldnt load flinger library /data/local/tmp/libdvnc_flinger_sdk.so! Error string: (null)
--Loading gralloc native lib--
Loading lib: /data/local/tmp/libdvnc_gralloc_sdk25.so
Couldnt load library /data/local/tmp/libdvnc_gralloc_sdk25.so! Error string: (null)
--Initializing framebuffer access method--
Cannot open fb device /dev/graphics/fb0
--Initializing adb access method--
adb ERROR connecting
Initializing virtual keyboard and touch device...
---Initializing uinput...---
cannot create virtual kbd device.
Initializing VNC server:
width: 0
height: 0
bpp: 0
port: 5901
Colourmap_rgba=0:0:0:0
length=0:0:0:0
Unsupported pixel depth: 0
Cleaning up...
The framebuffer libs are missing.
--Loading flinger native lib--
Couldnt load flinger library /data/local/tmp/libdvnc_flinger_sdk.so! Error string: (null)
--Loading gralloc native lib--
Loading lib: /data/local/tmp/libdvnc_gralloc_sdk25.so
Couldnt load library /data/local/tmp/libdvnc_gralloc_sdk25.so! Error string: (null)
--Initializing framebuffer access method--
Cannot open fb device /dev/graphics/fb0
I push libdvnc_flinger_sdk.so to /data/local/tmp/ by adb, but still get error:
Couldnt load flinger library /data/local/tmp/libdvnc_flinger_sdk.so! Error string: dlopen failed: library "libcutils.so" not found
I pull libcutils.so from device and put it to project jniLibs directory, continue get library not found error:libutils.so,libbinder.so,libui.so ..., untill I get dlopen failed: library "[email protected]" not found, I put [email protected] to jniLibs directory , It does not fix this error.