Android Intents

Ended up creating the following custom keyword to send intents to the device.

@Keyword
def SendIntent(String intent){
try{
ProcessBuilder pb = new ProcessBuilder("adb", "-s", MobileDriverFactory.deviceId, "shell", "am", "broadcast", "-a", intent)
Process pc = pb.start()
pc.waitFor()
} catch(Exception e) {
e.printStackTrace()
}
}