The application has been published onto the market for easy access:
-
Make sure you have installed the Android SDK then:
-
cd into seadroid directory
-
Create
key.propertiesfile or simply renamekey.properties.exampleand change configurations to match yours. -
Create keystore file if you don't have one
keytool -genkey -v -keystore app/debug.keystore -alias AndroidDebugKey -keyalg RSA -keysize 2048 -validity 1 -storepass android -keypass android -dname "cn=TEST, ou=TEST, o=TEST, c=TE"
- Build with
./gradlew assembleRelease
You will get app/build/outputs/apk/seafile-${versionName}.apk after the build finishes.
The app uses native libraries for HEIC/HEIF image format support. Prebuilt libraries are included in app/src/main/cpp/libheif/, but if you need to rebuild them:
macOS only (currently)
- macOS operating system
- Android NDK (r21 or later recommended)
- Command line tools:
brew install cmake ninja pkg-config git brew install nasm # Optional, for libjpeg-turbo optimization
Environment variables (optional, script will auto-detect):
export ANDROID_NDK_HOME=/path/to/ndk
# or
export ANDROID_NDK=/path/to/ndk
# or
export ANDROID_SDK_ROOT=/path/to/sdkRun the build script:
chmod +x build_libheif.sh
./build_libheif.shThis will:
- Download and compile the following libraries for Android (armeabi-v7a, arm64-v8a):
- libjpeg-turbo - JPEG image codec
- x265 - H.265/HEVC video encoder
- libde265 - H.265/HEVC video decoder
- libheif v1.20.2 - HEIF/HEIC image format support
- Copy compiled libraries to
app/src/main/cpp/libheif/lib/ - Strip debug symbols to reduce size
- Keep source code in
libheif-android-build/src/for future builds
Note: The build process may take 30-60 minutes depending on your system.
To customize the build, edit these variables in build_libheif.sh:
# Android API level (default: 28)
export ANDROID_API=28
# Target ABIs (default: armeabi-v7a, arm64-v8a)
ABIS=(
"armeabi-v7a"
"arm64-v8a"
)
# LibHeif version (default: v1.20.2)
LIBHEIF_VERSION="v1.20.2"After successful build, the following libraries will be available:
app/src/main/cpp/libheif/lib/{ABI}/libheif.soapp/src/main/cpp/libheif/lib/{ABI}/libde265.soapp/src/main/cpp/libheif/lib/{ABI}/libx265.soapp/src/main/cpp/libheif/lib/{ABI}/libjpeg.so
Where {ABI} is one of: armeabi-v7a, arm64-v8a
- Android Studio
- OpenJDK 17 / OracleJDK 17
- Open Android Studio
- Import project
- Select seadroid directory
- Choose import from gradle
- Click next until import is completed
For those who are using maven build structures, checkout the project from maven branch.
Please submit translations via Transifex:
Steps:
-
Visit the webpage of Transifex (https://explore.transifex.com/haiwen/seadroid/).
-
Click the "Join this project" button in the bottom right corner.
-
Use an email or GitHub account(recommended) to create an account.
-
Select a language and click 'Join project' to join the language translation.
-
After accepted by the project maintainer, then you can upload your file or translate online.


