Add otapreopt logic for CompactDex version bump

For old versions, or in the flag.

Bug: 63756964
Bug: 74245837
Test: adb shell /data/nativetest64/installd_otapreopt_test/installd_otapreopt_test

Change-Id: Ie316f5327ca479f55b34a3ddb7cd6640043116cd
2 files changed