Use dedicated cert for static shared lib tests
Packages using a static shared lib need to refer it by name,
version, and SHA-256 of signing cert. However, when CTS is
build for release the cert used to sign apps that do not
explicitly specify a signing cert changes as a result the
static shared lib tests fail as the app consumer refers to
the worng cert SHA-256. This change fixes the user cert.
Test: All static shared lib CTS tests now pass
bug:34712107
Change-Id: Ibfc37bf5f136d708bf449a24432e4f4c51f571b0
diff --git a/hostsidetests/os/test-apps/StaticSharedLibConsumerApp1/AndroidManifest.xml b/hostsidetests/os/test-apps/StaticSharedLibConsumerApp1/AndroidManifest.xml
index a40457c..cbeb342 100755
--- a/hostsidetests/os/test-apps/StaticSharedLibConsumerApp1/AndroidManifest.xml
+++ b/hostsidetests/os/test-apps/StaticSharedLibConsumerApp1/AndroidManifest.xml
@@ -26,7 +26,7 @@
<uses-static-library
android:name="foo.bar.lib"
android:version="1"
- android:certDigest="6C:EC:C5:0E:34:AE:31:BF:B5:67:89:86:D6:D6:D3:73:6C:57:1D:ED:2F:24:59:52:77:93:E1:F0:54:EB:0C:9B">
+ android:certDigest="E4:95:82:FF:3A:0A:A4:C5:58:9F:C5:FE:AA:C6:B7:D6:E7:57:19:9D:D0:C6:74:2D:F7:BF:37:C2:FF:EF:95:F5">
</uses-static-library>
</application>
diff --git a/hostsidetests/os/test-apps/StaticSharedLibProviderApp1/Android.mk b/hostsidetests/os/test-apps/StaticSharedLibProviderApp1/Android.mk
index c5aa191..74f207a 100644
--- a/hostsidetests/os/test-apps/StaticSharedLibProviderApp1/Android.mk
+++ b/hostsidetests/os/test-apps/StaticSharedLibProviderApp1/Android.mk
@@ -24,6 +24,8 @@
LOCAL_PACKAGE_NAME := CtsStaticSharedLibProviderApp1
+LOCAL_CERTIFICATE := cts/hostsidetests/appsecurity/certs/keysets/cts-keyset-test-b
+
LOCAL_COMPATIBILITY_SUITE := cts
LOCAL_PROGUARD_ENABLED := disabled
diff --git a/hostsidetests/os/test-apps/StaticSharedLibProviderApp2/Android.mk b/hostsidetests/os/test-apps/StaticSharedLibProviderApp2/Android.mk
index 8717c90..41d1eec 100644
--- a/hostsidetests/os/test-apps/StaticSharedLibProviderApp2/Android.mk
+++ b/hostsidetests/os/test-apps/StaticSharedLibProviderApp2/Android.mk
@@ -24,6 +24,8 @@
LOCAL_PACKAGE_NAME := CtsStaticSharedLibProviderApp2
+LOCAL_CERTIFICATE := cts/hostsidetests/appsecurity/certs/keysets/cts-keyset-test-b
+
LOCAL_COMPATIBILITY_SUITE := cts
LOCAL_AAPT_FLAGS := --shared-lib
diff --git a/hostsidetests/os/test-apps/StaticSharedLibProviderApp3/Android.mk b/hostsidetests/os/test-apps/StaticSharedLibProviderApp3/Android.mk
index 989471b..0be0049 100644
--- a/hostsidetests/os/test-apps/StaticSharedLibProviderApp3/Android.mk
+++ b/hostsidetests/os/test-apps/StaticSharedLibProviderApp3/Android.mk
@@ -21,6 +21,8 @@
LOCAL_PACKAGE_NAME := CtsStaticSharedLibProviderApp3
+LOCAL_CERTIFICATE := cts/hostsidetests/appsecurity/certs/keysets/cts-keyset-test-b
+
LOCAL_COMPATIBILITY_SUITE := cts
LOCAL_AAPT_FLAGS := --shared-lib
diff --git a/hostsidetests/os/test-apps/StaticSharedLibProviderApp5/Android.mk b/hostsidetests/os/test-apps/StaticSharedLibProviderApp5/Android.mk
index a9df0f8..bfe894a 100644
--- a/hostsidetests/os/test-apps/StaticSharedLibProviderApp5/Android.mk
+++ b/hostsidetests/os/test-apps/StaticSharedLibProviderApp5/Android.mk
@@ -24,6 +24,8 @@
LOCAL_PACKAGE_NAME := CtsStaticSharedLibProviderApp5
+LOCAL_CERTIFICATE := cts/hostsidetests/appsecurity/certs/keysets/cts-keyset-test-b
+
LOCAL_COMPATIBILITY_SUITE := cts
LOCAL_AAPT_FLAGS := --shared-lib
diff --git a/hostsidetests/os/test-apps/StaticSharedLibProviderApp6/Android.mk b/hostsidetests/os/test-apps/StaticSharedLibProviderApp6/Android.mk
index 3c06105..335cce9 100644
--- a/hostsidetests/os/test-apps/StaticSharedLibProviderApp6/Android.mk
+++ b/hostsidetests/os/test-apps/StaticSharedLibProviderApp6/Android.mk
@@ -24,6 +24,8 @@
LOCAL_PACKAGE_NAME := CtsStaticSharedLibProviderApp6
+LOCAL_CERTIFICATE := cts/hostsidetests/appsecurity/certs/keysets/cts-keyset-test-b
+
LOCAL_COMPATIBILITY_SUITE := cts
LOCAL_AAPT_FLAGS := --shared-lib