Tell me more ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I have a single app on my device which I'd like to access the Internet via a SOCKS5 proxy server (while all other apps continue to access the Internet directly.)

I tried the app ProxyDroid which seems to allow setting a proxy on a per-app basis, but this app has some serious downsides and overheads, so I'd like to avoid it.

How can I set up, without a dedicated app such as ProxyDroid, all traffic from a specific app to go through the proxy?

From browsing a bit through the ProxyDroid source code, I imagine one option would be to modify the iptables directly from the terminal as root. What would be the command for that? As it seems to require some uid of the app, how would I find out that uid?

Also, it would be great if the answer can be constructed in a way that can be used via a DroidWall custom script.

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.