summaryrefslogtreecommitdiff
path: root/devices/EmulatedCamera/hwl/apex/Android.bp
diff options
context:
space:
mode:
Diffstat (limited to 'devices/EmulatedCamera/hwl/apex/Android.bp')
-rw-r--r--devices/EmulatedCamera/hwl/apex/Android.bp69
1 files changed, 69 insertions, 0 deletions
diff --git a/devices/EmulatedCamera/hwl/apex/Android.bp b/devices/EmulatedCamera/hwl/apex/Android.bp
new file mode 100644
index 0000000..8f79f15
--- /dev/null
+++ b/devices/EmulatedCamera/hwl/apex/Android.bp
@@ -0,0 +1,69 @@
+// Copyright (C) 2022 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
+apex_key {
+ name: "com.google.emulated.camera.provider.hal.key",
+ public_key: "com.google.emulated.camera.provider.hal.avbpubkey",
+ private_key: "com.google.emulated.camera.provider.hal.pem",
+}
+
+android_app_certificate {
+ name: "com.google.emulated.camera.provider.hal.certificate",
+ certificate: "com.google.emulated.camera.provider.hal",
+}
+
+prebuilt_etc {
+ name: "com.google.emulated.camera.provider.hal.rc",
+ src: "com.google.emulated.camera.provider.hal.rc",
+ installable: false,
+}
+
+apex {
+ name: "com.google.emulated.camera.provider.hal",
+ manifest: "apex_manifest.json",
+ key: "com.google.emulated.camera.provider.hal.key",
+ certificate: ":com.google.emulated.camera.provider.hal.certificate",
+ file_contexts: "file_contexts",
+ use_vndk_as_stable: true,
+ updatable: false,
+ // Install the apex in /vendor/apex
+ soc_specific: true,
+ binaries: [
+ "android.hardware.camera.provider@2.7-service-google",
+ ],
+ native_shared_libs: [
+ "libgooglecamerahwl_impl",
+ ],
+ overrides: [
+ "android.hardware.camera.provider@2.7-impl-google",
+ "android.hardware.camera.provider@2.7-service-google",
+ "libgooglecamerahwl_impl",
+ ],
+ prebuilts: [
+ "com.google.emulated.camera.provider.hal.rc",
+ "android.hardware.camera.concurrent.prebuilt.xml",
+ "android.hardware.camera.flash-autofocus.prebuilt.xml",
+ "android.hardware.camera.front.prebuilt.xml",
+ "android.hardware.camera.full.prebuilt.xml",
+ "android.hardware.camera.raw.prebuilt.xml",
+ "emu_camera_back.json",
+ "emu_camera_depth.json",
+ "emu_camera_front.json",
+ ],
+ vintf_fragments: [":android.hardware.camera.provider@2.7-service-google.xml"],
+}