MiuiCamera: Initial Poco F3 Repository
- Includes following changes: * Import Xiaomi MiSys Hal and Sepolicy * Import needed camera permissions * Import Camera Postprocessing * Import Poco F3 / Mi 11x Device Features [For Miui Deps] * Import camxoverride settings & tune down CameraX logging * Import needed camera prebuilts for Poco F3 AOSP Device trees * Import Leica/Miui Camera mod 5.x by https://t.me/itzdfplayer & HollyBear * Create device-specific config overlay for following Camera to enable appropriate features * Import device-specific OpenCL * Import AOSP and LOS aux camera overlays * Import appropriate sepolicy for Poco F3 / Mi11x - Repo requires: * Have device-side hides in libinit for .mod_device and .name * Import MiSys entries to FCM [Example:47e3f385a6] * Enable newer HIDL overrideFormat [4d9f9a23e9] * Build camera for Jemalloc [c5d5ea6706] * Set TARGET_CAMERA_PACKAGE_NAME for vendor tags [60ad521bf1] -> [c4fbccafa0] Used changes from following authors: Co-authored-by: UtsavBalar1231 <utsavbalar1231@gmail.com> Co-authored-by: ItzDFPlayer <deniskovalevskiy91@gmail.com> Co-authored-by: chrisl7 <wandersonrodriguesf1@gmail.com>
This commit is contained in:
5
sepolicy/misys/vendor/file_contexts
vendored
Normal file
5
sepolicy/misys/vendor/file_contexts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
# MiSys
|
||||
/vendor/bin/hw/vendor\.xiaomi\.hardware\.misys@1\.0-service u:object_r:hal_misys_default_exec:s0
|
||||
/vendor/bin/hw/vendor\.xiaomi\.hardware\.misys@2\.0-service u:object_r:hal_misys_default_exec:s0
|
||||
/vendor/bin/hw/vendor\.xiaomi\.hardware\.misys@3\.0-service u:object_r:hal_misys_default_exec:s0
|
||||
/vendor/bin/hw/vendor\.xiaomi\.hardware\.misys@4\.0-service u:object_r:hal_misys_default_exec:s0
|
||||
5
sepolicy/misys/vendor/hal_misys.te
vendored
Normal file
5
sepolicy/misys/vendor/hal_misys.te
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
# HwBinder IPC from client to server
|
||||
binder_call(hal_misys_client, hal_misys_server)
|
||||
|
||||
add_hwservice(hal_misys_server, hal_misys_hwservice)
|
||||
allow hal_misys_client hal_misys_hwservice:hwservice_manager find;
|
||||
11
sepolicy/misys/vendor/hal_misys_default.te
vendored
Normal file
11
sepolicy/misys/vendor/hal_misys_default.te
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
type hal_misys_default, domain;
|
||||
hal_server_domain(hal_misys_default, hal_misys)
|
||||
|
||||
type hal_misys_default_exec, exec_type, vendor_file_type, file_type;
|
||||
|
||||
init_daemon_domain(hal_misys_default)
|
||||
|
||||
r_dir_file(hal_misys_default, firmware_file)
|
||||
r_dir_file(hal_misys_default, mnt_vendor_file)
|
||||
|
||||
get_prop(hal_misys_default, vendor_camera_prop)
|
||||
2
sepolicy/misys/vendor/hwservice.te
vendored
Normal file
2
sepolicy/misys/vendor/hwservice.te
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# MiSys
|
||||
type hal_misys_hwservice, hwservice_manager_type;
|
||||
2
sepolicy/misys/vendor/hwservice_contexts
vendored
Normal file
2
sepolicy/misys/vendor/hwservice_contexts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# MiSys
|
||||
vendor.xiaomi.hardware.misys::IMiSys u:object_r:hal_misys_hwservice:s0
|
||||
2
sepolicy/misys/vendor/platform_app.te
vendored
Normal file
2
sepolicy/misys/vendor/platform_app.te
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
allow platform_app hal_misys_hwservice:hwservice_manager find;
|
||||
binder_call(platform_app, hal_misys_default)
|
||||
Reference in New Issue
Block a user