1.0.3 • Published 5 years ago

kairai v1.0.3

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

kairai

this is a replacement for minicap(screen sharing) and minitouch(touch event generate)

for screen sharing using hidden api android.view.Surface.screenshot/SurfaceControl.screenshot.

for touch event generate using hidden api InputManager to inject MotionEvent.

how to build

npm run-script build

will generate kairai.jar

how to run

adb push kairai.jar /sdcard/

screen sharing

export CLASSPATH=/sdcard/kairai.jar && exec app_process /sdcard com.lizhuo.huang.kairai.Screen

open a new terminal

adb forward tcp:1313 localabstract:kminicap

now you can open 127.0.0.1:1313 to view the screen real time.

touch event

export CLASSPATH=/sdcard/kairai.jar && exec app_process /sdcard com.lizhuo.huang.kairai.Touch

adb forward tcp:1111 localabstract:minitouch

nc localhost 1111

now you can generate touch event just like the minitouch check here for usage