Just in case someone is still trying to find a way to control CM Profiles:
CM introduced it's platform SDK, which allows you to do just that. https://github.com/CyanogenMod/cm_platform_sdk/wiki
It's also on maven central
dependencies {
compile 'org.cyanogenmod:platform.sdk:4.+'
}