1// 2// Copyright (C) 2023 The Android Open Source Project 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15// 16 17package { 18 default_applicable_licenses: ["Android-Apache-2.0"], 19} 20 21cc_binary { 22 name: "android.hardware.oemlock-service.remote", 23 defaults: ["cuttlefish_guest_only"], 24 vendor: true, 25 relative_install_path: "hw", 26 27 srcs: [ 28 "remote_oemlock.cpp", 29 "service.cpp", 30 ], 31 32 static_libs: [ 33 "android.hardware.oemlock-V1-ndk", 34 "libbase", 35 "libcuttlefish_fs", 36 "libcuttlefish_utils", 37 "libcuttlefish_security", 38 "libcuttlefish_transport", 39 ], 40 41 stl: "c++_static", 42 43 shared_libs: [ 44 "libbinder_ndk", 45 "liblog", 46 ], 47 48 installable: false, // install in APEX 49} 50 51apex { 52 name: "com.google.cf.oemlock", 53 manifest: "apex_manifest.json", 54 file_contexts: "apex_file_contexts", 55 key: "com.google.cf.apex.key", 56 certificate: ":com.google.cf.apex.certificate", 57 updatable: false, 58 vendor: true, 59 60 binaries: ["android.hardware.oemlock-service.remote"], 61 prebuilts: [ 62 "android.hardware.oemlock-service.remote.rc", 63 "android.hardware.oemlock-service.remote.xml", 64 ], 65} 66 67prebuilt_etc { 68 name: "android.hardware.oemlock-service.remote.rc", 69 src: "android.hardware.oemlock-service.remote.rc", 70 installable: false, 71} 72 73prebuilt_etc { 74 name: "android.hardware.oemlock-service.remote.xml", 75 src: "android.hardware.oemlock-service.remote.xml", 76 sub_dir: "vintf", 77 installable: false, 78} 79