Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ios7 support #2

Open
chadobado opened this issue Jan 21, 2014 · 115 comments
Open

ios7 support #2

chadobado opened this issue Jan 21, 2014 · 115 comments

Comments

@chadobado
Copy link

Found this here:

faywong#2

This repo appears to have been updated more recently (12 days ago), has ios7 support been added?

Many thanks

@niknah
Copy link
Owner

niknah commented Jan 21, 2014

Where?
Is that my repo?

Anyways, I've updated and added a new feature to make the screen smaller
things faster.

But it probably still won't work on iOS 7. I don't have an iOS 7 device.
I only have iPod 4th gens which can't be upgraded to iOS 7.
What's happening for you in iOS7? Crashing or fuzzy screen?

If you have time I can send you some files to try out to see what's wrong
with it.

On 21 January 2014 11:46, chadobado [email protected] wrote:

Found this here:

faywong#2 faywong#2

This repo appears to have been updated more recently (12 days ago), has
ios7 support been added?

Many thanks


Reply to this email directly or view it on GitHubhttps://github.com//issues/2
.

@chadobado
Copy link
Author

Thanks for getting back to me @niknah

iOS7 am seeing the same behavior reported by others - after accepting the connection request I either see a hard crash followed by a reboot (most frequent) or seeing the fuzzy screen. Am on 7.0.4 btw.

Am happy to spend a some time on it to help you troubleshoot if I can.

@niknah
Copy link
Owner

niknah commented Jan 21, 2014

Which version are you using?

Can you try this one...
https://github.com/niknah/veency/blob/master/veency_0.9.3379_iphoneos-arm.deb

Click "raw" to download it.

And then get...
http://s000.tinyupload.com/index.php?file_id=81349524257954959603

And copy the file to /Library/MobileSubstrate/DynamicLibraries/Veency.dylib
Then restart the device.
And try the VNC again. This version has the screen disabled.
Check if you can use the mouse(a mouse cursor should appear if it's enabled in the settings)

It'll probably be a whole lot of restarting of the device. And back everything up in case it gets bricked.

@niknah
Copy link
Owner

niknah commented Jan 21, 2014

And also with that last version. There should be a log file created in /tmp/veency.log
Can you send it to me.

@chadobado
Copy link
Author

Hey @niknah, just to confirm I did the following:

  • downloaded the deb
  • pushed it to device via sftp/openssh
  • ssh'd into device
  • attempted to install with dpkg -i veency_0.9.3379_iphoneos-arm.deb
  • install failed without simulatetouch which I then installed via cydia
  • successfully installed dpkg -i veency_0.9.3379_iphoneos-arm.deb (downgrading veency from 0.9.3381 to 0.9.3379-5)
  • downloaded the dylib
  • don't see /Library/MobileSubstrate/DynamicLibraries on the device, should I create it?

Thanks

@chadobado
Copy link
Author

My mistake, am fixing now

@chadobado
Copy link
Author

Here you go @niknah

http://s000.tinyupload.com/?file_id=87200436655828322994

Didn't seem to have a lot of useful debugging info though.

I don't see a cursor on the device, where can that be enabled in the settings?

Thanks

@niknah
Copy link
Owner

niknah commented Jan 21, 2014

"Show cursor" under veency at the bottom of the settings.

@chadobado
Copy link
Author

Looks like I may have logged in via 'view mode'... trying to connect with my vnc client normally crashes the springboard and boots into safe mode

@niknah
Copy link
Owner

niknah commented Jan 21, 2014

Is it crashing in 'view mode' or not?
Can you see a mouse cursor?

@chadobado
Copy link
Author

Seems intermittent.. after restarting I opened in view mode and it did not crash - no cursor visible. Disconnected and then logged in normally and it did not crash but still, no cursor visible.

Here's the updated log if helpful:

http://s000.tinyupload.com/?file_id=82769593367282288192

@niknah
Copy link
Owner

niknah commented Jan 21, 2014

How are you restarting? You have to turn the device off and back on. Or type "reboot" on the command line.
Or else there'll be left over veency servers in the background

@niknah
Copy link
Owner

niknah commented Jan 21, 2014

Actually, without the mouse cursor can you randomly click on the black screen with the mouse and see if anything gets clicked on the device.

@radj
Copy link

radj commented Jan 21, 2014

@niknah Slightly off topic: how do I check if there are veency servers running in the background? I ran pstree and couldn't find any VNC named process. I'm used to this specific Android app having libvncserver.so running in the background list.

@chadobado
Copy link
Author

That last session was after hitting the "restart" button on the safe mode notification. Just turned the device off/on and it did not crash with a normal vnc login but no mouse cursor. Also clicking appears to have no effect.

Let me know if you need an updated log for this session.

@niknah
Copy link
Owner

niknah commented Jan 21, 2014

Yeah, you can't see the veency servers. They're running inside MobileSubstrate which is started with the device. I don't know how to restart MobileSubstrate without restarting the device. But I know that restarting springboard will get you lots of veency servers in the background.

@niknah
Copy link
Owner

niknah commented Jan 21, 2014

Does the right mouse button bring you back to the home screen?

Anyways, here's another one with mouse logging to see why the mouse is not happening...
http://s000.tinyupload.com/index.php?file_id=07572125336808978343

Copy the file to the same place and turn the device off and on.

Where did you get up to with your efforts radj? Did you discover anything about where it's not working in iOS7?

@chadobado
Copy link
Author

Also saw some (guessing unrelated) errors in the cydia.log
Jan 20 18:49:46 Chados-iPhone-4 MobileCydia[370] <Error>: CGContextFillRects: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. Jan 20 18:49:46 Chados-iPhone-4 MobileCydia[370] <Error>: CGContextSetBlendMode: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.

@niknah
Copy link
Owner

niknah commented Jan 21, 2014

Looks unrelated. Cydia is the package manager used to download, install, remove packages.

@chadobado
Copy link
Author

Tried ctrl-click (which is right click on osx afaik) and has no effect. Also tried all other combinations (option, alt, command, etc) with no effect.

Installed the update and rebooted with "reboot" from the command line, able to log in with no crash but clicking (and ctrl-clicking) has no effect. Btw, aside from the popup to accept or reject the incoming vnc connection I expectedly don't see any further confirmation of anything on the device.

Here's the log (looks the same as prior):

http://s000.tinyupload.com/index.php?file_id=90097425943297451049

@niknah
Copy link
Owner

niknah commented Jan 21, 2014

Sorry uploaded the wrong file. This one should be 31k. More logging here...

http://s000.tinyupload.com/index.php?file_id=68015753553645715880

@chadobado
Copy link
Author

Not a problem, installed and same result.

Here's the log and can see some pointer references:

http://s000.tinyupload.com/?file_id=02898413350925125541

@niknah
Copy link
Owner

niknah commented Jan 21, 2014

Did you connect up to it with the viewer?

@chadobado
Copy link
Author

I tried both

@chadobado
Copy link
Author

3 attempts total: 1 session normally, 1 view only, and another normally

@niknah
Copy link
Owner

niknah commented Jan 21, 2014

Ok, another one here. More logging...

http://s000.tinyupload.com/index.php?file_id=20802322539404287518

Looks like the mouse is happening but it's not getting the screen size to see where the mouse is.

@niknah
Copy link
Owner

niknah commented Jan 21, 2014

And that last one may crash cause I changed it to use the old screen grabbing method which wasn't being used before.

@chadobado
Copy link
Author

Didn't seem to crash, behaved as did the previous - heres the log:

http://s000.tinyupload.com/?file_id=60426270445059279479

@niknah
Copy link
Owner

niknah commented Jan 21, 2014

Is there a password setup in the VNC?

@chadobado
Copy link
Author

Nope, no password - also edited previous comment with correct link (not sure what happened):

http://s000.tinyupload.com/?file_id=60426270445059279479

@chadobado
Copy link
Author

@niknah Got it installed, vpn in works (again no accept/reject notification since using password), clicking works, do see the screen although it takes 3-5 seconds to update and is somewhat corrupted while updating, ctrl-click (and other variations dont work), keyboard works (tried in notes app), sliding right/left gesture works

Also, speaking of latency... is this variability common?

64 bytes from 192.168.1.70: icmp_seq=0 ttl=64 time=98.821 ms 64 bytes from 192.168.1.70: icmp_seq=1 ttl=64 time=17.238 ms 64 bytes from 192.168.1.70: icmp_seq=2 ttl=64 time=39.877 ms 64 bytes from 192.168.1.70: icmp_seq=3 ttl=64 time=64.741 ms 64 bytes from 192.168.1.70: icmp_seq=4 ttl=64 time=88.496 ms 64 bytes from 192.168.1.70: icmp_seq=5 ttl=64 time=109.254 ms 64 bytes from 192.168.1.70: icmp_seq=6 ttl=64 time=10.680 ms 64 bytes from 192.168.1.70: icmp_seq=7 ttl=64 time=52.933 ms 64 bytes from 192.168.1.70: icmp_seq=8 ttl=64 time=79.869 ms 64 bytes from 192.168.1.70: icmp_seq=9 ttl=64 time=100.895 ms 64 bytes from 192.168.1.70: icmp_seq=10 ttl=64 time=25.373 ms 64 bytes from 192.168.1.70: icmp_seq=11 ttl=64 time=43.999 ms 64 bytes from 192.168.1.70: icmp_seq=12 ttl=64 time=65.788 ms 64 bytes from 192.168.1.70: icmp_seq=13 ttl=64 time=91.403 ms 64 bytes from 192.168.1.70: icmp_seq=14 ttl=64 time=113.899 ms

@chadobado
Copy link
Author

@niknah also receiving some occasional terminations:

chados-iphone-4

@niknah
Copy link
Owner

niknah commented Jan 24, 2014

Yeah, wireless is pretty random. Lol, we have the same ip address...

PING 192.168.1.70 (192.168.1.70) 56(84) bytes of data.
64 bytes from 192.168.1.70: icmp_req=1 ttl=64 time=44.8 ms
64 bytes from 192.168.1.70: icmp_req=2 ttl=64 time=73.3 ms
64 bytes from 192.168.1.70: icmp_req=3 ttl=64 time=91.5 ms
64 bytes from 192.168.1.70: icmp_req=4 ttl=64 time=219 ms
64 bytes from 192.168.1.70: icmp_req=5 ttl=64 time=142 ms
64 bytes from 192.168.1.70: icmp_req=6 ttl=64 time=62.3 ms
64 bytes from 192.168.1.70: icmp_req=7 ttl=64 time=80.3 ms
64 bytes from 192.168.1.70: icmp_req=8 ttl=64 time=210 ms
64 bytes from 192.168.1.70: icmp_req=9 ttl=64 time=131 ms
64 bytes from 192.168.1.70: icmp_req=10 ttl=64 time=48.7 ms
64 bytes from 192.168.1.70: icmp_req=11 ttl=64 time=70.1 ms
64 bytes from 192.168.1.70: icmp_req=12 ttl=64 time=200 ms
64 bytes from 192.168.1.70: icmp_req=13 ttl=64 time=121 ms
64 bytes from 192.168.1.70: icmp_req=14 ttl=64 time=40.3 ms
64 bytes from 192.168.1.70: icmp_req=15 ttl=64 time=58.5 ms
64 bytes from 192.168.1.70: icmp_req=16 ttl=64 time=187 ms
64 bytes from 192.168.1.70: icmp_req=17 ttl=64 time=105 ms
64 bytes from 192.168.1.70: icmp_req=18 ttl=64 time=29.7 ms

VNC is just slow, of all the things I've tried. microsoft rdp, teamviewer, etc. VNC is the slowest.
I've added an option in the settings where you can divide the screen size. Change this to "3" then restart for a smaller screen and faster control.

Not sure how chicken vnc works. But try selecting the encoding to "tight" or "best"

I didn't do anything to the keyboard, good to hear that it works.

Also, which version are you trying. The last link to the .deb or the one before that?

This one has changes to the right/middle mouse button...
http://s000.tinyupload.com/index.php?file_id=08301476606358259671

This one has no changes to the right/middle mouse button code...
http://s000.tinyupload.com/index.php?file_id=09897333316188248608

@niknah
Copy link
Owner

niknah commented Jan 24, 2014

Here's something else.

realvnc client is free now, this is true for iOS too, ...

RealVNC's VNC Viewer Drops From $9.99 To Free (Forever) In Google Play
http://www.androidpolice.com/2014/01/22/realvncs-vnc-viewer-drops-from-9-99-to-free-forever-in-google-play/

@chadobado
Copy link
Author

Was using this one:

http://s000.tinyupload.com/index.php?file_id=08301476606358259671

Also springboard crashes pretty frequently - whenever I open certain apps for example.

Am waiting for it to reboot now and will try to change the setting. Also Chicken doesn't appear to have those settings, I'm downloading realVNC viewer for osx now.

@chadobado
Copy link
Author

@niknah RealVNC works and allows me to set color depth which definitely speeds things up. Some strange results with the new "divide screen size by" settings.

Here's /2:

vnc-divide-2

And /3 (upper section, although distorted, is what was on the device):

vnc-divide-3

@chadobado
Copy link
Author

@niknah Also looks like ctrl-click does trigger the menu button in RealVNC... perhaps an issue w/ chicken?

@niknah
Copy link
Owner

niknah commented Jan 24, 2014

Looks like you didn't restart it after changing the divide by screen.

Ok. How is everything? Does realvnc work for everything?

@chadobado
Copy link
Author

It's still crashing pretty hard whenever I open vnc onto a non-native app. Instagram for example works fine until I open VNC and then it crashes on attempting to load content (images). In the place of content it shows solid black on real vnc before it crashes btw.

@niknah
Copy link
Owner

niknah commented Jan 24, 2014

Here's one where I've forced it to use the same screen capture functions as iOS6...
http://s000.tinyupload.com/index.php?file_id=65018692891308565235

@chadobado
Copy link
Author

Seems to be much more stable.. still shows black in the place of content but when I scroll it partially reveals the content on the vnc window while scrolling. Doesn't crash however.

Would providing a log help or do you think this is idiosyncratic for this specific app

@niknah
Copy link
Owner

niknah commented Jan 24, 2014

Go to settings and click "skip black..." turn it on.

Then see if it still shows those black screens.

And do the mouse buttons work? The middle should lock the screen. The right button should get you back to the home screen. Don't what these are on a mac.

@prhoads
Copy link

prhoads commented Jan 24, 2014

tried 3379-11 and 3379-17, image looks good, left click works as touch, but no right click as home or keyboard working. How did you get keyboard to work?

@prhoads
Copy link

prhoads commented Jan 24, 2014

Sorry, I'm on iphone 5, ios 7.0.4 Evasion

@niknah
Copy link
Owner

niknah commented Jan 24, 2014

I have no idea about the keyboard! I didn't change anything with the keyboard! Maybe other things stopped crashing and it let the keyboard work.

If the keyboard is working, maybe there is a way to get the home button working. Looks like there is a home button on the bluetooth keyboards. Someone can connect an apple bluetooth keyboard up to say a linux computer and look at the data being sent.

@chadobado
Copy link
Author

Hey @niknah @prhoads my apologies I didn't realize the physical keyboard was actually a supported feature (never used veency prior to this) - I was commenting on the soft-key keyboard. I wasn't able to use the physical keyboard so it likely needs additional work.

Home button (ctrl-click) works for me on real VNC but not Chicken.

Clicking the assisted soft-touch button (as shown here: http://www.homebuttonfix.com/2012/03/apple-home-button-fix.html) does not trigger the sub-menu so you can't use it to navigate "home"

@prhoads
Copy link

prhoads commented Jan 24, 2014

OK, got it. @niknah any thoughts on why keyboard is not working yet? I thought keyboard support was built in to ios (bluetooth keyboards work perfectly)

@niknah
Copy link
Owner

niknah commented Jan 24, 2014

The keyboard events were being sent to the GSSendEvent function which isn't working anymore in iOS7. It was in iOS6. There is a IOHIDEventCreateKeyboardEvent function. But I don't know what to put in it or where to send the event afterwards.
The bluetooth keyboard sends the data via bluetooth. The VNC keyboard has to send the data via internal undocumented methods via software. So they're different.

Yes, the assisted soft touch doesn't work for me either.

@prhoads
Copy link

prhoads commented Jan 24, 2014

Hmm, good info, thanks. What was the GSSendEvent used for in ios6 (officially I mean, other than homebrew)? Was there an officially supported app that used this call?

@niknah
Copy link
Owner

niknah commented Jan 24, 2014

It's something from the private framework GraphicsServices I think, not documented. One of those things that if Apple spotted you using, your app could be taken off the appstore.

http://stackoverflow.com/questions/19093619/simulating-system-wide-touches-in-ios-7
http://stackoverflow.com/questions/19471572/inject-system-wide-touch-events-on-ios7

You may want to ask iolate whom did the SimulateTouch which is used here for the mouse for iOS7. I don't have an iOS7 device, can't do much.

@prhoads
Copy link

prhoads commented Jan 26, 2014

@niknah: I have been corresponding with iolate this weekend, he sent me an email just now that he has just uploaded to big boss "SimulateKeyboard" not sure if it is 100% complete/bug free yet (he just started on it after I emailed him a few days ago) but can you give it a try in veency? I'll stay tuned to test whatever you want on my iphone

@niknah
Copy link
Owner

niknah commented Jan 26, 2014

Thanks.
The link?

Here's an updated one which changes the "skip black..." option to a number. I've found 8000 works well for camera, opengl, apps. But you can't see the keyboard, so you'll need a lower number to see the keyboard but more black bits will appear on screen. But it probably depends on the speed of the device too. If you have no problems with black screens just set it to 0 to turn it off. The number is the number of microseconds delay before we check the image for updating.

http://s000.tinyupload.com/index.php?file_id=94899936521349280512

@prhoads
Copy link

prhoads commented Jan 26, 2014

@niknah: Email me at [email protected] and I can send you the deb file ahead of big boss release

@Techfire
Copy link

@niknah, I literally just signed up to Github for the sole purpose of thanking you for putting this together. So, yea. Thanks so much ;)

@prhoads
Copy link

prhoads commented Jan 27, 2014

Niknah and others: Saurik has now updated Veency for ios7 support. Full control is working including keyboard, although I have experienced some stability issues and screen refresh speed is slow. Also, can not show mouse cursor on the iphone screen. I still think the work Niknah is doing adds much needed performance options to Veency and I hope we can continue

@niknah
Copy link
Owner

niknah commented Jan 28, 2014

Great! I don't have all the stuff needed to compile iOS7 things. But here is the diff to apply to the one in saurik's version.

http://pastie.org/8674111

@radj
Copy link

radj commented Jan 28, 2014

Sorry guys, went on vacation for 3 days.

Can confirm @prhoads' comment. Veency update in Cydia fixed iOS 7 issues including keyboard and right click. Will try to integrate @niknah's diff with the newest changes on Saurik's Veency repo and get back to y'all in a few hours.

@radj
Copy link

radj commented Jan 29, 2014

@dony71 Good news. I installed Veency 0.9.3401 (latest in Cydia now, tons of code update based on Saurik's git repo) on iPad Air and iPhone 5s which are both 64-bit and everything works fine: keyboard, home, and screen.

@BurnQc
Copy link

BurnQc commented Jul 2, 2014

Any update for ios 7.1.1 ? As soon as I click, It reboot in safe mode ...

@prhoads
Copy link

prhoads commented Sep 29, 2014

@niknah Any chance of a tweak to Veency to allow it to adjust for screen rotation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants