According to wikipedia, 洪門(Hongmen) is the alternative name for Tiandihui(天地會), an illegal society in Hong Kong, which sounds similar to Hongmeng.
So, if I have it right:
Originally Huawei called their OS 'Hongmeng'. But that sounds like 'Hongmen' which is an alternative name used (but not exclusively) for the outlawed Tiandihui crime syndicate.
something close to that.
Neither are especially auspicious, it seems! But perhaps the first one was intended as "oh hai plz do not use unfinished OS".
No-one in the west knows about black societies and no-one ever heard that word. I think this is about having an 'international' name that does not sound too foreign/Chinese and that is not opened to misinformation campaigns.
Don't know where you're going with this.
I myself could not have imagined character 貓 being censored because of another "Mao"