I am running LineageOS 16 on a Redmi 4X device.
I tried installing the relevant opengapps pico version selecting ARM64 and Android 9.
I booted to TWRP, selected install and clicked on the opengapps zip file. It installed successfully with absolutely NO error code whatsoever. I then cleared Dalvik/cache(TWRP menu after installing opengapps) and rebooted to system.
I ran through setup and it all finished smoothly. I can install apps from the play store and all services too are working.
However this keeps happening and android says that setup keeps crashing.
I then redownloaded the opengapps zip again,rebooted to TWRP and installed it again. There was no error message. This time I booted to system without clearing Dalvik/Cache.
I ran through setup again. Everything happened properly, all my google stuff is working but again this setup screen keeps reappearing and Android keeps saying that setup keeps crashing.
Surprisingly all my google apps are still working perfectly including play store,gmail,classroom. I can also call, get messages and do everything else a phone is supposed to do.
This thread talks about bootloop which is definitely NOT my issue. I didn't find any other thread related to santoni+lineageos16.
This is how I went about rooting my device.
I don't know how to obtain android system logs/logs relevant to opengapps so I am unable to post any of them. I will really appreciate any help I get since this is becoming quite annoying.