I have fixed this with magisk. Worked nowFor lineage 15 certification requires a dummy ROM to be built then you need to run a whitelist script and rebuild the ROM with the XML that this script gives you in frameworks/base
Android O has more fine grained permission control for system apps and this needs to be done before CTS will pass