To get started with Android, you'll need to get familiar with Git and Repo.
To initialize your local repository using the AOSP trees, use a command like this:
repo init -u https://github.com/Onepiece-project/platform_manifest.git -b aosp-7.1.2
or if you use SSH:
repo init -u [email protected]:Onepiece-project/platform_manifest.git -b aosp-7.1.2
Then to sync up:
repo sync --force-sync --current-branch --no-tags --no-clone-bundle --optimized-fetch --force-broken
Set up build enviroment
. build/envsetup.sh
If you want to disable block-based OTA
export BLOCK_BASED_OTA=false
Select device
lunch
Compile the rom
mka jdc