Modify dexopt invocation based on install scenario

This CL implements the logic that modifies the way dexopt is invoked
based on the provided installation scenario.

Bug: 173137187
Test: build
Merged-In: Iab34d79cbbc4fb0d88946ef38a1edcca16cd3a29
Change-Id: Iab34d79cbbc4fb0d88946ef38a1edcca16cd3a29
5 files changed