yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] swt2c:
Hi knoxbrder,

Yes, it would be greatly appreciated if you could share your source? I would like to try this on a non-ARMv7 device.

Thanks,

Scott
[Android Apps and Games] antoniogag:
@knoxbrder, can you tell me if this is normal? Can you solve anyway?

Thanks for this app!!

Enviado desde mi GT-I9100 usando Tapatalk 2
[Android Apps and Games] poiuzzuiop:
I get the same error trying to execute vncs from the terminal.

Damn, this is the third vnc server not working on my Galaxy Nexus 4.2.1 AOSP with Franco kernel 328.

Well on to the next one...
[Android Apps and Games] rowntreerob:
please post if u find a solution.... AFAIK i will have to revert the phone to 4.1 when i need vncs for a presentation of a running app.
[Android Apps and Games] knoxbrder:
My old laptop finally died for good and I got a new one over the holidays.

This test version of vncs (1.90) is compiled against the latest AOSP and I think that is why it won't run on my devices which are waiting for the latest

OS upgrades.

If anyone with 4.1+ devices wants to try it, let me know how it goes.

I will be trying to setup an older AOSP soon to compile for older devices. So far I can't figure out how to make vncs compiled with the latest AOSP work on older devices.

Happy Holidays!
[Android Apps and Games] xordos:
Hi, i can confirm this works on 4.2.1

My devics is asus tf101 running eos4 previewB94(20121221) android 4.2.1

//this the first time I run this app, so just want to let you know it works

Happy holidays and thank you.

=========================

u0_a36@android:/data/local # ./vncs-4.1

--Initializing gingerbread access method--

screenshot info: 32 1280 800 4096000

27/12/2012 13:03:29 Listening for VNC connections on TCP port 5901

27/12/2012 13:03:29 Listening for HTTP connections on TCP port 5801

27/12/2012 13:03:29 URL http://localhost:5801

27/12/2012 13:03:50 Got connection from client 192.168.1.118

27/12/2012 13:03:50 other clients:

27/12/2012 13:03:50 Client Protocol Version 3.7

27/12/2012 13:03:50 Protocol version sent 3.7, using 3.7

27/12/2012 13:03:50 rfbProcessClientSecurityType: executing handler for type 1

27/12/2012 13:03:50 Pixel format for client 192.168.1.118:

27/12/2012 13:03:50 16 bpp, depth 16, little endian

27/12/2012 13:03:50 true colour: max r 31 g 63 b 31, shift r 11 g 5 b 0

27/12/2012 13:03:50 Enabling NewFBSize protocol extension for client 192.168.1.118

27/12/2012 13:03:50 Using ZRLE encoding for client 192.168.1.118

key: 0x9e 0 0

========
[Android Apps and Games] knoxbrder:
Great. Thanks for the info.

I will build a GUI version that has the old and new version of vncs in it so everyone can use it.

I'm also working on compiling for x86; maybe we can give that a go in the new year.
[Android Apps and Games] rowntreerob:
not working on 4.2.1

I tried the most recent 4.1 zip on a 4.2.1 factory image - Android 4.2.1 (JOP40D) running on a GNexus.

Result is linker error that may be related to string functions in libc....

# /data/local/tmp/vncs-4.1
soinfo_relocate(linker.cpp:975): cannot locate symbol "__strchr_chk" referenced by "/data/local/tmp/vncs-4.1"...CANNOT LINK EXECUTAB

someone above said it works on 4.2.1??

Not for me....
[Android Apps and Games] knoxbrder:
Did you try the old one then? The error that you see is one I see when I run the new one on and older OS.
[Android Apps and Games] rowntreerob:
RETRY on version from the Aug 12 post by the OP...

NG...

problem with "_ZN7android16ScreenshotClient6updateEv " occurs when using the 'older one' that you mentioned.

this was reported by 'chairdan' around Nov 19 in this thread.

I will retry the older one. The I/O have not changed . I expect to get the same error on a retest.

thanks for reply...
[Android Apps and Games] rowntreerob:
link issues when running on 4.2.1

IMO - the error means that it needs to link against the bionic libc from JB....

specifically - __strchr_chk is a function in /libc/string/strchr.c that was not correctly linked...
[Android Apps and Games] knoxbrder:
It is indeed linked against the shared version of the latest AOSP libbionic.so.

Which is why it should work on JB devices. (and it sounds like it works on at least one)

I need to really see how to link it statically I think; but I tried a simple static link already and it couldn't find the static libs. I probably need to build AOSP differently.
[Android Apps and Games] rowntreerob:
what about using the NDK

in this instance where there is a problem with strchr in libc, using the NDK its pretty straightforward to include libc with the link step...

if i had undefined refs related to libc i would just add it to the LOCAL_LDLIBS statement in the makefile used with NDK.
[Android Apps and Games] poiuzzuiop:
I get the same error on AOSP 4.2.1 (deodexed KALO 2.0) with francos kernel build 356.

Vncs version 1.86 still throws the _ZN7android16ScreenshotClient6updateEv error on my phone.
[Android Apps and Games] knoxbrder:
It should be linked against the right shared libs; but the version of the libs in this AOSP is different than on some devices.

I think I either need an older AOSP or to use static libs; but I'm not sure yet.
[Android Apps and Games] rowntreerob:
__strchr_chk , the missing symbol is right at the top of the link...

https://github.com/android/platform_bionic/blob/master/libc/string/strchr.c
[Android Apps and Games] knoxbrder:
I'm not sure how that helps?

I know its in that lib, and I have linked against it; but it is not present (in the same form) in some devices. I think because it is a recent AOSP change.

(which is why I want to use an older AOSP or static link)

I have tried linking several of the functions like that one directly to my code, but it just fails on another; I think I need to static link the whole lib.

But, still not sure.

But thanks.
[Android Apps and Games] rowntreerob:
Have you looked at the bionic wiki? they explain the JB changes to libc in 4.2 of JB....

As of Android Jelly Bean MR1 (4.2), bionic includes support for Glibc's FORTIFY_SOURCE.

https://groups.google.com/forum/?fromgroups=#!topic/android-security-discuss/39oaPaWJX2I

However, the 'strchr' function is NOT included in the 4.2 list of affected functions. Maybe the AOSP has gotten ahead of 4.2.1 MASTER for JB??

Its becoming more clear that '__strchr_chk' is not in libc that comes with stock 4.2.1

Newest NDK from december ( r8d ), does not contain '__strchr_chk'... Only 'strchr' is there.

platforms$ nm -t d -l -S -v ./android-14/arch-arm/usr/lib/libc.so | grep strchr

00050284 00000020 T strchr

So, for someone building against the newest NDK , the following code will NOT work...

if ( __strchr_chk( string, character1, (size_t) -1 ) != NULL ) {

printf( "\'%c\' was found in \"%s\".\n",

character1, string );

}

The following will compile fine...

if ( strchr( string, character1 ) != NULL ) {

printf( "\'%c\' was found in \"%s\".\n",

character1, string );

}
[Android Apps and Games] xordos:
Hi,

this is more info about my 4.2.1 in Asus TF100:

root@android:/system/lib # cat /system/build.prop |grep version

ro.build.version.incremental=eng.timduru.20121220.201652

ro.build.version.sdk=17

ro.build.version.codename=REL

ro.build.version.release=4.2.1

ro.opengles.version = 131072

ro.eos.majorversion=3

ro.goo.version=1356031013

root@android:/system/lib # ls -l libc.so

-rw-r--r-- root root 294064 2008-08-01 12:00 libc.so

root@android:/system/lib # md5sum libc.so

441620b3d9370e2f5c8c8f0fd83be44c libc.so

root@android:/system/lib # strings libc.so|grep strchr

__strchr_chk

strchr

*** FORTIFY_SOURCE strchr read beyond buffer ***

The EOS ROM url is here:

http://public.timduru.org/Android/tf101/eos4/

xda URL for the Preview ROM:

http://xdaforums.com/showpost.php?p=35830671&postcount=8

Please let me know if you need more info.
[Android Apps and Games] keyra74:
works on 4.2.1 on my galaxy S

just i can't use mouse buttons for action

i'll stick with vmlite for now
[Android Apps and Games] Lucia2002:
great app

It works in Asus TF201-301 well

---------- Post added at 03:07 PM ---------- Previous post was at 02:17 PM ----------

It works well in Asus Transferformer.

However we want to restrict localhost host to access the vnc server like Tightvnc 's loopback only ．would you please help to add a parameter for it ? or tell a way to do it ?

Thanks !
[Android Apps and Games] Maltadav:
I cannot get it to work :(

I've installed the APK, running as root, started the server, and tried both with adb forward and without.

Here's a screenshot:
[Android Apps and Games] xordos:
In the vncviewer, try ip not localhost
[Android Apps and Games] Lox_Dev:
Nexus 4:

# ./vncs-4.1

soinfo_relocate(linker.cpp:975): cannot locate symbol "__strchr_chk" referenced by "./vncs-4.1"...CANNOT LINK EXECUTABLE
[Android Apps and Games] electrons:
Gnex stock 4.2.2

I've tried the vnc-4.1 version and it did not work on my Galaxy Nexus, Stock 4.2.2, Rooted.

I copied the suggested libsurfaceflinger lib and the server still does not start.

I'll provide any other output you need to update the application for compatibility. Thanks for developing!

Here is the output ...

C:\Users\Admin\Downloads>adb shell
shell@android:/ $ su
su
root@android:/ # /data/local/vncs
/data/local/vncs
soinfo_relocate(linker.cpp:975): cannot locate symbol "__strchr_chk" referenced by "/data/local/vncs"...CANNOT LINK EXECUTABLE
[Android Apps and Games] Scotty1:
Stopped working for me when I upgraded to 4.2.2 (stock, rooted). Is it no longer being updated? If not - it was a good app, thanks Knoxbrdr.
[Android Apps and Games] knoxbrder:
If any of the devices I have get updated from 4.0 or 4.1 to 4.2 then I will look at it. But at the moment I have no way to test against 4.2.2.

And the last time I tried some updates there were some SDK issues and I never ended up with a running app. I have been waiting to see if they have been fixed as well.
[Android Apps and Games] jisse44:
Thanks for app, works great on Atrix 4G with GB 2.3.6 rooted.
[Android Apps and Games] murphyx:
seems to work on nexus,

HOWEVER, there exist apps that do not react to input through a vnc client.

It feels as if the x,y isn't send correctly or the touch event does not register.

But the android device itself does register the events. I can confirm that by turning on the pointer location (developer option).

Somehow the touch event is not send up to the dalvik vm somehow. Does this sound familiar and is there a fix?

EDIT: for example search for an app called 'doodle bowling' to see what I mean.
[Android Apps and Games] knoxbrder:
I didn't check that app out, but all the apps I have seen that don't work have been "touch" based. VNC sends events over as "mouse" events. Most apps support either, but some only support touch.
[Android Apps and Games] murphyx:
small fix

here a small binary patch to fix the __strchr_chk symbol error

xxd -c19 vncs-4.1 | sed s/"5f 5f73 7472 6368 725f 6368 6b"/"73 7472 6368 7200 0000 0000 00"/ | xxd -c19 -r > vncs-4.1b
[Android Apps and Games] knoxbrder:
Have you done this and it then works fine? That would be really cool!

I don't read hex arm codes :) What does this actually do?
[Android Apps and Games] murphyx:
It replaces the symbol __strchr_chk with strchr\0\0\0\0\0\0, to make the linker happy.

root@localhost:~# ./vncs-4.1
soinfo_relocate(linker.cpp:975): cannot locate symbol "__strchr_chk" referenced by "./vncs-4.1"...CANNOT LINK EXECUTABLE
root@localhost:~# xxd -c19 vncs-4.1 | sed s/"5f 5f73 7472 6368 725f 6368 6b"/"73 7472 6368 7200 0000 0000 00"/ | xxd -c19 -r > vncs-4.1b
root@localhost:~# ./vncs-4.1b
--Initializing gingerbread access method--
screenshot info: 32 800 1280 4096000
[Android Apps and Games] murphyx:
Two questions..

1. Can you modify the vnc server to make it send "touch" events, so these apps will work?

2. Please tell me where to find the source code for the binary.
[Android Apps and Games] babydraz:
ATV520

So I'm trying to get this up and running on my Geniatech ATV520. I have to say it's infinitely more useful than the other VNC servers I've tried, but I still can't quite get it working fully. The server itself will work, although I had to copy over libsurfaceflinger based on another user post.

Using the command line I've narrowed down a few things;

1. If I set -t to anything other than /dev/input/event1, it throws an error "cannot get ABS_X info, Invalid arguement". Tried /dev/input/event[0-4], /dev/input/mice and /dev/input/mouse[0-1]. Looking at od -x /dev/input/event1 this is appears to be a valid touch input too, from the local mouse.

2. With "vncs -k input -t /dev/input/event1", the keyboard works as expected, but the mouse does nothing.

3. With "vncs -k /dev/input/event0 -t /dev/input/event1", I see lots of injectKey messages, even for the left mouse button in the terminal, but no actual action from the keys. Again the mouse does nothing other than a key inject for the left button.

4. I then tried uinput for the keyboard, and from the debug it says that in this mode it does not use a touch device at all. "Not using TOUCH_DEVICE because of uinput"

5.With uinput the keyboard does some slightly strange things like the right cursor is up, up cursor is left etc, but basically works. I tried rotating the touch, but no change. However, now the mouse starts to work, although if I click on say the home button on one occasion, it will work, then a second click without any movement will result in a click at a random point in the screen. It doesn't seem to be able to work out where you are pointing. I thought this might be related to a previous issue with touch rotation, but it's not the same thing as it will work on occasion.

6. One additional strange thing I've seen is that when I connect there are the following messages, which could obviously be related to input;

httpd: get '' for 192.168.1.22

httpd: defaulting to 'index.vnc'

httpd: get 'favicon.ico' for 192.168.1.22

httpProcessInput: open: No such file or directory

So basically I've got the keyboard working but no mouse/touch. Can anyone possibly give me some ideas on how to try debugging this further?

Cheers

Draz
[Android Apps and Games] knoxbrder:
Uinput is your best choice. The error is expected when using it. I should reword the message.

If it almost works, try slowing down the input stream. The default delay may not be large enough.

I'm in between flights so I can't look it up. (my business phone is not rooted so I don't have vncs installed)
[Android Apps and Games] knoxbrder:
If I ever get a 4.2 device I will look at touch events and cleaning up the code to release. It is on an old broken laptop that I don't use anymore. I have no momentum at the moment.
[Android Apps and Games] murphyx:
Hi,

I hope you understand that your implementation is based on code that is licensed GPLv2. In short this means you are obliged to supply the source along with compilation instructions to anyone who asks for it. I suggest you just publish the current source code, no matter how ugly, or take the whole binary offline.
[Android Apps and Games] antoniogag:
Hi! I tried the last apk in a sgs2 with cm10.2 and dosen't work.

I tried in another 4.3 and dosen't work either.

[MENTION=1479935]knoxbrder[/MENTION], do you have a new version for this fantastic and useful apk?

Enviado desde mi GT-I9100 usando Tapatalk 4
[Android Apps and Games] zzzk:
Please keep up the work!

Please keep up the work! It worked great on 4.0.4, but when I upgraded to 4.2.1 it no longer works. I would pay for this app if it were on google play. Thank you! :fingers-crossed:
[Android Apps and Games] huisinro:
For those looking at vnc servers, our vmlite vnc server works very well on all Android versions, up to latest 4.3 version, the only one works on 4.3 I think:

https://play.google.com/store/apps/details?id=com.vmlite.vncserver&hl=en
[Android Apps and Games] zahabshamsmuz@gmail.com:
Where can I get the server code which can be recompiled

Hello

This server slows down the Jelly Bean system. Where can I get the code of the server, so that I can debug it and make it compatible with JB.

Regards

Zahab

Mob: 91-7439270962
[Android Apps and Games] zahabshamsmuz@gmail.com:
Android VNC server Build guide

Hello Everyone

I want to build Android VNC server. Can any one guide me on the same, I will b grateful to you.

You can directly mail me at zahabshamsmuz@gmail.com

Regards

Zahab
[Android Apps and Games] zahabshamsmuz@gmail.com:
Source and build instruction for android

Hey can you provide its source code, so that I can build it for android and run through command line. It has some performance issue on JB.

---------- Post added at 05:04 PM ---------- Previous post was at 04:55 PM ----------

Hello

Can i get the source code for this vnc server so that I can build it and fix few issues.

Regards

Zahab

---------- Post added at 05:44 PM ---------- Previous post was at 05:04 PM ----------

Where can I find the source code for it

Regards

Zahab
[Android Apps and Games] Zirias:
It actually makes the binary run on my device (Xiaomi MI3, MIUIv5 / Android 4.2.1). But it's still not working :( It seems to deliver events from the vnc viewer to the device fine (clicks, keypresses), but doesn't show a picture, just a black screen. Any ideas what's wrong here?
[Android Apps and Games] zahabshamsmuz@gmail.com:
Android VNC server

I am developing one VNC server which can run on any android device. If have any commercial requirement please let me know.

Regards

Zahab

---------- Post added at 08:08 AM ---------- Previous post was at 08:04 AM ----------

I am developing one VNC server which can run on any android device. If have any commercial requirement please let me know.

Regards

Zahab
[Android Apps and Games] Zirias:
Me personally, I'm only interested in this for private purposes. Is your solution already working or still in development? Open or closed source? And, if the latter, is there a free trial? I'd actually buy a working solution, but given the situation here, I'd be a little worried about compatibility with my device ;)
[Android Apps and Games] zahabshamsmuz@gmail.com:
accon working with my device in assisted mode

I tested your apk it is working with my device. I am sure my VNC server will also work with your device. I even played the game from my server device and client device. If you want to buy this solution just let me know.
[Android Apps and Games] Dhez_in:
What am I doing wrong?

If I open the application from the terminal. / VncS goes perfectly, but if I open it from the gui does not work, server not running.

In Android 4.2.1 works fine, but in 4.2.2 got this error.....

u0_a62@android:/data/data/com mrk2012.android.preferences # ./vncs
--Initializing gingerbread access method--
screenshot info: 32 1280 720 3686400
12/11/2013 11:55:35 Listening for VNC connections on TCP port 5901
12/11/2013 11:55:35 Listening for HTTP connections on TCP port 5801
12/11/2013 11:55:35 URL http: //localhost:5801
[Android Apps and Games] zahabshamsmuz@gmail.com:
Reply

Give framebuffer method in argument check ./vncs -h for help. and see the argument for framebuffer method.

Hope it will work perfectly all right.

regards

Zahab
[Android Apps and Games] psychuil:
Is there a version that works on 4.3.1?
[Android Apps and Games] zahabshamsmuz@gmail.com:
I can give one

If you want to pay for it, please let me.

Regards

Zahab
[Android Apps and Games] psychuil:
That's not really the XDA spirit..
[Android Apps and Games] neoreturn:
Is your software base on the Onaips Droid-VNC-Server ?
[Android Apps and Games] knoxbrder:
It is kind of late, but I just thought I would make it official.

My old laptop that had the VNC server on it died (a long time ago) and because it was a complicated setup and I didn't have a backup on another machine it is gone.

While I still use VNC at work (Linux/Windows), I think Screen Casting is the future for what I use at home so I am not planning on hacking up another VNC server for Android.

If anyone wants me to delete the binaries because I can not release the hacks to the GPL code, let me know and I will delete them.

I really don't think that it is helpful to delete them, but you guys decide.
[Android Apps and Games] mmasco:
Last version vncs from knoxbrde with "__strchr_chk" patch and 1.87 Java Control App. "Plug n play" apk. :fingers-crossed:
[Android Apps and Games] mikeo1313:
having trouble sending Escape,F1, F6, Menu, Pg-Up & END key to remote android using this keyboard

https://play.google.com/store/apps/details?id=org.pocketworkstation.pckeyboard&hl=en

so I uninstalled it, anyone have anything else that works so that I can send at least the "back" key and click & drag to remote android?
[Android Apps and Games] fragtion:
Hi guys

I get the following error, and neither the forums or google have brought any aid to the problem :/

/data/data/com.mrk2012.android.preferences # ./vncs

CANNOT LINK EXECUTABLE: cannot locate symbol "_ZN7android18getPixelFormatInfoEiPNS_15PixelFormatInfoE" referenced by "./vncs"...

/data/data/com.mrk2012.android.preferences #

Any idea what this could be, or how to go about fixing it? I'm on 4.4.2, uname 3.4.67 #1 SMP PREEMPT Sat Apr 26 14:47:50 CST 2014 armv7l GNU/Linux
[Android Apps and Games] lupa18:
doesn't work

Original apk doesn't connect and last one crashes.

I'm using Cyanogenmod 12.1
[Android Apps and Games] netgear64:
I try the latest version on my Transformer Prime.

But I get only connection refused, tried different ports, no change.

I use realvnc either on XP and win7, same behavior.

Am I doing something wrong?

Netgear
[Android Apps and Games] Scotty1:
GN 402 rooted. Using UltraVNC to connect. Display is fine (with the "swap" preference checked) and keyboard input works....but no response to mouse.
[Android Apps and Games] knoxbrder:
Scotty1:

I need a bit more info. Since you have a Galaxy Nexus, did you check that box in the GUI or add -n to the command line? Did you set the touch device to /dev/input/event1 (which seems to be what others found connects to the pointer)

netgear64:

I need a bit more info as well. Started from the GUI or command line? Which options? If you use the GUI it displays the actual command line used when it attempts to start the server.

dapaua:

Again, I need to know the options used to start the program from the command line or GUI. I have never even seen one of these devices so it may take some experimentation to find the right options. I would suggest first trying the framebuffer option to see if you can get video. What version of Android does your phone run? I have only tried 2.3 and 4.0+.

ArmanUV:

At the moment I only get 2-3 FPS on my Transformer Prime and maybe 4-6 on my Galaxy S2. Attempts to speed it up will come in a couple weeks. But I don't expect it to more than double.
[Android Apps and Games] Scotty1:
Sorry - I tried to edit my post to include the fact that yes, I had checked the GN tweaks; for some reason, I can post but can't subsequently edit (maybe because I am too newbie-esque?)

Touch device is set to event1. I have also tried event 2, 3 & 5. No joy. I also have changed (in UltraVNC viewer) the various mouse-related settings (emulate 3 buttons; track remote cursor...) but no difference. When I click, the phone doesn't appear to respond at all. This is the opposite of what I see when I've tried other remote controls; in those cases, I see a black virtual screen, but clicking on that black image DOES activate the phone.

SORRY but I can't see how to modify the command line (new to Android, came from iOS)

Finally - just to stress that the PC keyboard DOES transmit to the phone. So, if I click on the phone to (say) open my email program, then place the cursor in the appropriate are on the phone -- I can start typing on the PC keyboard, and text is entered into the phone (albeit, with quite a long delay).

Great work, BTW !!

---------- Post added at 10:05 AM ---------- Previous post was at 09:42 AM ----------

Tried to edit - again, it won't let me:

Just to be clear - when I wrote "click on teh phone to open email" I meant that I tapped directly on the touch-screen with my finger (NOT "clicked the virtual screen with the mouse -- because that doesn't work ;-))