Android is mostly open source, meaning one can take it, modify and redistribute. That's what phone companies do by the way. But there are other alternative versions of android, such as LineageOS
But android apps also need google play services, which proprietary and evil (it tracks you). There is a free implementation called microg
/e/ is based on both and more. It's pretty and offers online services
Mamot.fr est une serveur Mastodon francophone, géré par La Quadrature du Net.