How to remove root detection from APK file (Smali modding in noob way)

Note:  I made this tutorial since 2015, it was the noobest way to edit smalis without any knowledge. This is not for all apps, it basically gives you idea how very simple root detections can be removed in smalis. Advanced root detection can be in libs too and may be harder to bypass. I will not cover that
This was the noob way to edit smalis without any knowledge

How to remove root detection from the APK file:
1. Download any APK tool of your choice

2. Install Notepad++ or other text editors that support searching through all files

3. Decompile an APK file

4. Open Notepad++, click on "Search" -> "Find in files..."


5. Go to the path where the APK has been decompiled, and choose "smali". Click "OK"


6. Search the following keywords and click "Search"

Superuser
Supersu
/system/app/Superuser.apk
/data/local
/data/local/bin
/data/local/xbin
/sbin
/system/bin
/system/sd/xbin
/system/xbin
/system/bin/failsafe
/vendor/bin
/su


 

7. You will see the result. Double click on line to open up the choosen smali file.


8. Modify the string to whatever you want. Example: "com.donotdetectme", "imnotrooted" and so on.


9. Open the APK tool, select the APK and recompile + resign the APK file

10. Install it on your rooted device and enjoy

Comments

Popular Posts

VMOS Pro Global CN FREE Custom ROMs | Gapps, ROOT, Xposed | Android 4.4.4, 5.1.1, 7.1.2, 9.0 ROMs | NO VIP

How to activate VMOS Assistant to run VMOS on Android 12 and above