[installd] Support creating oat dir hierarchy for inherit install.

This is to support the Package Manager change in
commit 767b1214ba6e5640380827d2f32ddb85271d938c. Details can be found
there.

Bug: 258223472
Test: -
  1. Install a base APK using `adb install`.
  2. Check the files in the oat dir and their inodes.
  3. Install a split APK using `adb install -p` (inherit install).
  4. Verify that the existing files are there in the oat dir at the
     destination and their inodes are unchanged.
Flag: android.content.pm.alternative_for_dexopt_cleanup
Change-Id: I97f8e2be418a9375b84e2b872dc17d5bee0406d9
4 files changed