From 4ea031e2ff8f54fda58d281b6b2fb37aca7b2b49 Mon Sep 17 00:00:00 2001 From: darthpedroo Date: Mon, 29 Sep 2025 22:13:56 -0300 Subject: [PATCH] Added instalation structions of Android Studio and an emulator device to run the applictation --- README.md | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/README.md b/README.md index 03c3ca47d..606022f66 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,81 @@ download the external code. 3. You are **unable** to build this project on windows, as the custom Media3 build runs shell scripts that will only work on unix-based systems. +### Set up Android Studio + +#### Install Android Studio. + +Debian: + +´´´bash +asdasd +´´´´ +Arch: + +#### Configuring Android Studio: + +- Be sure to have NDK tools, version 28.2.13... You can search it on Languages & Frameworks > Android SDK. +- Install Java-21 +- Configurate it in gradle.properties: + - org.gradle.java.home=/usr/lib/jvm/java-21-openjdk + +- Run ./gradlew assembleDebug + + +#### Connecting to your Android Device + +You can connect your Mobile Phone through USB to run the app. + +[Explain more] + +#### Install a device + +To run the application without a physical Android device, you can use an Emulator. To install it you need to: + +Debian +```bash +``` + +Arch +```bash +yay -S android-sdk-platform-tools +yay -S android-emulator +``` + +Install a version of an Android Phone: + +```bash +cd ~/Android/Sdk/cmdline-tools/latest/bin +./sdkmanager --install "system-images;android-33;google_apis;x86_64" +``` + +Run the emulator + +```bash +cd ~/Android/Sdk/cmdline-tools/latest/bin +./avdmanager create avd -n auxio-avd -k "system-images;android-33;google_apis;x86_64" --device "pixel" +``` + +```bash +cd ~/Android/Sdk/cmdline-tools/latest/bin +./sdkmanager "emulator" +cd /home/porky/Android/Sdk/emulator +./emulator -avd auxio-avd -netdelay none -netspeed full +``` + +#### Install the app on the Android Phone + +```bash +./gradlew installDebug +``` + +#### Load music to Auxio + +```bash +cd ~/Android/Sdk/platform-tools +./adb push ~Music/ /sdcard/Music +``` + ## Contributing Auxio accepts most contributions as long as they follow the [Contribution Guidelines](/.github/CONTRIBUTING.md).