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.