[Amazfit] Saratoga79:
Manual installation method

Manual installation method

Introduction

Here I will explain how to install the firmware using a command window or any other terminal.

The requirements are the ones stated in first post.

On your terminal, go to the path where all the files were unzipped, or if you are running a Windows OS, just run terminal_cmd.bat and you are good to go.

OTA Installation

Download OTA installer from Post #1 and if you are running a Windows PC, run terminal_cmd.bat, or any other command/terminal window on your PC in the root of the unzipped folder.

Copy the update to the watch

[COLOR="Blue"]adb push update.zip /sdcard
[/COLOR]

And launch the update

[COLOR="blue"]adb reboot update[/COLOR]

Wait to the end of the update, and when the watch reboots delete the update file

[COLOR="blue"]adb shell rm /sdcard/update.zip[/COLOR]

Firmware installation

On your terminal, go to the path where all the Firmware files were unzipped.

You can copy and paste all needed commands.

1. Connect the watch to the PC and check the connection with the watch

[COLOR="Blue"]adb devices[/COLOR]

Output (or similar)

List of devices attached
9dee1d33 device

2. Reboot in fastboot mode

[COLOR="blue"]adb shell reboot bootloader[/COLOR]

3. When the watch reboots in fastboot mode, check the connection with the watch

[COLOR="blue"]fastboot devices[/COLOR]

Output (or similar)

0123456789 fastboot

4. Boot the modded recovery

[COLOR="blue"]fastboot boot recovery_mod.img[/COLOR]

Output (or similar)

Downloading 'boot.img' OKAY [ 0.450s]
booting FAILED (status read failed (Too many links))
Finished. Total time: 1.678s

5. Wait until you get a triangle with an exclamation mark in your watch

6. Copy the files to the watch (it may take up to a minute)

[COLOR="blue"]adb push boot.img /data/media/0/
adb push system.img.gz /data/media/0/
adb push md5s.txt /data/media/0/
adb push flash_rom.sh /data/media/0/[/COLOR]

Output (or similar)

boot.img: 1 file pushed. 7.1 MB/s (9437184 bytes in 1.264s)
system.img.gz: 1 file pushed. 5.0 MB/s (438606404 bytes in 84.087s)
md5s.txt: 1 file pushed. 0.0 MB/s (91 bytes in 0.003s)
flash_rom.sh: 1 file pushed. 0.1 MB/s (458 bytes in 0.006s)

7. Start Firmware installation (it may take up to 4 minutes)

[COLOR="blue"]adb shell sh /data/media/0/flash_rom.sh[/COLOR]

Output (or similar)

Validating images
boot.img: OK
system.img.gz: OK
Starting to flash now. DO NOT TURN OFF OR REMOVE THE USB CABLE!
Flashing boot.img
2304+0 records in
2304+0 records out
9437184 bytes (9.0MB) copied, 1.836843 seconds, 4.9MB/s
Flashing system.img
287744+0 records in
287744+0 records out
1178599424 bytes (1.1GB) copied, 156.970842 seconds, 7.2MB/s
Finished

8. We have already installed the firmware, now delete installation files form the watch

[COLOR="blue"]adb shell rm /data/media/0/boot.img
adb shell rm /data/media/0/system.img.gz
adb shell rm /data/media/0/md5s.txt
adb shell rm /data/media/0/flash_rom.sh[/COLOR]

9. Reboot the watch

[COLOR="blue"]adb reboot[/COLOR]

10. When the splash screen is passed and the bootanimation starts, set your watch to English language

[COLOR="blue"]adb shell setprop persist.sys.language en
adb shell setprop persist.sys.country US[/COLOR]

Stock Recovery and Bootloader installation process

11. Reboot in fastboot mode

[COLOR="blue"]adb shell reboot bootloader[/COLOR]

12. Boot temporal root

[COLOR="blue"]fastboot boot boot-US-adb-root.img[/COLOR]

Output (or similar)

Downloading 'boot.img' OKAY [ 0.368s]
booting FAILED (status read failed (Too many links))
Finished. Total time: 1.572s

13. Copy stock Recovery and Bootloader files to the watch

[COLOR="blue"]adb push install_recovery.sh /data/media/0/
adb push recovery.img /data/media/0/
adb push u-boot-with-spl-mbr-gpt.bin /data/media/0/[/COLOR]

Output (or similar)

install_recovery.sh: 1 file pushed. 0.1 MB/s (687 bytes in 0.009s)
recovery.img: 1 file pushed. 1.6 MB/s (16777216 bytes in 10.082s)
u-boot-with-spl-mbr-gpt.bin: 1 file pushed. 2.2 MB/s (894764 bytes in 0.387s)

14. Run the recovery installation script

[COLOR="blue"]adb shell cd /data/media/0/; sh install_recovery.sh[/COLOR]

Output (or similar)

============= STOCK Installer ===============
Flashing recovery...
4096+0 records in
4096+0 records out
16777216 bytes (16.0MB) copied, 1.908566 seconds, 8.4MB/s
Done. OTA updates should now work.

15. Flash Bootloader

[COLOR="blue"]adb shell busybox dd if=/data/media/0/u-boot-with-spl-mbr-gpt.bin of=/dev/block/mmcblk0[/COLOR]

Output (or similar)

1747+1 records in
1747+1 records out
894764 bytes (873.8KB) copied, 0.695597 seconds, 1.2MB/s

16 . Delete stock recovery and Bootloader installation files

[COLOR="blue"]adb shell rm /data/media/0/install_recovery.sh
adb shell rm /data/media/0/recovery.img
adb shell rm /data/media/0/u-boot-with-spl-mbr-gpt.bin
[/COLOR]

17. Reboot the watch

[COLOR="blue"]adb reboot[/COLOR]

18. Finish.

Go to Amazfit app and update to latest version.

Ultra Mode Resources

Since this firmware installer, I'm adding a new script to manage Ultra Mode resources.

If rebooting into Ultra mode doesn't work or you just get a black screen, run mcu_US.bat when you are in Smart Mode to fix it. This will update all needed files relating to Ultra Mode.

Manual commands

Open a command terminal window in the root of the installer folder and use:

[COLOR="Blue"]adb push mcu\. /sdcard/firmware
adb shell mcu_res_upgrade -r /sdcard/firmware -z /sdcard/firmware
adb shell check_mcu_res_upgrade.sh
adb shell rm -r /sdcard/firmware
adb reboot[/COLOR]

Some extra useful commands

Factory Reset

VERY IMPORTANT:

Don't do a factory reset in fastboot or you will brick the watch

You can factory reset your watch by:

[COLOR="Blue"]adb reboot wipe[/COLOR]

When it's done, the watch will turn off.

Launch pairing QR code

You can use:

[COLOR="Blue"]adb shell am start -n com.huami.watch.setupwizard/.InitPairQRActivity[/COLOR]

Reboot into Ultra mode

You can reboot into Ultra mode by:

[COLOR="blue"]adb reboot mcu[/COLOR]