Safe to run
Comment on page

Blacklisting applications


You'll need to declare android permissions, for example, the suggested way of doing this is by specifying your packages
For full information see here:
Example of allowing permission for a single app:
<package android:name=""/>
Or allowing all applications:
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/>

The check

This check is intended to fail if the blacklisted applications are on the device - use this if there is a particular package that you know is dangerous to your application and is present on the phone - for example, some application is known to abuse features on the device to record your screen as you enter sensitive information.
{ blacklistedAppCheck("com.blacklisted.package1", "com.blacklisted.package2") }