Add accessibility keywords to anti-uninstall
The security and privacy page occasionally suggests removing unnecessary accessibility services. So with one click, I could disable "General Features" and anti-uninstall is useless. Since blocking the suggestion itself probably isn't possible, maybe you could add a way to block the whole security page, just like the app blocks uninstalling and accessibility services? It's a major settings page, so if you decide to implement this as a feature, it needs to be another button in the anti-uninstall setup and should only be used by choice as a last resort.
Nevermind, I just realized that the anti-uninstall feature just looks for strings in settings... If you added the accessibility service names like General Features to the list of tags, it should solve the issue. No extra setting in the setup needed if that's the case
that would work as well but prevent users from accessing the accessibility settings entirely and wouldn't allow them to change accessibility settings for other apps as well.
I read/feel(i forgot) somewhere that setting the isAccessibilityTool to true in metadata should remove those security alerts, haven't tried it tho. I'll try it out soon.
I added this flag and tried it out. The warnings are gone! The app is now impossible to disable :)
great! soon, I'll add it in the repo aswell.
I just discovered this also and it does defeat the anti uninstall.