-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Root detected on unrooted AVD system images #38
Comments
Hello @brycethorup , adb shell 'ls /system/xbin' You should get output like this:
Hope it helps you! Let us know if you need anything, |
I can confirm that the images that were being detected as being rooted to have the Would your recommendation be to not use an android emulator to test root detection? |
Thank you for the confirmation. We will inspect the issue and try to clarify the recommended steps. |
Hello @brycethorup , we have further investigated the issue and can confirm that we were able to reproduce the behaviour that you have mentioned. To clarify a bit, we are able to detect "su" images in "system/xbin" directory even on "x86_64" images but not on "x86_64" images with API level 31 and newer. We would like to again thank you for bringing this to our attention and we will try to address and fix this issue in the future releases. We do still believe that checking whether the "su" binary is present on the device is a valid way of detecting root, our recommendation would therefore be to use clean, i.e. without "su" binary, device or emulator if you do not want it to be detected as rooted. Hope it helps. |
I have added freeRASP to my app and I can confirm that root is detected on a rooted API 31 level system image using an android emulator. I can also confirm that android emulators using unrooted system images with API level 31 or higher do not get detected, as I would expect. The trouble is that any android emulator running an unrooted system image with API level 30 or lower (I've tested down to API level 27) always get detected as a rooted device.
Here is the
main.dart
I used for testing:Here are the android emulator configurations I have tested (all unrooted):
The text was updated successfully, but these errors were encountered: