This is the Java implementation of https://github.com/imxuwang/libautomator.