On Dec 20 2011, 1:13 pm, Lysandus <[email protected]> wrote: > I have a couple questions aboutVpnService. > Is theVpnServiceadded in 4.0 only for creating a vpn connection for > your app, or does it make the vpn for all traffic on the device? If > it's all device traffic does that mean your app can analyze things > like what websites the user is visiting? > > Can it be used to just add a new vpn to the device and not have the > traffic go through your app? > > Thanks.
A VpnService implementation should receive all network traffic from the device, not just your application traffic. For this reason, there can only be ONE vpn active at a given time (either a custom impl using VpnService OR one of the stock android "legacy" VPNs). The ParcelFileDescriptor that you get in VpnService allows you to read/ write packets to/from the device. In theory you should be able to inspect these packets and analyze. As far as I know, custom VPN implementations using VpnService DO NOT show-up in the standard VPN configuration settings on the device...and you actually have to create the client UI code to activate your custom VPN as well. -Mike -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

