Compare commits
4 commits
ff387f137d
...
62d81b42f9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
62d81b42f9 | ||
|
|
2119eea9bc | ||
|
|
c48138a0b3 | ||
|
|
14225b4fa7 |
3 changed files with 30 additions and 2 deletions
|
|
@ -33,7 +33,8 @@ blob_fixups: blob_fixups_user_type = {
|
||||||
'vendor/etc/camera/pureShot_parameter.xml': blob_fixup()
|
'vendor/etc/camera/pureShot_parameter.xml': blob_fixup()
|
||||||
.regex_replace(r'=(\d+)>', r'="\1">'),
|
.regex_replace(r'=(\d+)>', r'="\1">'),
|
||||||
'vendor/lib64/hw/camera.qcom.so': blob_fixup()
|
'vendor/lib64/hw/camera.qcom.so': blob_fixup()
|
||||||
.binary_regex_replace(b'\x73\x74\x5F\x6C\x69\x63\x65\x6E\x73\x65\x2E\x6C\x69\x63', b'\x63\x61\x6D\x65\x72\x61\x5F\x63\x6E\x66\x2E\x74\x78\x74'),
|
.binary_regex_replace(b'\x73\x74\x5F\x6C\x69\x63\x65\x6E\x73\x65\x2E\x6C\x69\x63', b'\x63\x61\x6D\x65\x72\x61\x5F\x63\x6E\x66\x2E\x74\x78\x74')
|
||||||
|
.add_needed('libprocessgroup_shim.so'),
|
||||||
'vendor/lib64/hw/camera.xiaomi.so': blob_fixup()
|
'vendor/lib64/hw/camera.xiaomi.so': blob_fixup()
|
||||||
.sig_replace('52 07 00 94', '1F 20 03 D5'),
|
.sig_replace('52 07 00 94', '1F 20 03 D5'),
|
||||||
'vendor/lib64/vendor.xiaomi.hardware.cameraperf@1.0-impl.so': blob_fixup()
|
'vendor/lib64/vendor.xiaomi.hardware.cameraperf@1.0-impl.so': blob_fixup()
|
||||||
|
|
@ -53,7 +54,9 @@ blob_fixups: blob_fixups_user_type = {
|
||||||
.clear_symbol_version('remote_handle64_invoke')
|
.clear_symbol_version('remote_handle64_invoke')
|
||||||
.clear_symbol_version('remote_handle64_open')
|
.clear_symbol_version('remote_handle64_open')
|
||||||
.clear_symbol_version('remote_register_buf_attr'),
|
.clear_symbol_version('remote_register_buf_attr'),
|
||||||
}
|
'vendor/lib64/hw/com.qti.chi.override.so' : blob_fixup()
|
||||||
|
.add_needed('libprocessgroup_shim.so'),
|
||||||
|
} # fmt: skip
|
||||||
|
|
||||||
module = ExtractUtilsModule(
|
module = ExtractUtilsModule(
|
||||||
'haydn',
|
'haydn',
|
||||||
|
|
|
||||||
|
|
@ -340,4 +340,21 @@
|
||||||
<item>haydn</item>
|
<item>haydn</item>
|
||||||
<item>haydnpro</item>
|
<item>haydnpro</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
|
|
||||||
|
<!-- The display uses different gamma curves for different refresh rates. It's hard for panel
|
||||||
|
vendor to tune the curves to have exact same brightness for different refresh rate. So
|
||||||
|
flicker could be observed at switch time. The issue is worse at the gamma lower end.
|
||||||
|
In addition, human eyes are more sensitive to the flicker at darker environment.
|
||||||
|
To prevent flicker, we only support higher refresh rates if the display brightness is above
|
||||||
|
a threshold. And the darker environment could have higher threshold.
|
||||||
|
For example, no higher refresh rate if
|
||||||
|
display brightness <= disp0 && ambient brightness <= amb0
|
||||||
|
|| display brightness <= disp1 && ambient brightness <= amb1
|
||||||
|
-->
|
||||||
|
<integer-array name="config_brightnessThresholdsOfPeakRefreshRate">
|
||||||
|
<item>74</item> <!-- 77% UI brightness -->
|
||||||
|
</integer-array>
|
||||||
|
<integer-array name="config_ambientThresholdsOfPeakRefreshRate">
|
||||||
|
<item>63</item>
|
||||||
|
</integer-array>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
||||||
|
|
@ -46,3 +46,11 @@ on boot && property:ro.boot.hwc=GL
|
||||||
|
|
||||||
on boot && property:ro.boot.hwc=IN
|
on boot && property:ro.boot.hwc=IN
|
||||||
setprop bluetooth.device.default_name "Mi 11X Pro"
|
setprop bluetooth.device.default_name "Mi 11X Pro"
|
||||||
|
|
||||||
|
on property:vendor.post_boot.parsed=1
|
||||||
|
|
||||||
|
chown system graphics /sys/class/drm/sde-crtc-0/measured_fps
|
||||||
|
chmod 0660 /sys/class/drm/sde-crtc-0/measured_fps
|
||||||
|
|
||||||
|
chown system system /sys/class/power_supply/battery/temp
|
||||||
|
chmod 0660 /sys/class/power_supply/battery/temp
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue