Accessibility services allowlisting
Guardsquare recommended technique
| Technique summary | |
| Technique | Accessibility services allowlisting |
| Against | Malicious accessibility services |
| Limitations | None |
| Side effects | Accessibility services that do not belong to the allowlist will not work |
| Recommendations | Recommended for use combined with other techniques |
Simple allowlisting
A simple strategy for application developers to detect potentially malicious applications present on the device can be to list all applications that have enabled accessibility services and check them against a predefined list.
The code in the snippet below will return true if apps that are not in the allowlist are found to have enabled accessibility services:
Extensions
- Cross-checking against device admin list
- Cross-checking against side-loaded list
- Cross-checking against non-system list
See also:
Guardsquare
Connect with the author
Table of contents


