Merge "APM: use the device profile to update dynamic profiles."