Files
smb-explorer/README.md
T

23 lines
2.9 KiB
Markdown
Raw Normal View History

2026-11-13 22:50:46 +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. File rows currently show details; media 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](PLAN.md).
## Gitea Actions
2026-11-13 23:15:53 +01:00
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.
2026-11-13 22:50:46 +01:00
2026-11-13 23:15:53 +01:00
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.