Files
android/libwvdrmengine/tools/factory_upload_tool/Android.bp
conglin 1f77085571 Re-purpose internal factory upload tool for AOSP
This tool was supposed to be used for internal debugging purpose on
Android devices. It already supports RKP uploading CSR format.

Extend this tool to support  Widevine uploading format: JSON csr
and make this format as default output for AOSP (non-GMS) partners.

A later change will move it to its own aosp/ directory.

Test: run "wv_factory_extraction_tool json_csr" on Pixel 9
Bug: 414642286
Change-Id: I9cf4e9696d32201cc1ad70b6bee7932f7126a4ba
2025-06-17 06:22:40 +00:00

54 lines
1.4 KiB
Plaintext

package {
default_team: "trendy_team_media_framework_drm",
// 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:
// SPDX-license-identifier-Apache-2.0
// legacy_by_exception_only (by exception only)
// legacy_proprietary (by exception only)
default_applicable_licenses: ["vendor_widevine_license"],
}
cc_binary {
name: "wv_factory_extraction_tool",
relative_install_path: "hw",
vendor: true,
cflags: [
"-Wall",
"-Wextra",
],
shared_libs: [
"libbase",
"libcppbor",
"libcppcose_rkp",
"libcrypto",
"liblog",
"libutils",
],
static_libs: [
"libwv_cdm_utils",
],
srcs: [
"cli.cpp",
"src/log.cpp",
"src/properties_android.cpp",
"src/BccParser.cpp",
"src/WidevineProvisioner.cpp",
"src/WidevineOemcryptoInterface.cpp",
],
include_dirs: [
"vendor/widevine/libwvdrmengine/oemcrypto/include",
"vendor/widevine/libwvdrmengine/cdm/util/include",
],
local_include_dirs: [
"include",
],
dist: {
targets: [
"dist_files",
],
dest: "wv_factory_extraction_tool",
},
}