This document describes how to modify the Android Open Source Project (AOSP) to include components from a factory system image in order to enable features like the Google Play Store. It involves extracting the system image, comparing it to the AOSP system directory, deodexing optimized files, and tailoring Makefiles to declare which apps, files and system properties to include from the factory build. This process allows one to build a customized version of AOSP that more closely resembles the commercial device.