robinsr on android, but without termux
Go to file
2025-03-09 10:23:28 +07:00
.idea feat: increase min api level & add x86 support 2025-03-09 10:23:28 +07:00
app feat: increase min api level & add x86 support 2025-03-09 10:23:28 +07:00
gradle initial commit 2025-03-09 09:14:39 +07:00
.gitignore initial commit 2025-03-09 09:14:39 +07:00
build.gradle.kts initial commit 2025-03-09 09:14:39 +07:00
gradle.properties initial commit 2025-03-09 09:14:39 +07:00
gradlew initial commit 2025-03-09 09:14:39 +07:00
gradlew.bat initial commit 2025-03-09 09:14:39 +07:00
README.md initial commit 2025-03-09 09:14:39 +07:00
settings.gradle.kts initial commit 2025-03-09 09:14:39 +07:00

RobinSR on Android (but without termux)

I haven't tested this myself since my device can't run HSR, but I did test the server with my phone as the host while running the game on PC. This is just a proof of concept anyway (I'm new to Android development 😭).

Building from Source

Note: This README might not include all steps. If you encounter any errors, you may need to look up additional information yourself.

Prerequisites

You'll need:

  • Android Studio
  • Android SDK & NDK
  • Rust nightly

1. Install Android SDK & NDK

Install Android Studio and set up the required SDKs.

2. Install Rust & Cargo NDK

Install Rust. RobinSR requires Rust nightly:

rustup toolchain install nightly
rustup default nightly

Add required targets:

rustup target add aarch64-linux-android armv7-linux-androideabi x86_64-linux-android

Install cargo-ndk:

cargo install cargo-ndk

3. Configure Android NDK Path

Set ANDROID_NDK_HOME:

set ANDROID_NDK_HOME=%ANDROID_SDK_ROOT%\ndk\{ndk-version}

For PowerShell:

$env:ANDROID_NDK_HOME="$env:ANDROID_SDK_ROOT\ndk\{ndk-version}"

Replace {ndk-version} accordingly.

4. Verify Installation

Check if everything is installed:

rustc --version
cargo --version
cargo ndk --help

After this, build the project from android studio.