Genuinely curious, why do you need root access on your EDC phone? Personally I would stick with a throwaway for experimentation, so I'm curious about your motivation.
I see. I get this out of the box on iOS via Shortcuts & automations, it's a part of the base OS and honestly pretty powerful. I get it that iOS is not for everyone, but at the very least it's a proof and an incentive for Android to implement this as well.