Set up your Android device
Wiki: Device Setup¶
The bot plays on an Android device it reaches over ADB. That's either an Android phone connected by USB or the Android emulator from Android Studio.
Recommended Settings¶
Whichever device you use, set it up like this:
- Orientation: Portrait
- Android Version: 14 or newer
The bot reads the screen at 720x1280. It sets the device to that while it runs, and puts back the device's own resolution when it stops, so you don't need to change it yourself. (Changing it makes Clash Royale reload, so set it on the device if you'd rather it didn't happen each time.)
Security Notice: Be careful about entering credentials into any device or emulator image. Only sign in with your Google account on devices and images from trusted sources.
Option 1: An Android Phone¶
A real phone is the simplest option: it runs the game natively and doesn't need a powerful computer.
Install Clash Royale on it (see Next Steps below), then connect it to the bot by USB or over Wi-Fi: see Connecting a Phone.
Option 2: The Android Studio Emulator¶
The emulator needs hardware virtualization. On Linux, check that /dev/kvm exists. On Windows, check that Virtualization says Enabled on the Performance tab of Task Manager, and the Android Studio installer sets up the rest. If virtualization is off, enable it (VT-x or AMD-V) in your BIOS.
- Install Android Studio.
- Create a Virtual Device: Open
Tools > Device Managerand create a phone with a Google Play system image for x86_64, Android 14 or newer. Clash Royale is an ARM app, and these images can run ARM apps. - Set the Display: In the device's advanced settings, set the resolution to 720x1280, so the bot doesn't need to change it each time (which makes the game reload), and give it at least 4 CPU cores and 4 GB of RAM.
- Start the Device from the Device Manager. The first emulator is usually listed by
clashroyalebuildabot adb devicesasemulator-5554, which is the bot's default Device Serial.
Next Steps with Clash Royale¶
- Install Clash Royale from the Google Play Store on the device.
- Complete the Tutorial: Play through the initial tutorial to familiarize yourself with the game mechanics.
- Language Settings: Set the game language to English via the in-game settings menu.
- Log in to Your Supercell Account to sync your game progress.
If your device doesn't work with the bot, please create an issue on this repo.