Add liboemcrypto.so as required by WV APEX

[ Merge of go/wvgerrit/164757 ]

Modify Widevine apex configuration to add add liboemcrypto.so as
required by WV APEX.

Bug: 243699259
Test: atp v2/widevine-eng/drm_compliance
Change-Id: I136dde5d77aed4fb14737e4692153c8f3b2c701b
This commit is contained in:
Kyle Zhang
2022-12-28 21:30:58 +00:00
parent 609349c314
commit a5c7a48f8a
8 changed files with 31 additions and 28 deletions

View File

@@ -65,7 +65,6 @@ apex {
manifest: "apex_manifest.json",
prebuilts: [
"com.google.android.widevine.rc",
"widevine-linker-config",
"com.google.android.widevine.xml", // etc/vintf
],
defaults: [
@@ -83,12 +82,6 @@ apex {
],
}
linker_config {
name: "widevine-linker-config",
src: "linker.config.json",
installable: false,
}
apex_key {
name: "com.google.android.widevine.key",
public_key: "com.google.android.widevine.avbpubkey",

View File

@@ -1,4 +1,7 @@
{
"name": "com.google.android.widevine",
"version": 1
"version": 1,
"requireNativeLibs": [
"liboemcrypto.so"
]
}

View File

@@ -0,0 +1,5 @@
linker_config {
name: "widevine_linker_config",
src: "linker.config.json",
vendor: true,
}

View File

@@ -0,0 +1,10 @@
PRODUCT_PACKAGES += \
com.google.android.widevine \
# Check if we can use dev keys
ifneq ($(wildcard vendor/google/dev-keystore),)
$(call soong_config_set,widevine,use_devkey,true)
endif
PRODUCT_PACKAGES += \
widevine_linker_config

View File

@@ -0,0 +1,5 @@
{
"provideLibs": [
"liboemcrypto.so"
]
}

View File

@@ -1,3 +0,0 @@
{
"permittedPaths": ["/vendor/${LIB}"]
}