This is a rather conceptual question than a line of code question.
I'm trying to proxy an android app in order to inspect its API calls, without having root access to the device.
I'm using mitmproxy, and I've managed to create a system wide proxy using this, but I'm quite clueless as to how can I filter the wanted requests from just the given app.
I can tell the bundle id of the app, but how can I target just this app's requests? With root, this can be easy - using iptables, but how can it be done without root?
This app can be third-party, so using heuristics based on domain or header can be a bit problematic since I don't control them. Also, I would actually prefer a solution style iptables, but without root.
Thanks!