Created
May 2, 2021 07:12
-
-
Save dllewellyn/9b2bae9e4432b8ef13f552cdb2201d1d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SafeToRun.init( | |
configure { | |
// Root beer (detect root) | |
rootDetection { | |
tolerateRoot = false | |
tolerateBusyBox = true | |
}.error() | |
// Black list certain apps | |
blacklistConfiguration { | |
+"com.abc.def" | |
+"com.google.earth" | |
}.error() | |
verifySignatureConfig("cSP1O3JN/8+Ag14WAOeOEnwAnpY=") | |
.error() | |
// OS Blacklist version | |
osDetectionCheck( | |
conditionalBuilder { | |
with(minOsVersion(22)) | |
and(notManufacturer("Abc")) | |
} | |
).warn() | |
debugCheck().warn() | |
installOriginCheckWithDefaults().error() | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment