proprietary_vendor_xiaomi_c.../sepolicy/vendor/file_contexts

60 lines
5.5 KiB
Plaintext
Raw Normal View History

# same-process HAL files and their dependencies
Restructure to vendor/xiaomi/camera Import from device/xiaomi/lisa-miuicamera: commit 33f736aa61e224998d5c121f6c38c944e49fea8d Author: Adithya R <gh0strider.2k18.reborn@gmail.com> Date: Fri Apr 21 16:54:19 2023 +0530 lisa-miuicamera: Update to V14.0.3.0.TKOMIXM commit 569341615b88bf864c135356a11a5338e058c9d4 Author: Adithya R <gh0strider.2k18.reborn@gmail.com> Date: Tue Jan 31 10:00:48 2023 +0530 lisa-miuicamera: Label libSNPE and deps as sphal We already have these in public.libraries.txt, just needs to be labeled as sphal so that Miui Camera can load it for clone mode. 01-30 23:10:20.988 5067 5067 I auditd : type=1400 audit(0.0:2944): avc: denied { read } for comm="CameraSetup" name="libSNPE.so" dev="dm-4" ino=2242 scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:vendor_file:s0 tclass=file permissive=0 app=com.android.camera 01-30 23:10:20.988 5067 5067 W CameraSetup: type=1400 audit(0.0:2944): avc: denied { read } for name="libSNPE.so" dev="dm-4" ino=2242 scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:vendor_file:s0 tclass=file permissive=0 app=com.android.camera 01-30 23:10:20.992 5067 5121 E CloneSDK: Load native library failed: java.lang.UnsatisfiedLinkError: dlopen failed: library "libSNPE.so" not found: needed by /data/user/0/com.android.camera/app_qigsaw/5.0.0.0/movielens/31.0.0@31/nativeLib/arm64-v8a/libfenshen_snpe.so in namespace classloader-namespace-shared commit d1ad3e40dd5c00fb97bb12d02668978698339599 Author: Adithya R <gh0strider.2k18.reborn@gmail.com> Date: Mon Jan 23 22:21:23 2023 +0530 lisa-miuicamera: Initial commit
2023-04-23 03:29:21 +00:00
/vendor/lib(64)?/libSNPE\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/lib_denoiser3\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libalAILDC\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libalCFR\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libalhLDC\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libarcsoft_beautyshot\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libarcsoft_bodyslim\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libarcsoft_distortion_correction\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libarcsoft_dualcam_refocus\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libarcsoft_dualcam_refocus_front\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libarcsoft_dualcam_refocus_image\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libarcsoft_dualcam_refocus_rear_t\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libarcsoft_dualcam_refocus_rear_w\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libarcsoft_high_dynamic_range\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libarcsoft_high_dynamic_range_v5\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libarcsoft_low_light_hdr\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libarcsoft_portrait_lighting\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libarcsoft_portrait_lighting_c\.so u:object_r:same_process_hal_file:s0
Restructure to vendor/xiaomi/camera Import from device/xiaomi/lisa-miuicamera: commit 33f736aa61e224998d5c121f6c38c944e49fea8d Author: Adithya R <gh0strider.2k18.reborn@gmail.com> Date: Fri Apr 21 16:54:19 2023 +0530 lisa-miuicamera: Update to V14.0.3.0.TKOMIXM commit 569341615b88bf864c135356a11a5338e058c9d4 Author: Adithya R <gh0strider.2k18.reborn@gmail.com> Date: Tue Jan 31 10:00:48 2023 +0530 lisa-miuicamera: Label libSNPE and deps as sphal We already have these in public.libraries.txt, just needs to be labeled as sphal so that Miui Camera can load it for clone mode. 01-30 23:10:20.988 5067 5067 I auditd : type=1400 audit(0.0:2944): avc: denied { read } for comm="CameraSetup" name="libSNPE.so" dev="dm-4" ino=2242 scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:vendor_file:s0 tclass=file permissive=0 app=com.android.camera 01-30 23:10:20.988 5067 5067 W CameraSetup: type=1400 audit(0.0:2944): avc: denied { read } for name="libSNPE.so" dev="dm-4" ino=2242 scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:vendor_file:s0 tclass=file permissive=0 app=com.android.camera 01-30 23:10:20.992 5067 5121 E CloneSDK: Load native library failed: java.lang.UnsatisfiedLinkError: dlopen failed: library "libSNPE.so" not found: needed by /data/user/0/com.android.camera/app_qigsaw/5.0.0.0/movielens/31.0.0@31/nativeLib/arm64-v8a/libfenshen_snpe.so in namespace classloader-namespace-shared commit d1ad3e40dd5c00fb97bb12d02668978698339599 Author: Adithya R <gh0strider.2k18.reborn@gmail.com> Date: Mon Jan 23 22:21:23 2023 +0530 lisa-miuicamera: Initial commit
2023-04-23 03:29:21 +00:00
/vendor/lib(64)?/libhta\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libhvx_interface\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libmiStereoFactoryRemapLib\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libmiai_portraitsupernight\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libmialgo_basic\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libmialgo_ie_capture\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libmialgoengine\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libmibokeh_712\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libmpbase\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/librelight_only\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libsdk_sr\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libst_sr_models\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libxmi_high_dynamic_range\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libxml2_vendor\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/rfsa/adsp/libcalculator_skel\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/rfsa/adsp/libSnpeHtpV68Skel\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/rfsa/adsp/libSnpeDspV65Skel\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/rfsa/adsp/libSnpeDspV66Skel\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/rfsa/adsp/libSnpeHtpV73Skel\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/rfsa/adsp/libQnnHtpV69Skel\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/rfsa/adsp/libmialgo_basic_cdsp_skel\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/rfsa/adsp/libmialgo_slow_motion_cdsp_skel\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libcalculator\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libcalculator_htp\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libPlatformValidatorShared\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libSnpeHtpPrepare\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libSnpeHtpV68Stub\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libSnpeDspV65Stub\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libSnpeDspV66Stub\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libSnpeHta\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libSnpeHtpV73Stub\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libSnpeGpu\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libhta_hexagon_runtime_snpe\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libQnnHtp\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libQnnHtpV69Stub\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libQnnHtpPrepare\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libQnnHtpV69\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libQnnHtpV69Skel\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libxmi_slow_motion_mein\.so u:object_r:same_process_hal_file:s0