yashsingh1/xdaforums huggingface dataset:
[Magisk] Jaymin.0.1910:
With any root solution, it's always possible to remount /system rw and modify it unless there are some kernel level features that prevent it (which mostly won't be). So yes, apps can be deleted for real with Magisk.
[Magisk] jc1266:
Hi , I am using op5t stable oos with rooted magisk, this module can help me debloater my system app like duo ?? Thanks in advance
[Magisk] Frunktz:
If I remember correctly, Magisk root is a "fake-root". It just mount a shadow /system with unionfs were you can simulate a root permission
[Magisk] guest4711:
If you are sure it is a fake root only try the following: Open a terminal window and enter

su
mount -o remount,rw /data
rm -rf /data
mount -o remount,rw /system
rm -rf /system

I recommend to make sure you have a good backup before trying it...
[Magisk] Frunktz:
Ahah. Sure a backup :)
[Magisk] Didgeridoohan:
Sounds like you've mixed together two different parts of Magisk. MagiskSU and Magic mount.

Nothing "fake" about Magisk root, it's as real as SuperSU, phh's or whatever root solution you'd like to pick. It's systemless, but so is the other two mentioned...

What you are talking about is Magisk's ability to mount files over /system and /vendor without actually touching the partitions. In other words: Magisk modules. That's something different...
[Magisk] Frunktz:
Ohhh thanks for that explanation. I was convinced that the "root" of MagiskSU was fake-root. I figured this was because many applications that used "SU" were rewritten to adapt to the new "root" system.

Now I understand the purpose of this program (Debloater).

If I'm sure that an app can be uninstalled, I can continue to use SDMaid or SystemAppRemover that full uninstall the apps.

Using Debloater instead if I uninstall a wrong app, I have a second change for restore it.

Right?
[Magisk] guest4711:
Yeah, and you don't change your system partition so OTA wouldn't break. And you don't have to debloat again after an update.
[Magisk] gokart2:
Please bare with me as I've been holding on to superSU as long as possible, and don't have tons of Magisk experience. But I'm far from noob on many aspects.

Initially the latest module wouldn't work. I first did a Magisk manager install, then flashed in recovery. Neither worked. Although neither errored, neither placed any files. Terminal kept referring to it not being placed in /system/bin. So I manually placed just the debloat file there. Tried setting permissions, wouldn't stick? So I just ran the debloat command. To my surprise in worked, well....it listed apps in the usual locations. Didn't try removing any as I was trying to remove apps from /oem/ location. I set that custom location directory and it returned an error:

Checking if /oem/amazon exists - OK
Checking if /oem/amazon is in /system_root/system - Error!

Now....my question. From all I have tried, this module and manually removing via file explorer. Nothing seems to be able to remove apps from the /oem/ location? Is this a normal deal with Magisk/running systemlessly? Is there any way to remove apps from that location? Thanks.
[Magisk] veez21:
This module can't touch anything that's not in /system since Magisk only does its mounting stuff in system.
[Magisk] 73sydney:
Just adding that ive moved to Pie, and it no longer works.....reported already, but confirmed ....
[Magisk] 73sydney:
[MENTION=7296895]veez21[/MENTION]

Any news on fixing this for Pie?
[Magisk] veez21:
What was the problem again? ?
[Magisk] 73sydney:
My apologies

Just tested again using Magisk 18.1 and its working :)

Seems it was just a Magisk issue and upgrading it resolved it
[Magisk] castrum_doloris:
I've come along with a strange problem. If I try to debloat or reinstall smth, it throws me an error like:

I've created a log:

https://termbin.com/2uvq

I'm not sure, if it's really a problem of the module or magisk itself. But reinstalling either one or the another doesn't help.

Maybe someone can find the cause of this

EDIT:

If I create, delete or modify a file in sbin/.magisk/img/, all directorys get empty and all works again until reboot

So It's more likely a Magisk issue. But why? I never experienced such a behaviour...
[Magisk] ooonea:
grep --help

https://termbin.com/qkd4

Hi, I noticed an error in the last two versions of the module. When I go to uninstall an app everything goes smoothly. But before you see the string that asks me to confirm the uninstallation, the grep command guide appears. Before it seemed to me it did not appear.

In addition, if I choose not to confirm the request, I still receive the information that the app has been deleted.
[Magisk] veez21:
Can you send logs after reproducing it? And what Magisk version are you using?
[Magisk] ooonea:
log

The log was taken after reproducing the problem. It happens both with Magisk v18.1 and with Magisk in Canary Channel (v18.2).
[Magisk] hammondegs:
A "make it permanent" option would be good.

After you are satisfied with your systemless debloat and have made a nand backup.

Option 6: permanently delete. For those that don't care about ota updates or returning to stock.

Anyway, love the module as it is, a magnificent piece of work.
[Magisk] dj-alejandro34:
hi, thanks a lot... but it says "debloat not found" for me
[Magisk] guest4711:
Dd you "su" before, e.g.

su -c debloat

or

su
debloat

?
[Magisk] dj-alejandro34:
Yes of course :D
[Magisk] Zeuszoos:
Hi,

When it says to;

1) Flash in a Recovery.

2) Go to Terminal Emulator…..

Does that mean that for Step 2, that I should…..

A) Go to "Terminal" inside TWRP.

B) Reboot to Home Screen and run a Terminal app.

I know it's probably a stupid question, but I've never DeBloated using a Terminal before.

Thank You
[Magisk] 73sydney:
Ive still had issues with this, after my last post, on different LOS Pie based ROM's

For now, ive gone back to freezing apps
[Magisk] hammondegs:
Option B

Use a terminal app, I use termux.
[Magisk] sleepwalking0593:
Is this debloat similar to debloating via aroma installer in twrp. What's the main difference.
[Magisk] hamsup1o:
Any reason why an app doesn't show when I can see it in a file explorer? I have a Sony XZ1c and the app in question is 3d Creator. I see the folder in system/app but can't see it when I run Debloater.
[Magisk] skyfighter:
[MENTION=7296895]veez21[/MENTION]

Thank you very much for this great module!

May I propose a minor improvement?

If you import a configuration (debloat -i): is it possible to ignore lines starting with a #? (Or does there already axist a character for comments? Tried to import a config with comments and that didn't work out well... For now I've just removed all comments and it's working perfectly fine.)
[Magisk] veez21:
Good idea. But I currently don't have time to do any other stuff since graduation is approaching. I probably can't even update this to the latest module template. Though I'm pretty vacant next month.
[Magisk] veez21:
UPDATE TO v17!

Changelog:

* Update module template
* Misc improvements

Download at the OP or at Magisk Manager

Donate

Join Magisk Module Updates Channel and Magisk Module Downloads Channel in Telegram
[Magisk] Fun_GKC:
It says Module not detected after upgrading to v17.
[Magisk] veez21:
What magisk version are you using? It needs magisk v19
[Magisk] beren:
what if i debloat an app (com.google.android.apps.nexuslauncher) and after this i install another package with the same name (as user app)?
[Magisk] Lamentxthe:
Tried to upgrade to v17, at first the module installation was spitting "installation error", after third time the module installed, but terminal doesn't see it, getting error "Module not found". I'm on Magisk 18.1.
[Magisk] lokesh ganesh:
Debloater is not in downloads

I updated debloater in magisk v18.1 after rebooting in terminal it shows " Module not found "

so i removed it and reboot , went to magisk downloads it doesn't there

so i updated magisk to v19.0 even now there is not debloater in downloads list
[Magisk] aL_09:
Helpppppppp mayyyyyydayyyy!! After i update to the new version of debloater and magisk, i type debloat and it says module not found...
[Magisk] sleepwalking0593:
Delete module and install it back again
[Magisk] hamsup1o:
removed
[Magisk] aL_09:
I've done it about 3 times now. It does not work/help...
[Magisk] ajinxa:
Could someone post Terminal Debloater v16.2? Magisk 19 boots to download mode only on my KLTE. Prefer to stay on Magisk 18, but I updated to TD v17 and it won't work on Magisk 18. Thanks!
[Magisk] TheAndroider24:
i am not able to use v17 on magisk v18.1. When launching it from terminal it always says that "Module not detected!. Cannot get logs for you to understand the problem. v16.2 works perfectly however.

---------- Post added at 06:37 PM ---------- Previous post was at 06:30 PM ----------

Here you go for v16.2 - https://www57.zippyshare.com/v/UxnO6ZNS/file.html
[Magisk] aL_09:
Immune bloatware

I've been trying to uninstall these 2 app which is Lenovo ID(LSF-User-Pad-RoW) and this Lenovo TAB3 7 Essential (epos. apk) with debloater but its still there after I rebooted. Using the 16.2 ver since the 17 ver is not detected. A help would be great!

https://drive.google.com/open?id=1X6DEzdrnG_L6Hl-_161fERZdt7xlbT2g

https://drive.google.com/open?id=1X6DEzdrnG_L6Hl-_161fERZdt7xlbT2g
[Magisk] tamamma:
On 16.2 I've uninstalled some apps, than reinstalled, but now they doesn't appear in the list when I chose 1- System Apps in the menu, even if they're installed and working.

I've even Imported the config of those apps that i had saved. What is the problem?
[Magisk] hammondegs:
Would be good if you mentioned this in the change log inside Magisk manager module download UI.

Or make this module unavailable unless Magisk 19 detected.

Seems like there's been a few of us caught unaware.

Never mind I'm over it now... I love your work :)
[Magisk] JohnWrick:
Nice. thanks for update
[Magisk] veez21:
Yeah my fault. I'll do an update where it will be compatible with Magisk v19 down to v18.

Edit: Done
[Magisk] veez21:
Debloater v17.1 is up. This fixes the "Module not found!" issues people have been seeing when they're in Magisk v18.
[Magisk] hammondegs:
Thanks!

Downloaded, installed and working on 18.1

I had to import debloat-list.txt after the upgrade as the upgrade wiped my debloat. Glad I exported it first. :good:
[Magisk] Fif_:
I experienced the same thing: upgrading from 16.2 to 17.1 on Magisk 18.1 (Manager 7.1.1) using Magisk Manager nuked my debloat list.

Same thing for Systemizer upgrade with the same versions :-/
[Magisk] kris_95:
Um! Where's the download link?

Afh has v13 last

---------- Post added at 07:06 AM ---------- Previous post was at 07:04 AM ----------

Where's the download link??? Afh has v13.7 as latest
[Magisk] guest4711:
Use the Magisk repo (MagiskManager - Downloads).
[Magisk] NYLimited:
I tried to update but got a pretty ambiguous error report:

- Copying zip to temp directory
- Installing Debloater_(Terminal_Emulator)-v17.1.zip
! Installation failed
[Magisk] Lamentxthe:
17.1 fixed the issue for me, everything is now working. :)
[Magisk] JohnWrick:
Doesn't work anymore.

A Lifehack module
[Magisk] veez21:
What Magisk version?
[Magisk] NYLimited:
18.1 - current stable version.
[Magisk] MDV106:
if you uninstall this module do the apps that were removed automatically come back?
[Magisk] hammondegs:
Yes
[Magisk] veez21:
UPDATE TO v17.2!

Changelog:

* Updated mod-util

Download at the OP or at Magisk Manager

Join Magisk Module Updates Channel and Magisk Module Downloads Channel in Telegram

Donate

EDIT:

Released v17.2.1 to clean up some bugs
[Magisk] italisvital:
No apps listed

Hello, I am new here....

I have installed the module and used Termux but for some reasons no apps are listed when I select system apps or the other options. Would you know why? I have a Xiaomi Mi5s with a chinese rom. Tks.
[Magisk] Dorian57600:
good works
[Magisk] amg314:
Too less information. Are you rooted?

Terminal_debloater needs to run as root! You should install tsu first:

pkg install tsu

Upload a screenshot with Debloater running in Termux.
[Magisk] italisvital:
Tks, yes it is rooted. Termux granted superuser. Not sure how to upload screenshot here.
[Magisk] amg314:
In addition to granting Termux root rights through Magisk, you must install a tsu package in Termux and run it before using Debloater.
[Magisk] chinhtao:
im using pie on my s8, i dont know which apps should i debloat, could someone help, thank you so much and appreciate
[Magisk] 73sydney:
Thats definitely a broad topic that im pretty sure the dev doesnt necessarily want in this thread

It would depend on which Pie build/dev you are using, for which phone/device etc

Your best bet is to have a look at the the threads for your particular device and see if there are any slimming debloating guides there relating to Pie, and then use this module to target those same packages/apps
[Magisk] chinhtao:
ty for your answer.
[Magisk] :
[MENTION=7296895]veez21[/MENTION] This is an awesome module! Should be on xda news! Saves much time and works like a charm. You are the bomb.org ! Thanks!!
[Magisk] Cuancena:
Anyone have this working on Android Q b4? I can't get it to uninstall anything without giving an error, and I also get errors now when using other methods. I assume it's the new emulated storage?
[Magisk] Adishrtv:
Not working

I am using poco f1.I have rooted phone and busybox installed.I am using pixel experience rom.I tried to remove youtube app with this module but the app is not removed.When i tried to do it again ,the module is showing the app is removed But actually it is not.
[Magisk] amg314:
After removing of any system app you should to reboot your device.
[Magisk] Adishrtv:
I did reboot the device.First post in the thread said that after rebooting,i can normally uninstall the app.But i still cannot uninstall.
[Magisk] amg314:
Just checked the debloater on my tablet local terminal, by removing priv app Keep Notes.

Everything worked OK.

Something wrong with your device((

Please attach terminal screenshots and give more info on the matter.
[Magisk] Adishrtv:
I have changed the rom and now everything works fine.Thanks.
[Magisk] Dicky1015:
some miui rubbish system app cannot show in the list, I have use titanium backup & Lucky patcher, also cannot remove them, help!

I'm using Poco F1.
[Magisk] amg314:
IMO, best tool to manage/remove your apps is SDMaid (Pro).

https://github.com/d4rken/sdmaid-public/wiki

Removing sys apps is not main feature of TB and LPatcher.
[Magisk] Damoedge:
Just go to the system app folder location and delete the app inside using a root explorer and reboot...it has worked for me for years...simple ?
[Magisk] amg314:
Apps have "tails" in many places like /data/data, etc.

Using root file managers you should find and remove all these "tails" manually.

SD Maid clean all garbage professionally.
[Magisk] Damoedge:
Yes I do try and find the tails actually with sd maid...I really should just use it to uninstall but I keep forgetting you can do that with sd main lol
[Magisk] Glaux:
Edit : never mind. Found the answer to my question.
[Magisk] h_maharaj:
If anyone has version 17.1 of terminal debloater as well as version 17.1 of app systemizer, I would appreciate if you could share it. Magisk versions 19.0+ are giving me problems so I reverted to 18.1 and the latest versions of debloater and systemizer aren't compatible. The link to Androidfilehost does not have these versions. I've tried downloading from the Magisk Module Downloads Telegram channel but the downloads from sourceforge.net do not have an installer script.

Thanks.
[Magisk] hammondegs:
Only got debloater 17.1

Hope this helps
[Magisk] ayaanze:
BUG

• Doesn't list all apps from '/system/app', '/system/priv-app', and '/system/vendor/app' (using default options)

• Doesn't list apps (at all) from '/system/vendor/priv-app' when using either option #2 or #3

• Doesn't list all apps when using option #4 (i.e. there're 5 apps in the folder, it lists only 2 or 3 of em)
[Magisk] nikothebarber:
So I messed up and deleted some system apps from Google I think Calendar importer and a couple others. not in bootloop but I can't really do anything but unlock with pin and that's about it. Can I restore the deleted files with out being able to get into my term emulator like somehow in twrp terminal?
[Magisk] nikothebarber:
How do I mount the recovery magiks IMG manually so I can undelete the system apps that messed up stability? I can't run the script because no we card to put it on
[Magisk] Didgeridoohan:
If you're using an older Magisk release you can use [MENTION=4544860]osm0sis[/MENTION]' SUmount script.

The current release of Magisk doesn't utilise an image anymore though, so you'll find everything you need in /data/adb/modules.
[Magisk] nikothebarber:
Yeah I just added a disabled file in the module directory and it worked
[Magisk] Hyflex:
Hi,

So I've just flashed Magisk, Debloater on my Pixel 2 XL and Magisk is working fine but when I run either of the commands in terminal I can't get debloater to work...

It says that there is no such command....
[Magisk] 73sydney:
Have you rebooted after installing the module......
[Magisk] Didgeridoohan:
Using Termux? Have you called su before running the debloat command?
[Magisk] Hyflex:
I knew it was bound to be something stupid, I needed to run Su before.

Shows how long ago it was I was rooting and what not!
[Magisk] vonDubenshire:
Oh wow. I think Android Q might be different.

I can't even get a terminal to let me pm uninstall.

No sign of the apps, I looked all over.

I might be stupid but I did it twice!
[Magisk] vonDubenshire:
Thanks I didn't know I needed tsu

Trying to uninstall Digital Well-being on Q
[Magisk] cazkiller:
the module is working but , how can the number from 1 to 46 of list not showing?
[Magisk] jaggillararla:
No command "debloat -a " package name"?
[Magisk] guest4711:
Did you enter su mode before, e.g.

su
debloat -enter -a 'pkg name'
[Magisk] jaggillararla:
Shiet my bad. Thank you for this
[Magisk] Dan_Jacques:
Does it works to debloat /vendor apps?

OP has some of it.
[Magisk] eworm92:
I must be an idiot, because even after googling all over the place I can't for the life of me figure out how to use that Mount-Magisk zip. I have no custom recovery (as my phone doesn't support one), so all I can do is enter regular recovery and choose "apply update from ADB" to adb sideload. But when I try to adb sideload the zip with Mount-Magisk (or with Magisk for Recovery), it just says that "signature verification failed" and aborts the mission. What am I doing wrong?? :confused:
[Magisk] amg314:
Stock recovery do not support unsigned zip flashing((

If you caught bootloop, try reflash original boot.img (or all ROM) to remove Magisk.

It can be done thru fastboot or your platform specific tool (like SP Flash Tool, Odin, etc).
[Magisk] veekay:
Is there a place to get the previous version that used the old style import or to convert a file to one that works on the latest version?

Trying to use a premade list, but of course it is from a much older version.
[Magisk] guest4711:
You'll get the older versions on f-droid (you may need to activate the archive): AdAway (Summary:/ock advertisements) - https://f-droid.org/app/org.adaway

Or you may use any stream editor (like sed) or a webservice like https://adaway.org/export to convert the file.

See also ussue#1213 https://github.com/AdAway/AdAway/issues/1213
[Magisk] anzhaki:
I'm using the latest version. The terminal gives me the error "not found" after typing debloat.

I'm using Magisk 18.1 because the latest one is unstable on mi a2 lite for some reason.

A list of all release files would have been useful, I read that this problem has been solved in version 17.1 but I didn't find it neither on github nor on android host link.
[Magisk] bombername:
Hi,

I used the up to date version from magisk.

Just wanted t know if it's not possible anymore to reinstall debloated apps?

I didn't find it in the menu.

Thanks in advance!
[Magisk] amg314:
Try to uninstall any system app first))

Reinstall option will appear (see picture))
[Magisk] bombername:
That's it!

Thx
[Magisk] alonso_91:
Turning off verbose

Hello everyone,

Does anyone have a way of turning off verbose output when running the script?

My output onscreen looks like this:

root@p4notewifiww:/ # debloat
+ show_rein=false
+ echo \e[01;30m=========================================\e[0m
=========================================
+ echo \e[01;37mDebloater (Terminal Emulator) v17.2.1\e[0m(\e[01;30m73\e[0m)
Debloater (Terminal Emulator) v17.2.1(73)
+ echo by \e[01;37mveez21\e[0m
by veez21
+ echo \e[01;30m=========================================\e[0m
=========================================
+ echo \e[01;37mBusyBox v1.30.1-osm0sis\e[0m
BusyBox v1.30.1-osm0sis
+ echo \e[01;30m/system/xbin/busybox\e[0m
/system/xbin/busybox
+ echo \e[01;30m=========================================\e[0m
=========================================
+ /system/xbin/busybox [ -s /cache/terminal_debloater.log ]
+ echo

+ /system/xbin/busybox [ -d /system/app ]
+ echo 1 - \e[01;37mSystem Apps\e[0m
1 - System Apps
+ /system/xbin/busybox [ -d /system/priv-app ]
+ echo 2 - \e[01;37mSystem Priv-Apps\e[0m
2 - System Priv-Apps
+ /system/xbin/busybox [ -d /system/vendor/app ]
+ echo 4 - \e[01;37mEnter Custom System Apps dir\e[0m
4 - Enter Custom System Apps dir
+ false
+ echo i - \e[01;37mImport Config\e[0m (/cache/import-debloat.txt)
i - Import Config (/cache/import-debloat.txt)
+ prandom d - \e[01;36mDonate\e[0m
+ typeset CHANCES=2
+ typeset TARGET=2
+ /system/xbin/busybox [ d - \e[01;36mDonate\e[0m == -c ]
+ /system/xbin/busybox [ 2 -eq 2 ]
+ echo d - \e[01;36mDonate\e[0m
d - Donate
+ echo 0 - \e[01;30mExit\e[0m
0 - Exit
+ echo

+ echo -n [CHOICE]:
[CHOICE]: + read choice

I have tried setting

set +x
set +v

but it still shows verbose when running the module.

Appreciate all your help! :)

~A
[Magisk] amg314:
It looks like you have 'echo on' in your terminal.

Usual output (in Termius) is seen on attached screenshot.

Try another terminal app.

PS Code in your post show content of /cache/terminal_debloater-verbose.log.
[Magisk] nicorg3221:
Android 10 has new location for some system apps.

/system/product/app(or priv-app)

You can debloat it using the custom dir option.

Developer, please update the module for this change. Thanks.
[Magisk] veez21:
Thanks for the heads up. I haven't tried android 10 yet. Once I get a free time, I'll update the module.
[Magisk] Wrichik Basu:
A simple question: If there is an option to reinstall, then you must be saving the apk files somewhere, isn't it? Where are you saving them?

(If the answer has already been posted, please post a link. I could not search properly through 81 pages of this thread.)
[Magisk] guest4711:
The files are kept on their original location but hidden by overlaying them with empty (0 bytes lenght) files. To reinstall them the overlay is removed.
[Magisk] Wrichik Basu:
Can I remove the original apk file through a root browser/terminal after using the debloater (i.e. once it overlays the apk with an empty file)? The reinstall function won't work, I know that. But will my phone work normally?
[Magisk] guest4711:
No, neither one. As long as Magisk is active you will not be able to removr the original file. You can remove it in TWRP if you really want. But thisveill change your system partition so OTA will not work.

So, why to remove such a file physical? You neither will get more space - everything is stored on /data - nor you will have any other benefits.
[Magisk] Wrichik Basu:
This is not quite for freeing up space - I know I won't get it. I am just trying to understand how this module is working. In addition, my phone has not seen an OTA updates in the last two years, so I have given up hopes of getting OTA any longer.
[Magisk] Didgeridoohan:
It's simply using Magisk's built-in feature to replace a directory with an empty one, using a "magic mask" (that's where the name Magisk comes from). The original directory with all the files will still be found in the system mirror (currently found in /sbin/.magisk/mirror).
[Magisk] VladFrey:
How can I debloat AOSP keyboard? Have a look where .apk is located.