Alvin-Zilverstand 232765e8d4
Build Android APKs / build (push) Successful in 1m23s
Add SMB image and GIF viewer
2026-11-14 09:01:01 +01:00
2026-11-14 09:01:01 +01:00
2026-11-13 21:32:20 +01:00
2026-11-13 22:50:46 +01:00
2026-11-13 22:50:46 +01:00
2026-11-13 22:50:46 +01:00
2026-11-13 21:47:46 +01:00
2026-11-14 09:01:01 +01:00

SMB Explorer

Android 9+ SMB explorer. The first implementation is a Phase 0 compatibility probe for a real Samba share.

Run the probe

Open the project in Android Studio, or run ./gradlew assembleDebug with a JDK and Android SDK configured. Install app/build/outputs/apk/debug/app-debug.apk on the Galaxy S24. Enter the NAS host, share, credentials, and an optional folder path. Enter a large file path relative to the share to test three 64 KiB reads at the beginning, middle, and end. The screen reports listing time, entry count, byte counts, and hashes; it does not save credentials or downloaded content.

Repeat after switching Wi-Fi off and back on. Record the Samba version, dialect, signing/encryption settings, Wi-Fi conditions, listing latency, and whether each range read succeeded. The probe opens a fresh connection for each run.

Use Test & save to authenticate, list the selected folder, and save the share. When shares are saved, the app opens to a compact share list. Tap a share to browse it, Edit to change its connection fields, or Add share to open the new connection form. Remove deletes a saved entry after confirmation. The connection list, including passwords, is encrypted with a device-bound Android Keystore key. App backup is disabled because the key cannot be restored on another device.

Tap a saved share to browse it. Folder rows open subfolders; the breadcrumb buttons navigate to parent folders or the root. Search filters the current listing, Sort cycles through name, date, and size with folders first, Show filters by file type, and Refresh reloads the current folder. Tap an image to open the full-screen viewer; swipe left or right to move through images and animated GIFs in the same folder. The viewer limits downloads to 64 MB per image. Other file rows show details; video viewing and file actions are later phases.

The current environment has not supplied a NAS address or credentials, so live compatibility and reconnect results remain to be measured on the device.

Implementation plan: PLAN.md.

Gitea Actions

Every branch push runs .gitea/workflows/android-build.yml on the runner labelled debian. It creates a Gitea pre-release tagged build-<run ID>-<attempt> with an installable APK attached. The android-apks artifact on the Actions run also contains the debug APK and an unsigned release APK by default. The workflow installs JDK 17 and the required Android SDK packages, so the runner needs outbound access to the action repositories, Gradle, Maven, and Google Android downloads. Repository Actions permissions must allow the job token to write releases.

For a signed release APK, add these repository Actions secrets: ANDROID_KEYSTORE_BASE64 (base64 encoding of your release .jks file), ANDROID_KEYSTORE_PASSWORD, ANDROID_KEY_ALIAS, and ANDROID_KEY_PASSWORD. When all are present, the workflow attaches the signed release APK. Without them, it attaches the installable debug APK instead. Keep the keystore and its passwords backed up outside the repository; future updates need the same signing key. Never commit the keystore or passwords.

S
Description
No description provided
Readme GPL-3.0
227 KiB
0 Stars 1 Watchers 0 Forks
Languages
Kotlin 100%