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
Brad Fitzpatrick 6b9a11c755 cmd/tailscale: fix regression from earlier commit
In 00a42702cb I bumped go.mod and adjusted the API, but only tested
that it compiled & tests (hah) passed.

I forgot this line. I still haven't tested this, but can't be worse! :)

Fixes 00a42702cb (commitcomment-112642284)

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2 years ago
.github .github: mark bots for exemption by issuebot (#101) 2 years ago
android android: bump version code 2 years ago
cmd/tailscale cmd/tailscale: fix regression from earlier commit 2 years ago
jni jni: introduce Get*ArrayElements 3 years ago
metadata/en-US metadata/en-US/images/phoneScreenshots: add screenshots for F-Droid 4 years ago
version tailscale-version.sh: adjust version format. 3 years ago
.gitignore gitignore: also ignore tailscale-debug.apk 3 years ago
Dockerfile Dockerfile: go 1.19.5 (#77) 2 years ago
LICENSE
Makefile Makefile: add tailscale_go to the set of build tags 2 years ago
PATENTS
README.md README.md: update macOS instructions 2 years 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 go.mod: bump tailscale.com dep, update for tsd.System API change 2 years ago
go.sum go.mod: bump tailscale.com dep, update for tsd.System API change 2 years 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 F-Droid Get it on Google Play

Building

Go, the Android SDK, the Android NDK are required.

$ make tailscale-debug.apk
$ adb install -r tailscale-debug.apk

The dockershell target builds a container with the necessary dependencies and runs a shell inside it.

$ make dockershell
# make tailscale-debug.apk

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

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.

Google Sign-In

Google Sign-In support relies on configuring a Google API Console project with the app identifier and signing key hashes. The official release uses the app identifier com.tailscale.ipn; custom builds should use a different identifier.

Running in the Android emulator

By default, the android emulator uses an older version of OpenGL ES, which results in a black screen when opening the Tailscale app. To fix this, with the emulator running:

  • Open the three-dots menu to access emulator settings
  • To to Settings > Advanced
  • Set "OpenGL ES API level" to "Renderer maximum (up to OpenGL ES 3.1)"
  • Close the emulator.
  • In Android Studio's emulator view (that lists all your emulated devices), hit the down arrow by the virtual device and select "Cold boot now" to restart the emulator from scratch.

The Tailscale app should now render correctly.

Additionally, there seems to be a bug that prevents using the system-level Google sign-in option (the one that pops up a system-level UI to select your Google account). You can work around this by selecting "Other" at the sign-in screen, and then selecting Google from the next screen.

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.IPNActivity
adb shell pm uninstall com.tailscale.ipn

Building on macOS

To build from the CLI on macOS:

  1. Install Android Studio (when asked which SDKs to install, choose 31 or the current value of targetSdkVersion in build.gradle)
  2. In Android Studio's home screen: "More Actions" > "SDK Manager", install NDK.
  3. You can now close Android Studio, unless you want it to create virtual devices ("More Actions" > "Virtual Device Manager").
  4. Then, from CLI:
  5. export JAVA_HOME='/Applications/Android Studio.app/Contents/jbr/Contents/Home'
  6. export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk
  7. export PATH=$ANDROID_SDK_ROOT/platform-tools:$PATH (to allow adb and the like to work)
  8. make tailscale-fdroid.apk, etc

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 apenwarr, bradfitz, crawshaw, danderson, dfcarney, from Tailscale Inc. You can learn more about us from our website.

WireGuard is a registered trademark of Jason A. Donenfeld.