Merge changes from topic "cp_calin_framework_2017"
* changes:
Fix otapreopt parameters reading
Fix profileSnapshot test in installd.
Allow public profile compilation for primary apks
[installd] Pass .dm files to dexopt
Replace profman invocation for prepareAppProfiles
Refactor argument parsing in ota preopt
Extract the otapreopt parameters in their own class and add tests
Fix profile guided compilation for secondaries and add more tests
[installd] Create profile snaphots for boot image
[installd] Extend profile operations to take the profile name
[installd] Prepare profiles for app code paths
Prepare installd to handle profiles per code path
Add Installd IPC to compute the SHA256 of a seconday dex file.