Open source sure but that don't really matter because the essential components are not being messed with otherwise it won't work. There's different licenses for open source & theres probably a long tos to using aosp by google in modified implementations.
Here's a nice little article


How-To Geek
Android is open source, but your phone isn't—here's why Google locked it down
Android is open in theory, but very closed in practice.