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 19apex_key { 20 name: "com.google.emulated.camera.provider.hal.key", 21 public_key: "com.google.emulated.camera.provider.hal.avbpubkey", 22 private_key: "com.google.emulated.camera.provider.hal.pem", 23} 24 25android_app_certificate { 26 name: "com.google.emulated.camera.provider.hal.certificate", 27 certificate: "com.google.emulated.camera.provider.hal", 28} 29 30prebuilt_etc { 31 name: "com.google.emulated.camera.provider.hal.rc", 32 src: "com.google.emulated.camera.provider.hal.rc", 33 installable: false, 34} 35 36prebuilt_etc { 37 name: "com.google.emulated.camera.provider.hal.xml", 38 src: ":android.hardware.camera.provider@2.7-service-google.xml", 39 sub_dir: "vintf", 40 installable: false, 41} 42 43apex_defaults { 44 name: "com.google.emulated.camera.provider.hal.defaults", 45 manifest: "apex_manifest.json", 46 key: "com.google.emulated.camera.provider.hal.key", 47 certificate: ":com.google.emulated.camera.provider.hal.certificate", 48 file_contexts: "file_contexts", 49 use_vndk_as_stable: true, 50 updatable: false, 51 // Install the apex in /vendor/apex 52 soc_specific: true, 53 binaries: [ 54 "android.hardware.camera.provider@2.7-service-google", 55 ], 56 overrides: [ 57 "android.hardware.camera.provider@2.7-impl-google", 58 "android.hardware.camera.provider@2.7-service-google", 59 "libgooglecamerahwl_impl", 60 "libgooglecamerahwl_impl_fast_scene_cycle", 61 ], 62 prebuilts: [ 63 "com.google.emulated.camera.provider.hal.rc", 64 "com.google.emulated.camera.provider.hal.xml", // vintf fragment 65 "android.hardware.camera.concurrent.prebuilt.xml", 66 "android.hardware.camera.flash-autofocus.prebuilt.xml", 67 "android.hardware.camera.front.prebuilt.xml", 68 "android.hardware.camera.full.prebuilt.xml", 69 "android.hardware.camera.raw.prebuilt.xml", 70 "emu_camera_back.json", 71 "emu_camera_depth.json", 72 "emu_camera_front.json", 73 "emu_camera_external.json", 74 ], 75} 76 77apex { 78 name: "com.google.emulated.camera.provider.hal", 79 defaults: ["com.google.emulated.camera.provider.hal.defaults"], 80 native_shared_libs: ["libgooglecamerahwl_impl"], 81} 82 83apex { 84 name: "com.google.emulated.camera.provider.hal.fastscenecycle", 85 defaults: ["com.google.emulated.camera.provider.hal.defaults"], 86 native_shared_libs: ["libgooglecamerahwl_impl_fast_scene_cycle"], 87} 88