Fail adb install on external profile errors.

This is to warn app developers if they have provided bad external
profiles, including the profile in the DM file and the profile embedded
in the dex container file.

This change does not affect normal (non-adb) app install workflow.

Bug: 278080573
Test: atest CtsCompilationTestCases
Change-Id: I92529030cd13030df9effb5edc8e81374a06728b
5 files changed