The documentation is so limited. A compilation of things I found on StackOverflow and don't want to have to search it up again.
setTimeout(function() { // avoid java.lang.ClassNotFoundException
Java.perform(function() {
// Root detection bypass example