After my phone is rooted (confirmed by Advanced Root Checker*) using this tutorial, I can't remove bloatware. Normally this can be done by System app remover pro, but now the removal keeps failing. Do you know why is that?

*It says that I don't have "Read/Write Path". I don't know what this mean and am not sure if it's relevant here.


You don't have to root your device for debloating.
System apps can be "uninstalled" from adb shell

adb shell pm disable --user 0 <pkgname>

(actually that will disable the app. Do this again after each factory reset)

If your device is rooted with Magisk you can remove apps from system (overlay).
Just create some empty files for the file/directory you want remove


where DEBLOAT is the id name of your Magisk module and module.prop is the module info


name=my first module
version=0.0.0 pre alpha
author=my name
description=just remove some of my system apps

If you want you can create a Magisk flashable zip for your module, so you have it handy in case you need it again.

Additional explanation quoted from the Magisk Developer Guides:

Module Tricks

Remove Files

How to remove a file systemless-ly? To actually make the file disappear is complicated (possible, not worth the effort). Replacing it with a dummy file should be good enough! Create an empty file with the same name and place it in the same path within a module, it shall replace your target file with a dummy file.

Remove Folders

Same as mentioned above, actually making the folder disappear is not worth the effort. Replacing it with an empty folder should be good enough! A handy trick for module developers is to add the folder you want to remove into the REPLACE list within customize.sh. If your module doesn’t provide a corresponding folder, it will create an empty folder, and automatically add .replace into the empty folder so the dummy folder will properly replace the one in /system

  • So if I add system/app/Bloatware.apk to any subfolder in /data/adb/modules/, then it will create that file in the corresponding directory? – Ooker Dec 29 '20 at 10:28
  • yes, assuming core-only-mode is disabled in magisk settings (modules enabled). and (afaik) subfolder must contain module.prop (untested as i am rooted with SuperSU) – alecxs Dec 29 '20 at 10:44
  • I still quite confuse. According to this answer, Magisk does not actually replace the file in system with a blank file, but just hide it from being read by other processes, so they only see a blank file, while the real file is left intact. Is that correct? – Ooker Dec 29 '20 at 10:52
  • yes. the main purpose of this is to keep the whole system partition intact, so that any checksum/ verify of the partition image will be valid – alecxs Dec 29 '20 at 10:54
  • hmm. I guess I need to root normally then. My intention is to free more storage – Ooker Dec 29 '20 at 11:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.