Add Widevine lazy apex

Bug: 244498309
Test: m com.google.android.widevine.lazy
Change-Id: I226ae922e9ab7817353d3e94d509b9579c6551e1
This commit is contained in:
Kyle Zhang
2023-03-09 19:52:12 +00:00
parent 74be14065e
commit 24e7d20c2e
7 changed files with 119 additions and 8 deletions

View File

@@ -38,6 +38,16 @@ widevine_apex_defaults {
compile_multilib: "first",
},
},
prebuilts: [
"com.google.android.widevine.xml", // etc/vintf
],
updatable: false,
// TODO(b/268439003) We need an API to get apex version. Until then
// we'll read apex_manifest.pb to get the version. To label apex_manifest.pb
// as vendor_configs_file (which the apex can access), turn off force-label.
use_file_contexts_as_is: true,
use_vndk_as_stable: true,
vendor: true,
}
soong_config_module_type {
@@ -62,7 +72,6 @@ widevine_key_apex_defaults {
apex {
name: "com.google.android.widevine",
vendor: true,
manifest: "apex_manifest.json",
prebuilts: [
"com.google.android.widevine.rc",
@@ -74,13 +83,6 @@ apex {
],
binaries: ["android.hardware.drm-service.widevine"],
file_contexts: "file_contexts",
// TODO(b/268439003) We need an API to get apex version. Until then
// we'll read apex_manifest.pb to get the version. To label apex_manifest.pb
// as vendor_configs_file (which the apex can access), turn off force-label.
use_file_contexts_as_is: true,
use_vndk_as_stable: true,
updatable: false,
// install sysconfig to allow the apex to be updatable
required: [