# SMB Explorer 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. 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 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. Offline files are not implemented. Search and filters only apply to the current folder; they do not search the share recursively. ## Install 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 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 Requirements: JDK 17, Android SDK platform 37, and Android build tools 36.0.0. Set `ANDROID_HOME` or create a local `local.properties` pointing to the SDK. ```bash ./gradlew :app:assembleDebug ``` 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** 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` 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: | Secret | Value | | --- | --- | | `ANDROID_KEYSTORE_BASE64` | Base64-encoded release `.jks` keystore | | `ANDROID_KEYSTORE_PASSWORD` | Keystore password | | `ANDROID_KEY_ALIAS` | Key alias | | `ANDROID_KEY_PASSWORD` | Key password | Keep the keystore and passwords backed up outside the repository. Android updates must use the same signing key. Never commit credentials, keystores, or `local.properties`. ## Contributing and license See [CONTRIBUTING.md](CONTRIBUTING.md) for development and issue guidance. Copyright (C) 2026 Alvin Zilverstand. SMB Explorer is licensed under the [GNU General Public License, version 3 only](LICENSE) (`GPL-3.0-only`).