Thats a great read. I explored similar things with my rooted phone. Samsung galaxy m30s. Wrote something on it as well on what I did, may be you will also like this type of experimentation?
https://nimitbhardwaj.github.io/posts/hermes-agent-rooted-an...