自用的Android模拟点击程序
因为ADB不能直接输入Unicode,所以重写了输入法,通过broadcast
的方式将Unicode转化为Base64的字符串。如果想正常使用需安装ADBKeyBoard,然后切换输入法。
# 切换为Adb的输入法
adb shell ime set com.android.adbkeyboard/.AdbIME
# 切换为自带输入法(我的情况)
adb shell ime set com.sec.android.inputmethod/.SamsungKeypad
# 查看所有输入法
adb shell ime list -a
# mingyuan
python mingyuan.py
# yuandu
python yuandu.py