Contains a patch that can be applied to the platforms/base repository of the AOSP source code intended for the Nexus 6P device (android-6.0.1_r45).
Instructions on the AOSP website.
mkdir ~/android-6.0.1_r45 cd ~/android-6.0.1_r45 repo init -u https://android.googlesource.com/platform/manifest -b android-6.0.1_r45 repo sync
cd frameworks/base patch -p1 < $JIRI_ROOT/release/projects/luma_third_party/rico_aosp/nexus6p/patch/patch.diff
If you plan on installing Google Play services or other GmsCore apps on this build, you should also apply the following patch that fixes permission issues.
patch -p1 < $JIRI_ROOT/release/projects/luma_third_party/gapps_aosp_patch/patch.diff
cd ~/android-6.0.1_r45 wget https://dl.google.com/dl/android/aosp/huawei-angler-3020518-2609fde4.tgz tar -xvzf huawei-angler-3020518-2609fde4.tgz ./extract-huawei-angler.sh rm huawei-angler-3020518-2609fde4.tgz wget https://dl.google.com/dl/android/aosp/qcom-angler-3020518-c3c4c7af.tgz tar -xvzf qcom-angler-3020518-c3c4c7af.tgz ./extract-qcom-angler.sh rm qcom-angler-3020518-c3c4c7af.tgz
source build/envsetup.sh lunch aosp_angler-eng make -j16 # Uses 16 threads.
The output will be in android-6.0.1_r45/out/target/product/angler/
With the phone connected over USB the following:
adb reboot bootloader fastboot flashing unlock # Only needed for the first time to unlock the device. cd out/target/product/angler fastboot -w flashall
With the phone connected over USB the following:
adb shell dumpsys activity start-view-server
adb forward tcp:<port> tcp:1699
nc localhost <port>