wv_factory_extraction_tool: extract provision 4.0 csr

Includes following fixes:
* http://ag/19196496 Fix the length of the extracted BCC
* http://ag/21097263 Add "version" to device info in prov4 upload tool

Bug: 231677822
Test: adb shell wv_factory_extraction_tool csr
Change-Id: I9f21514b027261f1d69c24a4d2f54051ccaac9a5
This commit is contained in:
Robert Shih
2022-05-06 01:38:52 -07:00
parent 4e582ceff0
commit 6bdc49bd4c
9 changed files with 925 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
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:
// SPDX-license-identifier-Apache-2.0
// legacy_by_exception_only (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_external",
"libcppcose_rkp",
"libcrypto",
"liblog",
"libutils",
],
srcs: [
"cli.cpp",
"src/log.cpp",
"src/properties_android.cpp",
"src/WidevineProvisioner.cpp",
"src/WidevineOemcryptoInterface.cpp",
],
include_dirs: [
"vendor/widevine/libwvdrmengine/oemcrypto/include",
"vendor/widevine/libwvdrmengine/cdm/util/include",
],
local_include_dirs: [
"include",
],
}