summaryrefstree
path: root/odm/etc/init/init.odm.rc
blob: a972b9ab2ed3ada450ed26413b4ef9a2c548da81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# for storage xSpace
on early-fs
    # support f2fs compress optimize
    setprop persist.sys.f2fs_compress_optimize_support.enable 1
    # support f2fs dedup
    setprop persist.sys.f2fs_dedup_support.enable 1

on boot
#for camera recovery and sim config
    setprop persist.vendor.camera.maxTimesOfRecovery 50
    setprop persist.vendor.camera.esdFullRecovery 1
    setprop persist.vendor.camera.cameraTorch 125
    setprop persist.vendor.camera.enableCameraOSService true
    setprop persist.odm.radio.slot2_only_esim false

#for Flicker sensor
    setprop persist.vendor.camera.enableColorInterface 1
    setprop persist.vendor.camera.enableFlickerInterface 1

#for hiaon pmic enable
    setprop persist.vendor.camera.hiaon_pmic_enable 1

#for gpu
    chown system system /sys/class/kgsl/kgsl-3d0/gpuclk
    chown system system /sys/class/kgsl/kgsl-3d0/min_pwrlevel
    chown system system /sys/class/kgsl/kgsl-3d0/pwrlevel_control
    chown system system /sys/class/graphics/fb0/gpu_control_state
    chown system system /sys/class/graphics/fb1/gpu_control_state

#for OIS
    chown cameraserver cameraserver /sys/devices/platform/soc/ois-tele/ois/gyro_gain
    chown cameraserver cameraserver /sys/devices/platform/soc/ois-tele/ois/gyro_offset
    chown cameraserver cameraserver /sys/devices/platform/soc/ois-tele/ois/mag_check
    chown cameraserver cameraserver /sys/devices/platform/soc/ois-tele/ois/ois_fac_mode
    chown cameraserver cameraserver /sys/devices/platform/soc/ois-tele/ois/calib_ctrl_flag
    chown cameraserver cameraserver /sys/devices/platform/soc/ois-tele/ois/ois_vendor
    chown cameraserver cameraserver /sys/devices/platform/soc/ois-tele/ois/ois_actuator_type
    chown cameraserver cameraserver /sys/devices/platform/soc/ois-tele/ois/ois_register_dump
#for OISmain
    chown cameraserver cameraserver /sys/devices/platform/soc/ois-main/ois/gyro_gain
    chown cameraserver cameraserver /sys/devices/platform/soc/ois-main/ois/gyro_offset
    chown cameraserver cameraserver /sys/devices/platform/soc/ois-main/ois/mag_check
    chown cameraserver cameraserver /sys/devices/platform/soc/ois-main/ois/ois_fac_mode
    chown cameraserver cameraserver /sys/devices/platform/soc/ois-main/ois/calib_ctrl_flag
    chown cameraserver cameraserver /sys/devices/platform/soc/ois-main/ois/ois_vendor
    chown cameraserver cameraserver /sys/devices/platform/soc/ois-main/ois/ois_actuator_type
    chown cameraserver cameraserver /sys/devices/platform/soc/ois-main/ois/ois_register_dump

on property:ro.odm.build.version.incremental=* && property:ro.boot.product.hardware.sku=ELP-N39
    setprop ro.odm.build.fingerprint ${ro.product.odm.brand}/${ro.product.odm.name}/${ro.product.odm.device}X:${ro.build.version.release}/${ro.product.odm.brand}${ro.boot.product.hardware.sku}/${ro.odm.build.version.incremental}:${ro.vendor.build.type}/${ro.vendor.build.tags}

#for india
on property:ro.odm.build.version.incremental=* && property:ro.boot.product.hardware.sku=ELP-N39I
    setprop ro.odm.build.fingerprint ${ro.product.odm.brand}/${ro.product.odm.name}/${ro.product.odm.device}X:${ro.build.version.release}/${ro.product.odm.brand}${ro.boot.product.hardware.sku}/${ro.odm.build.version.incremental}:${ro.vendor.build.type}/${ro.vendor.build.tags}

on property:ro.odm.build.version.incremental=* && property:ro.boot.product.hardware.sku=ELP-N09
    setprop ro.odm.build.fingerprint ${ro.product.odm.brand}/${ro.product.odm.name}/${ro.product.odm.device}X:${ro.build.version.release}/${ro.product.odm.brand}${ro.boot.product.hardware.sku}/${ro.odm.build.version.incremental}:${ro.vendor.build.type}/${ro.vendor.build.tags}

on property:ro.odm.build.version.incremental=*
    setprop ro.odm.build.fingerprint ${ro.product.odm.brand}/${ro.product.odm.name}/${ro.product.odm.device}_${ro.boot.product.hardware.sku}:${ro.build.version.release}/${ro.product.odm.brand}${ro.boot.product.hardware.sku}/${ro.odm.build.version.incremental}:${ro.vendor.build.type}/${ro.vendor.build.tags}

service vendor.ir /vendor/bin/hw/vendor.honor.hardware.ir.service
    class hal
    user system
    group system

#for ELP-AN00 nfc
on property:ro.boot.product.hardware.sku=ELP-AN00
    symlink /odm/hn_odm/ELP-AN00  /mnt/hn_odm
    start vendor.secure_element_hal_service

#for ELP-N39 nfc
on property:ro.boot.product.hardware.sku=ELP-N39
    symlink /odm/hn_odm/ELP-N39  /mnt/hn_odm

#for ELP-N09 nfc
on property:ro.boot.product.hardware.sku=ELP-N09
    symlink /odm/hn_odm/ELP-N09  /mnt/hn_odm
    setprop persist.odm.radio.slot2_only_esim true

#for ELP-N09 nfc
on property:ro.boot.product.hardware.sku=ELP-N09 && property:msc.sys.country=mx && property:msc.sys.vendor=telcel
    setprop persist.odm.radio.slot2_only_esim false

#for ELP-N39 nfc
on property:ro.boot.product.hardware.sku=ELP-N39I
    symlink /odm/hn_odm/ELP-N39I  /mnt/hn_odm

#for ELP-AN00 upd sensor vts test
on property:ro.product.system.name=mainline
    symlink /odm/hn_odm/ELP-AN00  /mnt/hn_sensor_odm

# hyperhold
service hyperhold-hw-1-0 /vendor/bin/hw/vendor.honor.hardware.hyperhold@1.0-service
    override
    interface vendor.honor.hardware.hyperhold@1.0::IPersistingData hyperhold_hal
    oneshot
    disabled
    class hal
    user root
    group system

#for media vision imageBokeh
on boot
    setprop persist.vendor.gallery.imageBokeh 1

#add sns license begin
on boot && property:ro.boot.product.hardware.sku=ELP-AN00
    copy /odm/etc/cellular/2024-02-29_platform_RSA_license_f5b1e686-95ae-4c8c-9640-f16c48f0006c.pfm /mnt/vendor/persist/data/pfm/licenses/2024-02-29_platform_RSA_license_f5b1e686-95ae-4c8c-9640-f16c48f0006c.pfm
    chmod 644 /mnt/vendor/persist/data/pfm/licenses/2024-02-29_platform_RSA_license_f5b1e686-95ae-4c8c-9640-f16c48f0006c.pfm
#add sns license end

#for ELP ST SAR license begin
on post-fs-data
    copy odm/etc/cellular/QC_Honor_STx_Commercial_Ellie_Pro.pfm /mnt/vendor/persist/data/pfm/licenses/QC_Honor_STx_Commercial_Ellie_Pro.pfm
    chmod 644 /mnt/vendor/persist/data/pfm/licenses/QC_Honor_STx_Commercial_Ellie_Pro.pfm
#for ELP ST SAR license end