yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] rowntreerob:
lib issue or link issue on 4.1.1

No longer able to run vncs from the CLI interface after upgrade to 4.1.1...

405 could not load needed library 'libsurfaceflinger_client.so' for './vncs'

for '/data/local/vncs/vncs' (load_library[1093]: Library 'libsurfaceflinger_client.so' not found)CANNOT LINK EXECUTABLE

is the error on galaxy nexus running 4.1.1 which has a 'surfacefinger' shared lib but, not s 'surfaceflinger_client'...

root@android:/ # find system -name "*so" | grep facefling
system/lib/libsurfaceflinger.so

Looks like the executable was linked with a shared lib thats no longer available in the runtime on 4.1.1...

That lib could be taken out of the build or provided as a static lib thats included in the exec.

Or i guess i could install a package that will provide that missing shared lib.
[Android Apps and Games] knoxbrder:
I have been out of the country. I will look at the library issues on Jelly Bean tomorrow night.

If someone with the problem wants to PM me I will send them a test build since I don't have a Jelly Bean device yet.
[Android Apps and Games] frenccw:
I'm available anytime :good:
[Android Apps and Games] knoxbrder:
If you JB guys want to try this one let me know.

May need cleanup before general use; just tried removing the _client lib.

Need to rename vncs.apk to just vncs if you want to run it from the Android command line.

(I can't seem to upload it as just vncs anymore)

Please let me know if it works on JB.
[Android Apps and Games] frenccw:
Working fine so far :D will report back after testing it a couple more hours. Keyboard and mouse input also working flawlessly so far. Thanks for the great update. How it looks on the notification bar now:
[Android Apps and Games] knoxbrder:
Good to hear it is working.

Is that notification bar ok? What would you want changed?

Thanks for testing it :)
[Android Apps and Games] frenccw:
The notification bar is working great. The only thing that stands out is the light grey bg. Not sure if it was intended :silly:
[Android Apps and Games] rowntreerob:
thank you

STEPS:

get the 'vncs.apk' just above ( its an ELF exec file not an apk so i just renamed it to 'vncs'

if you have root, adb push renamed file to /data/local/vncs/vncs

then below instruction to start it ( use -m 2 to reduce somewhat large size on Gal Nexus )

CLI start:

# /data/local/vncs/vncs -t /dev/input/event1 -s -n

/data/local/vncs/vncs Version 1.87

need init

Initializing framebuffer device /dev/graphics/fb0...

--Initializing gingerbread access method--

screenshot info: 32 720 1280 3686400

xres=720, yres=1280, xresv=720, yresv=1280, xoffs=0, yoffs=0, bpp=32

bInitializing VNC server:

scale: 1

width: 720

height: 1280

bpp: 32

port: 5901

Initializing keyboard device uinput ...

init keyboard device as uinput

---Initializing uinput...---

---Initializing uinput...---

Not using TOUCH_DEVICE because of uinput

Initializing server...

rfbGetScreen bpp: 32

15/08/2012 21:53:57 Listening for VNC connections on TCP port 5901

15/08/2012 21:53:57 Listening for HTTP connections on TCP port 5801

15/08/2012 21:53:57 URL http://localhost:5801

16 8 8 8 0 8
[Android Apps and Games] keyra74:
installed on ics, no regression. good job
[Android Apps and Games] nahsha:
did you guys get it working on JB? if so how? thx!
[Android Apps and Games] knoxbrder:
Use the version from the previous page. It has worked for at least two people on JB and ICS.

If it looks good I will push it to the first post this weekend.
[Android Apps and Games] keyra74:
yeah i confirm it's still working totally on ics, i use it more than 8h a day
[Android Apps and Games] nahsha:
so we just rename the vncs.apk to vncs and run it? then we can vnc to localhost:port ?

I tried that but said connection refused..
[Android Apps and Games] knoxbrder:
Check out the first post for command line arguments if you just want to use vncs without the Java GUI in Android.

If it still doesn't work, post your command line arguments and the output from vncs in adb or a terminal.
[Android Apps and Games] nahsha:
At first I installed vnclauncher.apk, then I started the server etc... (does it do the same as vncs? (so no need to run it when the gui is installed?)), even though I seen it was started and on the default port, I tried to vncviewer localhost:port with the same message, "connection refused" I also tried to modify the port in the gui, but to no avail.
[Android Apps and Games] knoxbrder:
The vnclauncher.apk includes a copy of vncs inside it; you do not need to install both.

But, to debug odd problems, try starting either copy of vncs from adb or a terminal. That way you can look for / post any problems that occur.

Try vncs -h to see all the options. But just vncs with no options should work on port 5901.

You can not connect to "localhost" unless you are running vncviewer on the same android device, which would not be useful in this case. You would typically connect from a laptop / desktop to your phone/tablet running vncs. If you don't know the IP address of your android device you should be able to find it from Settings / Wifi or from the vnclauncher when it attempts to start the server when debug mode is active.
[Android Apps and Games] nahsha:
Ah I see, that's probably what it is...... my ip address from provider is blocked for incoming... what I was trying to achieve, is re-use localhost, or somehow have a tunnel through the usb cable since its already connected to my pc... is that possible?
[Android Apps and Games] knoxbrder:
You can either:

Use the "listen" mode to connect from your device back to your viewer on your PC (requires setting up your AP/cable modem or whatever to allow incoming connections on say port 5901 to be routed to your PC.

Or

Use something like connectbot on your device to connect via secure shell to your PC and forward port 5901 thru the encrypted channel.

Please see the documentation for a VNC client and/or connectbot on how to use these features. These methods are the same with Android as they are for Windows/Mac/Linux.

Sorry, missed that you said USB the first time.

Yes, you can route ports thru ADB and USB as well. Please see the ADB documentation on how to forward ports over ADB.
[Android Apps and Games] huisinro:
Hi Guys,

Pease take a look of our new app, VMLite VNC Server, this is the first android vnc server that runs on non-rooted devices:

https://play.google.com/store/apps/details?id=com.vmlite.vncserver

It currently runs very well on more than 20 different models of Android devices, supports Froyo, Gingerbread, Honeycomb, ICS and Jelly Beans.
[Android Apps and Games] keyra74:
first thing... it's a paid app so at least a lite version to try first
[Android Apps and Games] knoxbrder:
Cool. I will check it out. I assume you are just starting the server via adb because that gives you "shell" permissions which are high enough to access the uinput device? I have done this as well, but I hate having to reconnect to a computer every boot to kick it off again. I wonder if there is any way to start and adb type shell without connecting the usb cable to a computer? What about one of the wireless adb systems I have heard about but never tried?
[Android Apps and Games] huisinro:
Hi knoxbrder,

Yes, it's using adb to start the server. Many people feel uncomfortable rooting their devices, this provides a way for these people. Starting the server after each boot is inconvenient. Will explore if there are any means to overcome this.

To make life easier about usb drivers on windows, we are also developing a universal driver for Windows, which in theory will cover all devices, not ready yet.
[Android Apps and Games] keyra74:
ok decided to give it a try for the 15 free minutes

first thing, it works on evo 3D with root (usb plugged or not)

second thing, it does exactly the same has vncprefs with far less options and doesn't gimme me the possibility to wake my phone with right click, so it's a no
[Android Apps and Games] huisinro:
F7 is the power key, press F7 to toggle display.

The app supports long press key, i.e., long press F5, I don't think any other apps support this feature.

The app also supports swipe/fling, mouse wheel, ctrl+arrow keys, etc.
[Android Apps and Games] zzzk:
Keyboard not work on jelly bean

Hello,

I'm trying the vnclauncher test, but I cannot get the keyboard to work with vnc. I tired uinput, input, and /dev/input/event3. I have an asus tf300t with a physical keyboard, but I remove it sometimes and have it connected sometimes. I would prefer the on screen keyboard automatically NOT appearing, but to be able to use my laptop's keyboard, Please let me know. Thank you.

It is the vnc server posed by knoxbrder
[Android Apps and Games] knoxbrder:
I have tried the TF101 and TF202 both running HC and ICS and the virtual keyboard will popup if you don't have the physical keyboard connected.

That is just the way it seems to work; at one point I could get the remote keyboard to work without the virtual keyboard, but then there was no way to get the virtual keyboard to work again on the device itself unless you rebooted or disabled the physical keyboard in the TF menus.

I don't know if JB behaves the same way. But uinput should work, just the virtual keyboard will appear.

I could add an override that allows TF people the option of hiding the virtual keyboard all the time, but anyone else that turned that on would have to reboot their device to get the keyboard back after turning it on.
[Android Apps and Games] zzzk:
For some reason, my laptop keyboard now works with VNC, however, the on-screen keyboard appears and I have to minimize it every time. Any answers? Thank you.

---------- Post added at 08:15 PM ---------- Previous post was at 08:09 PM ----------

Just saw your answer, yes if you could add that button, that would be wonderful to turn off on screen keyboard. Is it possible for it to toggle on and off? Also, I tried to change it 90 degrees, but it doesn't seem to do anything. I like to stand it up on it's side in portrait mode so it's narrower on my laptop screen. It remains horizontal in vnc on my laptop despite the setting of 90 degrees. Thank you for your work!
[Android Apps and Games] psychuil:
Any plans to get this working on JB?
[Android Apps and Games] knoxbrder:
1. I will look into adding the keyboard override button; if you leave the real keyboard connected the TF icon appears in the task bar so you can toggle it on/off

2. If you change the setting in prefs for rotation you need to restart the server; or you can press the function key to rotate on the fly (see the first post)
[Android Apps and Games] knoxbrder:
Did you try the version on this page? http://xdaforums.com/showthread.php?t=1476648&page=42
[Android Apps and Games] psychuil:
Had to reset back to ICS for a work demo. Will try this in an hour or two.

Might wanna add that to the first post, since AOKP has a build out :)
[Android Apps and Games] knoxbrder:
I have a couple small things I found that I should tweak before moving to the first post.

But it should work fine for most people on JB it sounds like.

I hope to get to them tonight.
[Android Apps and Games] keyra74:
any news?
[Android Apps and Games] psychuil:
I've got an issue on JB.

Suddenly my device won't take any keyboard input.
[Android Apps and Games] knoxbrder:
It worked on JB before and just quit? What changed? Device update, etc.

Try running it from adb or a terminal and looking for errors in the startup output. Post any errors here.
[Android Apps and Games] zzzk:
Working fine for me on JB

Hello,

Working fine for me on JB. Thank you! This one doesn't stop all the time like droid VNC.

:D:D:D
[Android Apps and Games] antoniogag:
Can you post the configuration and your phone model, please?

Thanks!

Enviado desde mi GT-I9100 usando Tapatalk 2
[Android Apps and Games] 九千.:
Thanks! It works for Samsung GT-i9305 Galaxy S III LTE Hong Kong version. However, TAB doesn't work in this version. The TAB works for previous vesrion.

I haven't used the launcher, I run the vncs from command line directly.
[Android Apps and Games] frenccw:
Hi just reporting that the notification has somewhat reverted to the old version where the bottom part of the status is cut off. On CM10 M2 based on Android 4.1.2. Server still works though. Cheers

Edit: Oops i'm an idiot I flashed an older version. Sorry post to be deleted
[Android Apps and Games] bkim33:
I have successfully installed the GUI app and it works perfectly fine! Thanks for the good work. However, I am experiencing a red hue when viewing my mobile device on my PC. I tried swapping red and blue, but then there is a blue hue. I am trying this on the Samsung Galaxy S3 att and HTC Evo 4G LTE sprint. Thanks for the help
[Android Apps and Games] frenccw:
I'm having this bizarre problem where my keyboard stops working and i can't type anything. Shortcuts on keyboard work though ie . Home, del, end button, etc.

I don't remember this happening over the weekend at home but this has happened twice at work and the only way to fix it is to reboot the phone. Restarting the server/app doesn't make a difference. I've tried 2 different VNC viewers and the same thing happens. Any advice?
[Android Apps and Games] Tasssadar:
Hi, sorry for the impatience, but is the source ready yet? I'd just like to see the way you are getting display's content on ICS/JB, since the framebuffer does not work anymore :)
[Android Apps and Games] knoxbrder:
I suggest you try the option to manually play with the color alignment and see if you can find an option that works. If you find one, post it here please.

I'm kind of surprised the S3 has a problem but I think I will have access to an unrooted one this weekend to play with and I will try VNC to at least view the color scheme even though I won't be able to control it since it will be unrooted.
[Android Apps and Games] knoxbrder:
I have never seen this. If it used to work, has anything changed? OS upgrade, new device, new task manager app, etc?
[Android Apps and Games] knoxbrder:
Life and work have been keeping me to busy (in a good way) so I have not really touched it in quite a while.

I should have the whole week of Thanksgiving to catch up on various things and I hope to include this app.

Take a look at the snapshot code to see how to take a screen capture the "right" way. That has required root till now. Assuming it still does.
[Android Apps and Games] frenccw:
I haven't used your app as much as i used to, but i would say the only difference is upgrading CM10 to the latest milestone which is based on Android 4.1.2. (Again, i haven't been using the app so it might have been happening prior to this) It's really strange considering the keyboard shortcuts work fine. Changing the software keyboard doesn't help either. It's not a big deal but just fyi in case it's some compatibility prob with the latest OS.
[Android Apps and Games] matthelm:
My Droid Bionic just got ICS, and I have a slight problem.

When the server is running, the popup keyboard will not work. This would be OK for most people, but I run the server all the time, and if I'm upstairs, I just use the phone, not PC with VNC. If I shut down the server, the popup works fine.

Keyboard is uinput.

The only non default setting I'm using ti Swap Red/Blue.

Suggestions? Maybe some new setting is "seeing" VNC server as a keyboard????? It did not do this before.
[Android Apps and Games] n1LWeb:
(noThanks

Hi,

I just want to say thanks for this great App. It's far more responsive than the other VNC servers out there. Also it's running rock stable on My Nexus S with MIUI which is very important for me as my display is broken and I'm waiting for my replacement part from Hong Kong.

Many Many Thanks.

The only thing missing would be working international Input (can't enter german "umlauts" öäü) But i can live with using Wifi Keyboard for things where I need them.

Also love the dual distribution as executable and apk. The executable is much easier to get running on a broken device than doing a screencast (no input working) and guessing where to touch on the display (touch working, only screen broken). After that the apk with autostart is GREAT.

Ever thought about adding the apk to the play store so the non technical people can find it?

--

n1L
[Android Apps and Games] knoxbrder:
I'm glad it works well for you. I still use it all the time myself.

But, there is at least one VNC server in the play store already that seems to work for a lot of people.

Since I have never (yet) had the time to finish cleaning up the code to release it, I don't want to put it in the store (yet).

I made one attempt to add the umlaut support, but was unsuccessful. I plan on working on the server over Thanksgiving so I will have another stab at it. Along with a few other things.
[Android Apps and Games] n1LWeb:
I think I know which one you mean (tried many) but input isn't working there. Have to have Wifi Keyboard open all the time switching between the windows like a bouncing ball. Also the server is killed often by the operating system (i presume) which is a no go for me as i can't just go to my phone and restart it. I have to connect it directly via USB get the screen output vith androidscreencast and try to restart it guessing where to press on my black screen. Under such circumstances a great app does really stand out. It is running constantly and reliable. Also it's much more responsive (even more now that I've got framebuffer running)

I hope that I'll get my replacement display soon but I'll continue to use this gem anyway so if you need some german guy to test the software which has tha android-sdk running and working just tell me.

n1L
[Android Apps and Games] keyra74:
for me, yours is the only one that works flawlessly, i'm just scared that it wouldn't work on my futur nexus 4
[Android Apps and Games] antoniogag:
Useful program, working well in my s2.

Anybody knows a way or apk to turn on screen without press any key?? From vncviewer for example..

Thanks
[Android Apps and Games] n1LWeb:
local End key is "end call" and/or power on/off

local Alt-o / Alt-i is "power off/on" on some devices
[Android Apps and Games] Scotty1:
Using tightVNC to display & control the phone on my PC; if my phone's screen goes off, I can reactivate it by clicking on the ctrl-alt-del icon in the TightVNC toolbar. Click it - phone screen turns on - now can I control the phone from my PC........
[Android Apps and Games] disik:
Hello,

Not using TOUCH_DEVICE because of uinput

What can be wrong? What can I do?

/vncs.apk Version 1.87
need init
Initializing framebuffer device /dev/graphics/fb0...
--Initializing gingerbread access method--
screenshot info: 32 800 480 1536000
xres=800, yres=480, xresv=800, yresv=960, xoffs=0, yoffs=0, bpp=32
bInitializing VNC server:
scale: 1
width: 800
height: 480
bpp: 32
port: 5901
Initializing keyboard device uinput ...
init keyboard device as uinput
---Initializing uinput...---
cannot create virtual kbd device.
---Initializing uinput...---
cannot create virtual kbd device.
Not using TOUCH_DEVICE because of uinput
Initializing server...
rfbGetScreen bpp: 32
14/11/2012 19:10:25 Listening for VNC connections on TCP port 5901
14/11/2012 19:10:25 Listening for HTTP connections on TCP port 5801
14/11/2012 19:10:25 URL http://localhost:5801
16 8 8 8 0 8
[Android Apps and Games] rajah1:
The libsurfaceflinger_client.so library file, required by vncs, is missing in JB stock and in every JB build I've examined. Before I saw your 14 August v1.87 revision (which apparently compiles vncs without this library, and which I have not yet tried -- you might add a note about v1.87 to page 1!), I looked for a version of libsurfaceflinger_client.so that would be compatible with JB 4.1.2 -- because vncs v1.86 simply wouldn't launch without it (I'm running CM10 Nightly 16 Nov). Most versions of _client did nothing; one crashed my Samsung GS-II. The majority of JB library files, including libsurfaceflinger.so, are dated 1 Aug 2008, and that is the version of libsurfaceflinger_client.so to add -- it solves the problem. Extract it (5272 bytes) from the zip at http://xdaforums.com/showpost.php?p=30588739, locate it in /system/lib, and chmod permissions to 644.

May I add my voice to the general acclaim for vncs? For me, this is a must-have app, with crucial configurabilities that deliver stable performance on nearly any device. A class act! I hope you take it to the Google Store -- it belongs there. The competition crashes incessantly.
[Android Apps and Games] rajah1:
I get same red hue by default. The solution is to adjust the -c switch (or "Color offset/length" in VNCSPrefs Config). Try 0,8,8,8,16,8 -- that works on my Samsung GS2. The OP made the suggestion on page 16.
[Android Apps and Games] chairdan:
Nexus 7 4.2

No longer able to run vncs after upgrade to 4.2...

soinfo_relocate(linker.cpp:975): cannot locate symbol "_ZN7android16ScreenshotClient6updateEv" referenced by "./vncs"...CANNOT LINK EXECUTABLE

Help me!!
[Android Apps and Games] knoxbrder:
I'm doing a little work on it this week.

But I don't have any 4.2 devices. The highest I have is 4.1.1. What device and firmware do you have? Stock or some custom ROM.
[Android Apps and Games] rajah1:
If you look at this log of the same error incurred by DroidVNC under Android 4.2, you'll see that it is caused by failure to load flinger libraries ("Couldnt load any flinger library!"). Therefore, you may have the same problem I described in http://xdaforums.com/showpost.php?p=34330841, or possibly both libsurfaceflinger.so and libsurfaceflinger_client.so are missing from /system/lib. The correct versions for 4.1.2(!) are dated 1 August 2008, 189772 bytes and 5272 bytes respectively. Be careful: a version mismatch or an incompatible version of libsurfaceflinger.so can crash Android (I had to re-flash ROM). Permissions must be 644.

Did you try vncs version 1.87?
[Android Apps and Games] rowntreerob:
same error as 'chairdan' on 4.2.2

CLI invocation on 4.1.2 was fine

upgraded rom to 4.2 (stock takju rom download at google rom site) and vncs broke with linker error mentioning symbol "

_ZN7android16ScreenshotClient6updateEv "

not something i can debug but the executable lists the following similar symbols, all undefined.... So , where are they? what shared lib?

readelf -aW vncs.apk

123: 00000000 0 FUNC GLOBAL DEFAULT UND _ZN7android16ScreenshotClientC1Ev
124: 00000000 0 FUNC GLOBAL DEFAULT UND _ZNK7android16ScreenshotClient9getPixelsEv
125: 00000000 0 FUNC GLOBAL DEFAULT UND _ZNK7android16ScreenshotClient8getWidthEv
126: 00000000 0 FUNC GLOBAL DEFAULT UND _ZNK7android16ScreenshotClient9getHeightEv
127: 00000000 0 FUNC GLOBAL DEFAULT UND _ZNK7android16ScreenshotClient9getFormatEv
128: 00000000 0 FUNC GLOBAL DEFAULT UND _ZN7android16ScreenshotClient6updateEv

i grabbed to .so file in the zip mentioned by 'rajah1' and could not determine whether all the '_ZN7android.*' symbols are there or not? i could not list symbols from this .so

rob@ lib$ nm -o libsurfaceflinger_client.so
nm: libsurfaceflinger_client.so: no symbols
[Android Apps and Games] rajah1:
Which flinger libs exist at /system/lib (if any)? Date and size? Which version of vncs? Did you try v1.87? The flinger requirement was removed from that vncs version, according to this post - and the _ZN7android16ScreenshotClient6updateEv linker problem is documented elsewhere as a flinger-related error.
[Android Apps and Games] rowntreerob:
i have the following libs in /system/lib....

shell@android:/ # ls -l /system/lib | grep fling
-rw-r--r-- root root 320912 2012-11-10 00:28 libaudioflinger.so
-rw-r--r-- root root 129472 2012-11-10 00:28 libpixelflinger.so
-rw-r--r-- root root 210260 2012-11-10 00:28 libsurfaceflinger.so
-rw-r--r-- root root 5252 2012-11-10 00:28 libsurfaceflinger_ddmconnection.so

i used the vncs CLI version from your link (post by OP on Aug 14) by renaming vncs.apk to 'vncs' and then pushing that exec to /data/local/tmp on the phone. it worked fine on 4.1.2.... until i upgraded to 4.2 , then it broke again.

thx 4 hints
[Android Apps and Games] rowntreerob:
any chance of uploading the source? someone with ndk can link it against 4.2 libs and then see whether it works.

thanks