All writing

Project

Network shares in the Files app

Driveway is an Android app I’ve been building that puts file servers in the phone’s native Files app. Add a server once and its folders show up beside Downloads, and in other apps that use Android’s system file picker. The idea is to give those apps access to files I keep at home or in a cloud drive. I’m testing it now; it isn’t released yet.

Driveway's confirmation screen after adding a server: a house-and-driveway icon, the heading Vault is in Files, Open Files and Done buttons, and a checklist with three ticks: found the server (its address covered by a gray bar), opened /volume1/vault, opened the top folder.View full image
Adding a share from my own NAS over NFS. Server address redacted.

I’m responsible for file management on Android at work, and at home I have a long-standing obsession with speeds and feeds, so this was always going to scratch an itch, though Driveway is a personal project. Since I replaced my Synology NAS with direct-attached storage on the homelab server, I’ve had less need to run services like NFS, but there are a few apps I have in mind that would benefit from reaching that storage without being handed full access to it.

The engine is rclone, compiled into the app. rclone speaks to dozens of storage backends, and that breadth is why I wanted it underneath. It is also so feature-rich that it can be overwhelming, and it includes a lot of services most people will never need. I wanted the most meaningful subset of what it does, with the red carpet rolled out: set up and manage your file servers without the technical expertise it takes to extract everything rclone offers. Building on top of what Android Files already offers, not competing with it.

An open-source app, RSAF, already puts rclone behind the Files app, under the GPL. Both plug into Android’s Storage Access Framework, the system behind the Files app and the file picker. Driveway was written separately, under the Apache license, and carries its own NFS client, because rclone has none.

The red carpet, in practice: the four home-server protocols I prioritized (SFTP, SMB, NFS and WebDAV) get hand-made forms, and adding one runs a live checklist (found, identity, signed in, folder opened) that stops at the step that failed with the fix right there. Most other services sit under More services, each with a form that asks only for what it can’t connect without.

A read streams the range the app asked for, so a video seeks and a long PDF jumps to a page without downloading the whole file first. That works because a code review caught a one-line bug. A second AI model, reviewing the code, found that the check meant to recognize a read-only open never matched, so every read downloaded the whole file and got back a handle that could write.

After the fix, opening a handle to a 300 MB file took under 10 ms, with nothing downloaded first. A 4 MB read-ahead then raised streaming reads from 20 to 41 MB/s over SMB and from 17 to 48 MB/s over NFS. Those numbers come from the test laptop on Wi-Fi, talking to test servers in Docker on a development VM on my homelab, with throwaway storage rather than the family’s files.

A save is staged on the device, uploaded under a temporary name beside the original, size-checked, and then renamed over it. On the SFTP, SMB, NFS and WebDAV test servers, that final rename replaced the file in one step. In the failure cases tested (a server running out of space, an SFTP server restarted during an upload, and Driveway killed during an SMB upload), the server was left with either the original file or a complete new one. Other backends use a fallback that moves the old file aside first, and have had less testing.

Testing also found an rclone bug: a failed SFTP upload could leave a deleted temporary file open and keep the server’s disk space occupied. I directed the coding agent to report it with a reproduction and a proposed change. The maintainer supplied the fix, the agent confirmed it on his test build, and I drafted the reply. It shipped in rclone 1.75.2. Nobody likes bugs, but I’m happy this one could benefit other people who use the same service. Until Driveway adopts that release, it closes its connections after a failed upload.

The home protocols were the easy part to test. The long tail is the cloud storage providers: testing each one thoroughly needs real credentials and real internet traffic, one account at a time. Signing in to Dropbox and OneDrive through Driveway’s own app registrations works against a stand-in server; the test with my real accounts is still open. So far Driveway has run on my phone and the test laptop; on the phone it now also opens a share from my own NAS over NFS, through my private network. It hasn’t gone out to beta testers. The real-account test is the gate it has to pass before I’m comfortable handing it to anyone else.