How do I to compile newest version of AOSP for any smartphone? How do companies like Facebook, Twitter, Google, manage external libraries newest than native version of the distribution used for production?