aidl: camera: split into 32bit and 64bit
authorSimon1511 <me@simon1511.de>
Sun, 23 Jun 2024 18:08:26 +0000 (20:08 +0200)
committerSimon1511 <me@simon1511.de>
Thu, 27 Jun 2024 16:43:49 +0000 (18:43 +0200)
Change-Id: I369b32a0fbb51a65ca7aa147c451d13f672f52be

aidl/camera/provider/Android.bp
aidl/camera/provider/android.hardware.camera.provider-service_32.samsung.rc [new file with mode: 0644]

index b1c8aa29136e606a111e5cf96ec1701d32eede19..0b59af00a094d46136e494aa9073f597f984ed54 100644 (file)
@@ -21,13 +21,12 @@ extra_ids {
     },
 }
 
-cc_binary {
-    name: "android.hardware.camera.provider-service.samsung",
+cc_defaults {
+    name: "camera_service_aidl_defaults.samsung",
     defaults: [
         "extra_id_defaults",
         "samsung_camera3_defaults"
     ],
-    init_rc: ["android.hardware.camera.provider-service.samsung.rc"],
     vintf_fragments: ["android.hardware.camera.provider-service.samsung.xml"],
     vendor: true,
     relative_install_path: "hw",
@@ -57,3 +56,16 @@ cc_binary {
         "libhardware_headers.camera3_samsung",
     ],
 }
+
+cc_binary {
+    name: "android.hardware.camera.provider-service_32.samsung",
+    defaults: ["camera_service_aidl_defaults.samsung"],
+    compile_multilib: "32",
+    init_rc: ["android.hardware.camera.provider-service_32.samsung.rc"],
+}
+
+cc_binary {
+    name: "android.hardware.camera.provider-service.samsung",
+    defaults: ["camera_service_aidl_defaults.samsung"],
+    init_rc: ["android.hardware.camera.provider-service.samsung.rc"],
+}
diff --git a/aidl/camera/provider/android.hardware.camera.provider-service_32.samsung.rc b/aidl/camera/provider/android.hardware.camera.provider-service_32.samsung.rc
new file mode 100644 (file)
index 0000000..91c6997
--- /dev/null
@@ -0,0 +1,8 @@
+service vendor.camera.provider /vendor/bin/hw/android.hardware.camera.provider-service_32.samsung
+    interface aidl android.hardware.camera.provider.ICameraProvider/internal/0
+    class hal
+    user cameraserver
+    group audio camera input drmrpc usb
+    ioprio rt 4
+    capabilities SYS_NICE
+    task_profiles CameraServiceCapacity MaxPerformance