Commit Graph

1029 Commits (release-branch/1.92)
 

Author SHA1 Message Date
Jonathan Nobels f01fb7062b
android: bump OSS (#652)
OSS and Version updated to 1.83.237-tc4fb380f3-g7f56d0c0f

Signed-off-by: Jonathan Nobels <jonathan@tailscale.com>
7 months ago
kari-ts d5988faf9a
android: add IME action to trigger custom CustomLogin (#649)
Updates tailscale/tailscale#14864

Signed-off-by: kari-ts <kari@tailscale.com>
7 months ago
kari-ts 81ff898782
android: replace broadcast intent with service intent (#650)
We were previously calling startService(intent), which is a direct call consumed by IPNService, but restartVPN was not working as intended because the broadcast receiver was never triggered.
Rather than use a broadcast receiver, directly start the service in restartVPN as we do in stopVPN. Also, batch changes to excluded apps so that we don't restart the VPN each time the user toggles an app.

Fixes tailscale/corp#28668

Signed-off-by: kari-ts <kari@tailscale.com>
7 months ago
kari-ts e3c76eb812
android: fix isExitNode check (#646)
&& takes precedence over ?:, so fix isExitNode to check both IPv4 and IPv6

Updates tailscale/tailscale#15785

Signed-off-by: kari-ts <kari@tailscale.com>
7 months ago
kari-ts 7f56d0c0fe
android: bump OSS (#651)
OSS and Version updated to 1.83.223-t336b3b7df-gd3f34c579

Signed-off-by: kari-ts <kari@tailscale.com>
7 months ago
kari-ts d3f34c579d
android: defer vpn permission until activity is resumed (#647)
Right now, we register the launcher in MainActivity.onCreate(), inject this into the ViewModel, then show the launcher in MainView.
There is no guarantee that the activity is in RESUMED when the Composable runs, showing the launcher. This can lead to a silent RESULT_CANCELED on some OEMs.
The fix is to add a lifecycle-aware wrapper that defers the launch.

Updates tailscale/tailscale#15419

Signed-off-by: kari-ts <kari@tailscale.com>
7 months ago
davfsa ca7dc5f8a8
android: ensure in secure state to interact with quicktile (#622)
* android: ensure in secure state to interact with quicktile

Updates tailscale/tailscale#14628

Signed-off-by: davfsa <davfsa@gmail.com>

* Update android/src/main/java/com/tailscale/ipn/QuickToggleService.java

Signed-off-by: davfsa <davfsa@gmail.com>

---------

Signed-off-by: davfsa <davfsa@gmail.com>
7 months ago
Jonathan Nobels 976ba8eee4
android: bump OSS (#645)
OSS and Version updated to 1.83.190-tfd263adc1-g5b4eff216

Signed-off-by: Jonathan Nobels <jonathan@tailscale.com>
7 months ago
Jonathan Nobels 6fb006e91b
android: bump OSS (#644)
OSS and Version updated to 1.83.162-ta9b3e09a1-g8683c789f

Fixes a breaking change in the NetMon constructor.

Signed-off-by: Jonathan Nobels <jonathan@tailscale.com>
7 months ago
Jakub Meysner 8683c789fd
android/src/main: show exit node information in the permanent notification (#642)
* android/src: ktfmt

Signed-off-by: Jakub Meysner <git@jakubmeysner.com>

* android/src/main: show exit node information in the permanent notification

Displays exit node status (including the name of the exit node) in the permanent connection notification's content (moving the overall connected/disconnected status to the title).

Fixes tailscale/tailscale#14438

Signed-off-by: Jakub Meysner <git@jakubmeysner.com>

* docker: fix invalid instruction in Dockerfile not using trailing slash for files destination directory

> If the source is a file, and the destination doesn't end with a trailing slash, the source file will be written to the destination path as a file.
~ https://docs.docker.com/reference/dockerfile/#destination

Signed-off-by: Jakub Meysner <git@jakubmeysner.com>

---------

Signed-off-by: Jakub Meysner <git@jakubmeysner.com>
7 months ago
kari-ts ff4a49a076
android: fix IllegalStateException in navigation (#643)
Update to androidx.navigation 2.8.5: this fixes the NavHost exception per https://developer.android.com/jetpack/androidx/releases/navigation#2.8.5

Fixes tailscale/tailscale#15755

Signed-off-by: kari-ts <kari@tailscale.com>
8 months ago
kari-ts 6e856b1242
android: log when VPN not established (#641)
Updates tailscale/tailscale#15506

Signed-off-by: kari-ts <kari@tailscale.com>
8 months ago
sakuram 79cd12a159 android: fix typo in comment
Signed-off-by: sakuram <trge241@gmail.com>
8 months ago
James Tucker e784933a9c go.mod: bump OSS for x/crypto and friends
Fixes tailscale/tailscale#15680

Signed-off-by: James Tucker <james@tailscale.com>
8 months ago
James Tucker 9c933a08a2 libtailscale: drop inet.af dependency, use net/netip
Move to the stdlib version, inet.af is bitrotting as a domain and
implementation.

Updates #cleanup

Signed-off-by: James Tucker <james@tailscale.com>
8 months ago
Sam Mikes (He/him/his) 22dabbeeb5 docker: refactor and update docker image build
Fixes tailscale/tailscale#15674

update docker image datestamp
make docker-shell target use the build image with an explicit /bin/bash command
retain the docker-remove-shell-image target in case something depends on it, but clarify that it is now a no-op
hoist all ENV declarations
hoist all mkdir commands
combine mkdir commands
use env vars in mkdir
combine apt-get commands into single RUN
make argument order consistent in apt-get commands
collect packages into fewer apt-get commands
add clean up of temporary files after apt-get
expand apt-get commands to one package per line
sort packages in apt-get commands
combine go installation commands into single RUN
update golang version to 1.24.1
also copy build.gradle file
ensure gradlew is executable before running
remove trailing newline

per review comment, extract multiline apt-get command
into shell script, copy and run that shell script within
image during docker build

Signed-off-by: Sam Mikes (He/him/his) <sam.mikes@gm.com>
8 months ago
kari-ts a684f89eea
android: bump OSS (#634)
OSS and Version updated to 1.83.88-t6fb5e3b0c-g89e7be0a4

Updates tailscale/tailscale#13452
Signed-off-by: kari-ts <kari@tailscale.com>
8 months ago
Mario Minardi 89e7be0a46
.github/workflows: pin GitHub action versions (#631)
Pin versions of GitHub actions that are used in our workflows.

Bumps an instance of actions/checkout from v3.x to v4.x.

Bumps actions/setup-java from v3.x to v4.x.

Updates #cleanup

Signed-off-by: Mario Minardi <mario@tailscale.com>
8 months ago
kari-ts fdaeda063f
android: bump OSS (#630)
OSS and Version updated to 1.83.0-t1ec1a60c1-g0888b3c24

Signed-off-by: kari-ts <kari@tailscale.com>
8 months ago
kari-ts 0888b3c248
android: add missing import (#629)
Updates tailscale/corp#27375

Signed-off-by: kari-ts <kari@tailscale.com>
8 months ago
kari-ts f9c0639196
android: bump OSS (#628)
OSS and Version updated to 1.81.212-tfea74a60d-g9652dbc6e

Signed-off-by: kari-ts <kari@tailscale.com>
8 months ago
kari-ts 9652dbc6e4
android: only use new search for API 33+ (#627)
disable search for Android TV running < API 33

Updates tailscale/corp#27375

Signed-off-by: kari-ts <kari@tailscale.com>
8 months ago
Jonathan Nobels 6ac6a45bbb
android: bump OSS (#626)
OSS and Version updated to 1.81.194-te1078686b-g9a69bc348

Signed-off-by: Jonathan Nobels <jonathan@tailscale.com>
9 months ago
Jonathan Nobels 9a69bc3483
android: update base builder image (#625)
Updating our base builder to eclipse-temurin:21 to
fix apt dependency errors.  Updating the default
toolchains to speed up the build.

Updates tailscale/tailscale#15210

Signed-off-by: Jonathan Nobels <jonathan@tailscale.com>
9 months ago
kari-ts 45d97105fb
android: intall zip (#624)
Add zip installation to Dockerfile and bump Docker image version

Updates tailscale/tailscale#15210
Signed-off-by: kari-ts <kari@tailscale.com>
9 months ago
Jonathan Nobels 599fa15104
android: bump OSS (#623)
OSS and Version updated to 1.81.169-tf0b395d85-g99712c14d

Signed-off-by: Jonathan Nobels <jonathan@tailscale.com>
9 months ago
kari-ts 99712c14da
android: enable search for TV (#620)
Updates tailscale/corp#18973

Signed-off-by: kari-ts <kari@tailscale.com>
9 months ago
kari-ts 141b1cff45
Makefile: make unstripped libtailscale and debug symbols (#619)
- Added Makefile targets to build an unstripped version of the libtailscale AAR.
- Extracted the native .so (libgojni.so) from the unstripped AAR.
- Generated a debug symbols file (libgojni.so.debug) using llvm-objcopy with --only-keep-debug.
- Stripped the native library (libgojni.so.stripped) with --strip-debug and repackaged the final AAR.

This allows the build chain to produce a stripped AAR for the app and a separate debug symbols file that can be uploaded to Google Play for crash deobfuscation.

Signed-off-by: kari-ts <kari@tailscale.com>
Updates tailscale/tailscale#15210
9 months ago
kari-ts 189de89466
android: check back stack before popping back (#618)
A possible cause for an IndexOutOfBounds exception is that when the intent is delivered, the back stack doesn't have enough entries for the operation. Condition popping back on if there is more than one entry in the back stack; otherwise, navigate directly to main to reset the back stack.

Updates tailscale/tailscale#15188

Signed-off-by: kari-ts <kari@tailscale.com>
9 months ago
kari-ts 10b2c61f5f
android: refine search (#611)
-improve transition
-clean up search input spacing to match other elements
-match search results page styling to machines page
-fix issue where search suggestions were propagating to main view
-flip new search flag On

Fixes tailscale/corp#18973

Signed-off-by: kari-ts <kari@tailscale.com>
9 months ago
Brad Fitzpatrick 6a3342e66d
go.mod, go.toolchain.rev: bump oss, bump Go to Go 1.24.0 (#615)
Updates tailscale/tailscale#15015

Signed-off-by: Brad Fitzpatrick <brad@danga.com>
9 months ago
kari-ts 2f91d068c7
Makefile: update -compat flag (#616)
Updates tailscale/tailscale#15015

Signed-off-by: kari-ts <kari@tailscale.com>
9 months ago
Nick Khyl c58a98931f
android: bump OSS (#612)
OSS and Version updated to 1.81.24-te19c01f5b-gfee71b410

Signed-off-by: Nick Khyl <nickk@tailscale.com>
10 months ago
Jonathan Nobels fee71b4107
android: bump OSS (#610)
OSS and Version updated to

Signed-off-by: Jonathan Nobels <jonathan@tailscale.com>
10 months ago
Jonathan Nobels 5015d9dba0
BumpOSS to v1.81 (#609)
Signed-off-by: Jonathan Nobels <jonathan@tailscale.com>
10 months ago
Andrea Gottardo 8d55951fb2
android: bump OSS (#607)
Signed-off-by: Andrea Gottardo <andrea@gottardo.me>
10 months ago
Jonathan Nobels 817121e213
android/tv: remove avatar padding in userView (#606)
updates tailscale/corp#26199

Removes the avatar padding when the avatar is not focusable.

Signed-off-by: Jonathan Nobels <jonathan@tailscale.com>
10 months ago
Jonathan Nobels 7f93377c2f
android/tv: fix focus highlighting on back buttons (#605)
updates tailscale/corp#26199

The back buttons would not highlight properly when
they are focussed on Android TV.  This pulls in what
was implemented for the Avatar.

Some small tweaks to the action animation so that it
has a nice radius instead of a square box.

Signed-off-by: Jonathan Nobels <jonathan@tailscale.com>
10 months ago
Andrea Gottardo 56d7be331e
ui: display error dialog when saving subnet routes fails (#604)
Fixes tailscale/corp#26175

When setting subnet routing settings, for a variety of reasons the Tailscale backend may reject an entered value with a 400 error. Here we handle such errors in a user-facing fashion:

- We display an ErrorDialog with title 'Failed to save' and whatever error message the backend request returned. To do so, we introduce a new initializer for ErrorDialog that accepts a runtime-generated String instead of a fixed string resource.
- We ask the backend to provide an updated value of AdvertiseRoutes whenever the error dialog is dismissed by the user, and set it as the UI state, to ensure consistency between UI and backend upon a failed save.

Signed-off-by: Andrea Gottardo <andrea@gottardo.me>
10 months ago
Keli 0ed18a2b0a
android: fix typo in subnet menu (#603)
android: update typo in subnet menu
Updates a typo in the subnet router "add route" menu from "a IPv4" to "an IPv4"

Fixes tailscale/corp#26167

Signed-off-by: Keli Velazquez <keli@tailscale.com>
10 months ago
Keli 73333bc13e
android: bump OSS (#602)
OSS and Version updated to 1.79.134-tc79b736a8-g0f6059dfc

Signed-off-by: Keli Velazquez <keli@tailscale.com>
10 months ago
Andrea Gottardo 0f6059dfc0
android: bump OSS (#599)
Bump OSS to 20250117225247 and versionCode to 350

Signed-off-by: Andrea Gottardo <andrea@gottardo.me>
11 months ago
Andrea Gottardo 61895c47a1
mdm: define Hostname syspolicy on Android (#598)
Updates tailscale/corp#25936

Adds a definition for the Hostname syspolicy which we are adding in OSS: https://github.com/tailscale/tailscale/pull/14676

Also adds it to the app_restrictions.xml file so that MDM solutions can pick it up.

Signed-off-by: Andrea Gottardo <andrea@gottardo.me>
11 months ago
Andrea Gottardo 9c3378d7eb
ui: add ability to advertise Android device as subnet router (#595) 11 months ago
Jarne Demeulemeester a2850b1078
android: mark Quick Settings tile as toggleable (#594)
Signed-off-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
11 months ago
Andrea Gottardo b1bc451d76
android: bump OSS, set versionCode to 346 (#596)
OSS bumped to v1.79.116-t6364b5f1e-g34a06be19

Signed-off-by: Andrea Gottardo <andrea@gottardo.me>
11 months ago
Nick Khyl 34a06be19a
github/workflows/{android,go_mod_tidy}: run on all PRs and on pushes to {main,release-branch/*} (#591)
Previously, using * in branch filters prevented PR CI actions from running on prefixed branches such as release-branch/* because * only matches characters except for forward slashes. In this PR, we remove the branch filter to ensure that Android builds and go mod tidy checks are executed on all PRs, regardless of the target branch. Additionally, these checks will now run on pushes to release-branch/*.

Fixes tailscale/corp#25313

Signed-off-by: Nick Khyl <nickk@tailscale.com>
12 months ago
kari-ts eb6d0c6c43
android: bump OSS (#588)
OSS and Version updated to 1.79.0-pre.0.20241209204210-06c5e83c204b

Signed-off-by: kari-ts <kari@tailscale.com>
12 months ago
kari-ts e500111fb9
android: put new search behind flag (#587)
Until the WIP feature is ready

Updates tailscale/corp#18973

Signed-off-by: kari-ts <kari@tailscale.com>
Signed-off-by: kari-ts <135075563+kari-ts@users.noreply.github.com>
12 months ago
kari-ts ebbc1b2f49
android: add logging to see what's spamming editPrefs (#586)
Updates tailscale/tailscale#14125

Signed-off-by: kari-ts <kari@tailscale.com>
12 months ago