Uploaded May 2021 | Updated November 2026, 4 days ago
Gadget Bridge for Mi Band 6 Privacy oriented and Open source build
A free and cloudless replacement for your gadget vendors' closed source Android applications.
i am using it as a daily driver, and they gave recent support for mi band 6, and i am loving it
INFO
Gadgetbridge, an open-source app that focuses on removing the manufacturer out of the equation.Gadgetbridge is an android application that allows users to use various smart bands such as Pebble, Mi Band, Amazfit Bip, HPlus ZeBand, XWatch, and more, without constantly utilizing the vendor’s closed source application. It also does away with the need to create an account and transmit your user data to the vendor. What’s more, the open source nature of this app allows users to be confident about how their data is handled and ensure that it does not leave their devices. -- XDA
Changelog
0.57.0. Initial limited support for Mi Band 6
Thanks to a PR, we recently merged, Gadgetbridge 0.57.0 is the first release which supports the new Mi Band 6. We call support limited, since it does not yet support flashing the firmware or watchfaces and not everything is tested yet. But thanks to your donations we were able to order one, which will (once it arrives) enable us to test and improve device support! --Gadgetbridge team
Credits for the Mi band 6 support Jhey:
codeberg.org/jhey
link for built apk with mi band 6 support
drive.google.com/file/d/1gJmleH4-QisotX7GNAsxxSZXZjVU9505/view?usp=sharing
Your Mi band should be Connected to the Mi Fit App with your Mi Account, this is required to get the Bluetooth Authentication key for our MI Band which will used later in the process, also do not unpair from Mi fit app
step 1 : Building the app from source
Application home page
gadgetbridge.org
Install Android Studio
developer.android.com/studio
From Android Studio open SDK manager, download and install SDK 29(Android 10)
Install python3
python.org/downloads
Clone the repo to Downloads folder from this url
codeberg.org/Freeyourgadget/Gadgetbridge
Create a local.properties file in the Gadgetbridge folder
its contents should contain sdk location
sdk.dir = /Users/vamzi/Library/Android/sdk
Lets start with the APK build process
open Terminal, Change Directory to the gadget bridge folder using
cd ~/Downloads/gadgetbridge
and execute this command to start the build process
./gradlew assembleDebug
or
./gradlew assembleRelease
Step 2 : Obtaining the Authentication key
Clone the following Repo:
github.com/argrento/huami-token
Open terminal change directory to the cloned huami-token folder:
cd huami-token
Install the python dependencies using the following command:
pip3 install -r requirements.txt
Start obtaining the auth key :
python huami_token.py --method xiaomi --bt_keys
Copy the link generated under the script to a browser,
login to your MI Account which is bonded to our Mi band, copy the link generated after you login to the python terminal, and press enter
This will generate the Auth_Key copy it and save it.
send that authkey to your android device via mail or message
Step 3 : Install the Generated or Downloaded Gadget Bridge apk give all the required permissions and Notification access too,
Before we start the pairing process, disable or uninstall Mi Fit app, so it doesnt interrupt our GadgetBridge pairing proces.
on Gadget Bridge, start by tapping on the add button,
give the location access, as android needs location access to scan for bluetooth devices.
tap on Start discovery
this should display the Mi band 6 tap and hold on it, to start configuring the settings.
paste in the Authentication key and change other settings to your liking.
and tap on the back button, this will start the pairing process, and should add your mi band 6 to the application.
this app is a good alternative for the Mi Fit app, and this makes it possible to go thorough your health and activity stats on your device without the need to share it with the device manufacturer.
Donate to Gadget bridge Devs for making this awesome app
liberapay.com/Gadgetbridge/donate
and if you are good at coding,
Contributions are welcome, be it feedback, bug reports, documentation, translation, research or code. Feel free to work on any of the open issues; just leave a comment that you're working on one to avoid duplicated work. --devs at GadgetBridge
I pledge that all the money i get for this video, will send it directly to the GadgetBridge team :)
music first rain kontinuum, NCS release
Gadget Bridge for Mi Band 6 Privacy oriented and Open source build
A free and cloudless replacement for your gadget vendors' closed source Android applications.
i am using it as a daily driver, and they gave recent support for mi band 6, and i am loving it
INFO
Gadgetbridge, an open-source app that focuses on removing the manufacturer out of the equation.Gadgetbridge is an android application that allows users to use various smart bands such as Pebble, Mi Band, Amazfit Bip, HPlus ZeBand, XWatch, and more, without constantly utilizing the vendor’s closed source application. It also does away with the need to create an account and transmit your user data to the vendor. What’s more, the open source nature of this app allows users to be confident about how their data is handled and ensure that it does not leave their devices. -- XDA
Changelog
0.57.0. Initial limited support for Mi Band 6
Thanks to a PR, we recently merged, Gadgetbridge 0.57.0 is the first release which supports the new Mi Band 6. We call support limited, since it does not yet support flashing the firmware or watchfaces and not everything is tested yet. But thanks to your donations we were able to order one, which will (once it arrives) enable us to test and improve device support! --Gadgetbridge team
Credits for the Mi band 6 support Jhey:
codeberg.org/jhey
link for built apk with mi band 6 support
drive.google.com/file/d/1gJmleH4-QisotX7GNAsxxSZXZjVU9505/view?usp=sharing
Your Mi band should be Connected to the Mi Fit App with your Mi Account, this is required to get the Bluetooth Authentication key for our MI Band which will used later in the process, also do not unpair from Mi fit app
step 1 : Building the app from source
Application home page
gadgetbridge.org
Install Android Studio
developer.android.com/studio
From Android Studio open SDK manager, download and install SDK 29(Android 10)
Install python3
python.org/downloads
Clone the repo to Downloads folder from this url
codeberg.org/Freeyourgadget/Gadgetbridge
Create a local.properties file in the Gadgetbridge folder
its contents should contain sdk location
sdk.dir = /Users/vamzi/Library/Android/sdk
Lets start with the APK build process
open Terminal, Change Directory to the gadget bridge folder using
cd ~/Downloads/gadgetbridge
and execute this command to start the build process
./gradlew assembleDebug
or
./gradlew assembleRelease
Step 2 : Obtaining the Authentication key
Clone the following Repo:
github.com/argrento/huami-token
Open terminal change directory to the cloned huami-token folder:
cd huami-token
Install the python dependencies using the following command:
pip3 install -r requirements.txt
Start obtaining the auth key :
python huami_token.py --method xiaomi --bt_keys
Copy the link generated under the script to a browser,
login to your MI Account which is bonded to our Mi band, copy the link generated after you login to the python terminal, and press enter
This will generate the Auth_Key copy it and save it.
send that authkey to your android device via mail or message
Step 3 : Install the Generated or Downloaded Gadget Bridge apk give all the required permissions and Notification access too,
Before we start the pairing process, disable or uninstall Mi Fit app, so it doesnt interrupt our GadgetBridge pairing proces.
on Gadget Bridge, start by tapping on the add button,
give the location access, as android needs location access to scan for bluetooth devices.
tap on Start discovery
this should display the Mi band 6 tap and hold on it, to start configuring the settings.
paste in the Authentication key and change other settings to your liking.
and tap on the back button, this will start the pairing process, and should add your mi band 6 to the application.
this app is a good alternative for the Mi Fit app, and this makes it possible to go thorough your health and activity stats on your device without the need to share it with the device manufacturer.
Donate to Gadget bridge Devs for making this awesome app
liberapay.com/Gadgetbridge/donate
and if you are good at coding,
Contributions are welcome, be it feedback, bug reports, documentation, translation, research or code. Feel free to work on any of the open issues; just leave a comment that you're working on one to avoid duplicated work. --devs at GadgetBridge
I pledge that all the money i get for this video, will send it directly to the GadgetBridge team :)
music first rain kontinuum, NCS release




![fix for Pycharm Linux No module named distutils cmd Unable to locate package python3.9-distutils
fix for Pycharm Linux No module named distutils cmd Unable to locate package python3.9-distutils
Error while installing python3.9-distutils:
E: Unable to locate package python3.9-distutils
E: Couldnt find any package by glob python3.9-distutils
E: Couldnt find any package by regex python3.9-distutils
Error on pycharm community edition when installing python modules:
error ModuleNotFoundError: No module named distutils.cmd
Solution :
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install python3.9-distutils
solution link:
https://askubuntu.com/questions/1239829/modulenotfounderror-no-module-named-distutils-util
Song: BVRNOUT - Take It Easy (feat. Mia Vaile) [NCS Release]
Music provided by NoCopyrightSounds
Free Download/Stream: http://ncs.io/TakeItEasy fix for Pycharm Linux No module named distutils cmd Unable to locate package python3.9-distutils](https://i.ytimg.com/vi/QoWx31IztpU/mqdefault.jpg)



![Fix for loading of unsigned module rejected when installing drivers for usb wifi dongle ubuntu
These drivers work for USB WiFi Adapters that are based on the RTL8811CU, RTL8821CU, RTL8821CUH and RTL8731AU Chipsets - v5.12.0.4
The link for github page is:
https://github.com/morrownr/8821cU-20210916
thanks to developer morrownr for updating the drivers regularly
The error is as follows
+0.000005] usb 3-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
+0.000002] us 3-3: Product: 802.11ac NIC
+0.000001] usb 3-3: Manufacturer: Realtek
+0.000001] usb 3-3: SerialNumber: 123456
+0.007299] Loading of unsigned module is rejected
fix is straight forward,
i disabled the secure boot option in Bios settings,
do access bios settings, keep tapping on delete while initial boot, then disable the secure boot, after that save the bios settings and reboot, this should make the drivers loaded properly, and wifi should start working
thanks for watching,
do like and subscribe Fix for loading of unsigned module rejected when installing drivers for usb wifi dongle ubuntu](https://i.ytimg.com/vi/ScfYxXrJZlM/mqdefault.jpg)

![Solution for cuda compiler 12 3 Depends cuda nvcc 12 3 |apt fix-broken install
Solution :
sudo apt fix-broken install -o Dpkg::Options:: force-overwrite
Error faced:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libnvidia-compute-535 libwmf0.2-7 linux-headers-6.1.11-76060111
linux-headers-6.1.11-76060111-generic linux-image-6.1.11-76060111-generic
linux-modules-6.1.11-76060111-generic nvidia-driver-535
Use sudo apt autoremove to remove them.
The following additional packages will be installed:
cuda-nvcc-12-3 cuda-nvrtc-12-3 cuda-nvrtc-dev-12-3 libcurand-12-3
libcurand-dev-12-3
The following packages will be upgraded:
cuda-nvcc-12-3 cuda-nvrtc-12-3 cuda-nvrtc-dev-12-3 libcurand-12-3
libcurand-dev-12-3
5 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
9 not fully installed or removed.
Need to get 0 B/144 MB of archives.
After this operation, 4,096 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 326513 files and directories currently installed.)
Preparing to unpack .../cuda-nvrtc-12-3_12.3.107-1_amd64.deb ...
Unpacking cuda-nvrtc-12-3 (12.3.107-1) over (12.3.103-1) ...
dpkg: error processing archive /var/cache/apt/archives/cuda-nvrtc-12-3_12.3.107-
1_amd64.deb ( unpack):
trying to overwrite /usr/local/cuda-12.3/lib64, which is also in package cuda
-cccl-12-3 12.3.101-1
Preparing to unpack .../libcurand-12-3_10.3.4.107-1_amd64.deb ...
Unpacking libcurand-12-3 (10.3.4.107-1) over (10.3.4.101-1) ...
dpkg: error processing archive /var/cache/apt/archives/libcurand-12-3_10.3.4.107
-1_amd64.deb ( unpack):
trying to overwrite /usr/local/cuda-12.3/lib64, which is also in package cuda
-cccl-12-3 12.3.101-1
Preparing to unpack .../cuda-nvcc-12-3_12.3.107-1_amd64.deb ...
Unpacking cuda-nvcc-12-3 (12.3.107-1) over (12.3.103-1) ...
dpkg: error processing archive /var/cache/apt/archives/cuda-nvcc-12-3_12.3.107-1
_amd64.deb ( unpack):
trying to overwrite /usr/local/cuda-12.3/include, which is also in package cu
da-cccl-12-3 12.3.101-1
Preparing to unpack .../cuda-nvrtc-dev-12-3_12.3.107-1_amd64.deb ...
Unpacking cuda-nvrtc-dev-12-3 (12.3.107-1) over (12.3.103-1) ...
dpkg: error processing archive /var/cache/apt/archives/cuda-nvrtc-dev-12-3_12.3.
107-1_amd64.deb ( unpack):
trying to overwrite /usr/local/cuda-12.3/include, which is also in package cu
da-cccl-12-3 12.3.101-1
No apport report written because MaxReports is reached already
Preparing to unpac
k .../libcurand-dev-12-3_10.3.4.107-1_amd64.deb ...
Unpacking libcurand-dev-12-3 (10.3.4.107-1) over (10.3.4.101-1) ...
dpkg: error processing archive /var/cache/apt/archives/libcurand-dev-12-3_10.3.4
.107-1_amd64.deb ( unpack):
trying to overwrite /usr/local/cuda-12.3/include, which is also in package cu
da-cccl-12-3 12.3.101-1
No apport report written because MaxReports is reached already
Errors were encoun
tered while processing:
/var/cache/apt/archives/cuda-nvrtc-12-3_12.3.107-1_amd64.deb
/var/cache/apt/archives/libcurand-12-3_10.3.4.107-1_amd64.deb
/var/cache/apt/archives/cuda-nvcc-12-3_12.3.107-1_amd64.deb
/var/cache/apt/archives/cuda-nvrtc-dev-12-3_12.3.107-1_amd64.deb
/var/cache/apt/archives/libcurand-dev-12-3_10.3.4.107-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
You might want to run apt fix-broken install to correct these.
The following packages have unmet dependencies:
cuda-compiler-12-3 : Depends: cuda-nvcc-12-3 (= 12.3.107) but 12.3.103-1 is installed
cuda-libraries-12-3 : Depends: cuda-nvrtc-12-3 (= 12.3.107) but 12.3.103-1 is installed
Depends: libcurand-12-3 (= 10.3.4.107) but 10.3.4.101-1 is installed
cuda-libraries-dev-12-3 : Depends: cuda-nvrtc-dev-12-3 (= 12.3.107) but 12.3.103-1 is installed
Depends: libcurand-dev-12-3 (= 10.3.4.107) but 10.3.4.101-1 is installed
cuda-nvcc-12-3 : Depends: cuda-nvvm-12-3 (= 12.3.103-1) but 12.3.107-1 is installed
Depends: cuda-crt-12-3 (= 12.3.103-1) but 12.3.107-1 is installed
E: Unmet dependencies. Try apt fix-broken install with no packages (or specify a solution). Solution for cuda compiler 12 3 Depends cuda nvcc 12 3 |apt fix-broken install](https://i.ytimg.com/vi/TOmf4z3oDYU/mqdefault.jpg)