1package { 2 default_team: "trendy_team_haptics_framework", 3 // See: http://go/android-license-faq 4 // A large-scale-change added 'default_applicable_licenses' to import 5 // all of the 'license_kinds' from "hardware_interfaces_license" 6 // to get the below license kinds: 7 // SPDX-license-identifier-Apache-2.0 8 default_applicable_licenses: ["hardware_interfaces_license"], 9} 10 11cc_library { 12 name: "libexample_vib_getter", 13 srcs: ["getter.cpp"], 14 product_available: true, 15 vendor_available: true, 16 shared_libs: [ 17 "liblog", 18 "libbinder_ndk", 19 ], 20 header_libs: ["jni_headers"], 21 stl: "c++_shared", 22 visibility: [":__subpackages__"], 23} 24 25android_app { 26 name: "ExampleVibratorJavaVendorClient", 27 vendor: true, 28 static_libs: ["android.hardware.vibrator-V1-java"], 29 jni_libs: ["libexample_vib_getter"], 30 use_embedded_native_libs: true, 31 jarjar_rules: "jarjar.txt", 32 stl: "c++_shared", 33 srcs: ["example/vib/MyActivity.java"], 34 sdk_version: "system_current", 35 visibility: [":__subpackages__"], 36} 37 38android_app { 39 name: "ExampleVibratorJavaProductClient", 40 product_specific: true, 41 static_libs: ["android.hardware.vibrator-V1-java"], 42 jni_libs: ["libexample_vib_getter"], 43 use_embedded_native_libs: true, 44 jarjar_rules: "jarjar.txt", 45 stl: "c++_shared", 46 srcs: ["example/vib/MyActivity.java"], 47 sdk_version: "system_current", 48 visibility: [":__subpackages__"], 49 // If PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE is not true, product apps 50 // may use unstable APIs. jni_uses_platform_apis must set to use the 51 // non-SDK jni libs in this case. 52 // This is not required if PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE is 53 // set to true. 54 jni_uses_platform_apis: true, 55} 56