Ok, so I can' t post in the development forum.
First of all, I migrated to 10.2 in the hope that would resolve my VPN issue. It didn't So I installed adb and captured the initial issue.
Logcat gave me an error on mtpd "Connect() Operation not permitted"
I chmodded mtpd and pptp (in advance) to 06755.
And that did it. pptp vpn now actually tries to connect to the server.
Code:
: Phone
D/Vpn ( 608): setting state=DISCONNECTED, reason=exit
I/Vpn ( 608): Switched from [Legacy VPN] to [Legacy VPN]
D/Vpn ( 608): setting state=IDLE, reason=prepare
I/Vpn ( 608): Switched from [Legacy VPN] to [Legacy VPN]
D/Vpn ( 608): setting state=IDLE, reason=prepare
D/Vpn ( 608): setting state=CONNECTING, reason=startLegacyVpn
V/LegacyVpnRunner( 608): Waiting
V/LegacyVpnRunner( 608): Executing
D/Vpn ( 608): setting state=CONNECTING, reason=execute
D/mtpd ( 6131): Waiting for control socket
D/mtpd ( 6131): Received 20 arguments
I/mtpd ( 6131): Using protocol pptp
I/mtpd ( 6131): Connecting to uk.pptpvpn.org port 1723 via rmnet0
I/mtpd ( 6131): Connection established (socket = 11)
D/mtpd ( 6131): Sending SCCRQ
D/mtpd ( 6131): Received SCCRP -> Sending OCRQ (local = 33089)
I/mtpd ( 6131): Tunnel established
D/mtpd ( 6131): Received OCRQ (remote = 32926)
I/mtpd ( 6131): Session established
I/mtpd ( 6131): Creating PPPoX socket
F/mtpd ( 6131): Socket() Address family not supported by protocol
I/LegacyVpnRunner( 608): Aborting
I/LegacyVpnRunner( 608): java.lang.IllegalStateException: mtpd is dead
I/LegacyVpnRunner( 608): at com.android.server.connectivity.Vpn$LegacyVpnRunner.execute(Vpn.java:855)
I/LegacyVpnRunner( 608): at com.android.server.connectivity.Vpn$LegacyVpnRunner.run(Vpn.java:734)
D/Vpn ( 608): setting state=DISCONNECTED, reason=exit
Unfortunately it still fails.
I used
http://www.pptpvpn.org/, which is free, to take my own server (and any possible configuration issue) out of the equation.
The error shown on my server:
Code:
pppd[6356]: Connect: ppp0 <--> /dev/pts/4
pppd[6356]: sent [LCP ConfReq id=0x1 <mru 1490> <asyncmap 0x0> <auth chap MS-v2> <magic 0x93957ce4> <pcomp> <accomp>]
pptpd[6355]: GRE: Bad checksum from pppd.
pptpd[6355]: CTRL: EOF or bad error reading ctrl packet length.
pptpd[6355]: CTRL: couldn't read packet header (exit)
pptpd[6355]: CTRL: CTRL read failed
pptpd[6355]: CTRL: Reaping child PPP[6356]
This is as far as my skills can bring me. I Googled a bit and found a post from a guy that made a kernel that supported VPN to resolve the exact same issue. Unfortunately this was a two year old post and not for our device.
I really do hope that someone can pick this up and fix it.