Skip to content

根据uiautomator框架实现类似按键精灵,触动精灵的程序,支持lua语言,需root

Notifications You must be signed in to change notification settings

DongWenHu/GodHand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GodHand

根据uiautomator框架实现类似按键精灵,触动精灵的程序,支持lua语言, 需root
只支持android4.4 以上版本.

使用方法

1、编译程序,生成一个主apk(app\build\outputs\apk\app-debug.apk)和一个单元测试apk(app\build\outputs\apk\app-debug-androidTest-unaligned.apk).
2、安装上面两个程序.
3、写入指定的文件运行名到 "/mnt/sdcard/GodHand/tmp/run_file", 不写默认为main.lua.
4、运行adb shell am instrument -w -r -e debug false -e class com.rzx.godhandmator.AutomatorTest com.rzx.godhandmator.test/android.support.test.runner.AndroidJUnitRunner.


Example

  require 'import'
  import 'com.rzx.godhandmator.AutomatorApi'
  
  AutomatorApi:toast("任务执行开始")
  AutomatorApi:mSleep(2000)
  AutomatorApi:swipe(719,500,100,500,50)
  AutomatorApi:toast("任务执行结束")
  AutomatorApi:mSleep(2000)

日志

出错日志查看/mnt/sdcard/GodHand/log/system.log

About

根据uiautomator框架实现类似按键精灵,触动精灵的程序,支持lua语言,需root

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published