Reject partially invalid profiles.

If a profile has both valid checksums (i.e. of DEX files actually in
the APK) and invalid ones, it should be considered an invalid profile.

Bug: 282901123
Test: m test-art-host-gtest-art_libprofile_tests
Test: -
  1. Construct a partially invalid profile.
  2. Prepare a device that has
     commit 9726215cf077737e02b998201809a06839a46014 (internal only)
     and this commit.
  3. Install the APK and the profile using `adb install-multiple`.
  4. See the command failing.
(cherry picked from https://android-review.googlesource.com/q/commit:c85391cc8ebc1e4da1712b5d905c857767afc3bd)
Merged-In: Ic5830b3f2c1b2c7a9030195527a9e0a63691f98a
Change-Id: Ic5830b3f2c1b2c7a9030195527a9e0a63691f98a
3 files changed