1// Copyright (C) 2022 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19java_sdk_library { 20 name: "service-configinfrastructure", 21 srcs: ["java/**/*.java"], 22 defaults: [ 23 "framework-system-server-module-defaults", 24 "framework-system-server-module-optimize-defaults", 25 ], 26 permitted_packages: [ 27 "android.provider", 28 "com.android.server.deviceconfig", 29 ], 30 apex_available: [ 31 "com.android.configinfrastructure", 32 ], 33 static_libs: [ 34 "modules-utils-build", 35 "modules-utils-shell-command-handler", 36 "device_config_reboot_flags_java_lib", 37 "guava", 38 "libaconfig_java_proto_lite", 39 ], 40 libs: [ 41 "framework-configinfrastructure.impl", 42 "framework-connectivity.stubs.module_lib", 43 ], 44 impl_only_libs: [ 45 "DeviceConfigServiceResources", 46 ], 47 min_sdk_version: "34", 48 sdk_version: "system_server_current", 49 jarjar_rules: "jarjar-rules.txt", 50 impl_library_visibility: [ 51 "//packages/modules/ConfigInfrastructure/service/javatests", 52 ], 53} 54 55aconfig_declarations { 56 name: "device_config_reboot_flags", 57 package: "com.android.server.deviceconfig", 58 container: "com.android.configinfrastructure", 59 srcs: [ 60 "flags.aconfig", 61 ], 62} 63 64java_aconfig_library { 65 name: "device_config_reboot_flags_java_lib", 66 min_sdk_version: "34", 67 apex_available: [ 68 "com.android.configinfrastructure", 69 ], 70 aconfig_declarations: "device_config_reboot_flags", 71} 72