From 33d7ad86a6cf0cf4b3f3295698d305c43dd8182d Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Sat, 5 Aug 2023 19:07:25 -0700 Subject: [PATCH] android: add INIT_WITH_AUTHKEY intent e.g. adb shell am broadcast -n com.tailscale.ipn/.IPNReceiver -a com.tailscale.ipn.INIT_WITH_AUTHKEY --es authkey "my-super-secret-authkey" Signed-off-by: Brad Fitzpatrick --- android/src/main/AndroidManifest.xml | 1 + .../java/com/tailscale/ipn/IPNReceiver.java | 4 +++ .../java/com/tailscale/ipn/IPNService.java | 2 ++ cmd/tailscale/callbacks.go | 17 ++++++++++-- cmd/tailscale/main.go | 27 +++++++++++++++++++ 5 files changed, 49 insertions(+), 2 deletions(-) diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml index 327951b445..9580299aa1 100644 --- a/android/src/main/AndroidManifest.xml +++ b/android/src/main/AndroidManifest.xml @@ -60,6 +60,7 @@ +