Skip to content

Control your Android device via python scripts.

License

Notifications You must be signed in to change notification settings

magic-seed/PyAndroidControl

 
 

Repository files navigation

PyAndroidControl

Control your Android device via python scripts.

Architecture

Usage

1. Install the App

Install PyAndroidControl App, and make sure the App has Root Permission.

2. Write your Logics

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

3. Control your Device

License

MIT

About

Control your Android device via python scripts.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Kotlin 89.9%
  • Python 10.1%