Browse Source

Add camera hal prebuilts

Change-Id: I8d84ea21ccfaf5bb9a428dc5388d082c5b9d4ebd
Chuanzhou 11 months ago
parent
commit
a57274a223

+ 50 - 0
camera/Android.bp

@@ -0,0 +1,50 @@
+cc_prebuilt_library_shared {
+    name: "libthead_camera_core",
+    prefer: false,
+    vendor: true,
+    srcs: ["libthead_camera_core.so"],
+}
+
+cc_prebuilt_library_shared {
+    name: "libcsi_camera_plugin",
+    prefer: false,
+    vendor: true,
+    srcs: ["libcsi_camera_plugin.so"],
+}
+
+cc_prebuilt_binary {
+    name: "android.hardware.camera.provider@2.5-service-thead",
+    prefer: false,
+    relative_install_path: "hw",
+    vendor: true,
+    shared_libs: [
+        "android.hardware.camera.device@3.2",
+        "android.hardware.camera.device@3.3",
+        "android.hardware.camera.device@3.4",
+        "android.hardware.camera.device@3.5",
+        "android.hardware.camera.device@3.6",
+        "android.hardware.camera.provider@2.4",
+        "android.hardware.camera.provider@2.5",
+        "android.hardware.camera.provider@2.6",
+        "android.hardware.camera.provider@2.7",
+        "android.hardware.graphics.mapper@2.0",
+        "android.hardware.graphics.mapper@3.0",
+        "android.hardware.graphics.mapper@4.0",
+        "libgralloctypes",
+        "libbinder",
+        "libbase",
+        "libcamera_metadata",
+        "libcutils",
+        "libthead_camera_core",
+        "libhidlbase",
+        "liblog",
+        "libutils",
+        "libfmq",
+        "libsync",
+    ],
+    srcs: [
+        "android.hardware.camera.provider@2.5-service-thead",
+    ],
+    init_rc: ["android.hardware.camera.provider@2.5-service-thead.rc"],
+    vintf_fragments: ["android.hardware.camera.provider@2.5-service-thead.xml"],
+}

BIN
camera/android.hardware.camera.provider@2.5-service-thead


+ 9 - 0
camera/android.hardware.camera.provider@2.5-service-thead.rc

@@ -0,0 +1,9 @@
+service vendor.camera-provider-2-5-thead /vendor/bin/hw/android.hardware.camera.provider@2.5-service-thead
+    interface android.hardware.camera.provider@2.5::ICameraProvider thead/0
+    interface android.hardware.camera.provider@2.4::ICameraProvider thead/0
+    class hal
+    user system
+    group system
+    capabilities SYS_NICE
+    rlimit rtprio 10 10
+    task_profiles CameraServiceCapacity CameraServicePerformance

+ 26 - 0
camera/android.hardware.camera.provider@2.5-service-thead.xml

@@ -0,0 +1,26 @@
+<!-- Copyright (C) 2020 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.
+-->
+
+<manifest version="1.0" type="device">
+    <hal format="hidl">
+        <name>android.hardware.camera.provider</name>
+        <transport>hwbinder</transport>
+        <version>2.5</version>
+        <interface>
+            <name>ICameraProvider</name>
+            <instance>thead/0</instance>
+        </interface>
+    </hal>
+</manifest>

BIN
camera/libcsi_camera_plugin.so


BIN
camera/libthead_camera_core.so