Files
android/libwvdrmengine/apex/prebuilt/Android.bp
Jooyung Han 71781924e8 Fix prebuilt apexes
- Add vendor:true
- Use use_soong_config_var to toggle prebuilt/source_build

Bug: 251299786
Test: SOONG_CONFIG_widevine_module_source_build=false m \
        com.google.android.widevine
Change-Id: If835b443a825dcab1ec09aaa21001602e9b53d20
2023-04-21 17:05:11 +00:00

59 lines
2.2 KiB
Plaintext

// Copyright (C) 2023 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS. PLEASE
// CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE
// DEPENDING ON IT IN YOUR PROJECT. ***
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "vendor_widevine_license"
// to get the below license kinds:
// legacy_proprietary (by exception only)
default_applicable_licenses: ["vendor_widevine_license"],
}
apex_set {
name: "com.google.android.widevine.nonupdatable",
apex_name: "com.google.android.widevine",
owner: "google",
set: "com.google.android.widevine.nonupdatable.apks",
vendor: true,
// TODO(b/251299786): the prerelease field should be removed once
// new api version is released, e.g. U(34).
// This is a mitigation for apex extractor matching target sdk version
// with current prerelease version.
prerelease: true,
use_source_config_var: {
config_namespace: "widevine_module",
var_name: "source_build",
},
}
apex_set {
name: "com.google.android.widevine.lazy",
apex_name: "com.google.android.widevine.lazy",
owner: "google",
set: "com.google.android.widevine.lazy.apks",
vendor: true,
// TODO(b/251299786): the prerelease field should be removed once
// new api version is released, e.g. U(34).
// This is a mitigation for apex extractor matching target sdk version
// with current prerelease version.
prerelease: true,
use_source_config_var: {
config_namespace: "widevine_module",
var_name: "source_build",
},
}