Commit Graph

307 Commits (039124db792a0ef085e21ccd03f8b329dd1cb61c)
 

Author SHA1 Message Date
Denton Gentry 039124db79 go.mod: Update from OSS.
Increment version number, the 1.18.2 release was build 82.

Signed-off-by: Denton Gentry <dgentry@tailscale.com>
3 years ago
Brad Fitzpatrick 1be9000a6a Makefile: add 'bumposs' target, run go mod tidy
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
3 years ago
Brad Fitzpatrick 9d801a42d7 Add secret Run Exit Node option when "debug" is searched for.
And bump tailscale dep, to bring in new ipn.Prefs API and wire up
ExitDNS for Android.

This change has no visible behavior change to anybody unless they
search for "debug" and then hit the "..." menu.

Updates tailscale/tailscale#1738

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
3 years ago
Brad Fitzpatrick ed29f4b3d2 cmd/tailscale: add "Bug report" item to menu
Signed-off-by: Brad Fitzpatrick <brad@danga.com>
3 years ago
Brad Fitzpatrick 3b6b9acf2b Makefile: clear GOROOT, add rundebug target
Nowadays basically nobody should set GOROOT. I still do for various
reasons, but that broke this build which then ran our custom toolchain
with a mismatched GOROOT. Clear GOROOT so the default GOROOT is used
(which is the path that matches the Go toolchain in use)

Also, add a "rundebug" target to control adb (phone or emulator)
3 years ago
Brad Fitzpatrick df09d74486 Makefile: make toolchain bootstrap work on darwin and arm64
It only worked on linux/amd64 before, but we support
{linux,darwin}/{amd64,arm64} for development elsewhere.

Fixes tailscale/tailscale#3669

Signed-off-by: Brad Fitzpatrick <brad@danga.com>
3 years ago
Brad Fitzpatrick 19822d0b94 go.mod: use Go toolchain rev from oss
And don't sha1-sum the Go toolchain cache.
Just see if its go binary works.

Updates tailscale/corp#3385
Updates tailscale/tailscale#3596
3 years ago
Denton Gentry 33329425b8
Merge pull request #28 from tailscale/tool_checksum
Makefile: make toolchain sum not use absolute path.
3 years ago
Denton Gentry 2d49c9ae30 Makefile: make toolchain sum not use absolute path.
This is intended as a quick fix of the immediate problem:
don't compute the checksum using absolute paths (i.e.
/home/dgentry), use relative paths.

In the future we may rationalize the versioning of the
toolchain to tie the Android toolchain to the one used
for building Linux/macOS/Windows/etc.

Fixes https://github.com/tailscale/tailscale/issues/3596

Signed-off-by: Denton Gentry <dgentry@tailscale.com>
3 years ago
Brad Fitzpatrick 050f4a41d4 Makefile: add fdroid-like APK target 3 years ago
Brad Fitzpatrick af2c71c6e2 Dockerfile: remove old, unnnecessary, conflicting fetching of Go
The Makefile's toolchain target fetches the right Go version
nowadays. We can make the Dockerfile do that and cache it later, but
for now this at least prevents the Go version mismatch bugs.
3 years ago
Brad Fitzpatrick f8176b47a9 Makefile: remove long-obsolete -tags=xversion
That build tag hasn't been used since tailscale/tailscale's 5088af68cf
(June 2nd, 2021, for 1.10.0)
3 years ago
Denton Gentry bbd7b61d44 android: bump version code
Signed-off-by: Denton Gentry <dgentry@tailscale.com>
3 years ago
Denton Gentry a3d2dc95db go.mod update OSS.
Signed-off-by: Denton Gentry <dgentry@tailscale.com>
3 years ago
Denton Gentry 7cb3c9a427
Merge pull request #26 from tailscale/linkproperties
ui: more robust isConnected check.
3 years ago
Denton Gentry 79bb2f33d0 ui: more robust isConnected check.
1. Follow
   https://developer.android.com/training/monitoring-device-state/connectivity-status-type
   to determine whether to report ourself as having connectivity or not.

   Tested by turning the Wifi & LTE off and on, seems to work well in
   the contrived test case.

2. Call superclass for onLost() and onLinkPropertiesChanged() handlers.
   Current Android versions have no code in the superclass of these two
   callbacks, but future proofiness.

3. Log when the UI report of LostInternet changes, so we can find it.

Fixes https://github.com/tailscale/tailscale/issues/3542

Signed-off-by: Denton Gentry <dgentry@tailscale.com>
3 years ago
Denton Gentry 0265dcfd1b android: bump version code
Signed-off-by: Denton Gentry <dgentry@tailscale.com>
3 years ago
Denton Gentry b2665ab2ff Update tailscale OSS.
Signed-off-by: Denton Gentry <dgentry@tailscale.com>
3 years ago
Denton Gentry 665488ff4a
Merge pull request #23 from tailscale/dns
Android: retrieve current DNS servers.
3 years ago
Denton Gentry 184250167b
Merge branch 'main' into dns 3 years ago
Denton Gentry f2a104fc5f android: bump version code
Signed-off-by: Denton Gentry <dgentry@tailscale.com>
3 years ago
Denton Gentry ca696b116c Update opensource repository 3 years ago
Denton Gentry 5c9cec0064 retrieve current DNS servers.
Add getDnsConfigAsString() to retrieve the current DNS
configuration from the Android platform. This implements
several mechanisms to retrieve DNS information, suitable
for different Android versions:

Android 7 and later use ConnectivityManager getAllNetworks(),
then iterate over each network to retrieve DNS servers and
search domains using the LinkProperties.

Android 6 and earlier can only retrieve the currently active
interface using ConnectivityManager getActiveNetwork(), but have
two additional fallback options which leverage the system
properties available in older Android releases.

--------

Also changed how LinkChange notification works, switching from
the older BroadcastReceiver of a ConnectivityManager Intent to
the newer ConnectivityManager.registerNetworkCallback. We need
this because the onAvailable event is too early, we get notified
that LTE is up before its DNS servers have been set. We need
to wait for the onLinkPropertiesChanged event instead, which is
only available with registerNetworkCallback.

Fixes https://github.com/tailscale/tailscale/issues/2116
Updates https://github.com/tailscale/tailscale/issues/988

Signed-off-by: Denton Gentry <dgentry@tailscale.com>
3 years ago
Denton Gentry 0c00fa3374
Merge pull request #25 from tailscale/a11y
cmd/tailscale,go.*: update Gio version
3 years ago
Elias Naur 36b09f6b06 cmd/tailscale,go.*: update Gio version
Provides support for Android TalkBack

Fixes tailscale/tailscale#1004

Signed-off-by: Elias Naur <mail@eliasnaur.com>
3 years ago
Denton Gentry b6fbbbbd39
Merge pull request #24 from tailscale/android-logs
backend: use logpolicy.NewLogtailTransport
3 years ago
Denton Gentry 729bf9a356 backend: use logpolicy.NewLogtailTransport
Allows use of bootstrap DNS and of a built-in ISRG X1 root
certificate.

Fixes https://github.com/tailscale/tailscale/issues/3046
3 years ago
Denton Gentry 5c93a7a829 android: bump version code
Signed-off-by: Denton Gentry <dgentry@tailscale.com>
3 years ago
Denton Gentry da175ba221 go.mod: update OSS
Signed-off-by: Denton Gentry <dgentry@tailscale.com>
3 years ago
Denton Gentry a045ba5ab1 android: bump version code
Signed-off-by: Denton Gentry <dgentry@tailscale.com>
3 years ago
Denton Gentry db53a314eb go.mod: update OSS
Signed-off-by: Denton Gentry <dgentry@tailscale.com>
3 years ago
Denton Gentry c98d4dd89c android: bump version code
Signed-off-by: Denton Gentry <dgentry@tailscale.com>
3 years ago
Denton Gentry 0ecb2a2587 Increment build number.
1.16.2 on release-branch/1.16 is build 74.

Signed-off-by: Denton Gentry <dgentry@tailscale.com>
3 years ago
Denton Gentry 780e7515da go.mod: update to tailscale.com@main.
Signed-off-by: Denton Gentry <dgentry@tailscale.com>
3 years ago
Denton Gentry fe76bef85b android: bump version code
Signed-off-by: Denton Gentry <dgentry@tailscale.com>
3 years ago
Denton Gentry 61f90a1975 Increment build number.
Build 72 was 1.16.1, built on release-branch/1.16

Signed-off-by: Denton Gentry <dgentry@tailscale.com>
3 years ago
Denton Gentry f9bbd73413 go.mod: update OSS from main for an unstable build.
Signed-off-by: Denton Gentry <dgentry@tailscale.com>
3 years ago
Denton Gentry a4a3ae6eff android: bump version code
Signed-off-by: Denton Gentry <dgentry@tailscale.com>
3 years ago
Denton Gentry 82ea8df1dc go.mod: update from HEAD.
Preparing for a 1.17.x unstable build.

Signed-off-by: Denton Gentry <dgentry@tailscale.com>
3 years ago
Elias Naur a3152ae505 go.*,cmd/tailscale: upgrade Gio
Add proper margins to toast messages while here.

Fixes tailscale/tailscale#3059

Signed-off-by: Elias Naur <mail@eliasnaur.com>
3 years ago
Denton Gentry 0a13b89ce0 go.mod: update from HEAD.
Also increment build number to skip over the 1.16.0 release build.
3 years ago
Denton Gentry f0dcec6c27
Merge pull request #21 from tailscale/getinterfaces
cmd/tailscale: implement getInterfaces + SDK 30
3 years ago
Denton Gentry 02a6ae0e0d cmd/tailscale: implement getInterfaces + SDK 30
SDK 30 prohibits syscall.NetlinkRIB(syscall.RTM_GETADDR, ...)
which Go's net.Interfaces uses. Implement an Android
specific version of net.Interfaces to use instead.

Passing primitive types across JNI is relatively straightforward,
passing a single object of a complex class is annoying but still
possible, but passing lists and other more complex data structures is
way harder. As such, this commit added a Java routine to render the
interface information to a string and pass that across JNI as a
primitive type for Go code to parse.

Fixes https://github.com/tailscale/tailscale/issues/2293
3 years ago
Denton Gentry 41aa0c1d02 go.mod: update to current HEAD.
Signed-off-by: Denton Gentry <dgentry@tailscale.com>
3 years ago
Brad Fitzpatrick d0b4a09e59 fix name of NewUserspaceEngine in error/comment
It was renamed some time ago.
3 years ago
Brad Fitzpatrick a5bed46c9c cmd/tailscale: use hostinfo setters for OSVersion, DeviceModel
Stop abusing Prefs, which bit us in the iOS client. We're going to
remove the ipn.Prefs mechanism.

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
3 years ago
Denton Gentry 6518535039 android: bump version code
Signed-off-by: Denton Gentry <dgentry@tailscale.com>
3 years ago
Denton Gentry 9b52c6b357 go.mod: update to current main.
Signed-off-by: Denton Gentry <dgentry@tailscale.com>
3 years ago
Denton Gentry 54d511a9b6 Increment build number.
build 68 is 1.14.6 on release-branch/1.14.

Signed-off-by: Denton Gentry <dgentry@tailscale.com>
3 years ago
Denton Gentry b8c3f9da9a
Merge pull request #20 from tailscale/chromeos
cmd/tailscale: report ChromeOS.
3 years ago