# Initialize local repository
repo init -u https://github.com/aosp-google/manifest -b pie
# Sync
repo sync -c -jx --force-sync --no-clone-bundle --no-tags
# Set up environment
$ . build/envsetup.sh
# Choose a target
$ lunch aosp_$device-userdebug
# Build the code
$ brunch $device