Magisk-Modules-Alt-Repo / BuiltIn-BusyBox

Systemless Magisk module that installs and symlinks BusyBox with its applets to the Magisk built-in busybox binary
GNU General Public License v2.0
187 stars 12 forks source link

[Q&A] How to uninstall `busybox`? #2

Closed USLTD closed 1 year ago

USLTD commented 1 year ago

I have installed this module and after noticing that RootBeer Sample detects root via BusyBox checking I decided to uninstall it but unfortunately this module doesn't include BusyBox removal and I can't manually remove BusyBox. So question: How can I remove busybox from /system/xbin?

USLTD commented 1 year ago

I disabled every module temporarily and manually removed busybox without any problem.

zgfg commented 1 year ago

Uninstall as any other module - there is an option in the Magisk app

If using Magisk, please be familiar with minimal basic things like how to use the Magisk app

zgfg commented 1 year ago

Besides, from the checkers like RootBeer Sample or Fresh, Oprek, TB-Checker, etc (like from any real 'banking' and similar apps), you have to hide root

Put RootBeer (Oprek, TB-Checker) Screenshot_2023-01-30-22-38-53-728_com godevelopers OprekCek Screenshot_2023-01-30-22-40-36-180_krypton tbsafetychecker to DenyList and it won't find Magisk neither the BusyBox: Screenshot_2023-01-30-21-49-45-750_com scottyab rootbeer sample Screenshot_2023-01-30-21-57-32-392_com kimchangyoun rootbeerFresh sample

USLTD commented 1 year ago

Uninstall as any other module - there is an option in the Magisk app

Reason why I asked is that even after uninstallation busybox binary remains in installation path. Reason is lack of removal script which is called uninstall.sh which should include functionality to completely remove modifications caused by module. See magisk modules to understand what I mean.

If using Magisk, please be familiar with minimal basic things like how to use the Magisk app

Care to explain why do you think that I am not familiar with Magisk manager and it's module system?

USLTD commented 1 year ago

Besides, from the checkers like RootBeer Sample or Fresh, Oprek, TB-Checker, etc (like from any real 'banking' and similar apps), you have to hide root

Put RootBeer (Oprek, TB-Checker) Screenshot_2023-01-30-22-38-53-728_com godevelopers OprekCek Screenshot_2023-01-30-22-40-36-180_krypton tbsafetychecker to DenyList and it won't find Magisk neither the BusyBox: Screenshot_2023-01-30-21-49-45-750_com scottyab rootbeer sample Screenshot_2023-01-30-21-57-32-392_com kimchangyoun rootbeerFresh sample

I know that but adding to Magisk's Deny List doesn't have any effect because module is installed in /system/(x)bin/ directory which every application can easily check whether it contains busybox binary or not.

zgfg commented 1 year ago

Uninstall from Magisk app and reboot (phone must be rebooted when modules are uninstallwd) Magisk will remove the module's folder /data/adb/modules/BuiltIn-BusyBox

and Magisk will no more mount BusyBox applets from /data/adb/modules/BuiltIn-BusyBox/system/xbin to /system/xbin

This is the point with Sysremless modules - this module itself does not change anything else, anywhere - it only installs to that folder and when module is uninstalled, Magisk deletes that folder and there is nothing else to be cleaned by uninstall.sh script, since the module did not leave its garbage anywhere else

If you see /data/adb/magisk/BusyBox

or /data/unencrypted/MAGISKBIN/BusyBox

That BB was not was not installed by the modele - that BB was installed as part of Magisk installation itself (second path above is BusyBox installed by Magisk Delta - Delta installs to /data/unencrypted/MAGISKBIN and links to /data/adb/magisk