yashsingh1/xdaforums huggingface dataset:
[Magisk] Didgeridoohan:
https://xdaforums.com/showpost.php?p=74629487&postcount=201

---------- Post added at 06:05 ---------- Previous post was at 05:44 ----------

I think you've forgotten about those users that have Magisk installed without a custom recovery...
[Magisk] veez21:
They can still use Flashfire..
[Magisk] Joseahfer:
Oh, gotcha. That part doesn't appear in Magisk changelog.
[Magisk] Fif_:
FlashFire doesn't work everywhere.

Also, when I updated from 6.3 to 6.4, from recovery, all my debloated apps were lost.

Magisk 14.5 on OnePlus 5, OOS 4.5.14.
[Magisk] veez21:
Ok, fair point.

I'll just put a wraning when flashing in Magisk Manager.

Others had that problem too, I'll look into it when I have time.
[Magisk] Fif_:
Is there a way to update either Terminal Debloater or Systemizer and preserve the configuration?

Last time I updated with Magisk Manager, I lost my config and was told to update via TWRP... ;)
[Magisk] veez21:
Use TWRP..

It works for me, idk about the problem, but I'll look into it
[Magisk] quhaoran007:
Root Device?

Thanks for the reply. But do I have to root my device to remove the system application? HiVoice, Huawei smart assistance, is the app I want to remove as I want to use Google Assistance.
[Magisk] veez21:
Yes of course. This module needs Magisk, and Magisk is a root solution...
[Magisk] Carter07:
Hi, when I want to uninstall v6.4 can I do it via Magisk Manager?
[Magisk] veez21:
UPDATE TO v7.1!

* A/B Partitioned Devices are now supported

* Fixed configuration resetting when updating (Only on recovery)

* Fix Busybox detection

Link in the OP or download at Magisk Manager

Thanks for [MENTION=6282592]ydd0ras[/MENTION] for testing and donating..

You can donate at:

https://xdaforums.com/donatetome.php?u=7296895

or

https://www.paypal.me/veez21
[Magisk] AK2H:
First, Thanks for your gr8 efforts!

Whenever I update this module I have to debloat every single app again and it's very hard thing to do (I debloat 35+ apps).

So I figured out a way to make it easier,

The idea is to copy the app and priv-app folders from the module folder path and past them after update.

However after this update the workaround doesn't work :(

Can you suggest any other workaround?
[Magisk] veez21:
The "reuninstalling" of apps is now fixed, though only when installed in recovery
[Magisk] kafkasmaze:
Hi, thanks for the great work for A/B partition, just tried on my Pixel XL,

I guess it might be related to my Magisk beta version 14.5, flashing in recovery it always failed with:

! /data/magisk.img mount failed...
[Magisk] candiesdoodle:
Is it possible for you to include some busybox in the module ? So there wouldn't be a need to install a.seperate busybox? No clue if it's possibly technically, just suggestions
[Magisk] SL0nick:
Pixel XL PN 7.1.2. Magisk 14.2 .

From Magisk.

- Copying zip to temp directory
- Installing Terminal_Emulator_Debloater-v7.1.zip
Archive: /data/user/0/com.topjohnwu.magisk/cache/install.zip
inflating: common/aapt
inflating: common/file_contexts_image
inflating: common/post-fs-data.sh
inflating: common/service.sh
inflating: common/system.prop
inflating: config.sh
inflating: module.prop
******************************
Terminal Debloater
by veez21 @ xda-developers
******************************
******************************
Powered by Magisk (@topjohnwu)
******************************
! A/B OTA device detected!
Mounting /system(rw)...
Mounting /vendor(rw)...
! /system/system could not be mounted!
Failed!
! Installation failed

From TWRP.

Installing zip file '/sdcard/MagiskManager/Terminal_Emulator_Debloater-v7.1.zip'
Checking for Digest file...
Skipping Digest check: no Digest file found
I:Update binary zip
I:Zip does not contain SELinux file_contexts file in its root.
Archive: /sdcard/MagiskManager/Terminal_Emulator_Debloater-v7.1.zip
inflating: common/aapt
inflating: common/file_contexts_image
inflating: common/post-fs-data.sh
inflating: common/service.sh
inflating: common/system.prop
inflating: config.sh
inflating: module.prop
******************************
Terminal Debloater
by veez21 @ xda-developers
******************************
******************************
Powered by Magisk (@topjohnwu)
******************************
! A/B OTA device detected!
Mounting /system(rw)...
Mounting /vendor(rw)...
- Found /data/magisk.img
/tmp/updater: line 171: /data/magisk/magisk: not found
- Resizing /data/magisk.img to 64M
/tmp/updater: line 171: /data/magisk/magisk: not found
- Mounting /data/magisk.img to /magisk
/tmp/updater: line 174: /data/magisk/magisk: not found
! /data/magisk.img mount failed...
- Unmounting partitions
Updater process ended with ERROR: 1
I:Install took 1 second(s).
Error installing zip file '/sdcard/MagiskManager/Terminal_Emulator_Debloater-v7.1.zip'
Updating partition details...
[Magisk] psychoela:
using latest beta magisk,flash via recovery,boot..yeah work perfect. my debloat set up not missing,thanks.
[Magisk] godofsalt:
Yeah... Wish I knew about install through recovery!!!

But, it is installed and redid all the work, again. Maybe I should look at doing all updates for Magisk that way...

All is good.... Now
[Magisk] ydd0ras:
Hello mate [MENTION=7296895]veez21[/MENTION] many thanks for your efforts and what you have done for me (and of course for the community). You helped me to make my device a pure AOSP from "pseudo-AOSP".

Nice move. For all guys interested in this: I have a brand new Xiaomi Mi A1 and wanted to remove the gapps from the system, which is not easy from a A/B Partition System. But this good guy found the proper way. Many thanks once again.
[Magisk] veez21:
Try mounting magisk.img first

https://xdaforums.com/apps/magisk/collection-magisk-modules-v2-t3575758/post72327720

, then flash the module
[Magisk] kafkasmaze:
Worked on my Pixel XL, Magisk 14.5. Thanks so much!
[Magisk] veez21:
Thanks for confirming it ?

The newest version has actually only been tested on Mi A1..

Now, hoping for Pixel 2 users to try it)
[Magisk] SL0nick:
Working solution! But for now i have another problem.

marlin:/ $ su
marlin:/ # debloat
/system/bin/debloat[19]: can't create /cache/terminal_debloater-verbose.log: Operation not permitted
1|marlin:/ #
[Magisk] kafkasmaze:
unfortunately, it's just installed, I can run debloat to add system apps, but debloat cannot remove it. Here is log:

marlin:/ # debloat
/system/bin/debloat[60]: alias: [: invalid alias name
/system/bin/debloat[60]: alias: [[: invalid alias name
/system/bin/debloat[60]: alias: fsck.minix: invalid alias name
/system/bin/debloat[60]: alias: mkfs.ext2: invalid alias name
/system/bin/debloat[60]: alias: mkfs.minix: invalid alias name
/system/bin/debloat[60]: alias: mkfs.reiser: invalid alias name
/system/bin/debloat[60]: alias: mkfs.vfat: invalid alias name
/system/bin/debloat[143]: wc/data/magisk/busybox: not found
/system/bin/debloat[143]: wc/data/magisk/busybox: not found
/system/bin/debloat[143]: wc/data/magisk/busybox: not found
/system/bin/debloat[143]: ++: ++ requires lvalue
[H[J[01;30m[00;37;40m
[01;37mTerminal Emulator Debloater v7.1[00;37;40m[01;30m(18)[00;37;40m
by [01;37mveez21[00;37;40m
[01;30m[00;37;40m

1 - [01;37mSystem Apps[00;37;40m
2 - [01;37mSystem Priv-Apps[00;37;40m
d - [01;36mDonate[00;37;40m
0 - [01;30mExit[00;37;40m

[CHOICE]:
[Magisk] ydd0ras:
I have successfully removed all gapps from my Mi A1. Now it's a pure AOSP device.
[Magisk] veez21:
Mount cache r/w

Strange...

Try reinstalling it
[Magisk] kafkasmaze:
reinstalled, still the same issue. Is it busybox location wrong?

It seems my busybox is located here: /system/xbin/busybox
[Magisk] godofsalt:
Just my 2 cents...

Should be /system/sbin/busybox.

Grab the Busybox form your Magisk Manger, goto download, then scroll past Your installed modules, there will be a mod for busybox. Install. Reboot.

Now 99.9% sure you won't have anymore issues. Plus it works too!
[Magisk] kafkasmaze:
Yeah, already installed "Busybox for Android NDK" 1.27.2 prior to this...
[Magisk] godofsalt:
Still trying to help here. Seems a bit odd.

Guess I just went bankrupt!

If I recall correctly, Terminal Debloat actually needs be flashed through Recovery!

The Magisk Manager does try to install all the Scripts and Mods, however, some do need to be installed in Recovery.

Hope this helps
[Magisk] CecoM:
Hello veez21,

I have read the entire thread and was amazed: thats my imagination for a good developer and good response.

As next step i debloated my first smartphone and tested 3 days - everything was fine (see exceptions).

Today I debloated my second smartphone and again everything was fine (alse see exceptions).

Actually, I replaced my latest solution for debloating:

- root apps "System App Remover Pro" and "Root Uninstaller". Both of them together provide full info of Path, Package name, App Name, Type (System/User) and etc.

- i am using Disable for particular bloat package

So...there are Exceptions:

(1) I CAN find any of your listed system/priv-app in SYSTEM lists of above two debloaters, but CAN'T find some of my disabled SYSTEM apps in your lists. When investigated i found that there are another paths where these (missing in your list) apps installed. As examples:

App Name: Google Play Books

Package Name: com.google.android.apps.books

Path: /data/hw_init/cust/hw/eu/app/Books/Books.apk

App Name: HiCare

Package Name: com.huawei.phoneservice

Path: /cust/hw/eu/app/HwPhoneService/HwPhoneService.apk

(2) On my first smartphone also found some ultra long name of app in your list:

System Apps:

........

FFFFFFFFF000000000000000000000000000000001.drbin

.....

Please assist me what to do with exceptions.

Also, I would like if you somehow add functionality:

- something like "debloat --fullinfo" switch and provide full list of: app name, package name and path

- my dream wish is GUI :)

Latest, with respect of your time and efforts, i added donation, TID 0B015520RE769350P.

My smartphones info:

1. Samsung Note3 NEO (SM-N7505) Android 5.1.1

- Magisk 14.3 with modules: BusyBox for Android NDK, Xposed 87.3, MM, Terminal Debloater 7.1

2. Huawei MediaPad M3 (BTV-DL09) Android 7.0

- Magisk 14.5 with modules: BusyBox for Android NDK, Xposed 88.2, MM, Terminal Debloater 7.1
[Magisk] veez21:
Thanks for a very nice review of the module...

Some of the apps you mentioned are oem specific

Since their in /data, I can't do anything about them, and also, did you try uninstalling them in settings?

As for the long name, you probably shouldn't mess with it. It might cause a bootloop.

Now for "debloat -fullinfo", sure ?

I can do that ?

Thanks for donating btw
[Magisk] godofsalt:
...

I agree with Veez21, about the long file name.... Oem! You should be able to get rid of it! BUT, may cuase you issues. Heck, could try to disable and see what happens. If everything works for you, then Uninstall.

Now, I am all in for a "Debloat-Fullinfo" if possible, but really don't want to waste your time on it. Knowing that this is NOT your only script /mod!

Now, IF, YOU, Really, Really, want to bring the masses, to YOU. Make it GUI!!! (somewhat the same- goto Terminal. SU. Debloat..... BAM, the GUI starts... of course set it up the way you WANT)

However I would be prepared for a huge amount of Stupid Q's! As well as a crap load of "Operators Errors"...

Anyway keep up the great work
[Magisk] CecoM:
My steps (until now) for debloating were:

1. Ordinary (Not-root) deinstall of Bloat Apps (whatever they are USER or SYSTEM and whatever they are placed)

3. Root Disable of (rest of) Bloat Apps

And yes [MENTION=4281316]godofsalt[/MENTION], the exact final list of apps for debloating is very vendor specific and I built it after a long long: backup, try and (restore) and try... :)

I am not so deep in Android and thought there are USER and SYSTEM apps, no matter where (/path) installed.

If I got it right SYSTEM apps placed NOT in /system cannot be magisk-ally debloated? It is a part of Magisk magic?

As an update, my future debloating steps would be:

1. Not-root ordinary Deinstall of Bloat Apps

2. Terminal Debloat of Bloat Apps placed in /system

3. Root Disable of (rest of) Bloat Apps NOT in /system

Thanks in advance for the --fullinfo. It will help me a lot with same-name apps.

Have 4 of these same-name: 2 in system and 2 in priv-apps.
[Magisk] kafkasmaze:
After some trials, I some sort found a way to work in my Pixel XL:

I copied /magisk/termnial_deloater/system_root/system/app/Chrome/.replace to /magisk/termnial_deloater/system/app/Chrome/.replace, and restarted. Chrome was deloated from Android 8.1 then. Maybe it's Magisk 1.4.5's problem?
[Magisk] veez21:
Magisk only does its magic in /system..
[Magisk] Kewal9821:
[MENTION=7296895]veez21[/MENTION] You should probably update the command in Magisk Manager.

It still says "debloat_magisk" instead of "debloat" .

Thanks For Your Module Though :'(
[Magisk] Turbopuschel:
I seem to have a problem with this otherwise great module (thanks btw). When I uninstall the module, the debloated apps are still gone after reboot. And when I reinstall it (doesn't matter if via Magisk or recovery) the apps are not in the list of reinstallable apps.

Now I don't know how to get any of the apps back.

Edit: I didn't first reinstall via terminal debloater because I thought the apps would just show up again after uninstalling the module.
[Magisk] veez21:
Idk the cause...

It might be when the app is deleted from /data when debloated
[Magisk] Turbopuschel:
The apps are even gone after completey uninstalling Magisk. :confused:
[Magisk] veez21:
Reflashing your rom might bring those back
[Magisk] Turbopuschel:
Dirty flashing my ROM didn't bring the apps back. But I tried installing one via its .apk that still was located in /system/app (didn't try others) and after that it was back as a system app (that is at least what I think based on the fact that when going to settings - apps - gone app I could only choose to uninstall its updates (which I had installed in the meantime), not the app itself).
[Magisk] veez21:
Hmm, odd.
[Magisk] Sam Nakamura:
Hey guys, yesterday I tried this debloater on my LG G WATCH (dory), it runs android wear 7.1.1, rooted with magisk 14.5, osm0sis busybox module is installed but it somehow throws a error at me I cannot sort out, working from adb shell it says it cannot find any script (flashing the debloat module shows all successful, no errors), I searched the thread including FAQ, I also checked the web in general but I just can't explain it to me...

Check this screenshot, I tried "debloat_magisk" and "debloat" as OP says different than Video, probably I'm doing something wrong but I just cannot figure what...

----------

The system partition of this device is squashfs file format which is mounted "read only" by design, I wonder if this plays into this issue, even though magisk and it's modules isn't supposed to modify /system anyway, that's why "root" works flawlessly, so all modifications should theoretically work, as long as they're systemlessly, I think...

Greetz
[Magisk] Didgeridoohan:
Doesn't look like you're running the command as su.
[Magisk] veez21:
Try running as root..

It might not look good in adb shell though
[Magisk] veez21:
UPDATE TO v7.2!

* Fix Busybox Detection

Download at Magisk Manager or at the OP
[Magisk] Sam Nakamura:
You're both are right :laugh:, attached the wrong screenshot, originally it says this error output...

I'll check the updated version now

Unfortunately I didn't found a way to use a terminal emulator on Android Wear yet, TWRP terminal gives "not found" error too

------------

Edit:

Chrome throws a "could be a malicious download warning" at me, today's update on AFH :confused: never had this before on AFH...

------------

Edit2:

Results are same as on 7.1, still same error as seen in screenshot attached
[Magisk] veez21:
Do this:

su
/magisk/terminal_debloater/system/bin/debloat
[Magisk] Sam Nakamura:
You might want to attach this to the OP, it's working - thanks man, was already getting desperate :highfive:
[Magisk] godofsalt:
OH Holy Crap!

OK I understand that you have an update. However I do believe that something is wrong with it. Yes, could be me, but not too sure on that!

Issue Is, after I updated and rebooted... ALL the apps I took out from Los 14.1 (14Dec build).... Are all back in the ROM.

(I tend to take out bout 13-25 apps, trying to make system small as possible without extra BS)

So, was this the thought process for

your update?

Do understand part of the update, was for Busybox ID. Plus something to do with being able to REINSTALL, any apps that was taken out.

For now, I am taking all the apps back out. But wanted to pass along the info.

(didn't think any log for this issue was needed, however, Could look at doing it all over again if you need that sort of info)

STILL want to Thank You, for the update anyway. Always love the folks trying to make things better
[Magisk] rbaskin2009:
I keep getting the "/system/system failed to mount" on my Pixel XL (running Oreo 8.1), and I've tried installing via fastbooting TWRP recovery. It still fails. I'm really not sure what I'm doing wrong, especially since you said you added support for A/B devices. Any help would be greatly appreciated.
[Magisk] ydd0ras:
Hey mate, i have an Xiaomi Mi A1 which is a A/B device as well. Here my steps:

1. Download the 7.2 version of the Terminal Debloater. Push it to your device

2. Boot in to TWRP

3. Mount /system

4. Go to the Advanced section. Tap Terminal and do this

mkdir magisk

mount /data/magisk.img /magisk

Then install the module from TWRP.

Working nicely on my device!
[Magisk] veez21:
UPDATE TO v7.3!

Changelog:

* Updated module template

Download at the OP or Magisk Manager

Donate: https://www.paypal.me/veez21
[Magisk] zack4200:
I keep getting errors when trying to install the module on my LG G Watch with Magisk V15.1... I've tried 7.1, 7.2, and now 7.3 and they all give the same error. When trying to add the module from within Magisk Manager, it says 'Unable to extract zip file!" (Here is the full log if that is more helpful)

- Copying zip to temp directory
- Installing Terminal_Emulator_Debloater-v7.3.zip
- Mounting /system, /vendor
update-binary[73]: unzip: not found
! Unable to extract zip file!
Failed!
! Installation failed

, and when I try to flash from within TWRP it says:

- Unmounting partitions

Updater process ended with ERROR : 1

E: Unable to statfs '/system/.'

Error installing zip file '/sdcard/Terminal_Emulator_Debloater-v7.3.zip'

any ideas what I should try?
[Magisk] veez21:
You should probably ask [MENTION=4470081]topjohnwu[/MENTION]

You're missing unzip
[Magisk] yung40oz84:
Is there a way I can bypass the issue I am running into? So the bebloat worked fine. I am in stock Open Beta 1 for 5T, Android 8.0. I uninstalled YouTube and some other stuff.

The problem is now I want to flash IYTB YouTube to take the place of the one I uninstalled, but it's not showing up in apps..... Is there a way to get around this?
[Magisk] Pipsname:
I am wondering how to remove these applications. I want the space they take up.
[Magisk] coolbeans2016:
I have an LG Stylo 3 Plus. And just like a Samsung J3 I had when using an app like SD Maid Pro to delete system apps they would reappear on reboot. On the J3 I found the system app that was responsible for replacing removed/deleted apps on reboot. Cannot find the culprit in this LG. Will this module solve this or will apps reappear until the stock app that is reloading them is removed?

Magisk 15.2 & Magisk 5.5.2 Manager...

Thanks

zach
[Magisk] desertcat:
When I update to a new version of the debloater, I have to go back and debloat again.

Is there a way to keep what I have already debloated when I update or is this a "feature" of the debloater?
[Magisk] yatie47:
Is there an official list of apps that can be safely removed?
[Magisk] madbat99:
Every single phone is different, so no not a general one. Need to find one for your device.

---------- Post added at 03:15 AM ---------- Previous post was at 03:14 AM ----------

Don't debloat YouTube. Iytbp magisk module handles it.

---------- Post added at 03:16 AM ---------- Previous post was at 03:15 AM ----------

Don't need magisk for that, just delete them from system/app. But you don't get the space. It's not in the data partition, it's in /system. Not user space.
[Magisk] veez21:
Ah, forgot to say that when updating from previous versions to specifically v7.3, you'll loose your configuration.

But it won't be a problem updating from this point, unless topjohnwu updates the way magisk works again
[Magisk] mohdnurr:
This debloat just hide from seen in system. Not actually Uninstall the app.. Good job. Just like freeze the app. But totally hidden. Reappear when something happens in magisk
[Magisk] Orjakone:
Does anyone know how I can actually know what the real name of the application is?

In the list of "system apps" the names of some applications appear different and I can not really tell what they really are.

An example is the "Motorola App Box":

In the list, I can not find any name related to motorola brapps
[Magisk] veez21:
The name should be the same as it is displayed in launchers/settings.

Like "App Box". It should appear as App Box in the debloater
[Magisk] veez21:
It uninstalls the app. If something happens with magisk, of course it would be affected
[Magisk] kiddy05:
Hallo... Just stopped here.

Magisk V15.2, ROM BORETS 6.0.1
[Magisk] veez21:
Try wiping the data of terminal emulator
[Magisk] kiddy05:
still no change sir
[Magisk] veez21:
Upload the log at /cache/terminal_debloater-verbose.log
[Magisk] kiddy05:
+ '[' -d /system_root ']'

+ isABDevice=false

+ SYSTEM=/system

+ SYSTEM2=/system

+ '[' ! -x /system/xbin/busybox ']'

+ '[' -x /system/xbin/busybox ']'

+ true

+ '[' 0 -ne 0 ']'

+ MODDIR=/magisk/terminal_debloater

+ '[' ! -d /magisk/terminal_debloater ']'

+ get_file_prop version /magisk/terminal_debloater/module.prop

+ grep 'version=' /magisk/terminal_debloater/module.prop

+ _prop='version=v7.3'

+ echo v7.3

+ unset _prop

+ VER=v7.3

+ get_file_prop versionCode /magisk/terminal_debloater/module.prop

+ grep 'versionCode=' /magisk/terminal_debloater/module.prop

+ _prop='versionCode=20'

+ echo 20

+ unset _prop

+ REL=20

+ get_file_prop author /magisk/terminal_debloater/module.prop

+ grep 'author=' /magisk/terminal_debloater/module.prop

+ _prop='author=veez21'

+ echo veez21

+ unset _prop

+ AUTHOR=veez21

+ get_file_prop name /magisk/terminal_debloater/module.prop

+ grep 'name=' /magisk/terminal_debloater/module.prop

+ _prop='name=Terminal Emulator Debloater'

+ echo Terminal Emulator Debloater

+ unset _prop

+ MODTITLE='Terminal Emulator Debloater'

+ G='\e[01;32m'

+ R='\e[01;31m'

+ Y='\e[01;33m'

+ B='\e[01;34m'

+ V='\e[01;35m'

+ Bl='\e[01;30m'

+ C='\e[01;36m'

+ W='\e[01;37m'

+ N='\e[00;37;40m'

+ sed 's/ /=/g'

+ echo Terminal Emulator Debloater

+ wc -c

+ echo v7.3

+ wc -c

+ wc -c

+ echo 20

+ printf '%*s' 36
[Magisk] mohdnurr:
Yes. It Uninstall the apps but not deleted the apk. Still can be seen in Twrp file manager.
[Magisk] veez21:
I don't think you understand how magisk works..

You should read the magisk wiki

https://github.com/topjohnwu/Magisk/blob/master/docs/README.MD
[Magisk] mohdnurr:
My apologies.

Thank for clearance.

I'am sorry if my statement like complaining this. But what I mean is this systemless system is just like hiding the real system and use magisk as real system. So anything modification only affects magisk system not the real system. Since magisk just like block and replace the system not modified the system. And it totally work fine. Unless something is wrong in magisk.

At least it work on my device.

I just want to say this module is nice. That what I mean. :D
[Magisk] Orjakone:
Sorry for the delay in getting feedback.

Unfortunately, the name is not the same, strangely this application is in the "system / priv-app" and looking with the root explorer, it is not there, as if hidden.

And I have a new problem, the applications that I hid, reappeared on their own.
[Magisk] veez21:
I don't understand your situation at all.

Is a system app not appearing in the menu of debloater?
[Magisk] Orjakone:
I think so, if I'm not looking in the wrong folder.

in the indicated path that is this application there is no such folder "BRApps2"

Can you understand?