If you're looking for a solution to root detection and Frida bypass detection, I have implemented a plugin that can detect Frida Runtime Instrumentation (open ports, injected libraries, running processes).
You might find cordova-plugin-rootguard useful. Let me know if you have any questions!