Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,784,877 Members 50,944 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Automatically connect to VPN on Device Startup

Tip us?
 
evilmonkey1987
Old
#1  
Senior Member - OP
Thanks Meter 44
Posts: 177
Join Date: Nov 2007
Location: Toronto, Ontario
Question [Q] Automatically connect to VPN on Device Startup

Hello XDA,

I have an android device: it's a stick connected to my TV, running android 4.1 rooted. The stick is an MK808B, if that means anything to anyone here. The stick is connected to my TV's USB so that when I turn the TV on, the stick boots and when I turn the TV off, it shuts down completely.

I am looking for something that automatically connect the stick to VPN when I boot it. I would preferably use VPN over L2DP, although I'll take PPTP if there's no other option. I can't use openVPN because my ROM's kernel doesn't have TUN. There are two ways to approach this: one way is to connect it on boot, another way is to connect to VPN when the stick connects to a wireless network because my stick is stationary and always connects to the same wi-fi network.

Any ideas on how to get this done? Thanks all!
Phone:
History: Motorola V220 -> Motorola RAZR -> HTC Wizard (Hello XDA!) -> HTC Touch -> Blackberry Curve 8330 -> Samsung Galaxy S III SGH-I747M
Current: Google Nexus 5 (stock: used in a corporate environment)

Tablet:
History: Viewsonic G-Tablet -> Asus EEE Pad Transformer (it's making a thief in Antwerp, Belgium very happy right now)
Current: Google Nexus 10 (stock: used in a corporate environment)

Other people's devices I look after:
HTC One X (stock)
Google Nexus 7 (stock)
 
evilmonkey1987
Old
#2  
Senior Member - OP
Thanks Meter 44
Posts: 177
Join Date: Nov 2007
Location: Toronto, Ontario
Sorry for bumping, but does anyone have any ideas?
Phone:
History: Motorola V220 -> Motorola RAZR -> HTC Wizard (Hello XDA!) -> HTC Touch -> Blackberry Curve 8330 -> Samsung Galaxy S III SGH-I747M
Current: Google Nexus 5 (stock: used in a corporate environment)

Tablet:
History: Viewsonic G-Tablet -> Asus EEE Pad Transformer (it's making a thief in Antwerp, Belgium very happy right now)
Current: Google Nexus 10 (stock: used in a corporate environment)

Other people's devices I look after:
HTC One X (stock)
Google Nexus 7 (stock)
Tags
autoconnect, jellybean, vpn
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes