Add getApkContentsSigners tests to APK signing tests

The GET_SIGNING_CERTIFICATES flag introduced with key rotation is used
to request the full signing certificate lineage through PackageManager#
getPackageInfo. The resulting SigningInfo object has a
getApkContentsSigners method that should only return the current signer.
This commit verifies this method only returns the single current signer
for an APK signed with a rotated key and both of the current signers for
an APK signed with two V2 signers.

Fixes: 154752268
Test: atest PkgInstallSignatureVerificationTest
Change-Id: Ibdfae6699ec8db54a828a778f1ae055defb54889
8 files changed