platform_system_vold/tests/Android.bp
Pawan Wagh efe3c891bd Adding corpus for vold fuzzer
Generated corpus using binder2corpus tool from recordings
of vold transactions and using it with vold service fuzzer.

Test: m vold_native_service_fuzzer && adb sync data && adb shell /data/fuzz/arm64/vold_native_service_fuzzer/vold_native_service_fuzzer /data/fuzz/arm64/vold_native_service_fuzzer/vold_native_service_fuzzer_corpus -runs=1000
Bug: b/299138341
Change-Id: Ic9bc7a7971790fa19a04181b6f89a33a0088bdd8
2023-09-06 21:20:16 +00:00

44 lines
928 B
Text

package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_test {
name: "vold_tests",
defaults: [
"vold_default_flags",
"vold_default_libs",
],
srcs: [
"Utils_test.cpp",
"VoldNativeServiceValidation_test.cpp",
],
static_libs: ["libvold"],
shared_libs: ["libbinder"]
}
cc_fuzz {
name: "vold_native_service_fuzzer",
defaults: [
"vold_default_flags",
"vold_default_libs",
"keystore2_use_latest_aidl_ndk_shared",
"service_fuzzer_defaults",
"fuzzer_disable_leaks"
],
static_libs: [
"libvold",
"android.security.maintenance-ndk",
"libkeymint_support",
],
header_libs: ["libvold_headers"],
srcs: [
"VoldFuzzer.cpp",
],
corpus: ["vold_native_service_fuzzer_corpus/*"],
fuzz_config: {
cc: [
"maco@google.com",
],
}
}