Important security disclaimer and limitations
masterRoot detection is not 100% guaranteed. RootBeer provides an indication of root, but it can be bypassed by root cloaking tools.
For high-security requirements, it is recommended to use the Google Play Integrity API to verify that the app is running on a genuine, unmodified Android device.