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 "frameworks_base_license" 5 // to get the below license kinds: 6 // SPDX-license-identifier-Apache-2.0 7 default_applicable_licenses: ["frameworks_base_license"], 8} 9 10filegroup { 11 name: "services.usb-sources", 12 srcs: ["java/**/*.java"], 13 path: "java", 14 visibility: ["//frameworks/base/services"], 15} 16 17java_library_static { 18 name: "services.usb", 19 defaults: ["platform_service_defaults"], 20 srcs: [":services.usb-sources"], 21 22 libs: [ 23 "services.core", 24 "android.hidl.manager-V1.0-java", 25 "android.hardware.usb.gadget-V1.0-java", 26 "android.hardware.usb.gadget-V1.1-java", 27 "android.hardware.usb.gadget-V1.2-java", 28 "android.hardware.usb.gadget-V1-java", 29 ], 30 31 static_libs: [ 32 "android.hardware.usb-V1.0-java", 33 "android.hardware.usb-V1.1-java", 34 "android.hardware.usb-V1.2-java", 35 "android.hardware.usb-V1.3-java", 36 "android.hardware.usb-V3-java", 37 "usb_flags_lib", 38 ], 39 lint: { 40 baseline_filename: "lint-baseline.xml", 41 }, 42} 43 44aconfig_declarations { 45 name: "usb_flags", 46 package: "com.android.server.usb.flags", 47 container: "system", 48 srcs: ["**/usb_flags.aconfig"], 49} 50 51java_aconfig_library { 52 name: "usb_flags_lib", 53 aconfig_declarations: "usb_flags", 54} 55