Start using NetBird at netbird.io
See Documentation
Join our Slack channel
The NetBird Android client allows connections from mobile devices running Android to private resources in the NetBird network.
You can download and install the app from the Google Play Store:
We need the following software:
# download and install nvm https://github.com/nvm-sh/nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
#
nvm install v19
nvm use v19
npm install -g yarn
npm install -g npx
assuming you use a path like ~/projects locally
mkdir ~/projects cd projects # clone netbird repo git clone git@github.com:netbirdio/netbird.git # clone react native app repo git clone git@github.com:netbirdio/android-client.git
# replace <USERNAME> with your name
export ANDROID_HOME=/Users/<USERNAME>/Library/Android/sdk
export JAVA_HOME=/Applications/Android Studio.app/Contents/jbr/Contents/Home
cd ~/projects/android-client
$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install "ndk;23.1.7779620"
cd ~/projects/android-client
bash -x build-android-lib.sh ~/projects/netbird
yarn install
yarn add file:./react/netbird-lib
yarn start
a
to install it on your Android phone or emulatorFollow the steps to run locally until the step 5 then run the following steps:
cd ~/projects/android-client
npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
cd ~/projects/android-client/android
./gradlew bundleDebug