[Treble-Enabled Device Development A/AB ROMS] oF2pks:
[MENTION=1915408]phhusson[/MENTION] , for sony xz1 (& probably xz1c 8441) we definitely need #min/max cpu core control, in rw-system.sh:

ro.vendor.qti.core_ctl_min_cpu=2
ro.vendor.qti.core_ctl_max_cpu=4

otherwise , after first deep_sleep, big_core seems not working normally (sd835 kraken1.1 fails from 3k to 10k, for example).

Also can you add a Sony (yoshino ? for both xz1/poplar/8341&8342 & xz1c/lilac/8441) overlay for config_automatic_brightness_available in your vendor_hardware_overlay repo ? Following looks ok (incomplete ?):

<bool name="config_automatic_brightness_available">true</bool>
<integer-array name="config_autoBrightnessLevels">
<item>64</item>
<item>128</item>
<item>170</item>
<item>220</item>
<item>256</item>
<item>384</item>
<item>512</item>
<item>768</item>
<item>1024</item>
<item>1536</item>
<item>2048</item>
<item>4096</item>
</integer-array>

<!-- Array of output values for LCD backlight corresponding to the LUX values
in the config_autoBrightnessLevels array. This array should have size one greater
than the size of the config_autoBrightnessLevels array.
This must be overridden in platform specific overlays -->
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>10</item> <!-- 0 -->
<item>32</item> <!-- 64 -->
<item>64</item> <!-- 128 -->
<item>80</item> <!-- 170 -->
<item>96</item> <!-- 220 -->
<item>112</item> <!-- 256 -->
<item>128</item> <!-- 384 -->
<item>144</item> <!-- 512 -->
<item>176</item> <!-- 768 -->
<item>196</item> <!-- 1024 -->
<item>208</item> <!-- 1536 -->
<item>224</item> <!-- 2048 -->
<item>255</item> <!-- 4096 -->
</integer-array>

<!-- Minimum screen brightness setting allowed by the power manager.
The user is forbidden from setting the brightness below this level. -->
<integer name="config_screenBrightnessSettingMinimum">10</integer>

<!-- Screen brightness used to dim the screen while dozing in a very low power state.
May be less than the minimum allowed brightness setting
that can be set by the user. -->
<integer name="config_screenBrightnessDoze">5</integer>

<!-- Screen brightness used to dim the screen when the user activity
timeout expires. May be less than the minimum allowed brightness setting
that can be set by the user. -->
<integer name="config_screenBrightnessDim">10</integer>

<!-- Minimum allowable screen brightness to use in a very dark room.
This value sets the floor for the darkest possible auto-brightness
adjustment. It is expected to be somewhat less than the first entry in
config_autoBrightnessLcdBacklightValues so as to allow the user to have
some range of adjustment to dim the screen further than usual in very
dark rooms. The contents of the screen must still be clearly visible
in darkness (although they may not be visible in a bright room). -->
<integer name="config_screenBrightnessDark">5</integer>

Attached is original Sony xz1 latest /system/build.prop; for testing, I also added in rw-system :

setprop ro.qcom.ad 1
setprop ro.qualcomm.cabl 0
setprop ro.vendor.at_library libqti-at.so
setprop ro.vendor.display.ad 1
setprop ro.vendor.display.ad.sdr_calib_data /vendor/etc/ad_calib.cfg
setprop ro.vendor.display.cabl 2
setprop ro.vendor.display.sensortype 2
setprop ro.vendor.gt_library libqti-gt.so

setprop ro.vendor.qti.core_ctl_max_cpu 4
setprop ro.vendor.qti.core_ctl_min_cpu 2
setprop vendor.mm.enable.qcom_parser 13342781
setprop vendor.pcc.mdp.rgb 0.835938,1.000000,0.953125
setprop ro.vendor.qti.sys.fw.bg_apps_limit 60
setprop sys.games.gt.prof 1