Files
smb-explorer/README.md
T

51 lines
3.3 KiB
Markdown
Raw Permalink Normal View History

2026-11-13 22:50:46 +01:00
# SMB Explorer
2026-11-14 11:21:07 +01:00
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.
2026-11-13 22:50:46 +01:00
2026-11-14 11:21:07 +01:00
The app is under active development. See [PLAN.md](PLAN.md) for the planned file actions, video playback, and further performance work.
2026-11-13 22:50:46 +01:00
2026-11-14 11:21:07 +01:00
## What works now
2026-11-13 22:50:46 +01:00
2026-11-14 11:21:07 +01:00
- 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/date/size, and refresh a listing.
- Open images and animated GIFs, then swipe through images in the same folder. The viewer reads at most 64 MB per file.
- Reuse an SMB session while browsing, keep up to 20 recent folder listings in memory, and preload the next image in the viewer.
2026-11-13 22:50:46 +01:00
2026-11-14 11:21:07 +01:00
Video playback, downloads, deletion, thumbnails, and offline files are not implemented yet. Other files currently show their details.
2026-11-13 22:50:46 +01:00
2026-11-14 11:21:07 +01:00
## Install
2026-11-13 22:50:46 +01:00
2026-11-14 11:21:07 +01:00
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.
2026-11-14 11:21:07 +01:00
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**.
2026-11-13 22:50:46 +01:00
2026-11-14 11:21:07 +01:00
## Build from source
2026-11-13 22:50:46 +01:00
2026-11-14 11:21:07 +01:00
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.
2026-11-13 22:50:46 +01:00
2026-11-14 11:21:07 +01:00
```bash
./gradlew :app:assembleDebug
```
2026-11-13 22:50:46 +01:00
2026-11-14 11:21:07 +01:00
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.
## 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.
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`).