The “fix” you propose in this article is irresponsible and will prevent users of legitimate accessibility services from using applications. No developer should do this.
Instead, users should not give elevated permissions — whether that’s accessibility service, device administrator, or root — to applications they do not trust.
Please remove your suggested fix. You are actively harming users of low-vision and blind accessibility by suggesting that developers do this.