Huawei officially unveiled a self-developed open-source operating system (OS) on Friday, a major development in the embattled telecom giant’s effort to disentangle itself from the Google-made software it fears could get snarled up in U.S.-China trade tensions.