tailscale-android icon indicating copy to clipboard operation
tailscale-android copied to clipboard

android: add INIT_WITH_AUTHKEY intent

Open bradfitz opened this issue 2 years ago • 3 comments

e.g. adb shell am broadcast -n com.tailscale.ipn/.IPNReceiver -a com.tailscale.ipn.INIT_WITH_AUTHKEY --es authkey "my-super-secret-authkey"

bradfitz avatar Aug 07 '23 20:08 bradfitz

Some corners were cut but it seems to work.

bradfitz avatar Aug 07 '23 20:08 bradfitz

Including video here too. Not shown, the ADB commands...

adb install -r tailscale-debug.apk
adb shell am start -n com.tailscale.ipn/com.tailscale.ipn.IPNActivity
adb shell am broadcast -n com.tailscale.ipn/.IPNReceiver -a com.tailscale.ipn.INIT_WITH_AUTHKEY --es authkey "tskey-auth-......"

https://github.com/tailscale/tailscale-android/assets/2621/6ebd38cc-2c5a-47b7-89ae-b6816bd428fd

bradfitz avatar Aug 08 '23 14:08 bradfitz