I tried this using an app and I am able to identify most apps and their network connections however there are certain apps listed as '?' so apparently it is not able to identify a package name I would like to know how I can get this information on command line using termux or any other emulator. I am magiskaly rooted on an Android 10 phone
also would like to get a list of apps that can modify contacts and then revoke modification of contacts from certain apps by command line
and on command line how do I force kill an app I mean I can use the hang -9 Signal ....but I am sure there must be a more gentle package-level way of force stopping an app title the equivalent of getting inside the app property on gui and clicking that force stop button
also delete the cache on command line
what I want to do is write a `batch` script that will overwrite certain app specific files that the app keeps resetting every time and then force stop and clear `cache` and restart the app