Android is fundamentally FOSS, but in reality Google has an additional proprietary layer over the top (that unfortunately is growing)
HarmonyOS is fundamentally proprietary, but a few components are GPL licence so they’ve done the bare minimum in making that open to satisfy the law. And even those parts are being stripped out over time.