Hello,
I installed the surnia 0.7 unofficial build two years ago on my moto E. Worked fine. I discovered some months ago an official build was released for this. So I downloaded it, reformatted all and tried to install it. But I have an error :
Warning: No file_contexts
E3004: This package is for device: XT[…], surnia_uds, surnia_umts, surnia, surnia_udstd; this device is .
I tried to reinstall the unofficial build that I had lukylly kept on my pc. The reinstallation worked.
It worked without the assert statement. Thanks. Also TWRP asked after installer the installation if I really wanted to reboot, as there is no os installed. Which is false.