• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
36apex_defaults {
37    name: "com.google.emulated.camera.provider.hal.defaults",
38    manifest: "apex_manifest.json",
39    key: "com.google.emulated.camera.provider.hal.key",
40    certificate: ":com.google.emulated.camera.provider.hal.certificate",
41    file_contexts: "file_contexts",
42    use_vndk_as_stable: true,
43    updatable: false,
44    // Install the apex in /vendor/apex
45    soc_specific: true,
46    binaries: [
47        "android.hardware.camera.provider@2.7-service-google",
48    ],
49    overrides: [
50        "android.hardware.camera.provider@2.7-impl-google",
51        "android.hardware.camera.provider@2.7-service-google",
52        "libgooglecamerahwl_impl",
53        "libgooglecamerahwl_impl_fast_scene_cycle",
54    ],
55    prebuilts: [
56        "com.google.emulated.camera.provider.hal.rc",
57        "android.hardware.camera.concurrent.prebuilt.xml",
58        "android.hardware.camera.flash-autofocus.prebuilt.xml",
59        "android.hardware.camera.front.prebuilt.xml",
60        "android.hardware.camera.full.prebuilt.xml",
61        "android.hardware.camera.raw.prebuilt.xml",
62        "emu_camera_back.json",
63        "emu_camera_depth.json",
64        "emu_camera_front.json",
65    ],
66    vintf_fragments: [":android.hardware.camera.provider@2.7-service-google.xml"],
67}
68
69apex {
70    name: "com.google.emulated.camera.provider.hal",
71    defaults: ["com.google.emulated.camera.provider.hal.defaults"],
72    native_shared_libs: ["libgooglecamerahwl_impl"],
73}
74
75apex {
76    name: "com.google.emulated.camera.provider.hal.fastscenecycle",
77    defaults: ["com.google.emulated.camera.provider.hal.defaults"],
78    native_shared_libs: ["libgooglecamerahwl_impl_fast_scene_cycle"],
79    multi_install_skip_symbol_files: true,
80}
81