Download framework source code: frameworks.patch
Download packages source code: package.patch
Download external source code: external.patch
0. Please download Android source code here (should be 6.0.1_r11) and continue
0-1. before step 1, should run make dexlib2 and mv ./out/target/common/external/dexlib2.jar ./external/smali1. Place '.patch' files in the root of [android_source_directory]
2. for framework, type below
$ patch -p1 < [framework_patch_file]
3. for packages, type below
$ patch -p1 < [packages_patch_file]
4. for external, type below
$ patch -p1 < [external_patch_file]
You are ready to build, and make. should run make update-api before you make