On the previous post, we got the AOSP code into our environment and learned how that process works. The repo tool and the Manifest project goes hand-in-hand, managing the 200+ git repositories, all part of the AOSP.
Now that we have all the code locally, we need to get all those lines of code into a nice package we can eventually install on a device. The nice guys in Google brought us some nice utilities to help with that. To initialize your environment with those new functions and environment variables, you need to run the command:
$ source <working dir>/build/envsetup.sh
Note: I’m using Mac OS with “oh-my-zsh” and “zsh” as my default shell. When running this command from a shell other than “bash”, you’ll get a warning that only bash is supported. From my experience, I can tell that I never ran into a problem. If you know otherwise – let me know, otherwise – I highly recommend this configuration regardless of AOSP work.
Now, we can get this party started..