24 lines
2.7 KiB
Markdown
24 lines
2.7 KiB
Markdown
# 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
|
|
|
|
Every push runs `.gitea/workflows/android-build.yml` on the runner labelled `debian`. The `android-apks` artifact on the Actions run contains a debug APK for testing 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.
|
|
|
|
For an installable 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 signs the release build. Keep the keystore and its passwords backed up outside the repository; future updates need the same signing key. Never commit the keystore or passwords.
|