build: Preliminary support for FOS product builds

based on commit https://github.com/CyanogenMod/android_build/commit/d0734b11e7f020cc004678cae2726751e4955c80
authored by rmcc