Install magisk, install the "Universal GMS Doze" module and then install the script. You can install the script by flashing the zip file in TWRP. I read the log generated by the script and it seems to mount /system automatically. Just in case, mount it manually in TWRP.