The easy route to getting a lot of oversight is installing some advanced stalkerware that is granted the ability to act as an accessibility service. This gives it very elevated privileges and makes it possible for it to hide itself.
Can check for Accessibility Services using Auditor.
It wouldnt resist a factory reset.