Saturday, March 11, 2017

How to redirect complete outgoing phone's traffic to a proxy server?


How to redirect entire phone traffic (including all apps) to a proxy (with out rooting the phone)



We are developing a parental control app for Android, in that we have requirement to capture all out going traffic from Android phone for categorization. Is there a way to achieve this in Android with out rooting the phone.


Thanks, Gopi.



Answer



It sounds like you are describing a VPN (virtual private network). A VPN directs all traffic (whether http or other tcp/ip protocols) through a specific server, usually with the intent to encrypt traffic between the device and the VPN server.


However, encryption isn't necessary, and a VPN would have full control over routing, which means you could customize a VPN server to block specific requests. Or you could redirect requests to unsafe/undesirable websites to a 'block' page of your choosing.


Almost all android devices have VPN capabilities built-in. You should look into that technology. In order to force the user to go through the VPN, you will need an app that can be set as a device admin (a built-in, almost-root privilege that prevents the app from being removed) that would also set the VPN to be always on.


See this Android.SE question and answer for more details.


No comments:

Post a Comment

samsung galaxy s 2 - Cannot restore Kies backup after firmware upgrade

I backed up my Samsung Galaxy S2 on Kies before updating to Ice Cream Sandwich. After the upgrade I tried to restore, but the restore fails ...