Use devkeys for widevine apex only if they are available

In partner branches devkeys are not available. Use devkeys only when
they are available. Otherwise, use testkeys.

Bug: 249309699
Test: m com.google.android.widevine
Change-Id: If4c5cc208b404e64e576a5e4d5cfb50637bac3ac
This commit is contained in:
Jooyung Han 2022-09-30 14:20:02 +09:00 committed by TreeHugger Robot
parent 7083367acb
commit b7dda6c697

View file

@ -2,3 +2,8 @@ PRODUCT_PACKAGES += \
android.hardware.drm-service.clearkey \
com.google.android.widevine
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs201-sepolicy/widevine
# Check if we can use dev keys
ifneq ($(wildcard vendor/google/dev-keystore),)
$(call soong_config_set,widevine,use_devkey,true)
endif