From 9d9aa18768653571401423b4e21f9f4eeb4e87db Mon Sep 17 00:00:00 2001 From: darthpedroo Date: Tue, 30 Sep 2025 01:14:41 -0300 Subject: [PATCH] docs: improve README build and device setup instructions --- README.md | 46 ++++++++++++++++++++++++++++++---------------- 1 file changed, 30 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 606022f66..26886bf96 100644 --- a/README.md +++ b/README.md @@ -96,37 +96,51 @@ will only work on unix-based systems. #### Install Android Studio. -Debian: - -´´´bash -asdasd -´´´´ Arch: +```bash +yay -S android-studio +``` + #### Configuring Android Studio: -- Be sure to have NDK tools, version 28.2.13... You can search it on Languages & Frameworks > Android SDK. +- Be sure to have NDK tools, version 28.2.13676358. 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 - + ```bash + sudo pacman -S jdk21-openjdk + ``` + Set java version to jdk21-openjdk + Arch: + ```bash + sudo archlinux-java set 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] +1. **Enable Developer Options on your phone** + - Go to **Settings > About phone** + - Tap **Build number** 7 times until you see *"You are now a developer!"* -#### Install a device +2. **Enable USB debugging** + - Go to **Settings > Developer options** + - Turn on **USB debugging** + +3. **Connect your phone to the computer** + - Use a USB cable + - On your phone, accept the *Allow USB debugging?* prompt + +4. **Verify that your device is detected** + ```bash + cd ~/Android/Sdk/platform-tools + ./adb devices + +#### Install a device (emulator) 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