It has worked for me on several official Sony Xperia devices, moving from e-0.18-q dev builds to e-0.18-r test builds. In brief the steps - all in TWRP - are
- Backup your existing data partition. (This isn’t actually necessary, but it will make you feel better
) - Flash the new R ROM (I used the test build I have just made
e-0.18-r-20210910-UNOFFICIAL-suzuran) - Advanced > File Manager navigate to
/data/user_de/0/org.lineageos.lineagesettings/databases/and delete both files there (lineagesettings.dbandlineagesettings.db-journal) - Wipe cache / dalvik
- Reboot system