DroidBot-GPT is a GPT-powered UI automator for Android. It can control an app automatically based on a natural language task description.
It is built upon DroidBot with ChatGPT-style APIs.
Make sure you have:
Python(both 2 and 3 are supported)JavaAndroid SDK- Added
platform_toolsdirectory in Android SDK toPATH
Then clone this repo and install with pip:
git clone https://github.com/honeynet/droidbot.git
cd droidbot/
pip install -e .If successfully installed, you should be able to execute droidbot -h.
-
Prepare:
- An app to use. Download the
.apkfile to your host machine. - A device or an emulator connected to your host machine via
adb.
- An app to use. Download the
-
Start DroidBot:
droidbot -a <path_to_apk> -o output_dir -task <your_task>That's it! The options are mostly the same as DroidBot except for the new
-taskoption, where you can specify any task you want DroidBot-GPT to complete. For example,- Create a contact named Yuanchun with phone number 1234567.
- Book a table for 4 people on Saterday.
- Send a message to OpenAI to open their AI.
- ...
Note that DroidBot-GPT is currently for research purpose only. It may perform unintended actions. Please use at your own risk.
Enjoy!