appknox / androidvncserver

Standalone android VNC server :)
30 stars 15 forks source link

Can only system app be used? Why does it crash. #8

Open leconio opened 4 years ago

leconio commented 4 years ago

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...
cosmosgenius commented 4 years ago

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
bibitoo commented 3 years ago

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 "android.frameworks.bufferhub@1.0.so" not found, I put android.frameworks.bufferhub@1.0.so to jniLibs directory , It does not fix this error.