It is better to opt for paid market protections that offer a higher level of security and maintainability. The open source projects that I see the most promise are marked with (+), but remember that there is no magic solution, there are many ways around them. When customizations are made to these projects, protection becomes more efficient. Bear in mind that when we talk about implementing protections in mobile apps, we are talking about putting barriers to make it difficult for an attacker to interact, find exploits in the services consumed by the app, that's all.
https://github.com/talsec/Free-RASP-Community
https://github.com/GantMan/jail-monkey
https://github.com/Stericson/RootShell
https://github.com/scottyab/rootbeer
https://github.com/WuglyakBolgoink/cordova-plugin-iroot/tree/master/src/android/de/cyberkatze/iroot
https://github.com/DimaKoz/meat-grinder
https://github.com/talsec/Free-RASP-Community
https://github.com/GantMan/jail-monkey
https://github.com/talsec/Free-RASP-Community
https://github.com/framgia/android-emulator-detector
https://github.com/strazzere/anti-emulator
https://github.com/talsec/Free-RASP-Community
https://github.com/darvincisec/AntiDebugandMemoryDump
https://github.com/talsec/Free-RASP-Community
https://github.com/darvincisec/DetectFrida
https://github.com/muellerberndt/frida-detection
https://github.com/apkunpacker/Anti-Frida
https://github.com/Guardsquare/proguard
https://github.com/ClaudiuGeorgiu/Obfuscapk
https://github.com/CodingGay/BlackObfuscator
https://github.com/LSPosed/LSParanoid