Chinese tech giant Huawei on unveiled its first smartphone equipped with a fully homegrown operating system, a key test in the firm's fight to challenge the dominance of Western juggernauts.