mirror of
https://github.com/netbirdio/android-client.git
synced 2026-05-22 17:10:49 -07:00
v0.3.2
* Fix SSO login on ChromeOS by using Device Code Flow ChromeOS runs Android apps in a container with separate network namespace, preventing the browser from reaching the localhost callback server used by PKCE flow. This causes "service not available" errors after authentication. Use Device Code Flow on ChromeOS (like Android TV) which uses polling instead of localhost callback. On ChromeOS, also auto-open the browser for a similar UX to PKCE while showing QR dialog as fallback. * update submodule
Start using NetBird at netbird.io
See Documentation
Join our Slack channel
NetBird Android client
The NetBird Android client allows connections from mobile devices running Android to private resources in the NetBird network.
Screenshots
Install
You can download and install the app from the Google Play Store:
Building from source
Requirements
We need the following software:
- Java 1.11. Usually comes with Android Studio
- android studio initialized with jdk and emulator (not covered here, is a req from android-client project)
- gradle (https://gradle.org/install/)
Prepare development environment
- Close all repositories:
assuming you use a path like ~/projects locally
mkdir ~/projects
cd projects
# clone netbird repo
git clone --recurse-submodules git@github.com:netbirdio/android-client.git
- Checkout the repositories to the branches you want to test. If you want the latest, check the status information on your IDE or on https://github.com and verify the branch list and commit history.
- Export JDK and Android home vars, on macOS they are: (please contribute with Linux equivalent)
# replace <USERNAME> with your name
export ANDROID_HOME=/Users/<USERNAME>/Library/Android/sdk
export JAVA_HOME=/Applications/Android Studio.app/Contents/jbr/Contents/Home
- Install NDK and CMake
cd ~/projects/android-client
$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install "ndk;23.1.7779620"
Generate debug bundle
Follow the steps to run locally until the step 5 then run the following steps:
- Build Go agent library
cd ~/projects/android-client
./build-android-lib.sh
- Run gradlew
cd ~/projects/android-client/android
./gradlew bundleDebug -PversionCode=123 -PversionName=1.2.3
Description
No description provided
androidgolanggomobilemeshmesh-networksnat-transversalnetbirdvpnwireguardwireguard-vpnzero-trust-network-access
Readme
GPL-3.0
49 MiB
Languages
Java
99.4%
Shell
0.6%

