You don’t have to modify /system
, that’s what Magisk is for.
Let me give you an example with the YouTube app:
-
# find -L /system -type d -iname '*youtube*'
gets me the path to the YouTube app as/system/product/app/YouTube
-
# mkdir -p /data/adb/modules/MyAwesomeModule/system/product/app/YouTube
- Creates a new module called MyAwesomeModule in the Magisk module directory. So basically just a folder in
/data/adb/modules
- Inside that folder we created subfolders mirroring the real
/system
folder. Files you put in there get overlayed by Magisk over the corresponding files in the real/system
folder at boot time (not folders, that’s why we need.replace
in the next step) - It’s very important that those paths are case-sensitive, so
/youtube
wouldn’t work in this case
- Creates a new module called MyAwesomeModule in the Magisk module directory. So basically just a folder in
-
# touch /data/adb/modules/MyAwesomeModule/system/product/app/YouTube/.replace
creates a.replace
file in that folder, telling Magisk to overlay our folder over the real/system/product/app/YouTube
folder. - After a reboot
/system/product/app/YouTube
will still be there, but just as a empty folder.
If the YouTube app is still there, it has been updated to a version newer than the system one. Those updates can be uninstalled normally and “pooof” no more YouTube
Masking the Orange App should be the same process.