You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Go to file
kari-ts 08a062bfcf
android: show hex code for TV log in (#557)
Remove flag gating the display of a hex code for Android TV users, now that the change allowing hex code input in the admin console is merged.
Fixes tailscale/tailscale#13277

Signed-off-by: kari-ts <kari@tailscale.com>
3 days ago
.github Makefile: fix clean action dependencies 2 weeks ago
.vscode use network callback to update DNS config when network changes (#147) 10 months ago
android android: show hex code for TV log in (#557) 3 days ago
docker android: fix clean build (#499) 2 months ago
libtailscale libtailscale: add metrics to NewUserspaceEngine (#525) 2 months ago
metadata/en-US metadata: update images for F-Droid (#381) 6 months ago
scripts *: add a CI check for license headers and fix all files 8 months ago
tool tool/go: update to correct toolchain as needed 2 months ago
.gitignore Makefile,*: use tailscale.com/cmd/mkversion 2 weeks ago
LICENSE all: initial commit 5 years ago
Makefile Makefile: fix clean action dependencies 2 weeks ago
PATENTS all: initial commit 5 years ago
README.md Makefile: fix docker-shell command line 2 months ago
build-tags.sh Makefile: use "tailscale_go" build tag when using Tailscale's Go toolchain 2 months ago
eclipse-formatter.xml use network callback to update DNS config when network changes (#147) 10 months ago
flake.lock flake.*: add Nix support for establishing a development environment 3 years ago
flake.nix flake.*: add Nix support for establishing a development environment 3 years ago
go.mod android: bump OSS to 1.77.65-t698536947-ge7325f7d5 (#552) 2 weeks ago
go.sum android: bump OSS to 1.77.65-t698536947-ge7325f7d5 (#552) 2 weeks ago
go.toolchain.rev android: bumping OSS (#524) 2 months ago
version-ldflags.sh Makefile,*: use tailscale.com/cmd/mkversion 2 weeks ago

README.md

Tailscale Android Client

https://tailscale.com

Private WireGuard® networks made easy

Overview

This repository contains the open source Tailscale Android client.

Using

Get it on Google Play

Help us test new features and bug-fixes before they ship to all users! A beta testing track is available on the Play Store.

Amazon Appstore

The app can be downloaded from the Amazon Appstore for Amazon Fire tablets and Fire TV devices.

F-Droid

The F-Droid project builds the source code in this repository and maintains independently-built APKs. Note that F-Droid builds are not released, updated, or verified by the Tailscale team.

Preparing a build environment

There are several options for setting up a build environment. The Android Studio path is the most useful path for longer term development.

In all cases you will need:

  • Go runtime
  • Android SDK
  • Android SDK components (make androidsdk will install them)

Android Studio

  1. Install a Go runtime (https://go.dev/dl/).
  2. Install Android Studio (https://developer.android.com/studio).
  3. Start Android Studio, from the Welcome screen select "More Actions" and "SDK Manager".
  4. In the SDK manager, select the "SDK Tools" tab and install the "Android SDK Command-line Tools (latest)".
  5. Run make androidsdk to install the necessary SDK components.

If you would prefer to avoid Android Studio, you can also install an Android SDK. The makefile detects common paths, so sudo apt install android-sdk is sufficient on Debian / Ubuntu systems. To use an Android SDK installed in a non-standard location, set the ANDROID_SDK_ROOT environment variable to the path to the SDK.

If you installed Android Studio the tools may not be in your path. To get the correct tool path, run make androidpath and export the provided path in your shell.

Code Formatting

The ktmft plugin on the default setting should be used to autoformat all Java, Kotlin and XML files in Android Studio. Enable "Format on Save".

Docker

If you wish to avoid installing software on your host system, a Docker based development strategy is available, you can build and start a shell with:

make docker-shell

Several other makefile recipes are available for setting up the proper build environment and running builds.

Note that the docker makefile recipes s will preserve the image and remove container on completion. If changes are made to the build environment or toolchain, cached docker images may need to be rebuilt. The docker build image name is parameterized in the makefile and changing it provides a simple means to do this.

Nix

If you have Nix 2.4 or later installed, a Nix development environment can be set up with:

alias nix='nix --extra-experimental-features "nix-command flakes"'
nix develop

Building

make apk
make install

Building a release

Use make tag_release to bump the Android version code, update the version name, and tag the current commit.

We only guarantee to support the latest Go release and any Go beta or release candidate builds (currently Go 1.14) in module mode. It might work in earlier Go versions or in GOPATH mode, but we're making no effort to keep those working.

Developing on a Fire Stick TV

On the Fire Stick:

  • Settings > My Fire TV > Developer Options > ADB Debugging > ON

Then some useful commands:

adb connect 10.2.200.213:5555
adb install -r tailscale-fdroid.apk
adb shell am start -n com.tailscale.ipn/com.tailscale.ipn.MainActivity
adb shell pm uninstall com.tailscale.ipn

Bugs

Please file any issues about this code or the hosted service on the tailscale issue tracker.

Contributing

under_construction.gif

PRs welcome, but we are still working out our contribution process and tooling.

We require Developer Certificate of Origin Signed-off-by lines in commits.

About Us

We are Tailscale. See https://tailscale.com/company for more about us and what we're building.

WireGuard is a registered trademark of Jason A. Donenfeld.