Blacklisting apps
For full information see here:
https://developer.android.com/training/package-visibility/declaring
You'll need to declare android permissions, for example, the suggested way of doing this is by specifying your packages, e.g.
<queries>
<package android:name="com.abc.def"/>
</queries>
Or, declare all. That's not suggested
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/>
We also have a utility function blacklistRootingApps()
in order to detect apps that are used
for rooting an application
Configuration​
- Default
- Reporting
safeToRun(buildSafeToRunCheckList {
add { blacklistedAppCheck("com.blacklisted.package1", "com.blacklisted.package2") }
})
blacklistConfiguration {
+"com.abc.def"
+packageName
blacklistRootingApps()
}.error()