rootbeer icon indicating copy to clipboard operation
rootbeer copied to clipboard

Is selinux flag giving a false positive?

Open test-pad opened this issue 3 years ago • 9 comments

Hi. I have a Samsung note 20 ultra. I am not sure why rootbeer sample app indicates that my phone is rooted. My phone is not rooted.

I have used other apps like root checker, advanced root checker and root beer fresh and all indicate my phone is not rooted.

May I know if there are ways to check if there is a bug or there are something that is causing the false positive? Some screenshots below for your reference.

Thank you very much.

Screenshot_20210917-072615_RootBeer Sample.jpg

Screenshot_20210917-072639_Settings.jpg

Screenshot_20210917-072708_Settings.jpg

test-pad avatar Sep 18 '21 01:09 test-pad

There are old issues talking about this: https://github.com/scottyab/rootbeer/issues/179

Looks like no one maintains the project any more

ghost avatar Nov 16 '21 10:11 ghost

Hey @grubeli sorry it feels that way. Merged your PR thanks for the contribution.

scottyab avatar Nov 16 '21 14:11 scottyab

@scottyab when you guys are gonna release this version?

roshaan-sadapay avatar Dec 16 '21 21:12 roshaan-sadapay

@scottyab Reading over the internet I have found that ro.build.selinux is unreliable, it may be 0 and still SELinux is enforced or it may also be missing completely.

It is more reliable to execute /system/bin/getenforce that return Enforcing, or read /sys/fs/selinux/enforce that return 1.

See also here: https://erev0s.com/blog/3-ways-detect-selinux-status-android-natively/

ale5000-git avatar May 07 '22 18:05 ale5000-git

@ale5000-git

Could you please fix the code in pull request so that lib owner can merge

mohamedebrahim96 avatar Oct 11 '22 09:10 mohamedebrahim96

Facing same issue. False Positive @ale5000-git Can you help?

malikzype avatar Dec 14 '22 15:12 malikzype

@scottyab You may wanna check https://github.com/kdrag0n/safetynet-fix/pull/166#issuecomment-1509789489 and remove the check altogether.

agnostic-apollo avatar Apr 15 '23 12:04 agnostic-apollo

this detector is dead

HuskyDG avatar Apr 17 '23 04:04 HuskyDG

Selinux is returning a false positive.

VD171 avatar Mar 27 '24 20:03 VD171

We have 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 flagging this issue.

scottyab avatar Sep 18 '24 10:09 scottyab