Send Files from Phone to Phone

Two Android phones in the same organisation send files to each other wherever they are. Each phone serves an inbox; the other phone shares a file to it from Android's share sheet. Two access rules decide who may send, and every byte is end to end encrypted between the two phones.


Goal

Two phones, alex-phone and sam-phone, both in the group mobile. Each one's Inbox is on, and a photo or any other file shared on one phone lands in the other phone's inbox. The organisation's root machine (a Mac or Linux machine with the nfltr command) makes the two machine codes and the two rules; nothing else runs on it for the transfer.

Prerequisites

1. Two machine codes

On the root machine, one code per phone, each in the group mobile:

nfltr machines add alex-phone --group mobile
nfltr machines add sam-phone --group mobile

Each command prints a single-use code that works once, within 15 minutes. On each phone, the app's Join screen takes that phone's code: paste it and tap Join. The screen then shows the phone's name and groups, enrolled as alex-phone (groups mobile).

The Join screen after the code: enrolled as alex-phone (groups mobile)

2. The two rules

A phone's inbox admits only the senders an access rule names. On the root machine, one rule per inbox lets every machine of the group mobile send to it:

nfltr access allow group:mobile machine:alex-phone/inbox
nfltr access allow group:mobile machine:sam-phone/inbox

The phones learn a new rule within 30 seconds. A later phone joined with --group mobile may send to both inboxes with no new rule; nfltr access remove with the same two names takes a rule away.

3. Inbox on

On each phone, the Inbox screen's switch, Receive files (serve inbox), serves that phone's inbox, <phone>/inbox. The status line reads on: serving while it runs. The inbox is served only while the switch is on, and Android shows a notification for as long as it runs.

The Inbox screen with Receive files on: status on: serving

4. Share, then pick the other phone

On alex-phone, select one or several files in Files or another app that shares files, and tap Share. In the share sheet, nfltr: send opens the send screen.

Android's share sheet with two files selected and nfltr: send among the targets

Under To, the send screen lists the services the relay lists for this phone; sam-phone/inbox is among them while its Inbox is on. Tap it. A name the list does not show can be typed in the field below it as <machine>/<service>.

The send screen's To list: alex-phone/inbox, desk/inbox, desk/ssh, sam-phone/inbox

The screen shows each file as it goes, then 2 of 2 files sent once the receiver has confirmed every file landed. A refusal, for example a sender no rule admits, is shown as such and nothing lands.

The send screen after the send: 2 of 2 files sent, the receiver says every file landed

Sending the other way is the same steps on sam-phone, picking alex-phone/inbox.

5. What the receiver sees

On sam-phone, the Inbox screen lists each received file with its size and four buttons: Open, Share, Save (a copy to a place you pick) and Delete. Received files stay in the app's private storage until one of those buttons moves them out, so other apps on the phone do not see them. A sender that was refused is listed on the same screen.

sam-phone's Inbox screen listing video-alex-phone.bin (20.0 MiB) and photo-alex-phone.jpg with Open, Share, Save and Delete

What the relay can and cannot see

Each file travels in an end-to-end encrypted session between the two phones. The relay carries the session and sees:

The relay does not see the files' contents or names, and it cannot forge either phone's certificate: each end checks the other's against the organisation, and the inbox checks the sender against the root's rules. The full list is in the Threat Model.

Evidence: phone to phone, both directions

Setup
December 4, 2026. Two Android 15 emulators (arm64) on one Mac, each running the nfltr app built from its main branch (with nfltr v2.1.106), joined as alex-phone and sam-phone in group mobile of an organisation whose relay ran on the same Mac. The steps of this guide: two codes, the two rules, Inbox on both phones, then two files shared from the Files app on each phone to the other phone's inbox.
Numbers
alex-phone to sam-phone: a 77 KiB photo and a 20 MiB file, both landed in 12 s with the sending file's SHA-256. sam-phone to alex-phone: the same sizes, 11 s, SHA-256 equal. 4 of 4 files.
Reproduce
Follow the steps above on two phones and compare shasum -a 256 of the file before sending with the received file's after Save.