Skip to content

Huami GPS

Some gadgets (Bip, Bip S...) contain a GPS receiver.

The GPS chip performs better if it has recent aGPS data.

aGPS data can be uploaded to some devices using the instructions below. Not all newer devices can be updated with aGPS data via Gadgetbridge, per issue #2253

Obtaining aGPS data

huami-token

aGPS data can be obtained via huami-token, for example:

python ./huami_token.py -m xiaomi -e my@email -p p4ssword -g

That will download the following two files:

  • cep_7days.zip
  • cep_alm_pak.zip

From the cep_alm_pak.zip you unzip cep_pak.bin and gps_alm.bin and flash them into the watch.

huafetcher

The huami-token Python script is also wrapped into a Kivy GUI and packaged for Android as huafetcher.

It downloads and unzips cep_pak.bin and gps_alm.bin into /storage/emulated/0.

AGPS Helper

AGPS Helper is an unofficial open-source Android app that downloads aGPS files from the Zepp online service and exports them to Android Downloads. The downloaded files can then be opened with Gadgetbridge.

Zepp OS

Zepp OS devices can update aGPS data by installing either an EPO ZIP file or a UIHH aGPS file.

The file type depends on the watch, and the full list is not known. If installing one fails, you can simply try the other, as watches reject invalid file types.