swcodec: add a check for the case that the apex name is overridden.
Due to the lack of this check, the test was being skipped.
Test: atest media_swcodec_e2e_tests
Bug: 135294136
Change-Id: I35fa236ea24b4a92b36d99bdf00da43f1f40f8b8
diff --git a/tests/src/com/android/tests/apex/MediaSwCodecHostTest.java b/tests/src/com/android/tests/apex/MediaSwCodecHostTest.java
index 040fc28..4ed064b 100644
--- a/tests/src/com/android/tests/apex/MediaSwCodecHostTest.java
+++ b/tests/src/com/android/tests/apex/MediaSwCodecHostTest.java
@@ -52,7 +52,8 @@
throws DeviceNotAvailableException, IOException {
// Run tests only when the device has swcodec apex installed.
for (ApexInfo info : getDevice().getActiveApexes()) {
- if (info.name.equals("com.android.media.swcodec")) {
+ if (info.name.equals("com.android.media.swcodec")
+ || info.name.equals("com.google.android.media.swcodec")) {
doTestStageActivateUninstallApexPackage();
return;
}