Google has added a flag to Android 16 that allows app developers to block malware that spies through accessibility features.