Coder Social home page Coder Social logo

onaips / droidvncserver Goto Github PK

View Code? Open in Web Editor NEW
898.0 102.0 475.0 34.21 MB

VNC server for Android devices.

License: GNU General Public License v3.0

Perl 4.79% JavaScript 1.17% Makefile 2.42% Groff 1.45% C 79.33% Shell 4.36% SAS 0.07% Smalltalk 0.01% Assembly 2.25% HTML 0.12% CMake 0.13% Awk 0.17% C++ 1.48% XS 0.02% eC 0.02% CSS 0.06% Java 0.20% Module Management System 0.08% M4 1.80% DIGITAL Command Language 0.06%

droidvncserver's Introduction

The droid-VNC-server projects consists in three main modules parts: the daemon, wrapper libs and the GUI.

- Daemon -
Provides the vnc server functionality, injects input/touch events, clipboard management, etc
Available in jni/ folder

- Wrapper libs -
Compiled against the AOSP so everyone can build the daemon/GUI without having to fetch +2GB files.
Currently there are 2 wrappers, gralloc and flinger.

Available in nativeMethods/ folder, and precompiled libs in nativeMethods/lib/

- GUI - 
GUI handles user-friendly control.
Connects to the daemon using local IPC.

-------------- Compile C daemon ---------------------
On project folder:
  $ ndk-build
  $ ./updateExecsAndLibs.sh

-------------- Compile Wrapper libs -----------------
  $ cd <aosp_folder>
  $ . build/envsetup.sh
  $ lunch
  $ ln -s <droid-vnc-folder>/nativeMethods/ external/

To build:
  $ cd external/nativeMethods
  $ mm .
  $ cd <droid-vnc-folder>
  $ ./updateExecsAndLibs.sh

-------------- Compile GUI------- -------------------
Import using eclipse as a regular Android project

droidvncserver's People

Contributors

chtisgit avatar codewalkerster avatar onaips 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  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  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  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  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  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  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

droidvncserver's Issues

Red hued screen / Crash on session close (Sony Ericsson Xperia Play)

Slightly weird behaviour on this one - on connecting to the VNC server (TCP, forwarded over usb - adb forward tcp:5091 tcp:5091), the screen appears mostly red (green items appear to have the blue channel - possibly channels being swapped?)

Client output:

$ vncviewer localhost:5901
Connected to RFB server, using protocol version 3.8
No authentication needed
Authentication successful
Desktop name "Android"
VNC server default format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 24 green 16 blue 8
Using default colormap which is TrueColor.  Pixel format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
Same machine: preferring raw encoding

To note, same behaviour occurs when running across the network, without the crash, and with slightly different client logs:

$ vncviewer 192.168.0.102:5901
Connected to RFB server, using protocol version 3.8
No authentication needed
Authentication successful
Desktop name "Android"
VNC server default format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 24 green 16 blue 8
Using default colormap which is TrueColor.  Pixel format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0

Logcat output follows:

D/dalvikvm(22863): GC_CONCURRENT freed 2115K, 68% free 2996K/9095K, external 9970K/11960K, paused 3ms+3ms
D/dalvikvm(22863): GC_FOR_MALLOC freed 2090K, 68% free 2949K/9095K, external 7466K/9323K, paused 17ms
D/dalvikvm(22863): GC_CONCURRENT freed 2053K, 68% free 2932K/9095K, external 5806K/7407K, paused 2ms+2ms
V/VNC     (22863): isAndroidServerRunning? no
V/VNC     (22863): Starting /data/data/org.onaips.vnc/files/androidvncserver  -r 0 -s 100 -P 5901 -t 0
D/su      (23143): 10177 org.onaips.vnc executing 0 /system/bin/sh using shell /system/bin/sh : sh
I/VNC     (23146): rotating to 0 degrees
I/VNC     (23146): scaling to 100 percent
I/VNC     (23146): In test mode! t=0
I/VNC     (23146): Initializing framebuffer device...
I/VNC     (23146): line_lenght=1920 xres=480, yres=854, xresv=480, yresv=1708, xoffs=0, yoffs=0, bpp=32
I/VNC     (23146): colourmap_rgb=24:16:8    lenght=8:8:8
I/VNC     (23146): Initializing virtual keyboard and touch device...
I/EventHub(  203): New keyboard: device->id=0x60008 devname='qwerty' propName='hw.keyboards.393224.devname' keylayout='/system/usr/keylayout/qwerty.kl'
I/EventHub(  203): New device: path=/dev/input/event12 name=qwerty id=0x60008 (of 0x9) index=9 fd=203 classes=0x27
D/kernel  (  115): [148943.541503] input: qwerty as /devices/virtual/input/input17
I/InputReader(  203): Device reconfigured: id=0x60008, name=qwerty, display size is now 479x853
I/InputReader(  203): Device added: id=0x60008, name=qwerty, sources=00001303
I/InputManager-Callbacks(  203): No input device calibration properties found for device qwerty.
I/InputManager-Callbacks(  203): No virtual keys found for device qwerty.
I/ActivityManager(  203): Config changed: { scale=1.0 imsi=234/20 loc=en_GB touch=3 keys=2/1/2 nav=2/1 orien=1 layout=34 uiMode=17 seq=156}
I/VNC     (23146): Initializing VNC server:
I/VNC     (23146):      width:  480
I/VNC     (23146):      height: 854
I/VNC     (23146):      bpp:    32
I/VNC     (23146):      port:   5901
I/VNC     (23146): Initializing server...
D/kernel  (  115): [148943.622222] keychord: using input dev qwerty for fevent
I/VNC     (23146): I'm on update_screen_32
D/GestureDetector(  538): touchSlop:32 doubleTapSlop:195
E/WindowManager(22863): Activity org.onaips.vnc.MainActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@2b02a6d0 that was originally added here
E/WindowManager(22863): android.view.WindowLeaked: Activity org.onaips.vnc.MainActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@2b02a6d0 that was originally added here
E/WindowManager(22863):         at android.view.ViewRoot.<init>(ViewRoot.java:264)
E/WindowManager(22863):         at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:148)
E/WindowManager(22863):         at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
E/WindowManager(22863):         at android.view.Window$LocalWindowManager.addView(Window.java:424)
E/WindowManager(22863):         at android.app.Dialog.show(Dialog.java:241)
E/WindowManager(22863):         at android.app.ProgressDialog.show(ProgressDialog.java:107)
E/WindowManager(22863):         at android.app.ProgressDialog.show(ProgressDialog.java:90)
E/WindowManager(22863):         at org.onaips.vnc.MainActivity.prepareWatchdog(MainActivity.java:338)
E/WindowManager(22863):         at org.onaips.vnc.MainActivity.startServerButtonClicked(MainActivity.java:468)
E/WindowManager(22863):         at org.onaips.vnc.MainActivity$4.onClick(MainActivity.java:188)
E/WindowManager(22863):         at android.view.View.performClick(View.java:2534)
E/WindowManager(22863):         at android.view.View$PerformClick.run(View.java:9210)
E/WindowManager(22863):         at android.os.Handler.handleCallback(Handler.java:587)
E/WindowManager(22863):         at android.os.Handler.dispatchMessage(Handler.java:92)
E/WindowManager(22863):         at android.os.Looper.loop(Looper.java:123)
E/WindowManager(22863):         at android.app.ActivityThread.main(ActivityThread.java:3652)
E/WindowManager(22863):         at java.lang.reflect.Method.invokeNative(Native Method)
E/WindowManager(22863):         at java.lang.reflect.Method.invoke(Method.java:507)
E/WindowManager(22863):         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:862)
E/WindowManager(22863):         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
E/WindowManager(22863):         at dalvik.system.NativeStart.main(Native Method)
D/dalvikvm(22863): GC_EXTERNAL_ALLOC freed 1856K, 69% free 2887K/9095K, external 6212K/7407K, paused 57ms
I/CustomizationProvider(22083): No configuration file: /system/etc/customization/settings/com/sonyericsson/textinput/uxp/custom_settings.xml
D/dalvikvm(  538): GC_EXTERNAL_ALLOC freed 275K, 61% free 2968K/7495K, external 2907K/2925K, paused 52ms
W/Resources(22863): Converting to string: TypedValue{t=0x12/d=0x0 a=3 r=0x7f090002}
W/Resources(22863): Converting to string: TypedValue{t=0x12/d=0x0 a=3 r=0x7f090004}
E/org.onaips.vnc.MainActivity$SocketListener(22863): Address already in use
D/dalvikvm(22863): GC_CONCURRENT freed 2012K, 68% free 2963K/9095K, external 7869K/9757K, paused 2ms+2ms
D/dalvikvm(22863): GC_CONCURRENT freed 2019K, 68% free 2981K/9095K, external 7869K/9757K, paused 2ms+2ms
V/VNC     (22863): isAndroidServerRunning? yes
D/dalvikvm(22863): GC_CONCURRENT freed 2020K, 67% free 3004K/9095K, external 7869K/9757K, paused 3ms+3ms
D/dalvikvm(22863): GC_CONCURRENT freed 1876K, 66% free 3164K/9095K, external 7872K/9757K, paused 1ms+2ms
D/dalvikvm(22863): GC_CONCURRENT freed 2190K, 67% free 3013K/9095K, external 7872K/9757K, paused 2ms+2ms
D/dalvikvm(22863): GC_CONCURRENT freed 2017K, 67% free 3036K/9095K, external 7872K/9757K, paused 1ms+2ms
V/VNC     (22863): isAndroidServerRunning? yes
I/CustomizationProvider(22083): No configuration file: /system/etc/customization/settings/com/sonyericsson/textinput/uxp/custom_settings.xml
V/VNC     (22863): ~CONNE
D/lights  (  203): set_light_attention: color=0x00ffffff, mode=2
D/lights  (  203): set_light_attention: color=0x00000000, mode=0
D/dalvikvm(  203): GC_EXPLICIT freed 71K, 41% free 7587K/12743K, external 4503K/5623K, paused 106ms
D/dalvikvm(22863): GC_CONCURRENT freed 1925K, 66% free 3150K/9095K, external 7872K/9757K, paused 2ms+2ms
D/dalvikvm(22863): GC_CONCURRENT freed 2183K, 67% free 3006K/9095K, external 7872K/9757K, paused 2ms+2ms
D/dalvikvm(22863): GC_CONCURRENT freed 2019K, 67% free 3021K/9095K, external 7872K/9757K, paused 2ms+2ms
V/VNC     (22863): isAndroidServerRunning? yes
V/VNC     (22863): ~DISCO
I/DEBUG   ( 9028): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   ( 9028): Build fingerprint: 'SEMC/R800i_1247-6199/R800i:2.3.2/3.0.A.2.181/SvfP:user/release-keys'
I/DEBUG   ( 9028): pid: 23146, tid: 23146  >>> /data/data/org.onaips.vnc/files/androidvncserver <<<
I/DEBUG   ( 9028): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad
I/DEBUG   ( 9028):  r0 00000027  r1 deadbaad  r2 80000000  r3 00000000
I/DEBUG   ( 9028):  r4 00000001  r5 00000000  r6 00067ad8  r7 0005c000
I/DEBUG   ( 9028):  r8 000007fc  r9 00000230  10 0005c008  fp 00007741
I/DEBUG   ( 9028):  ip 6fd46688  sp 7ea52ae0  lr 6fd1926d  pc 6fd15d00  cpsr 60000030
I/DEBUG   ( 9028):  d0  6472656767756265  d1  006f746e6f726f67
I/DEBUG   ( 9028):  d2  000000000000006f  d3  000000000000006e
I/DEBUG   ( 9028):  d4  0000000000000000  d5  0000000000000000
I/DEBUG   ( 9028):  d6  0000000000000000  d7  00a8c00000000000
I/DEBUG   ( 9028):  d8  0000000000000000  d9  0000000000000000
I/DEBUG   ( 9028):  d10 0000000000000000  d11 0000000000000000
I/DEBUG   ( 9028):  d12 0000000000000000  d13 0000000000000000
I/DEBUG   ( 9028):  d14 0000000000000000  d15 0000000000000000
I/DEBUG   ( 9028):  d16 4165180010000000  d17 3fe0000000000000
I/DEBUG   ( 9028):  d18 0000000000000000  d19 0000000000000000
I/DEBUG   ( 9028):  d20 0000000000000000  d21 0000000000000000
I/DEBUG   ( 9028):  d22 0000000000000000  d23 0000000000000000
I/DEBUG   ( 9028):  d24 0000000000000000  d25 0000000000000000
I/DEBUG   ( 9028):  d26 0000000000000000  d27 0000000000000000
I/DEBUG   ( 9028):  d28 0000000000000000  d29 0000000000000000
I/DEBUG   ( 9028):  d30 0000000000000000  d31 0000000000000000
I/DEBUG   ( 9028):  scr 00000010
I/DEBUG   ( 9028):
I/DEBUG   ( 9028):          #00  pc 00015d00  /system/lib/libc.so
I/DEBUG   ( 9028):          #01  pc 00013658  /system/lib/libc.so
I/DEBUG   ( 9028):          #02  pc 00014536  /system/lib/libc.so
I/DEBUG   ( 9028):          #03  pc 000121ee  /data/data/org.onaips.vnc/files/androidvncserver
I/DEBUG   ( 9028):          #04  pc 000121f6  /data/data/org.onaips.vnc/files/androidvncserver
I/DEBUG   ( 9028):          #05  pc 00011afc  /data/data/org.onaips.vnc/files/androidvncserver
I/DEBUG   ( 9028):          #06  pc 0000d46a  /data/data/org.onaips.vnc/files/androidvncserver
I/DEBUG   ( 9028):          #07  pc 0000bbf0  /data/data/org.onaips.vnc/files/androidvncserver
I/DEBUG   ( 9028):          #08  pc 00014bae  /system/lib/libc.so
I/DEBUG   ( 9028):
I/DEBUG   ( 9028): code around pc:
I/DEBUG   ( 9028): 6fd15ce0 2c006824 e028d1fb b13368db c064f8df
I/DEBUG   ( 9028): 6fd15cf0 44fc2401 4000f8cc 49124798 25002027
I/DEBUG   ( 9028): 6fd15d00 f7f57008 2106ec56 edb2f7f6 460aa901
I/DEBUG   ( 9028): 6fd15d10 f04f2006 95015380 95029303 e918f7f6
I/DEBUG   ( 9028): 6fd15d20 462aa905 f7f62002 f7f5e924 2106ec42
I/DEBUG   ( 9028):
I/DEBUG   ( 9028): code around lr:
I/DEBUG   ( 9028): 6fd1924c 4a0e4b0d e92d447b 589c41f0 26004680
I/DEBUG   ( 9028): 6fd1925c 686768a5 f9b5e006 b113300c 47c04628
I/DEBUG   ( 9028): 6fd1926c 35544306 37fff117 6824d5f5 d1ef2c00
I/DEBUG   ( 9028): 6fd1927c e8bd4630 bf0081f0 000282d0 ffffff88
I/DEBUG   ( 9028): 6fd1928c b086b570 f602fb01 9004460c a804a901
I/DEBUG   ( 9028):
I/DEBUG   ( 9028): stack:
I/DEBUG   ( 9028):     7ea52aa0  00000000
I/DEBUG   ( 9028):     7ea52aa4  6f000001
I/DEBUG   ( 9028):     7ea52aa8  6f2e6772
I/DEBUG   ( 9028):     7ea52aac  7069616e
I/DEBUG   ( 9028):     7ea52ab0  6fd4272c  /system/lib/libc.so
I/DEBUG   ( 9028):     7ea52ab4  6fd426d8  /system/lib/libc.so
I/DEBUG   ( 9028):     7ea52ab8  00000000
I/DEBUG   ( 9028):     7ea52abc  6fd1926d  /system/lib/libc.so
I/DEBUG   ( 9028):     7ea52ac0  00000001
I/DEBUG   ( 9028):     7ea52ac4  7ea52af4
I/DEBUG   ( 9028):     7ea52ac8  00067ad8  [heap]
I/DEBUG   ( 9028):     7ea52acc  0005c000  [heap]
I/DEBUG   ( 9028):     7ea52ad0  000007fc
I/DEBUG   ( 9028):     7ea52ad4  6fd1856f  /system/lib/libc.so
I/DEBUG   ( 9028):     7ea52ad8  df002777
I/DEBUG   ( 9028):     7ea52adc  e3a070ad
I/DEBUG   ( 9028): #00 7ea52ae0  20000204
I/DEBUG   ( 9028):     7ea52ae4  00000001
I/DEBUG   ( 9028):     7ea52ae8  00067ad8  [heap]
I/DEBUG   ( 9028):     7ea52aec  00067aec  [heap]
I/DEBUG   ( 9028):     7ea52af0  00067ad8  [heap]
I/DEBUG   ( 9028):     7ea52af4  fffffbdf
I/DEBUG   ( 9028):     7ea52af8  000007fc
I/DEBUG   ( 9028):     7ea52afc  6fd46470
I/DEBUG   ( 9028):     7ea52b00  00067aec  [heap]
I/DEBUG   ( 9028):     7ea52b04  6fd1365d  /system/lib/libc.so
I/DEBUG   ( 9028): #01 7ea52b08  00067ad8  [heap]
I/DEBUG   ( 9028):     7ea52b0c  00067aec  [heap]
I/DEBUG   ( 9028):     7ea52b10  0003c4ac  /data/data/org.onaips.vnc/files/androidvncserver
I/DEBUG   ( 9028):     7ea52b14  0005c008  [heap]
I/DEBUG   ( 9028):     7ea52b18  000007fc
I/DEBUG   ( 9028):     7ea52b1c  6fd14539  /system/lib/libc.so
I/BootReceiver(  203): Copying /data/tombstones/tombstone_07 to DropBox (SYSTEM_TOMBSTONE)
I/EventHub(  203): Removed device: path=/dev/input/event12 name=qwerty id=0x60008 (of 0x9) index=10 fd=203 classes=0x27
I/InputReader(  203): Device removed: id=0x60008, name=qwerty, sources=00001303
I/ActivityManager(  203): Config changed: { scale=1.0 imsi=234/20 loc=en_GB touch=3 keys=1/1/2 nav=2/1 orien=1 layout=34 uiMode=17 seq=157}
D/GestureDetector(  538): touchSlop:32 doubleTapSlop:195
I/CustomizationProvider(22083): No configuration file: /system/etc/customization/settings/com/sonyericsson/textinput/uxp/custom_settings.xml
W/Resources(22863): Converting to string: TypedValue{t=0x12/d=0x0 a=3 r=0x7f090002}
W/Resources(22863): Converting to string: TypedValue{t=0x12/d=0x0 a=3 r=0x7f090004}
E/org.onaips.vnc.MainActivity$SocketListener(22863): Address already in use
D/dalvikvm(22634): GC_CONCURRENT freed 1355K, 59% free 2846K/6791K, external 1685K/2133K, paused 14ms+4ms
D/dalvikvm(22863): GC_CONCURRENT freed 2067K, 68% free 2998K/9095K, external 9529K/9757K, paused 1ms+2ms
D/dalvikvm(22863): GC_CONCURRENT freed 2077K, 68% free 2959K/9095K, external 7463K/9320K, paused 2ms+2ms
D/dalvikvm(22863): GC_CONCURRENT freed 1999K, 68% free 2981K/9095K, external 7463K/9320K, paused 2ms+2ms
V/VNC     (22863): isAndroidServerRunning? no
D/dalvikvm(22863): GC_CONCURRENT freed 1899K, 66% free 3127K/9095K, external 7466K/9320K, paused 2ms+2ms
D/dalvikvm(22863): GC_CONCURRENT freed 2201K, 68% free 2967K/9095K, external 7466K/9320K, paused 2ms+1ms
D/dalvikvm(22863): GC_CONCURRENT freed 2032K, 68% free 2973K/9095K, external 7466K/9320K, paused 2ms+2ms
V/VNC     (22863): isAndroidServerRunning? no
I/CustomizationProvider(22083): No configuration file: /system/etc/customization/settings/com/sonyericsson/textinput/uxp/custom_settings.xml

Admob

We want to include droid-VNC-server in the FOSS-Market F-Droid. Unfortunately you use Admob, which is non free, thus it can't be included. Please remove Admob, or give us instructions how to build without Admob.

Please get in touch with us.

http://f-droid.org/forums/topic/droid-vnc-server/

Home does not open running tasks

My droid vibrates as if the home button was being pressed many times as opposed to having the home button pressed down. Basically I can't open the tasks. great program btw.

Can't compile droidvncserver

I cannot compile droidvncdaemon.

error message I get is attached at the end of the issue.

I downloaded the origin/master version of the repository.

I am running Ubuntu 10.4 64 bit. I can compile and build the rowboat-android repository for my beagleboard-xm just fine.

Immediately after building android, I copied the droidvncdaemon directory to the external/droidvncdaemon directory of my AOSP tree and then issued the command

mmm external/droidvncdaemon

and then I stopped with the error shown below.

-David Glaser

PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.4
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release

BUILD_ID=GRJ22

make: Entering directory /home/dglaser/Android/BeagleBoard/rowboat-android' target thumb C: androidvncserver_froyo <= external/droidvncdaemon/vnc/input.c In file included from external/droidvncdaemon/vnc/libvncserver-kanaka/rfb/rfb.h:40, from external/droidvncdaemon/vnc/common.h:29, from external/droidvncdaemon/vnc/input.h:23, from external/droidvncdaemon/vnc/input.c:20: external/droidvncdaemon/vnc/libvncserver-kanaka/rfb/rfbproto.h:59:23: error: rfbconfig.h: No such file or directory external/droidvncdaemon/vnc/input.c: In function 'keyEvent': external/droidvncdaemon/vnc/input.c:219: warning: suggest braces around empty body in an 'else' statement make: *** [out/target/product/generic/obj/EXECUTABLES/androidvncserver_froyo_intermediates/input.o] Error 1 make: Leaving directory/home/dglaser/Android/BeagleBoard/rowboat-android'

VNC Server acts weird when connecting

When I connect to the VNC server hosted from my phone, the entire screen seems to move to the right constantly. A screenshot can be seen here: http://tinyurl.com/236g58e
I am connecting using Remmina Remote Desktop Client 0.8.1 on Debian Squeeze (amd64)
My phone is a Motorola Droid, running on Cyanogen 6 (Stable Release) using a Chevyno1 overclocking kernal.
I am using Version 0.8 of droid VNC server

No note about the license (0.991)

There no annotation about the license. In 'about' you can only see that the software is FOSS, but nothing about the license.

A short note about the GPLv2 would be helpful.

BTW: I was surprised that this awesome app isn't in the F-Droid Android FOSS Repo.
http://fdroid.org

Thank you for this wonderful app ;)

androidvncserver_gingerup broken for AOSP-4.0.4 (with solution)

I build droid-VNC-server on eclipse for java developers (Indigo version). I don't run it on emulator but on a pandaboard running AOSP-4.0.4. I have Superuser v3.0.7 with su v3.1 by git-core. I ran into multiple issues with su (see end of thread ChainsDD/Superuser#46 (comment)). Now su is ok, but vncserver still does not start:

V/VNCserver(  598): Running as root...
V/VNCserver(  598): Starting /data/data/org.onaips.vnc/files/androidvncserver  -r 0 -s 100 -P 5901 
E/su      (  698): sudb - Opening database
E/su      (  698): sudb - Database opened
E/su      (  698): sudb - Database closed
D/su      (  698): 10036 org.onaips.vnc executing 0 /system/bin/sh using shell /system/bin/sh : sh
V/VNCserver(  598): Could not start server :(

I changed the serverRunning timeout from 2 sec to 5 sec, no luck, server still fails after 5 sec. The thing is su does not fail or report error, so something must go wrong with my own-built droid-VNC-server...

In parallel, I compiled droidvncdaemon in my android 4.0.4 build system for panda. To do so, I applied following patches on top of commit ee18564 tag 1.0a3:
http://pastebin.com/c1Q1Gtkr
http://pastebin.com/vYUEbmUN

I made /data/data/org.onaips.vnc/file/androidvncserver point to /system/bin/androidvncserver_gingerup from my custom droidvncdaemon compilation.

# ls -l /data/data/org.onaips.vnc/files/androidvncserver
lrwxrwxrwx    1 0        0               37 May 11 16:12 /data/data/org.onaips.vnc/files/androidvncserver -> /system/bin/androidvncserver_gingerup

And it works now :). But I am wondering: is /data/data/org.onaips.vnc/file/androidvncserver brought as binary by droid-VNC-server when built with eclipse?

Also I checked that the original androidvncserver selected in eclipse is the gingerbread version.

(host) $ md5sum ./res/raw/androidvncserver_gingerup 
0ab93810a86e54bef5b16668c9ec2dd9  ./res/raw/androidvncserver_gingerup

(panda) # md5sum  /data/data/org.onaips.vnc/files/androidvncserver.org 
0ab93810a86e54bef5b16668c9ec2dd9  /data/data/org.onaips.vnc/files/androidvncserver.org

Can I send you a patch targeting droidvncdaemon Android.mk? How? I am quite new to github...

Thanks, keep on the good work !

Unable to exit on ICS 4.0.3

Hi,

On my Nexus S with the new OTA ICS 4.0.3 I can not exit the app. When I press "Stop Server" the connection (if open) is closed but droid-VNC gets stuck on the progressdialog as shown here http://i.imgur.com/Yr8uw.png. Back button does not respond.

Logcat looks like this:

12-20 16:24:53.093: D/dalvikvm(3380): GC_CONCURRENT freed 992K, 9% free 11543K/12615K, paused 2ms+7ms
12-20 16:24:53.140: D/dalvikvm(3380): GC_FOR_ALLOC freed 824K, 10% free 11456K/12615K, paused 27ms
12-20 16:24:53.156: V/VNC(3380): isAndroidServerRunning? yes
12-20 16:24:56.898: D/dalvikvm(3380): GC_CONCURRENT freed 812K, 10% free 11448K/12615K, paused 2ms+6ms
12-20 16:24:56.945: D/dalvikvm(3380): GC_FOR_ALLOC freed 797K, 10% free 11437K/12615K, paused 39ms
12-20 16:24:56.964: V/VNC(3380): isAndroidServerRunning? yes
12-20 16:24:57.230: E/su(4500): sudb - Opening database
12-20 16:24:57.242: E/su(4500): sudb - Database opened
12-20 16:24:57.246: E/su(4500): sudb - Database closed
12-20 16:24:57.261: D/su(4500): 10115 org.onaips.vnc executing 0 /system/bin/sh using shell /system/bin/sh : sh
12-20 16:24:57.363: W/EventHub(150): Received unexpected epoll event 0x00000018 for device qwerty.
12-20 16:24:57.363: I/EventHub(150): Removing device '/dev/input/event6' due to inotify event
12-20 16:24:57.367: I/EventHub(150): Removed device: path=/dev/input/event6 name=qwerty id=7 fd=218 classes=0x27
12-20 16:24:57.367: W/EventHub(150): built-in keyboard device /dev/input/event6 (id=7) is closing! the apps will not like this
12-20 16:24:57.375: W/InputReader(150): Ignoring spurious device removed event for deviceId 7.
12-20 16:24:57.379: A/libc(4139): Fatal signal 13 (SIGPIPE) at 0x0000102b (code=0)
12-20 16:24:57.425: D/dalvikvm(226): GC_CONCURRENT freed 570K, 40% free 11065K/18183K, paused 2ms+3ms
12-20 16:24:57.781: I/DEBUG(2317): debuggerd committing suicide to free the zombie!
12-20 16:24:57.793: I/DEBUG(4504): debuggerd: Dec 16 2011 08:29:07
12-20 16:25:02.132: D/dalvikvm(3380): GC_CONCURRENT freed 754K, 9% free 11487K/12615K, paused 2ms+2ms
12-20 16:25:02.156: D/dalvikvm(3380): GC_FOR_ALLOC freed 830K, 10% free 11475K/12615K, paused 15ms
12-20 16:25:02.191: V/VNC(3380): isAndroidServerRunning? no
12-20 16:25:02.207: D/dalvikvm(3380): GC_CONCURRENT freed 702K, 9% free 11495K/12615K, paused 1ms+2ms

SIGSEGV on Samsung GT-I5800 upon connect

Hi,
I'm trying to connect to GT-I5800 phone and VNC server (version 0.991) fails with the following trace:

V/VNC ( 2628): isAndroidServerRunning? yes
V/VNC ( 2628): ~CONNE
V/VNC ( 2628): ~DISCO
I/DEBUG ( 2172): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 2172): Build fingerprint: 'samsung/GT-I5800/GT-I5800/GT-I5800:2.2/FROYO/XWJPE:user/release-keys'
I/DEBUG ( 2172): pid: 3086, tid: 3086 >>> /data/data/org.onaips.vnc/files/androidvncserver <<<
I/DEBUG ( 2172): signal 11 (SIGSEGV), fault addr 00000000
I/DEBUG ( 2172): r0 ffffffff r1 000000ff r2 000001d0 r3 00000000
I/DEBUG ( 2172): r4 0003c4ac r5 0003cbe4 r6 0003cc64 r7 00000238
I/DEBUG ( 2172): r8 000001d0 r9 000001a4 10 000001f8 fp 00000738
I/DEBUG ( 2172): ip 00000003 sp be95cc58 lr 0000bbf9 pc 00000000 cpsr 80000010
I/DEBUG ( 2172): #00 pc 00000000
I/DEBUG ( 2172): #1 pc 0000bbf6 /data/data/org.onaips.vnc/files/androidvncserver
I/DEBUG ( 2172): #2 pc 0000d4da /system/lib/libc.so
I/DEBUG ( 2172):
I/DEBUG ( 2172): code around pc:
I/DEBUG ( 2172):
I/DEBUG ( 2172): code around lr:
I/DEBUG ( 2172): 0000bbd8 f0022200 4641f84d 681b5863 dc352b28
I/DEBUG ( 2172): 0000bbe8 dd2d2b1e 494b6b68 fb8ef001 47986873
I/DEBUG ( 2172): 0000bbf8 58a34652 2b00681b 4640d01e 46495823
I/DEBUG ( 2172): 0000bc08 681a6b68 601a3201 22005863 59c3601a
I/DEBUG ( 2172): 0000bc18 d1d92b00 f0014940 e7d1fb77 f7ff1c30

I can provide full logs/failed binary on demand

Thanks,
Sasha

Mouse Stops working

I have been using the app (really great by the way) and after connecting & disconnecting a few times (between 5-8) the mouse isn't working anymore. The KB shortcuts still work, and the touchscreen still works, but any actions using the mouse no longer function.

Android 2.2
Galaxy S I9000
droidVNC - latest version in App Store as of 18/01/2011
VNCViewer 4.1.3

I got the blank screen

hey
I have the droid-VNC-server and I am using the UltraVNC 1.0.9.6.1
when I connect with UltraVNC , I got the blank screen

framebuffer really slow on aosp 4.0.4, keyboard input not refreshed

I am testing droidvncdaemon in standalone (androidvncserver_gingerup) on a pandaboard running AOSP 4.0.4 with graphic drivers 4.0.4 IMM76I (https://developers.google.com/android/nexus/drivers#panda). Here is the patch I made to have droidvncdaemon work on ICS : http://pastebin.com/abwR4av4
It is running but it is really really slow. framebuffer refresh is very slow, it is barely usable. Also when typing some text with the keyboard, the fb does not refresh thus text is not visible. It's only after a mouse event (click) that the text eventually appears on my VNC client.
. Is this problem reproduced by anyone?
. What can I check to improve the performances?

VNC Server must force close before starting a server.

Apon trying to start a VNC server in the program, you will get a FC. If you start the program again it will say that the server is running (which, indeed it seems to be).
Motorola Droid on Cyanogen 6 (Stable release) using a Chevyno1 custom overlocking kernal.
I am using version 0.8 of droid VNC server

LG Ally Wont start server

LG Ally says it can't get the server started. Rooted by Universal Androot apk. 2.1update1. Log below.

Log Collector version: 1.1.0
Device model: Ally
Firmware version: 2.1-update1
Kernel version: 2.6.29
lge@android-build )
#2 PREEMPT Thu Aug 26 16:44:32 KST 2010

Build number: ERE27

10-17 13:47:59.639 E/libloc ( 1278): loc_eng_inject_location: GPS not initialized.
10-17 13:48:12.644 I/ActivityManager( 1278): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=org.onaips.vnc/.MainActivity }
10-17 13:48:12.674 I/WindowManager( 1278): Setting rotation to 0, animFlags=0
10-17 13:48:12.704 I/ActivityManager( 1278): Config changed: { scale=1.0 imsi=310/4 loc=en_US touch=3 keys=2/1/1 nav=2/1 orien=1 layout=34}
10-17 13:48:12.984 V/RenderScript( 1447): setSurface 0 0 0x0
10-17 13:48:13.064 D/ViewFlipper( 1447): updateRunning() mVisible=false, mStarted=true, mUserPresent=true, mRunning=false
10-17 13:48:13.164 W/AudioFlinger( 1129): write blocked for 167 msecs, 44 delayed writes, thread 0xb868
10-17 13:48:13.464 E/lights ( 1278): set_led_state Amber=0, colorRGB=00000000, onMS=0, offMS=0, state->flashMode=0
10-17 13:48:13.464 E/lights ( 1278): !g_heaveAmberLed_first
10-17 13:48:13.484 E/lights ( 1278): onMS=0,offMS=0
10-17 13:48:13.484 E/lights ( 1278): RED_BLNK_FILE
10-17 13:48:13.784 W/Resources( 4140): Converting to string: TypedValue{t=0x12/d=0x0 a=3 r=0x7f090002}
10-17 13:48:13.784 W/Resources( 4140): Converting to string: TypedValue{t=0x12/d=0x0 a=3 r=0x7f090004}
10-17 13:48:13.944 V/VNC ( 4140): isAndroidServerRunning():Error running exec(). Commands: [/data/data/org.onaips.vnc/files/busybox, ps, w] Working Directory: null Environment: null
10-17 13:48:13.944 V/VNC ( 4140): isAndroidServerRunning? no
10-17 13:48:14.024 V/VNC ( 4140): isAndroidServerRunning():Error running exec(). Commands: [/data/data/org.onaips.vnc/files/busybox, ps, w] Working Directory: null Environment: null
10-17 13:48:14.024 V/VNC ( 4140): isAndroidServerRunning? no
10-17 13:48:14.024 D/ViewFlipper( 4140): updateRunning() mVisible=true, mStarted=false, mUserPresent=true, mRunning=false
10-17 13:48:14.404 I/ActivityManager( 1278): Displayed activity org.onaips.vnc/.MainActivity: 1733 ms (total 1733 ms)
10-17 13:48:14.424 W/IInputConnectionWrapper( 1447): showStatusIcon on inactive InputConnection
10-17 13:48:16.144 W/webcore ( 4140): Can't get the viewWidth after the first layout
10-17 13:48:16.454 V/VNC ( 4140): isAndroidServerRunning():Error running exec(). Commands: [/data/data/org.onaips.vnc/files/busybox, ps, w] Working Directory: null Environment: null
10-17 13:48:16.454 V/VNC ( 4140): isAndroidServerRunning? no
10-17 13:48:16.734 V/VNC ( 4140): Starting /data/data/org.onaips.vnc/files/androidvncserver -r 0 -s 100 -P 5901
10-17 13:48:17.424 W/Parcel ( 1278): Attempt to read object from Parcel 0x30b09dd8 at offset 492 that is not in the object list
10-17 13:48:17.464 I/ActivityManager( 1278): Start proc com.noshufou.android.su for broadcast com.noshufou.android.su/.SuRequestReceiver: pid=5763 uid=10030 gids={}
10-17 13:48:18.324 D/SuRequest( 5763): Sending result: ALLOW
10-17 13:48:18.344 D/ViewFlipper( 4140): updateRunning() mVisible=true, mStarted=false, mUserPresent=true, mRunning=false
10-17 13:48:18.364 D/su ( 5761): 10083 org.onaips.vnc executing 0 /system/bin/sh using shell /system/bin/sh : sh

Edit:Removed unneeded log items.

cdma network

Not sure if it is an issue or just that feature is not available. I would donate or buy app if you could connect via cdma ip address instead of only wifi ip address. Please let me know if this iis problem or feature not available.

Black Screen on Droid X

I love the idea of this application, but I've been having trouble getting it to work properly. It installs fine on my rooted X (I've tried both stock 2.1 and OTA 2.2). I can connect using vnc4viewer under Ubuntu Lucid-32, but I only get a black screen. The screen input seems to work, when I touch the screen there's an appropriate response from the phone and the keyboard shortcuts seem to work. I can connect to other VNC servers without issue so it seems to be either a client incompatibility or a phone issue. Any thoughts on how I can troubleshoot?

Servlet Code

I want to develop the client side code for a more enhanced viewing in Web Browser.
Please help me with locating the servlet or code which monitors the viewing in browser !

VNC server won't start

Tried to start server but wouldn't work. It just says: "Error, can't start server".

Specs:
Phone: HTC Desire GSM
ROM: DeFroST 6.0
Kernel: 6.0c HAVS+BFS 875mV 1113Mhz @ 998Mhz
Radio: 32.49.00.32U_5.11.05.27
Amon-RA 2.0.0 Recovery + ROM Manager Premium[/b]
Root method: UnrEVOked 3.1
HBOOT: 0.93 AlphaRev S-OFF 1.5
BlueFroST Galaxy S Theme

Sends distorted image on Motorola Droid 3 (Solana) with CyanogenMod 9

When attempting to use droid-VNC-server (I downloaded from the market. I have yet to run a build of the native vnc server, but will soon) on a Motorola Droid 3 (Solana) with CyanogenMod 9, the result is that a distorted framebuffer is sent. I tested with multiple VNC clients, (gtkvnc, tightvnc) My guess is that there is a problem somewhere between grabbing and then sending the framebuffer data, or that it is in some new format.

Frequent crashing on Droid 2

The service crashes (or at least drops connections and won't allow new connections) frequently on a Verizon Droid 2. It's happened to me 5 times in the past two hours.

Trying to start the server via adb shell

Ok so I know how to start the app from a adb shell using:

am start -a android.intent.action.MAIN -n org.onaips.vnc/org.onaips.vnc.MainActivity

but I need help coming up with the argument to actually start the server inside the adb shell. Any help with this would be greatly appreciated!

Server fails to start on ASUS Transformer Prime TF700T (rooted)

(I also sent a Log Collector log from the app. It should be from [email protected])

Specs

Model: ASUS Transformer Pad TF700T
Version: Android 4.0.3
Screen Size: 1920x1128
Rooting Utility: DebugfsRoot_Generic_v2.3

droid VNC server: 1.1RC0

logcat:

V/VNCserver( 2683): Running as root...
V/VNCserver( 2683): Starting /data/data/org.onaips.vnc/files/androidvncserver -r 0 -s 100 -P 5901
E/su ( 3232): sudb - Opening database
E/su ( 3232): Couldn't open database: unable to open database file
E/su ( 3232): sudb - Could not open database, prompt user
D/AndroidRuntime( 3235):
D/AndroidRuntime( 3235): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 3235): CheckJNI is OFF
D/AndroidRuntime( 3235): Calling main entry com.android.commands.am.Am
D/AndroidRuntime( 3235): Shutting down VM
D/dalvikvm( 3235): GC_CONCURRENT freed 98K, 89% free 489K/4096K, paused 0ms+0ms
I/AndroidRuntime( 3235): NOTE: attach of thread 'Binder Thread #2' failed
V/VNCserver( 2683): Could not start server :(

I tried starting manually with am:

shell@android:/ $ su
su
shell@android:/ # am start /data/data/org.onaips.vnc/files/androidvncserver -r 0 -s 100 -P 5901
.vnc/files/androidvncserver -r 0 -s 100 -P 5901
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=/data/data/org.onaips.vnc/files/androidvncserver }
Error type 3
Error: Activity class {/data/data/org.onaips.vnc/files/androidvncserver} does not exist.

shell@android:/ # am startservice /data/data/org.onaips.vnc/files/androidvncserver -r 0 -s 100 -P 5901
.onaips.vnc/files/androidvncserver -r 0 -s 100 -P 5901
Starting service: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=/data/data/org.onaips.vnc/files/androidvncserver }
Error: Not found; no service started.

Thank you.

Q: why does this app need root access?

I build and run this app on a pandaboard running AOSP-4.0.4. But I got into trouble rooting my phone. I actually missed the SUID stuff, and it took me 2 or 3 days to discover what was wrong... I rebuilt su-binary, Superuser.apk, tried changes... Now it works fine, but I am wondering:

. Why does droid-VNC-server need root access?
. What are the system files that it needs to modify or system tools it needs to start as superuser?
. Do you think there is a way to make it work on non-rooted phone with some modifications?

can click/touch on nook color CM7

I can connect and see eh screen (rotated), but i can' seem to click on anything. Unless there is a trick to clicking I am missing? Thx.

VNC Server not efficent for big screens

It usually runs with 80% CPU load on bigger screens like 800xXXX pixels, since it always compares any changed pixel in the framebuffer. And the update_screen method includeds inefficent operations, like:
if (a[i + j * scrinfo.xres]!=b[PIXEL_TO_VIRTUALPIXEL(i,j)])
which can be transfomed to:
int offset = j * scrinfo.xres;
int pixelToVirtual = (j+scrinfo.yoffset)*scrinfo.xres_virtual+i+scrinfo.xoffset;

There should be keyboard help on the web page

The first comment on Market:

Also, for those asking the question: 
End Key = Power button 
Delete Key = Back button 
Home key = Home button 
Pg Up Key =     Menu button
Pg Dn Key = Dialer button

It should be written on http://...:5801/ page at least.

Weird picture on Milestone

Hi!

I have a Motorola Milestone device with the latest german(?) firmware (2.1-update1). The server almost works well (mouse, keyboard, web access), but the screen is not shown in the vnc window. (see: http://imgur.com/gYb4Y.png [the gray frame is caused by the screenshot app])

update: I've tried the java client with various settings, and the one included in ubuntu. (dunno the name)

Screen rotation broken

On Archos 101, the screen is rotated 180 degrees (but completely readable). However, when selecting the option to rotate the screen 180 degrees in droid-VNC-server, the resulting screen is garbled to the point where nothing is recognizable. I've tried screen rotation with all the test modes as well.

ZTE Warp: 180' rotated

I installed 1.0a3 and works better, with rotate to 180' I see phone screen ok in my pc, but the problem is rotation is only a visual effect, location of objects on screen is rotated 180' too, so does not matters what rotation setting (0', 90', etc) droid VNC Server use, when I click over an icon launches a wrong app because position is rotated 180'.
I think this issue is a particular thing of ZTE Warp, because I tried others Android VNC Servers and got same problem. Can this be fixed?

Thanks.

IPv6 issue with the vncserver on 2.3.x

Small issue with the listen socket either on 2.3.x or in general (don't have 4.x to test on). Basically, the wrong socket gets set in libvncserver/sockets.c. Otherwise socket never properly opens and when manually started with adb shell, it spits out:

rfbCheckFds: accept: Bad file number

Diff here to fix: (basically just comment out the IPv6 socket set)

diff --git a/jni/vnc/LibVNCServer-0.9.9/libvncserver/sockets.c b/jni/vnc/LibVNCServer-0.9.9/libvncserver/sockets.c
index 84c9c98..11f3166 100644
--- a/jni/vnc/LibVNCServer-0.9.9/libvncserver/sockets.c
+++ b/jni/vnc/LibVNCServer-0.9.9/libvncserver/sockets.c
@@ -404,9 +404,9 @@ rfbProcessNewConnection(rfbScreenInfoPtr rfbScreen)
     }
     if (FD_ISSET(rfbScreen->listenSock, &listen_fds)) 
       chosen_listen_sock = rfbScreen->listenSock;
-    if (FD_ISSET(rfbScreen->listen6Sock, &listen_fds)) 
+    /* if (FD_ISSET(rfbScreen->listen6Sock, &listen_fds)) 
       chosen_listen_sock = rfbScreen->listen6Sock;
-
+    */
     if ((sock = accept(chosen_listen_sock,
                       (struct sockaddr *)&addr, &addrlen)) < 0) {
       rfbLogPerror("rfbCheckFds: accept");

Unsupported pixel depth

I tried running this project, after removing the root dependencies from it. I get an error: "Cannot run server. Unsupported pixel depth". What should I do?

Black screen on Dell Streak 7

Key and cursor events register but the screen is black.
Android 2.2
NVIDIA® Tegra 2 mobile processor
7” WVGA 800x480 Capacitive Multi-Touch Screen

I am willing and able to test any dev builds or provide debugging info.

VNC keyboard not removed when server stopped (with solution)

I met an issue on my pandaboard running AOSP-4.0.4. After I started and stopped VNC server, Android virtual keyboard did not prompt anymore, although I had no USB keyboard connected. Before that virtual / physical keyboards toggled dynamically smoothly when USB keyboard was plugged in and out. After some tests, I figured out that droid-VNC-server creates a standard keyboard, and it is recognized as a built-in keyboard by Android. See http://pastebin.com/7NurfTwj.

On this log, I commented USB keyboard plug-in with:

*** plugging keyboard ***

When VNC server is stopped, later in the log, three lines are of interest:

I/EventHub(  153): Removed device: path=/dev/input/event3 name=qwerty id=6 fd=203 classes=0x27
W/EventHub(  153): built-in keyboard device /dev/input/event3 (id=6) is closing! the apps will not like this
W/InputReader(  153): Ignoring spurious device removed event for deviceId 6.

The keyboard created by droid-VNC-server is not removed completely because it is defined as built-in! Android cannot "remove" a so-called built-in device. Then when I enter a keyboard-demanding application, Android virtual keyboard does not pop up because Android believes that a built-in keyboard is already present... Can be annoying on a device without physical keyboard.

So I patched droidvncdaemon/vnc/input.c:

         1, /* Vendor id. */
         1, /* Product id. */
         1 /* Version id. */
     }; 

-    if((inputfd = suinput_open("qwerty", &id)) == -1)
+    if((inputfd = suinput_open("qwerty_vnc", &id)) == -1)
     {
         L("cannot create virtual kbd device.\n");
    sendMsgToGui("~SHOW|Cannot create virtual input device!\n");
         //  exit(EXIT_FAILURE); do not exit, so we still can see the framebuffer
     }

And I created a new .idc file in /system/usr/idc similar to qwerty.idc, only difference is:

keyboard.builtIn = 0

[SGS II] text writing doesn't work

On my Samsung Galaxy S II (GTi9100P with android 4.0.3), I can't write any text from my pc ! It doesn't seem to do anything ! Even from the home screen (where I read it should launch a google search).

The copy/paste button doesn't work better by the way ...

Can't Bind Port on 4.1.2 on p999

Device: p999
OS: Android 4.1.2
ROM: PA-JB-build8

When starting the app it says it is started by the ports do not appear to have been opened (nmap shows 0 open ports). If I click to stop it it keeps blinking forever. If I force close it then load it up again and click start the start button blinks forever.

Once I have tried to start it my keyboard no longer pops up.

Here is a logcat of starting then clicking stop and letting it blink for a short while.

http://pastebin.com/09PcQqN1

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.