enable camera2 api
I did it in the same way install TWRP and Magisk and then to play with build.prop or to do it with ADB Tools everything worked perfect. Way of Installing Magisk & Root with TWRP read more: docsbay.net/way-of-installing-magisk-root-with-twrp, hopes that helps