Separate ModifyInstallerPackageTest cross package installer takeover test

The INSTALL_PACKAGES permission is now required to change the
installer package for an app, but this isn't normally grantable.
But it is available when running an instrumentation test by
adopting shell permissions.

To allow this specific test to work, it was separated out into the
2 component packages, where the host will instrument both in
alternating fashion to allow A to verify data and attempt takeover,
and B to set its own installer in isolation.

A more ideal solution would be if A could instrument B, removing the
need to split the test cases into steps, but that doesn't seem
possible.

The original test class and its remaining cases were also migrated
to adopt the INSTALL_PACKAGES permission.

Bug: 158158242

Test: atest android.appsecurity.cts.AppSecurityTests

Merged-In: Iae070fa225e011f053b9cf61ee4c451e09171e9e
Change-Id: Iae070fa225e011f053b9cf61ee4c451e09171e9e
10 files changed