blob: 32b571a8ee69f6eedba9c979137d039364429fc7 [file] [log] [blame]
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "frameworks_base_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["frameworks_base_license"],
}
filegroup {
name: "services.devicepolicy-sources",
srcs: ["java/**/*.java"],
path: "java",
visibility: ["//frameworks/base/services"],
}
java_library_static {
name: "services.devicepolicy",
defaults: ["platform_service_defaults"],
srcs: [
":services.devicepolicy-sources",
":statslog-devicepolicy-java-gen",
],
libs: [
"services.core",
"app-compat-annotations",
"service-permission.stubs.system_server",
"device_policy_aconfig_flags_lib",
"androidx.annotation_annotation",
],
}
genrule {
name: "statslog-devicepolicy-java-gen",
tools: ["stats-log-api-gen"],
cmd: "$(location stats-log-api-gen) --java $(out) --module devicepolicy" +
" --javaPackage com.android.server.devicepolicy --javaClass DevicePolicyStatsLog",
out: ["com/android/server/devicepolicy/DevicePolicyStatsLog.java"],
}