HarmonyOS is composed of open source codes (like Android) but the OS is closed source.
The kernel is open source, giving the possibility to make it run on various hardware.
Luck is you need to contract Huawei if you want to customize the OS.
Yes
Let's stay purely technical
I have the feeling some people (not you) confuse open source business model and closed source.
HarmonyOS next is written in chinese language code (canjii) and is not android compatible. They rely on their own kernel (who may be hybrid just like next step did when they changed to MacOsx) HarmonyOS is what FushiaOS is for Google. The difference is that google need as many people as possible in AOSP because it earns money not with aosp, but with their proprietary code (GMS)
their business model is different from microsoft, samsung or huawei. (each one use aosp according to its own business model)
HarmonyOS is a different matter. Openharmony is donated. So if you build a fridge in china, it may be coded on openharmony
As for AOSP, don't forget the code is open source. Huawei is a membrer of the alliance and is a contributor to this code.
Linux kernel majors codes contributors are huawei, intel, microsoft and of course google. You should differenciate a closed source code and an open source. AOSP is maintained (and not owned) by google so huawei, samsung or microsoft have every right to use a code they contributed to write.
The read file system used in android (erofs) is from Huawei
MacOSX is derived from freeBSB. Webkit (safari) is a fork of khtml (linux kde konqueror)
Blink/chromium is forked from webkit. Chrome os is built on a linux distribution (gentoo)
Open source mean you don't own the code (only a part of it depending on the licence). Google didn't create android. They certainly contributed to it more than others but others brought their code too and they maintain it. The kernel isn't coded by google but by the linux fondation
Huawei is a major linux membrer. They are legitimate to use use AOSP and they still publish EMUI wich is based on it. it is not a gift from anybody, they contributed to it too. Microsoft use aosp and linux (linux subsystem) in windows and microsoft are major linux contributors too.
AOSP (and open source) is not altruistic coders from all over the world (it used to be). It is a model where major firms benefits from others by reducing cost of development. Each company code for open source because it serves its own interests. All major compagnies code for linux. Microsoft servers are linux based, same for huawei.
For a couple of years now, Intel has been leading the code contribution ranking for the development of Linux Kernel by the number changeset or number of lines changed. According to the latest statistics reported on LWN.net, Intel tops the chart as one of the most active employers for
news.itsfoss.com
https://source.android.com/docs/core/architecture/kernel/erofs
when we use our android smartphone, we also use important open source code from huawei. Erofs for instance.
Google will reportedly use a new type of file format, called the EROFS file system, in Android 13. Wondering what it is? Here's everything that you need to know.
pocketnow.com