Helyos96's blog


Project maintained by Helyos96 Hosted on GitHub Pages — Theme by mattgraham

Bypassing root detection on Android

Jan. 10, 2023

I’ve recently had to install a banking app on my Xiaomi Redmi 7. Upon launching it, I was greeted by “Sorry, this app doesn’t support rooted devices”.

Welp, that sucks. My phone is not strictly “rooted”, but I did unlock the bootloader and install a custom Android 10 ROM.

I then had to undergo the big quest of “how to bypass application root check on android”. Turns out it’s fairly easy.. If you know what to do. If you don’t though, enjoy the google results from 5 years ago, the outdated guides and the not-quite-my-problem threads on xda that lead you nowhere anyway. The world of Magisk and defeating SafetyNet moves fast.

So for january 2023, here’s what I had to do to get it to work:

Fortunately Magisk has a very good installation guide. Turns out my phone was one of those that report “Ramdisk: No” even though it worked just fine to patch boot.img. Also, the optional step to reflash vbmeta.img bootlooped my phone, so I had to re-reflash it without the fastboot arguments; in any case, it is indeed optional.

For MagiskHidePropsConf, I had to run it in a root shell (the command is “props”) and configure the whole shebang - 1/Fingerprint, 2/BASIC keys, 4/props. It is my understanding that you don’t need this step (maybe even the entire module) if you only rooted your phone but kept the stock ROM.