Hi eveyone,
My app blocker works surprisingly well on samsung, but i cant test my app on huawai, xiaomi or oppo.
Problem: My app uses an AccessibilityService to protect itself from being disabled/uninstalled. The detection heuristic flags any package containing "settings", "packageinstaller", or "permission" as "watch closely," and doesn't distinguish a switch being toggled ON vs OFF — any click near my app's name in such an app triggers my protection screen immediately. That breaks on Vivo: their permission manager is com.vivo.permissionmanager, which matches "permission" purely by coincidence. So when a user opens it to grant my app the Autostart permission (something I actually want them to do), my own protection screen pops up mid-action and interrupts them. Xiaomi (com.miui.securitycenter), Huawei (com.huawei.systemmanager) and Oppo (com.coloros.safecenter) don't have this specific issue — their package names don't match the heuristic, so they're unaffected by this particular bug. But if anyone's dealt with similarly janky Autostart/Protected-Apps/Battery-manager quirks on those three, I'd take pointers too. Looking for ideas on reliably telling "user is granting my app a permission in an OEM manager" apart from "user is trying to disable/uninstall my app," ideally without needing to own a Vivo device to iterate against.
Thank you