Android

The Android app makes a phone a member of up to four networks. It joins by the invite’s QR code or code, reaches the other devices by name and address, and shows how each is reached.

What the app does #

The app runs juist on a phone with Android 12 or newer. The phone joins a network as a member without roles, and up to four (Several networks). While its VPN is on, every app on the phone reaches the other devices by name, such as nas.home.juist, and by address, and the LANs behind its subnet routers. The VPN carries only the traffic to the network, to those subnets and the phone’s DNS (Names); all other traffic bypasses juist.

The phone cannot:

  • be in more than four networks;
  • route a subnet or be an exit node, though it can use both;
  • relay.

It can found a network of its own and hold its admin key (Creating a network).

Installing the app #

Install the app with F-Droid, which then brings every new release, or download it once from GitHub.

With F-Droid #

  1. Install F-Droid on the phone, if it is not there yet. Another client for F-Droid repositories, such as Droid-ify, works too.

  2. On the phone, tap Add juist’s repository to F-Droid and confirm in F-Droid. Or copy this address, open Repositories in F-Droid, tap + and paste it:

    https://pkg.juist.nning.io/juist/android/repo?fingerprint=0AAB0ADFA407BE52D9FB3AF3C0426FF0CDF4CA67CEBBFD981EA29EF0BD373C30
  3. Search F-Droid for juist and install it. Android asks you to allow F-Droid to install apps.

F-Droid updates the app with every release. The fingerprint in the address lets it check that the repository is juist’s.

From GitHub #

Download juist-android-arm64.apk from the latest release on the phone and open it. Android asks you to allow the browser to install apps. To update, install the next release’s APK over it, or add the F-Droid repository, which updates an app installed this way too.

Checking the app #

The app is signed with juist’s release key. Its certificate’s SHA-256 fingerprint is:

51:5C:14:80:41:8A:98:4A:8B:1A:E3:69:51:7A:2C:9F:7F:48:A2:19:41:0C:AE:E6:6F:B5:82:EF:EC:AB:E5:21

apksigner verify --print-certs juist-android-arm64.apk shows it. The APK is also in SHA256SUMS (Verifying a download).

An app you built yourself is signed by another key, so it does not install over a release, or the other way round.

Joining a network #

The first screen: scan the QR code, or type the code
The first screen: scan the QR code, or type the code
The four words, for the admin to compare
The four words, for the admin to compare

1on an admin's device

Start an invite in a terminal at least 60 columns wide, so that it shows the QR code:

juist invite
2on the phone

Open juist, tap Scan QR code and point the camera at the QR code.

Or tap Type code and type the code, such as 42-drumbeat-tolerance-glucose. A code works only on the same LAN as the inviting device. Elsewhere, scan the QR code or paste the link into the same field.

3on the phone

Check the phone’s name in the network, such as pixel-8. Tap Join, and allow the VPN when Android asks. The phone then shows four words.

4on an admin's device

Compare them with the words the invite shows. Answer y if they match. If not, answer n and cancel on the phone.

If the network needs more than one admin’s vote, the phone shows Waiting for approval: 1 of 2 votes until the others approve. Inviting devices explains the code, the link and the words.

Creating a network #

A network's name and the phone's
A network's name and the phone's
The break-glass secret, shown once, and the admin key's backup
The break-glass secret, shown once, and the admin key's backup
An invite's QR code and code
An invite's QR code and code
The words a joining device shows, compared before it is admitted
The words a joining device shows, compared before it is admitted
A member's roles, and removing it
A member's roles, and removing it

Create a network, under the welcome’s buttons, founds a network with the phone as its first device, as juist create does on a computer. The phone holds its admin key, sealed in Android Keystore behind your fingerprint, face or screen lock: every change that uses it asks for one of those first, and none is made while the phone is locked. Without a screen lock, the app asks you to set one.

Right after, the app shows the network’s break-glass secret once: keep it somewhere safe, apart from the phone. With it, juist network disable ends the network for good once too few admin keys are left to change it (Admin keys). The same screen offers a backup of the admin key, which you may skip: a phone lost with the only admin key ends every further change, but every copy is one more place the key can be taken from. A copy goes into a password manager as the line juist admins export prints, or into a file sealed by a password of at least twelve characters, in a folder you choose. juist admins import reads either on a computer, and Back up the admin key in the status screen’s menu does it again.

A network of phones has no relay of its own, so its members meet through Tailscale’s public DERP servers where they cannot reach each other directly (Relays); the app says so when it creates one. The app has no switch for them: juist network derp off turns them off on a computer that has joined the network and imported the admin key (juist admins import), as A network of phones alone walks through. Such a network has no voucher either, so its freshness stays unchecked: a removed phone learns of its removal as soon as it meets one that knows.

Invite a device, under the devices, offers an invite: its QR code, which the other device scans, its code for the same Wi-Fi, and a link to share. When the device asks to join, both show four words; once they match, Same words and your fingerprint admit it. The device’s screen lists its roles to the admin: Relay, Voucher and Exit node, and Remove from the network. A phone, this one or another, is offered only Voucher, and only where a computer is in the network: phones alone rest too often to vouch for anything, and none relays or carries the internet for others. juist knows another phone by what it announces, once the network runs schema 20 or later; a device it has not heard from yet counts as a computer. A change that needs other admins’ votes is signed and waits for them, and the app says so. Taking the network’s last voucher, which leaves freshness unchecked, asks first.

Several networks #

The networks a phone is in, each as it fares
The networks a phone is in, each as it fares
Joining another network
Joining another network

To join another network, tap Join another network in the menu, or open another invite link, and join as for the first. The app then opens at the list of the phone’s networks; tap one for its status. In each network, the phone is a member of its own, with its own keys, name and addresses, and the one switch turns the VPN on and off for all of them.

  • The phone resolves every network’s names and searches their domains, so nas finds nas.home.juist or nas.work.juist.
  • One network’s exit node carries the internet at a time: choosing one in another network lets the first go. While it is used, the phone asks its network’s resolver, so with Network names off there, no network’s names resolve.
  • Where two networks’ IPv4 ranges overlap, one of them runs over IPv6 alone and says so until one is renumbered (Overlapping address ranges). A join keeps IPv4 with the networks the phone is in.
  • A member of one network does not reach another network through the phone.
  • An alarm in one network leaves the others’ tunnels up.
  • Leave network, in a network’s menu, deletes the phone’s keys for it and ends its tunnels there; the other networks stay as they are, and so does an admin key the phone holds. The network lists the phone until an admin removes it.
  • An invite does not say which network it is for. Joining a network the phone is in already is undone, and the app names the admission an admin should remove.

The status screen #

The network, this phone and what needs attention
The network, this phone and what needs attention
One device, with a ping through the tunnel
One device, with a ping through the tunnel

The app shows what juist status, juist health and juist devices show on a computer (Status and devices): the network’s state, what needs attention, this phone’s name, addresses and freshness, and how each other device is reached. Tap an address to copy it.

StateMeaning
Connectedthe phone reaches the network’s devices
Waiting for devicesno other device has been heard from yet
No tunnel upthe devices are known, but no traffic flows to any of them
Limitedno voucher has confirmed the phone’s view lately, so it reaches only vouchers
Removedthe phone is no longer in the network
Refusedthe network’s devices refuse the phone; most likely it was removed
Disconnectedthe network’s history has split, and every tunnel is down until an admin resolves it
Offthe VPN is off

A device is reached Direct or Through a relay, or not at the moment: No answer, Searching, Offline, Not heard from, Not checked yet, or Outdated (it runs an older juist, and only pings get through until it is updated).

Tap a device to see its name, addresses, roles, its juist’s schema and when it was last heard from. Ping sends an echo through the tunnel, which juist on that device answers even if its firewall drops pings. Open in browser opens http:// at its address.

A device's services: published names, a TCP port and a subnet
A device's services: published names, a TCP port and a subnet

Under Services, the device’s screen lists what the network publishes on it (Publishing services): a name opens in the browser, a TCP port and a subnet copy when tapped. Names for members alone say so.

Details #

The phone's settings, the network's schema, relays and subnets, and the log's latest changes
The phone's settings, the network's schema, relays and subnets, and the log's latest changes

Details, under the devices or in the menu, shows what juist status and the status page show beyond the state: the network’s schema next to the app’s, the log’s head, when the phone last brought its view of the network up to date, the relays and the one the phone goes through, what it measured of the network beneath (the Underlay line of juist status), the network’s names, its subnets, and the log’s latest changes, as juist log lists them.

It also holds the phone’s four settings:

  • Network names: every lookup goes to juist, which answers the network’s names. Off, the phone keeps its own DNS and resolves none of them, as juist set --dns=false does on a computer.
  • Public names: the public names the network points at members, such as a server’s website, lead to that member through the tunnel, as juist names on does on a computer. Off, the default, they resolve publicly. Below, Public names lists each one with its member and whether the phone reaches it through the tunnel or, and why, publicly.
  • HTTPS only: the phone reaches relays by HTTPS on port 443 alone, as juist set --https-only does (Networks that only allow HTTPS).
  • Port mapping: on a Wi-Fi whose router offers UPnP, NAT-PMP or PCP, the phone has it open a port, so that members reach it directly; off, it asks for none, as juist set --port-mapping=false does.

Under Diagnosis, the app counts how often it set up the VPN and how its lookups went: how many failed or were slow, and which. Copy log adds how Android sees the phone’s networks, when it last took the VPN away, and how the app’s last runs ended.

Subnets #

When the network grants a member a subnet, such as the LAN at home, the phone reaches it through that member while the VPN is on. A subnet the phone’s own network already covers, such as that LAN while the phone is on its Wi-Fi, stays outside the tunnel, and Details says so. Moving to mobile data takes it into the tunnel again.

Names #

What the app says while Private DNS passes juist by
What the app says while Private DNS passes juist by

While the VPN is on, every lookup on the phone goes to juist in the app. It answers the network’s names, such as nas.home.juist or just nas, and the names published under the network’s domain, which then lead straight to their device, and with Public names on in Details the public names pointed at members. It also answers reverse lookups of the network’s addresses. All other names go to the phone’s network as without juist, over DNS over TLS if Private DNS is automatic and the network supports it. Turning the VPN off gives the phone its own DNS back.

Android’s Private DNS setting decides whether lookups reach juist:

Private DNSNetwork names
Offresolved
Automaticresolved
Private DNS provider hostnamenot resolved: Android sends every lookup to that provider

With a provider’s hostname set, the app says that the network’s names are not resolved, and names each members-only name that is out of reach.

Through an exit node #

If the network has exit nodes, the status screen lists them under Internet, next to Direct. Choose one, and the phone’s internet traffic and DNS go through it. juist still answers the network’s names. While the exit node cannot be used, internet traffic is blocked, not sent directly, and the app says why. Choose Direct to go without it.

If juist stops, Android sends traffic directly. To block it instead, turn on Always-on VPN and Block connections without VPN for juist in Android’s VPN settings. The app links to them.

Without an exit node, apps may go around the VPN to the network beneath, as Google’s push messages must; an app that does so on purpose looks for the network’s devices there, not through juist, where any device on that network may answer. Through an exit node, none can. With Block connections without VPN, Android lets none go around, and without an exit node push messages then do not arrive.

Turning the VPN off and on #

The switch next to the state turns the VPN off and on, as does juist’s tile in Android’s Quick Settings: add it by editing the tiles, and press it long, or in no network at all, to open the app. While it is on, a notification shows the state, with a Turn off action. If the VPN was on, juist turns it on again after a restart or an update, and after Android ended the app: when you open it, or by itself, after about 15 minutes while the phone is in use. After a force stop, only opening the app does, and after juist failed to start, only turning it on. Android runs one VPN at a time: another VPN app turns juist off, and the app says so. While a VPN runs in a work profile or a private space, juist cannot tell it from another app’s and does not turn on by itself either.

Battery #

juist saves battery while the screen is off, the phone dozes or battery saver is on, and on mobile data or a hotspot whenever the app is not in front. It then checks the other devices and syncs the log less often, and stops listening on the Wi-Fi’s multicast DNS. Changes to the network still arrive at once, and traffic through the tunnel is not slowed.

Once the network runs the app’s schema (Updating juist), the other devices let the phone sleep too: they check on it less often and leave log sync to the phone. A member still reaches a sleeping phone at once.

When the phone is removed #

An admin removes the phone like any device: juist remove pixel-8 (Removing a device). The app then shows Removed. Tap Forget network to start over with new keys, and join again with a new invite.

To stop using juist on the phone, have an admin remove it first, then uninstall the app. The network keeps listing a phone that was only uninstalled.

Privacy and security #

  • The phone’s keys are sealed by an AES-256 key in Android Keystore, inside the phone’s security chip if it has one. A copy of the app’s files cannot be opened on another phone.
  • An admin key is sealed by a second Keystore key, which opens only right after you authenticated, for that one change, and never while the phone is locked; the app wipes its copy after the change, and juist keeps none. Removing the phone’s screen lock makes Android destroy that Keystore key: the admin keys it sealed are then lost, and only their backup brings them back. A key copied as a line stays on the clipboard until something else is copied.
  • Nothing of juist goes into a backup or onto a new phone. A new phone joins with its own invite.
  • The camera is used only to read the QR code. Nothing it sees is stored or sent.
  • About, in the menu, shows the version and licenses. Copy log copies the app’s log, which lives in memory only, with how Android sees the phone’s networks, the lookups that failed and how the app’s last runs ended. It names your devices and addresses, so share it only with someone you trust.

Troubleshooting #

What you seeWhat to do
Not joinedThe invite expired, was used, or the inviting device is out of reach. Start a new invite. A code works only on the same LAN; scan the QR code instead.
No device may relayA phone on mobile data often needs a relay. An admin grants relay to a device with a public address (Relays).
LimitedThe phone has not reached enough vouchers for 48 hours. Connect it to a network where it can reach them.
Too few vouchers have vouched: limited in … hoursBring a voucher back online before then.
Refused or RemovedThe phone was removed. Forget the network and join again with a new invite.
Private DNS sends every lookup to …Set Private DNS to automatic or off in the phone’s network settings.
nas.home.juist does not resolveTurn the VPN on. Otherwise the status screen says why.