rootbeer icon indicating copy to clipboard operation
rootbeer copied to clipboard

RootBeer sample fail on SElinux check

Open david-lev opened this issue 4 years ago • 5 comments

Hi, I have new Samsung galaxy S21, running Android 11, This is an original device that has never been rooted or with unlocked bootloader. but in the new version of rootbeer I get message says that my device has been rooted.

I checked the device settings (Settings > About phone > software information > Se for Android status) and there's SElinux is on Enforcing mode. So what could be the problem, maybe an error in the checking process?

There are a lot of apps that use the rootbeer library to get root indication, which means I can't use them if the problem isn't resolved.

Screenshot_20210509-120850_Settings.jpg Screenshot_20210509-120842_RootBeer Sample.jpg

david-lev avatar May 09 '21 09:05 david-lev

Is this libary still getiing any support?

david-lev avatar May 10 '21 14:05 david-lev

Hey @david-lev yep we are still maintaining rootbeer albeit on best efforts basis. Just for some extra context the SElinux flag check is an optional/experimental check that isn't included in the main isRooted() check. I agree if you're seeing an issue with this then it does sound like an error in the checking process. Thanks for raising this.

scottyab avatar May 11 '21 07:05 scottyab

Selinux is returning a false positive.

VD171 avatar Mar 27 '24 20:03 VD171

@VD171 sorry I didn't quite get that. What is Selinux returning?

stealthcopter avatar Mar 27 '24 20:03 stealthcopter

@VD171 sorry I didn't quite get that. What is Selinux returning?

The app is showing SELinux as disabled even though it is not.

VD171 avatar Mar 27 '24 20:03 VD171

Removed the Selinux method in 0.1.1 given it's not accessible on later versions of Android and is not "truly" an isRooted indicator. Thanks for flaggin this issue.

scottyab avatar Sep 18 '24 10:09 scottyab