1package { 2 // See: http://go/android-license-faq 3 // A large-scale-change added 'default_applicable_licenses' to import 4 // all of the 'license_kinds' from "hardware_interfaces_license" 5 // to get the below license kinds: 6 // SPDX-license-identifier-Apache-2.0 7 default_applicable_licenses: ["hardware_interfaces_license"], 8} 9 10cc_binary { 11 name: "android.hardware.tests.extension.vibrator-service.example", 12 relative_install_path: "hw", 13 // normally you implement a service directly, but we are using an implementation 14 // from a library to attach our extension to. 15 static_libs: [ 16 "libvibratorexampleimpl", 17 ], 18 19 // need to add this in the manifest and to init as well to use, see 20 // android.hardware.vibrator-service.example. This binary is being tested 21 // by running it manually as root. 22 23 vendor: true, 24 srcs: [ 25 "service.cpp", 26 "CustomVibrator.cpp", 27 ], 28 shared_libs: [ 29 "libbase", 30 "libbinder_ndk", 31 "android.hardware.vibrator-V2-ndk", 32 "android.hardware.tests.extension.vibrator-V1-ndk", 33 ], 34} 35