Skip to content

Android application written in Kotlin with the sole purpose of completely automating a run of Uma Musume Pretty Derby.

License

Notifications You must be signed in to change notification settings

steve1316/uma-android-automation

Repository files navigation

Uma Musume Automation For Android

GitHub commit activity GitHub last commit GitHub issues GitHub pull requests GitHub

Discord here: https://discord.gg/5Yv4kqjAbm

Data last updated November 10, 2021 (Tosen Jordan update)

This Android application written in Kotlin is designed to fully automate a run of Uma Musume Pretty Derby by offering a set of options to customize what event rewards the bot should prioritise, stats to focus on, etc. Building on top of the work done for Uma Android Training Helper, this aims to solve the issue of spending too much hands-on time with completing a run for Uma Musume Pretty Derby.

Preview.07-13-2021.mp4

Disclaimer

Any usage of this tool is at your own risk. No one will be responsible for anything that happens to you or your own account except for yourself.

Requirements

  • Android Device or Emulator (Nougat 7.0+)
    • Tablet needs to be a minimum width of 1600 pixels (like the Galaxy Tab S7 with its 2650x1600 pixel resolution).
    • Tested emulator was Bluestacks 5. Make sure to have the device be in Portrait Mode BEFORE starting the bot as emulators do not have a way to tell the bot that it rotated.

Features

  • Able to complete a run from start/midway to its completion.
  • Settings to customize preferences and stat prioritization for Training Events.
  • Handles races, both via skipping and running the race manually.
  • Runs extra races to farm fans when enabled in the settings.

Instructions

  1. Download the .apk file from the Releases section on the right and install it on your Android device. If you want to build the .apk yourself, do the following:
    1. Download and extract the project repository.
    2. Go to https://opencv.org/releases/ and download OpenCV 4.5.1 (make sure to download the Android version of OpenCV) and extract it.
    3. Create a new folder inside the root of the project repository named opencv and copy the extracted files in /OpenCV-android-sdk/sdk/ from Step 2 into it.
    4. Open the project repository in Android Studio and you can now build and run on your Android Device or build your own .apk file.
    5. You can set universalApk to true in the build.gradle for the application to build a one-for-all .apk file or adjust the include 'arm64-v8a' to customize which ABI to build the .apk file for.
  2. Once you have it running, fill out the required section marked with * in the Settings page of the application. That would be the selection of the Character under the Training Event section.
  3. Now go back to the Home page after you have finished customizing the settings. The settings you have selected will be shown to you in the text box below the Start button.
  4. Now tap on the Start button. If this is the first time, it will ask you to give the application Overlay permission and starting up the Accessibility service.
  5. Once it is enabled, tapping on the Start button again will display an overlay button that you can move around the screen.
  6. Navigate yourself to the screen below that shows available options like Rest, Train, Buy Skills, Races, etc.

main screen

  1. Press the overlay button to start the automation process.

Technologies Used

  1. jpn.traineddata from UmaUmaCruise by @amate
  2. MediaProjection - Used to obtain full screenshots
  3. AccessibilityService - Used to dispatch gestures like tapping and scrolling
  4. OpenCV Android 4.5.1 - Used to template match
  5. Tesseract4Android 2.1.1 - For performing OCR on the screen
  6. string-similarity 1.0.0 - For comparing string similarities during text detection
  7. AppUpdater 2.7 - For automatically checking and notifying the user for new app updates

About

Android application written in Kotlin with the sole purpose of completely automating a run of Uma Musume Pretty Derby.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages