Tested in KRT16M / KOT49H
Steps
Follow the steps here
http://source.android.com/source/building.html
- unlock device
get source code Version
- KRT16M | android-4.4_r1
- KOT49H | android-4.4.2_r1
get nexus driver
fix what's missing in nexus driver
link
yes, pull the binary from stock ROM first If you didn't do that, your SIM cannot be used(optional) get /system/media/bootanimation.zip Because AOSP android doesn't have nexus animation
(ADD: 2013/11/29 16:55) add Network Location Provider for GMS
link
Fixed Wireless GPS issues. Changed "config_locationProviderPackageNames" from "com.google.android.location" to "com.google.android.gms" in frameworks/base/core/res/res/values/config.xmlstart to build
$ source build/envsetup.sh $ lunch => Press AOSP hammerhead userdebug $ make clobber $ make -j 4
flash custom recovery (CWM or TWRP)
flash everything other than recovery
fastboot reboot bootloader
Press VOL-UP than power button to enter recovery mode
Choose Advanced -> sideload mode, if you are using TWRP$ adb sideload gapps gapps link http://forum.xda-developers.com/showthread.php?t=2397942 $ adb sideload stock_boot_animation or adb push bootanimation.zip into /system/media/bootanimation.zip
do a factory reset
(ADD: 2013/12/19 16:07)
fix green line issue in camcorder KOT49H (KRT16M has this issue?)
Replace /system/lib/libmmcamera_interface.so by stock one
link
Have fun!