Add release candidate file and media features
Build Android APKs / build (push) Successful in 2m54s

This commit is contained in:
Alvin-Zilverstand committed 2026-11-14 11:54:14 +01:00
1 parent 4b421fdebf
commit fe72a53a23
20 files changed
+795 -52

No files matched your search

+16 -8
View File
@@ -1,25 +1,31 @@
# SMB Explorer
An Android app for browsing SMB2/3 shares on a local network. It has a dark interface, encrypted saved connections, folder search and sorting, and an image viewer for photos and animated GIFs.
An Android app for browsing SMB2/3 shares on a local network. The current source version is **1.0.0-rc.1** and requires Android 9 (API 28) or newer. It is a release candidate, not a verified stable release.
The app is under active development. See [PLAN.md](PLAN.md) for the planned file actions, video playback, and further performance work.
See [PLAN.md](PLAN.md) for first-release acceptance criteria and [RELEASE_NOTES.md](RELEASE_NOTES.md) for validation status.
The launcher icon's editable source is [artwork/app-icon.svg](artwork/app-icon.svg); Android uses matching vector drawables for the adaptive and monochrome icon.
## What works now
- Save multiple SMB connections after testing them. Credentials are encrypted with a device-bound Android Keystore key; app backup is disabled.
- Browse folders, use breadcrumbs, search the current folder, filter by file type, sort by name in either direction, newest/oldest, largest/smallest, or file type, and refresh a listing.
- Browse folders, use breadcrumbs, search names in the current folder, filter by file type (all, images, videos, other files, or folders), sort by name in either direction, newest/oldest, largest/smallest, or file type, and refresh a listing. Folders appear before files.
- Open images and animated GIFs, then swipe through images in the same folder. The viewer reads at most 64 MB per file.
- Pinch or double tap to zoom and pan images, switch fit/fill, and request original resolution within a memory limit. Small images show cached thumbnails in visible rows; large files retain an icon to avoid reading the original for a thumbnail. The folder toolbar can clear the thumbnail cache.
- Download files to system Downloads on Android 10 or newer, or choose a destination on Android 9. Progress and cancellation are shown. A failed or cancelled download removes its partial destination.
- Long press a file or folder to confirm deletion. Only empty folders can be deleted; failed deletes remain visible as errors.
- Play videos through Media3 with SMB byte-range reads, scrubbing, resume position, and standard player controls. An external-player action grants temporary seekable access through a content URI. Actual format support and external-player seeking have not been validated against the target library.
- Reuse an SMB session while browsing and viewing images, keep up to 20 recent folder listings in memory, and preload nearby images in the viewer. Still images are decoded ahead of swipes within a bounded memory cache.
Video playback, downloads, deletion, thumbnails, and offline files are not implemented yet. Other files currently show their details.
Offline files are not implemented. Search and filters only apply to the current folder; they do not search the share recursively.
## Install
Download the APK from the latest [Gitea release](https://codealvin.xyz/Alvin-Zilverstand/smb-explorer/releases). Without release signing secrets, the workflow attaches a debug-signed test APK; with them, it attaches a release-signed APK. Android 9 or newer is required.
Stable releases will be published on the [Gitea releases page](https://codealvin.xyz/Alvin-Zilverstand/smb-explorer/releases) only after a signed `vMAJOR.MINOR.PATCH` tag passes the build. Ordinary pushes produce Actions artifacts. No stable APK has been published for this candidate.
On first launch, enter the NAS address, share name, and credentials, then tap **Test & save connection**. The device must be able to reach the SMB server, usually on port 445. Open the saved share from the home screen. The connection menu (`⋮`) contains **Edit connection** and **Remove connection**.
On first launch, enter the NAS host name or IP address, share name, and credentials, then tap **Test & save connection**. The port defaults to 445; a domain and starting folder are optional. The device must be able to reach the SMB server over the local network. A successful test saves the connection and opens the share. Later, tap a saved share on the home screen to browse it. Its menu (`⋮`) contains **Edit connection** and **Remove connection**. Editing requires a successful connection test before the change is saved.
Saved connection details, including passwords, are encrypted locally with an Android Keystore key. They are device-bound and are not included in Android app backups. Keep a copy of the connection details elsewhere if you need to set up another device or reinstall the app.
## Build from source
@@ -31,11 +37,13 @@ Requirements: JDK 17, Android SDK platform 37, and Android build tools 36.0.0. S
On Windows, run `gradlew.bat :app:assembleDebug`. The APK is written to `app/build/outputs/apk/debug/app-debug.apk`. Install it with `adb install -r app/build/outputs/apk/debug/app-debug.apk`.
The optional **Advanced connection test** reads three 64 KiB ranges of a selected file and reports their hashes. It is a diagnostic tool, not part of normal browsing.
The optional **Advanced connection test** accepts a file path on the share, reads up to three 64 KiB ranges, and reports their SHA-256 hashes. It does not save the connection. It is a diagnostic tool, not part of normal browsing.
To run the existing device test, connect an Android device or start an emulator and run `./gradlew :app:connectedAndroidTest` (or `gradlew.bat :app:connectedAndroidTest` on Windows). The test covers encrypted saved connection storage; it does not require an SMB server.
## Gitea builds and releases
Every branch push runs [the Android workflow](.gitea/workflows/android-build.yml) on a runner labelled `debian`. The job builds debug and release APKs, uploads them as an Actions artifact, and creates a Gitea pre-release tagged `build-<run ID>-<attempt>` with one installable APK. The runner needs outbound access to the action repositories, Gradle, Maven, and Android SDK downloads. The repository must allow the job token to write releases.
Every branch push runs [the Android workflow](.gitea/workflows/android-build.yml) on a runner labelled `debian` and uploads APKs as Actions artifacts. A stable release is created only for a matching `vMAJOR.MINOR.PATCH` tag with complete signing secrets. The runner needs outbound access to action repositories, Gradle, Maven, and Android SDK downloads. The repository must allow the job token to write releases.
To attach a signed release APK instead of a debug APK, configure these repository Actions secrets: