[Sony Xperia XA2 ROMs, Kernels, Recoveries, & Other] roman 23:
I entered commands and restarted phone. Sensors still not detected. I tried them with "Digital Compass" and "Gyroscope Test" applications.

Here is ls of dirs. Dir /persist/hlos_rfs/shared is empty.

[B]:/ # ls -l /[/B]
total 2192
dr-xr-xr-x 68 root root 0 1970-11-12 21:43 acct
drwxrwxrwx 3 root root 4096 1970-11-12 07:57 app
lrw-r--r-- 1 root root 11 2009-01-01 01:00 bin -> /system/bin
dr-xr-x--- 3 bluetooth net_bt 16384 1970-01-01 01:00 bt_firmware
lrw-r--r-- 1 root root 50 2009-01-01 01:00 bugreports -> /data/user_de/0/com.android.shell/files/bugreports
lrw-r--r-- 1 root root 11 2009-01-01 01:00 cache -> /data/cache
lrw-r--r-- 1 root root 13 2009-01-01 01:00 charger -> /sbin/charger
drwxr-xr-x 4 root root 0 1970-01-01 01:00 config
lrw-r--r-- 1 root root 17 2009-01-01 01:00 d -> /sys/kernel/debug
drwxrwx--x 47 system system 4096 1970-11-12 08:01 data
lrw------- 1 root root 23 2009-01-01 01:00 default.prop -> system/etc/prop.default
drwxr-xr-x 17 root root 3560 2019-04-23 07:59 dev
drwxr-xr-x 4 root root 4096 1970-01-01 01:00 dsp
lrw-r--r-- 1 root root 11 2009-01-01 01:00 etc -> /system/etc
dr-xr-x--- 3 system system 16384 1970-01-01 01:00 firmware
drwxr-x--x 8 vendor_idd vendor_idd 1024 1970-11-02 09:50 idd
-rwxr-x--- 1 root shell 2084344 2009-01-01 01:00 init
-rwxr-x--- 1 root shell 1190 2009-01-01 01:00 init.environ.rc
-rwxr-x--- 1 root shell 29747 2009-01-01 01:00 init.rc
-rwxr-x--- 1 root shell 1207 2009-01-01 01:00 init.recovery.qcom.rc
-rwxr-x--- 1 root shell 7690 2009-01-01 01:00 init.usb.configfs.rc
-rwxr-x--- 1 root shell 5646 2009-01-01 01:00 init.usb.rc
-rwxr-x--- 1 root shell 511 2009-01-01 01:00 init.zygote32.rc
-rwxr-x--- 1 root shell 875 2009-01-01 01:00 init.zygote64_32.rc
drwx------ 2 root root 16384 2009-01-01 01:00 lost+found
drwxr-xr-x 13 root system 280 1970-11-12 21:43 mnt
drwxr-xr-x 2 root root 4096 2009-01-01 01:00 odm
drwxr-xr-x 2 root root 4096 2009-01-01 01:00 oem
drwxrwx--x 21 root root 4096 1970-11-11 12:12 persist
drwxr-xr-x 2 root root 4096 2009-01-01 01:00 postinstall
dr-xr-xr-x 671 root root 0 1970-01-01 01:00 proc
lrw-r--r-- 1 root root 15 2009-01-01 01:00 product -> /system/product
drwxr-x--- 5 vendor_idd vendor_idd 1024 1970-11-01 11:03 rca
drwxr-xr-x 3 root root 4096 2009-01-01 01:00 res
drwxr-x--- 2 root shell 4096 2009-01-01 01:00 sbin
lrw-r--r-- 1 root root 21 2009-01-01 01:00 sdcard -> /storage/self/primary
drwxr-xr-x 4 root root 80 2019-04-23 07:53 storage
dr-xr-xr-x 14 root root 0 1970-11-12 21:43 sys
drwxr-xr-x 17 root root 4096 1970-11-12 07:57 system
-rw-r--r-- 1 root root 5359 2009-01-01 01:00 ueventd.rc
drwxr-xr-x 14 root root 4096 2009-01-01 01:00 vendor
-rw-r--r-- 1 root root 524 2009-01-01 01:00 verity_key
[B]:/ # ls -l /persist [/B]
total 84
-rw-rw-rw- 1 root root 13 1970-01-01 01:01 CEI_SN.txt
drwxrwx--- 2 system system 4096 2018-12-05 00:16 alarm
drwxrwx--- 2 audio audio 4096 2018-04-03 14:23 audio
drwxrwx--- 2 bluetooth bluetooth 4096 1970-11-11 12:12 bluetooth
drwx------ 2 root system 4096 1970-01-01 01:00 bms
drwx------ 5 system system 4096 1970-01-03 22:59 data
drwxrwx--- 2 system graphics 4096 1970-01-01 01:00 display
drwxrwx--- 2 system system 4096 1970-01-01 01:00 drm
drwxrwx--- 3 vendor_rfs vendor_rfs_shared 4096 1970-01-01 01:00 hlos_rfs
drwx------ 2 root root 4096 1970-01-01 01:00 lost+found
drwxrwx--- 2 system system 4096 1970-01-01 01:00 misc
drwxrwx--- 2 radio system 4096 2018-12-05 00:15 pc
drwxrwx--- 2 system system 4096 1970-11-02 10:54 properties
drwx------ 2 system system 4096 1970-01-01 01:00 qti_fp
drwx------ 6 vendor_rfs vendor_rfs 4096 1970-01-01 01:00 rfs
drwxrwx--- 2 system system 4096 1970-01-01 01:00 secnvm
drwxr-xr-x 3 root root 4096 2019-03-12 22:27 sensors
drwxr-xr-x 2 root root 4096 2017-12-01 00:29 speccfg
drwxrwx--- 2 system system 4096 2019-01-02 11:52 time
drwxrwx--- 2 media media 4096 1970-01-01 01:00 vpp
-rw-rw-rw- 1 root root 62 2018-04-03 15:56 wlan_mac.bin
[B]:/ # ls -l /persist/hlos_rfs/[/B]
total 4
drwxrwx--- 2 oem_2903 oem_2904 4096 1970-01-01 01:00 shared