Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 034f8079 authored by Sooraj S's avatar Sooraj S 👽 Committed by ssizon
Browse files

FP3: Use Samsung remosaic blobs for Tetra-cell camera s5k3p9sp

 Address a few selinux denials
parent 80280cef
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -145,10 +145,14 @@ vendor/lib/libqomx_core.so
vendor/lib/libqomx_jpegdec.so
vendor/lib/libqomx_jpegenc_pipe.so
vendor/lib/libqomx_jpegenc.so
vendor/lib/libremosaic_daemon.so
vendor/lib/libcdsprpc.so
vendor/lib/libdepthmapwrapper.so

# Samsung remosaic for Tetra-cell camera s5k3p9sp
vendor/bin/remosaic_daemon
vendor/lib64/libremosaiclib.so
vendor/lib64/libremosaic_daemon.so
vendor/lib/libremosaic_daemon.so

vendor/lib/libarcimageprocess.so
vendor/lib/libarcsoft_aiscenedetection.so
+6 −0
Original line number Diff line number Diff line
@@ -363,3 +363,9 @@ on boot
    chown system system /sys/class/leds/blue/breath
    chown system system /sys/class/leds/blue/delay_on
    chown system system /sys/class/leds/blue/delay_off

# Samsung remosaic algorithm ingegration
service remosaic_daemon /system/vendor/bin/remosaic_daemon
    class late_start
    user camera
    group camera
+3 −0
Original line number Diff line number Diff line
@@ -7,3 +7,6 @@

/dev/block/bootdevice/by-name/product_[ab]                          u:object_r:system_block_device:s0
/dev/block/platform/soc/7824900.sdhci/by-name/product_[ab]           u:object_r:system_block_device:s0

# Samsung remosaic algorithm ingegration
/(vendor|system/vendor)/bin/remosaic_daemon 	u:object_r:remosaic_daemon_exec:s0
+17 −0
Original line number Diff line number Diff line
type remosaic_daemon, domain;
type remosaic_daemon_exec, exec_type, vendor_file_type, file_type;

init_daemon_domain(remosaic_daemon)

vndbinder_use(remosaic_daemon)

binder_call(hal_camera_default, remosaic_daemon)

allow remosaic_daemon remosaic_daemon_service:service_manager add;
allow hal_camera_default remosaic_daemon_service:service_manager find;

allow remosaic_daemon hal_camera_default:fd use;
allow remosaic_daemon ion_device:chr_file { read ioctl open };

allow remosaic_daemon vendor_camera_data_file:dir create_dir_perms;
allow remosaic_daemon vendor_camera_data_file:file create_file_perms; 
+2 −0
Original line number Diff line number Diff line
# Samsung remosaic algorithm ingegration
type remosaic_daemon_service,     vndservice_manager_type;
Loading