Your Remote ADB controller. Control your Android device via python scripts.
Install PyAndroidControl App, and make sure the App has Root Permission.
Change the simple-control-server/logics.py to what ever you want.
def get_commands(token, img_file):
""" analyze the screenshot and send
commands back to android device """
img_file.save("tmp.png")
print(token)
# your adb shell commands
cmds = [
'input text "111"',
'input text "222"',
'input text "333"',
]
return cmds
Mock adb with PyAndroidControl, check remote-adb-control.
-
- Then use the remote-adb-control/control-client/remote_adb_api.py to control your device like using ADB.
MIT