Search code examples
androidandroid-source

Can I download AOSP and compile the Android OS on a MacBook or other macOS device?


My computer is a MacBook, and I want to download and compile Android. However, there is something saying on the Internet that AOSP can be downloaded directly on Mac, but it may pollute the system.

So, can I download and compile Android on my MacBook?


Solution

  • Not anymore.

    macOS used to be a supported platform for building AOSP; however, as of June 21, 2021, support has been removed.

    So, if you're building a version of AOSP from before then, it should work, but no new versions (including the current one) will support that.