Are you familiar with the Xposed framework? Xposed is not available for Android Pie or later. But with Riru Core installed, you can run EdXposed, which in turn can run (some) Xposed modules. Before Google broke SafetyNet for Magisk, it was actually Xposed that triggered SafetyNet. In a way, (Ed)Xposed is not the solution but the problem
However, there is ... was? ... a complicated way to pass SafetyNet with Riru Core and EdXposed:
https://forum.xda-developers.com/pixel-4-xl/how-to/xposed-discussion-thread-t3992607
Having read some of the above XDA thread, I am glad that