-
Notifications
You must be signed in to change notification settings - Fork 450
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
detect non rooted device as rooted device #147
Comments
What version of the library are you using? The latest version has reduced the false positives rates. The false positives were previously mostly all caused by the busybox binary getting left on production builds by manufacturers and we were incorrectly flagging this as a potential root indicator. |
I'm using this version implementation 'com.scottyab:rootbeer-lib:0.0.8' . |
Install the sample app via the play store on one of the devices that is returning a false positive and see what the output is, this will tell you which is flagging the device as rooted: It may be the device is actually rooted, or a false positive due to manufacture mistakes or something else. |
We've had a similar report previously for a Redmi device that upon further inspection had a root application installed: |
I can contribute an example here. I have a fairphone 3 which is running /e/. The phone is not rooted, and the bootloader is locked, yet it is marked as rooted by this library. I'll include a screenshot: The dangerous prop in question is I am not sure about the selinux flag, but it is at least in this specific case a false positive. |
@aigjermo I think having this flag set to 1 allows you to become root using |
I'm not an expert, so someone else should verify this, but my understanding is that you need both |
I think when we added this check initially we thought either ❓ Does building the rom in "userdebug" mode make the system or Apps on the system more susceptible to attack? Wondering with |
I've struggled to find documentation on it but I'm assuming when secure is turned on that system apps aren't debuggable, because otherwise I think you could use adb run-as to execute commands as system apps, and get root that way. @aigjermo As you've got a device with this setup could you confirm that you can't debug system applications?
|
Yep, not possible for me at least: ❯ adb exec-out run-as com.android.systemui id
run-as: package not debuggable: com.android.systemui |
Hey Guys, Even I am facing similar issue with the latest version 0.0.8 I have tried using devices available in Browserstack. So, those devices should not be rooted. I could see ro.secure=0. Hope that helps. |
I am developper for a big android App. ATInternet stats show that all BlackView 8000 phones are detected as root. |
I confirm the specified problem with this smartphone model. Fir this, the Google Pay application is working properly. |
I'm getting same result with Samsung Galaxy C8 |
Hi, On ASUS Zen9 Android 7.0. On a Non Rooted Phone. RootBeer rootBeer = new RootBeer(context); How can we solve this problem? |
I have myself this problem on my Xiaomi mi a2, the |
I am also hit by this "issue". My One Plus 3 is running LineageOS 18.1 on Android 11 and the build at https://download.lineageos.org/oneplus3 is created in "userdebug" mode (like @aigjermo's phone) and I am also not able to debug as root... I haven't rooted the device.
From my understanding |
As far as I understand, on most phones with LineageOS installed it is necessary to have In my opinion LineageOS is even more secure with |
How to i fix this rod user facing this isues my app doesnt allow to entere into app if rootBeer.isRooted() is false |
How did you print out this ro. list? |
Which list are you referring to? |
Any news on this? |
No description provided. |
The NJTransit app is using your library to detect root, and the Play Store is riddled with reviews of false positives. It's preventing people from accessing tickets they legitimately purchased. This is more the fault of the developers of the app for thinking that blocking root access somehow makes their app more secure (it doesn't, because rooted users will ALWAYS find a way to circumvent root detection methods) but judging from the above comments, this isn't an isolated problem. |
I have used this lib in one of my app, but I feel like that, this lib detect some of the non rooted devices as rooted device.
I have received some review on play store saying that My device isn't rooted still then this app will not let me in.
I have received this review from Redmi Note 8 Pro
please check the issue what's wrong or let me know possible reason behind this behaviour.
The text was updated successfully, but these errors were encountered: