My device is rooted with magisk, and I prefer cli options over apps.
My device have android version 10 with stock android.
All the firewall apps connect to a vpn (which i don't trust at all) to block applications from using mobile data. That is why I'm looking for better options, I'm thinking of using iptables
but I don't know how to block specific apps with that.
EDIT: I recently switched to Lineage OS 17.1, it does have options for disabling mobile data/wifi for individual apps.
owner
module withiptables
to control traffic i.e.iptables -m owner --uid-owner ...
. That's what AFWall+ does. For details: How to view network traffic requested by a specific app? – Irfan Latif Apr 17 '20 at 05:44