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 19// Simple wrapper library for the android.security.rkp aidl that 20// is stable. This library has a stable interface and is used by 21// system server (who hosts the stable aidl interface). 22java_sdk_library { 23 name: "service-rkp", 24 srcs: ["src/**/*.java"], 25 defaults: ["framework-system-server-module-defaults"], 26 apex_available: ["com.android.rkpd"], 27 min_sdk_version: "33", 28 installable: true, 29 permitted_packages: [ 30 "android.security.rkp", 31 "android.security.rkp.service", 32 "com.android.rkpdapp", 33 ], 34 impl_library_visibility: [ 35 "//frameworks/base/services/tests/RemoteProvisioningServiceTests", 36 "//packages/modules/RemoteKeyProvisioning/system-server/tests/unit", 37 ], 38 static_libs: [ 39 "com.android.rkpdapp-aidl-java", 40 ], 41} 42 43systemserverclasspath_fragment { 44 name: "com.android.rkpd-systemserverclasspath-fragment", 45 contents: ["service-rkp"], 46 apex_available: ["com.android.rkpd"], 47} 48