[Samsung Galaxy S10/S10+/S10 5G/E Cross Device Deve] roadman666:
Still fighting with my cover. Reinstalled the image completely from the scratch (with formatting). This time phone was in the cover from the very begining. No effect.

Assuming the hall sensor (which would makes sense) is responsible for actions, result of " logcat -e hall " via adb root, no magisc installed), gives following

04-13 15:48:01.115 25386 25386 I kworker/7:1: type=1400 audit(0.0:3689): avc: denied { read } for name="hall_detect" dev="sysfs" ino=52280 scontext=u:r:kernel:s0 tcontext=u:eek:bject_r:sysfs:s0 tclass=file permissive=1

04-13 15:48:01.115 25386 25386 I kworker/7:1: type=1400 audit(0.0:3690): avc: denied { open } for path="/sys/devices/virtual/sec/sec_key/hall_detect" dev="sysfs" ino=52280 scontext=u:r:kernel:s0 tcontext=u:eek:bject_r:sysfs:s0 tclass=file permissive=1

04-13 15:48:01.115 25386 25386 I kworker/7:1: type=1400 audit(0.0:3691): avc: denied { getattr } for name="hall_detect" dev="sysfs" ino=52280 scontext=u:r:kernel:s0 tcontext=u:eek:bject_r:sysfs:s0 tclass=file permissive=1

04-13 15:48:05.362 0 0 I : [1: HubConnection: 5623] [SSP] send_hall_ic_status HALL IC ON/OFF, 1 enabled 0

04-13 15:48:08.536 0 0 I : [1: HubConnection: 5623] [SSP] send_hall_ic_status HALL IC ON/OFF, 1 enabled 1

04-13 15:48:09.196 0 0 I [7: kworker/7:1:25386] [SX9330]: sx9330_debug_work_func - hall IC is closed

04-13 15:48:13.149 0 0 I : [3: HubConnection: 5623] [SSP] send_hall_ic_status HALL IC ON/OFF, 1 enabled 0

04-13 15:48:17.300 0 0 I : [3: HubConnection: 5623] [SSP] send_hall_ic_status HALL IC ON/OFF, 1 enabled 1

04-13 15:48:19.276 0 0 I [7: kworker/7:1:25386] [SX9330]: sx9330_debug_work_func - hall IC is closed

It looks like (out of HALL IC ON/OFF messages) the magnets are on the right place and sensor works perfectly.

It is ultimately confirmed by " logcat -e cover " :

04-13 17:15:35.099 5295 5616 I Sensors : HallIC_Sensor cover status 1

04-13 17:15:35.111 0 0 I : [0: kworker/0:2: 2097] [keys] flip_cover_work flip_status : 1 (open)

04-13 17:15:35.138 0 0 I : [4: kworker/u18:2: 5719] #> cover_open 7 7, lux_changed 0

04-13 17:15:35.138 0 0 I : [4: kworker/u18:2: 5719] #>cover state last 1 now 0 set 1 cnt 0

04-13 17:15:45.165 5295 5616 I Sensors : HallIC_Sensor cover status 1

04-13 17:15:45.177 0 0 I [1:irq/463-flip_co: 2896] keys: flip_cover_detect flip_status : 0

04-13 17:15:45.177 0 0 I : [1: kworker/1:0:13229] [keys] flip_cover_work flip_status : 0 (close)

04-13 17:15:45.197 0 0 I : [4: kworker/u18:0: 1462] #>cover state last 0 now 1 set 1 cnt 0

04-13 17:15:52.209 0 0 I [1:irq/463-flip_co: 2896] keys: flip_cover_detect flip_status : 1

04-13 17:15:52.208 5295 5616 I Sensors : HallIC_Sensor cover status 1

04-13 17:15:52.219 0 0 I : [1: kworker/1:0:13229] [keys] flip_cover_work flip_status : 1 (open)

04-13 17:15:52.237 0 0 I : [4: kworker/u18:0: 1462] #> cover_open 7 7, lux_changed 0

04-13 17:15:52.237 0 0 I : [4: kworker/u18:0: 1462] #>cover state last 1 now 0 set 1 cnt 0

04-13 17:15:55.554 5295 5616 I Sensors : HallIC_Sensor cover status 1

04-13 17:15:55.566 0 0 I [3:irq/463-flip_co: 2896] keys: flip_cover_detect flip_status : 0

04-13 17:15:55.566 0 0 I : [3: kworker/3:1: 89] [keys] flip_cover_work flip_status : 0 (close)

04-13 17:15:55.577 0 0 I : [4: kworker/u18:0: 1462] #>cover state last 0 now 1 set 1 cnt 0

What makes me worried are the error messages at the very top and something looking like the error below (nanohub)

04-13 17:41:41.224 5295 5616 I Sensors : HallIC_Sensor cover status 1

04-13 17:41:41.235 0 0 I [1:irq/463-flip_co: 2896] keys: flip_cover_detect flip_status : 0

04-13 17:41:41.235 0 0 I : [1: kworker/1:0:13229] [keys] flip_cover_work flip_status : 0 (close)

04-13 17:41:41.236 0 0 I : [2: HubConnection: 5616] [SSP] SSP_CONTROL : SSP:HALL_IC=1

04-13 17:41:41.229 5295 5616 I Sensors : HallIC_Sensor:: notify to kernel, SSP:HALL_IC=1

04-13 17:41:41.229 5295 5616 I Sensors : HallIC_Sensor - 1

04-13 17:41:41.229 5295 5616 I Sensors : HallIC_Sensor: not enabled

04-13 17:41:41.229 5295 5616 E nanohub : threadLoop, readEvents failed nb = 0, i = 26

04-13 17:41:41.241 0 0 I : [2: HubConnection: 5616] [SSP] send_hall_ic_status HALL IC ON/OFF, 1 enabled 1

04-13 17:41:41.241 0 0 I : [2: HubConnection: 5616] [SSP] set_ssp_control HALL IC ON/OFF, 1 enabled 1

04-13 17:41:41.248 0 0 I [4: kworker/u18:2: 5719] [SSP]: MSG From MCU - SSP_HALL_IC = 1

04-13 17:41:41.248 0 0 I : [4: kworker/u18:2: 5719] #>cover state last 0 now 1 set 1 cnt 0

Maybe someone who is smarter than me :) can give me a hint.... Thanks