I have one app that "misbehaves" when on mobile data – ie. it takes quite big bites out of my battery. I don't want to cut it off from mobile data completely, though – as I need it from time to time and also want to get information on data incoming to it.
I know I could use Greenify and Tasker (see: Hibernate apps, but have them wake up periodically for a short time), but that approach is a bit heavy-handed: Each time when I bring the app to foreground, it populates the screen fresh as if I had just started it.
What I'd very much like is something along the lines of using Tasker to periodically cut off background data just for this app (note the approach to Automatically restrict apps background data using Tasker is different, as it disables background data for all apps which is not what I want).
Are there any options I'm not aware of – like some "system call" (aka "shell exec") I could perform from Tasker?
In case it's relevant: root available, also Magisk, Xposed, and of course Tasker.