If you are developing a "piece" or tool related to this, your project would need: A Python/Bash Wrapper:
Because official codes are unavailable, developers use "bruteforce" or "test point" methods to bypass restrictions. huawei-honor-unlock-bootloader github
This is the most reliable open-source tool for devices with specific HiSilicon Kirin chipsets (e.g., Kirin 960, 659, 655). How it works If you are developing a "piece" or tool
PotatoNV/PotatoNV (and forks)