Skip to content

Instantly share code, notes, and snippets.

@dllewellyn
Created May 2, 2021 07:12
Show Gist options
  • Save dllewellyn/9b2bae9e4432b8ef13f552cdb2201d1d to your computer and use it in GitHub Desktop.
Save dllewellyn/9b2bae9e4432b8ef13f552cdb2201d1d to your computer and use it in GitHub Desktop.
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