Git Product home page Git Product logo

androidvncserver's Introduction

androidvncserver's People

Contributors

cosmosgenius avatar praseetha-kr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

androidvncserver's Issues

FORTIFY: FD_ISSET: file descriptor < 0

shell@M2E:/data/local # /data/local/androidvncserver_arm64
Framebuffer display grabber selected
Initializing grabber method...
--Initializing framebuffer access method--
line_lenght=4352 xres=1080, yres=1920, xresv=1088, yresv=5760, xoffs=0, yoffs=0, bpp=32
Initializing virtual keyboard and touch device...
---Initializing uinput...---
Initializing VNC server:
width: 1080
height: 1920
bpp: 32
port: 5901
Colourmap_rgba=0:8:16:24
length=8:8:8:8
11/07/2021 10:54:14 Listening for VNC connections on TCP port 5901
11/07/2021 10:54:14 Listening for VNC connections on TCP6 port 5900
11/07/2021 10:54:14 Listening for HTTP connections on TCP port 5801
11/07/2021 10:54:14 URL http://localhost:5801
11/07/2021 10:54:14 Listening for HTTP connections on TCP6 port 5800
11/07/2021 10:54:14 URL http://localhost:5800
Starting IPC connection...binded to port 13132

Waiting for a connection
11/07/2021 10:54:17 Got connection from client 192.168.1.34
11/07/2021 10:54:17 0 other clients
11/07/2021 10:54:17 Client Protocol Version 3.8
11/07/2021 10:54:17 Protocol version sent 3.8, using 3.8
11/07/2021 10:54:17 rfbProcessClientSecurityType: executing handler for type 1
11/07/2021 10:54:17 rfbProcessClientSecurityType: returning securityResult for client rfb version >= 3.8
FORTIFY: FD_ISSET: file descriptor < 0
Aborted

this is my device log,and I want use vncserver on device

can not compile

vnc/droidvncserver.c:21:10: fatal error: 'common.h' file not found
#include "common.h"
         ^~~~~~~~~~
2 warnings and 1 error generated.
make: *** [obj/local/armeabi-v7a/objs/androidvncserver/droidvncserver.o] Error 1

Aborted when close vnc client

I run androidvncserver on adb root. I can connect with remmina vnc plugin and TightVNC java viewer. When I close vnc client, I get the error:
16/02/2021 16:34:00 Using tight encoding for client 192.168.1.100 FORTIFY: FD_ISSET: file descriptor -1 < 0 Aborted
My system is android 10.

http error

25/12/2020 00:34:38 httpd: get '' for 192.168.88.197
25/12/2020 00:34:38 httpd: defaulting to 'index.vnc'
25/12/2020 00:34:38 httpProcessInput: open: No such file or directory

why?

got a black screen when connect to androidvncserver on android 9

build as your guide

NDK_PROJECT_PATH=. ndk-build NDK_APPLICATION_MK=./Application.mk APP_BUILD_SCRIPT=./Android.mk

run as root on android 9 device

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--
line_lenght=4352 xres=1080, yres=2340, xresv=1080, yresv=4680, xoffs=0, yoffs=0, bpp=32
Initializing virtual keyboard and touch device...
---Initializing uinput...---
Initializing VNC server:
        width:  1080
        height: 2340
        bpp:    32
        port:   5901
        Colourmap_rgba=0:8:16:24
        length=8:8:8:8
16/04/2019 17:43:46 Listening for VNC connections on TCP port 5901
16/04/2019 17:43:46 Listening for HTTP connections on TCP port 5801
16/04/2019 17:43:46   URL http://localhost:5801
Starting IPC connection...binded to port 13132

Waiting for a connection

Failed to build on MacOs

Hi,
I am trying to build your library and i got the following error.

`Determining if the include file vfork.h exists failed with the following output:
Change Dir: /Users/user/Projects/Moblers/MTRX_REMOTE/Software/androidvncserver-master/builds/arm64-v8a/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_ab8a3/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_ab8a3.dir/build.make CMakeFiles/cmTC_ab8a3.dir/build
Building C object CMakeFiles/cmTC_ab8a3.dir/CheckIncludeFile.c.o
/Users/user/Library/Android/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=aarch64-none-linux-android26 --gcc-toolchain=/Users/user/Library/Android/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/darwin-x86_64 --sysroot=/Users/user/Library/Android/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fPIE -o CMakeFiles/cmTC_ab8a3.dir/CheckIncludeFile.c.o -c /Users/user/Projects/Moblers/MTRX_REMOTE/Software/androidvncserver-master/builds/arm64-v8a/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/Users/user/Projects/Moblers/MTRX_REMOTE/Software/androidvncserver-master/builds/arm64-v8a/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'vfork.h' file not found
#include <vfork.h>
^~~~~~~~~
1 error generated.
make[1]: *** [CMakeFiles/cmTC_ab8a3.dir/CheckIncludeFile.c.o] Error 1
make: *** [cmTC_ab8a3/fast] Error 2

Determining if the include file ws2tcpip.h exists failed with the following output:
Change Dir: /Users/user/Projects/Moblers/MTRX_REMOTE/Software/androidvncserver-master/builds/arm64-v8a/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_de10a/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_de10a.dir/build.make CMakeFiles/cmTC_de10a.dir/build
Building C object CMakeFiles/cmTC_de10a.dir/CheckIncludeFile.c.o
/Users/user/Library/Android/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=aarch64-none-linux-android26 --gcc-toolchain=/Users/user/Library/Android/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/darwin-x86_64 --sysroot=/Users/user/Library/Android/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fPIE -o CMakeFiles/cmTC_de10a.dir/CheckIncludeFile.c.o -c /Users/user/Projects/Moblers/MTRX_REMOTE/Software/androidvncserver-master/builds/arm64-v8a/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/Users/user/Projects/Moblers/MTRX_REMOTE/Software/androidvncserver-master/builds/arm64-v8a/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'ws2tcpip.h' file not found
#include <ws2tcpip.h>
^~~~~~~~~~~~
1 error generated.
make[1]: *** [CMakeFiles/cmTC_de10a.dir/CheckIncludeFile.c.o] Error 1
make: *** [cmTC_de10a/fast] Error 2

Determining if the function ftime exists failed with the following output:
Change Dir: /Users/user/Projects/Moblers/MTRX_REMOTE/Software/androidvncserver-master/builds/arm64-v8a/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_a899f/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_a899f.dir/build.make CMakeFiles/cmTC_a899f.dir/build
Building C object CMakeFiles/cmTC_a899f.dir/CheckFunctionExists.c.o
/Users/user/Library/Android/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=aarch64-none-linux-android26 --gcc-toolchain=/Users/user/Library/Android/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/darwin-x86_64 --sysroot=/Users/user/Library/Android/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -DCHECK_FUNCTION_EXISTS=ftime -fPIE -o CMakeFiles/cmTC_a899f.dir/CheckFunctionExists.c.o -c /usr/local/Cellar/cmake/3.18.2/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTC_a899f
/usr/local/Cellar/cmake/3.18.2/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a899f.dir/link.txt --verbose=1
/Users/user/Library/Android/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=aarch64-none-linux-android26 --gcc-toolchain=/Users/user/Library/Android/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/darwin-x86_64 --sysroot=/Users/user/Library/Android/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -DCHECK_FUNCTION_EXISTS=ftime -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libgcc_real.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,--gc-sections CMakeFiles/cmTC_a899f.dir/CheckFunctionExists.c.o -o cmTC_a899f -latomic -lm
CMakeFiles/cmTC_a899f.dir/CheckFunctionExists.c.o: In function main': /usr/local/Cellar/cmake/3.18.2/share/cmake/Modules/CheckFunctionExists.c:17: undefined reference to ftime'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cmTC_a899f] Error 1
make: *** [cmTC_a899f/fast] Error 2

Determining if the OSSwapHostToBigInt64 exist failed with the following output:
Change Dir: /Users/user/Projects/Moblers/MTRX_REMOTE/Software/androidvncserver-master/builds/arm64-v8a/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_665fd/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_665fd.dir/build.make CMakeFiles/cmTC_665fd.dir/build
Building C object CMakeFiles/cmTC_665fd.dir/CheckSymbolExists.c.o
/Users/user/Library/Android/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=aarch64-none-linux-android26 --gcc-toolchain=/Users/user/Library/Android/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/darwin-x86_64 --sysroot=/Users/user/Library/Android/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fPIE -o CMakeFiles/cmTC_665fd.dir/CheckSymbolExists.c.o -c /Users/user/Projects/Moblers/MTRX_REMOTE/Software/androidvncserver-master/builds/arm64-v8a/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/Users/user/Projects/Moblers/MTRX_REMOTE/Software/androidvncserver-master/builds/arm64-v8a/CMakeFiles/CMakeTmp/CheckSymbolExists.c:2:10: fatal error: 'libkern/OSByteOrder.h' file not found
#include <libkern/OSByteOrder.h>
^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[1]: *** [CMakeFiles/cmTC_665fd.dir/CheckSymbolExists.c.o] Error 1
make: *** [cmTC_665fd/fast] Error 2

File /Users/user/Projects/Moblers/MTRX_REMOTE/Software/androidvncserver-master/builds/arm64-v8a/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <libkern/OSByteOrder.h>

int main(int argc, char** argv)
{
(void)argv;
#ifndef OSSwapHostToBigInt64
return ((int*)(&OSSwapHostToBigInt64))[argc];
#else
(void)argc;
return 0;
#endif
}
`

Can you help me with it?

Client

Hello there is any client example for this vnc server?
How can I add this lib to android studio and how to use it?

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...

hi

Excuse me,
How do I modify the VNC resolution?
How do I flip the screen 90 degrees

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.