yashsingh1/xdaforums huggingface dataset:
[Magisk] amphi66:
For a clean install, is there a recommended method to remove Masgisk & Magisk Manager and then reinstall Without losing root in the process?
[Magisk] veez21:
Use magisk uninstaller in magisk's main thread. Flash that then reflash magisk.
[Magisk] amphi66:
Thanks. Does flashing the Uninstaller from TWRP also remove Magisk Manager 5.1.1 or should I uninstall it first?

Then after running the Uninstaller in Recovery, do you recommend immediately flashing Magisk 15.3 or rebooting back to the system, installing Magisk Manager 5.6 and letting that app install Magisk 15.3?

Thank you for "handholding" the newbie!
[Magisk] godofsalt:
Personally I would of course wipe cache and Dalvik cache. From that point, you can install Magisk. If you do v15.3 I believe the Manager is 5.5 but don't hold me to that (Am on 15.4 with Manager 5.6, 4 me it works great sm-900p (Galaxy S5 on Sprint))

PS - I do believe that the Uninstaller takes the Manager out too. So when you re-flash the v15.3 it will install the Manager that comes with that version

Hope this helps...
[Magisk] amphi66:
Thanks for the input. Turns out that MM5.5.5 comes with M15.3. Following the MM upgrade steps to v5.6 reinitiates the immediate Force Closing, so I will stay with v5.5.5 for now as all seems to work properly.

I appreciate the assistance & reailze I have been Hijacking the Debloater thread (which is OK now) so I will move any future off-topic requests to the proper thread.
[Magisk] Nightmare[ITA]:
will this break ota?
[Magisk] godofsalt:
Well glad to hear that I could help or point to a correct path.

Hey, that little button, that look like a "Thumbs up ". You could hit that. Rather have that in lue of another post.

Have a great day. Oh, you do need to head over the the Magisk Beta thread. He had found out the issues on 5.6 d

So new update coming soon.
[Magisk] kgr:
[MENTION=7296895]veez21[/MENTION] is there any way to list the apps in alphabetical order?
[Magisk] Fif_:
[MENTION=7296895]veez21[/MENTION], 8.9 installs two versions of debloat, one in /system/bin, the other in /system/xbin. It's the same issue as in systemizer.
[Magisk] veez21:
Not yet, or ever. It's pretty hard to do so since the current detection method is complicated.

Yeah, noticed that too.
[Magisk] rnadomuc:
Not all command line apps bug me, but this one really seems like it could use a GUI.
[Magisk] Sasafrass:
Would you mind to elaborate? If it was an app, it would have a higher profile, and that would destroy its purpose as a cl tool.
[Magisk] GrayJack:
Deleted (the problem is not exist with original Terminal Emulator).
[Magisk] veez21:
UPDATE TO v9!

Changelog:

### v9
* Fixed typos

Download at the OP or at Magisk Manager

Donate
[Magisk] Sjant:
Does this mean you can make a custom list to batch debloat and if so how do you do it?
[Magisk] veez21:
Yes, but write it as a directory
[Magisk] alex.do:
just FYI, [MENTION=7296895]veez21[/MENTION]. Looks like using any version later than v8.4 on xperia devices (or at least my xz and x) causes bootloop. I believe xbin folder is the culprit. fixed it by mounting magisk.img and having xbin folder removed. so I guess xbin ONLY for samsung (s8 to be specific) and bin for the rest?
[Magisk] veez21:
I just noticed that xbin isn't deleted during installation XD. I'll update stuff after exams.
[Magisk] Jaymin.0.1910:
[MENTION=7296895]veez21[/MENTION], [MENTION=6037748]Zackptg5[/MENTION], [MENTION=5228676]VR25[/MENTION], [MENTION=8918441]OldMid[/MENTION], and all Magisk module developers who Magic Mount executables for their modules,

Can we all standardize on putting our executables into xbin if that is already existing, and use /bin only when no xbin detected, also if we could adapt the SuperSU BINDSBIN to our executables, it wll also eliminate Samsung specific issues, I want to know if this can be standardized and if so how can all of us developers use that ??

Also, since Magisk creates its own /sbin overlay, how can that be handled using just Shell while MagiskHide is running ??
[Magisk] veez21:
The sbin stuff should be integrated by topjohnwu directly into Magisk. Probably add something in the next template when he comes back.
[Magisk] Jaymin.0.1910:
Sounds good, will surely ask him once he is back
[Magisk] problemathic:
this module fails to uninstall xposed installer preinstalled on a custom rom. any idea why?
[Magisk] Fif_:
Because Xposed is not just an app, it comes with framework and Art changes. Debloater can only deal with apps.
[Magisk] problemathic:
yeah i mean xposed app no framework. because the xposed framework itself has an uninstaller. and again this one fails to uninstall xposed app(no xposed framework)
[Magisk] Didgeridoohan:
Details needed. Where is the app installed (/system/app or /system/priv-app)? Does it show up in the list of apps to debloat? Have you installed updates to the app, and if so, have you uninstalled these? Etc, etc...
[Magisk] problemathic:
its on /system/priv-app and yes it appeared on the list and when try to uninstall it said uninstalled and then when i reboot its still there. solved my problem by using jumobile system app remover. but still i want to use this. thats just my feedback to help make this better. hope it could be fix.
[Magisk] veez21:
Logs would help:

/cache/terminal_debloater-verbose.log
[Magisk] problemathic:
after i clean install new rom again. ill send you the logs in that directory.
[Magisk] veez21:
UPDATE TO v10!

Changelog:

* New way of debloating
* Made debloating multiple apps easier (read the XDA Thread for instructions)
* Fix xbin not getting deleted

Download at the OP or at Magisk Manager

Donate
[Magisk] veez21:
UPDATE TO v11!

Changelog:

* Add Back to menu option
* Logs can now be uploaded by entering `logs`
* Misc improvements XD

Download at the OP or at Magisk Manager

Donate
[Magisk] godofsalt:
Glad to see a "back" command. Really hated all the re-typing to get several stock apps and scripts out of me Galaxy S5.

Great work, and.... Thank You
[Magisk] notstevek:
This update (maybe v10 too?) Won't work for me. If I revert to v9 it's fine. Just hangs and does nothing. -nc doesn't work either, but I didn't have to use that on v9, tried it anyway.

Log attached.
[Magisk] veez21:
Install busybox from Magisk manager's downloads section.
[Magisk] notstevek:
I noticed that seemed to be the problem as it wasn't picking up BusyBox commands, when I read through the log. The thing is, I have BusyBox installed. I don't know why it isn't being picked up. I'm stock 8.1 Oreo on Nexus 6p. Should I try to reinstall BusyBox module manually via TWRP instead of the Magisk manager app? Can I manually fix symlinks? I guess I'll have to go post in the BusyBox thread and get support there?
[Magisk] veez21:
You can access the busybox in a terminal emulator or adb shell right? I'll try to fix this stuff today.
[Magisk] notstevek:
Well termux uses it's own BusyBox iirc

In termux:

which busybox
/data/data/com.termux/files/usr/bin/busybox

Looking in my file manager I see

/sbin/.core/busybox

Which are symlinks to:

/Sbin/.core/mirror/bin/busybox (binary file)

And

/Magisk/busybox-ndk/system/xbin

Which has a symlink but doesn't give the full path just says "busybox".

I installed a different terminal emulator and I can use busybox commands like chown chroot bzip2 grep sed cp, so I assume it works, but typing just "busybox" results in it saying not found, which is weird.

I can access busybox from the terminal in TWRP, by typing "busybox".

Plugging it into my computer, adb shell, "/system/bin/sh: busybox not found"

Still in adb shell, manually cd'ing into /Magisk/busybox-ndk/system/xbin, typing "./busybox" it will turn on.

I have no clue why this is happening. I will post in osm0sis' thread for help.
[Magisk] veez21:
I found the problem, I'll update with the fix later.
[Magisk] veez21:
UPDATE TO v11.1!

Changelog:

* Fixed stuff related to busybox alias

Download at the OP or at Magisk Manager

Donate
[Magisk] PiixJu:
Hi

Sony X Compact (Oreo with march updates) won't go past boot screen with either Debloater or App Systemizer installed, unless I remove these two lines:

set_busybox /data/magisk/busybox
set_busybox /data/adb/magisk/busybox

After removing these lines, phone boots and everything works.

I tried only with v11 and v12.

Magisk version 16.3.
[Magisk] OldMid:
Try changing the directories to /sbin/.core/mirror/bin/busybox

see if it works:good:
[Magisk] veez21:
Really? That's unusual. Does it bootloop every time with those lines?
[Magisk] PiixJu:
Yeah, it won't go past Sony logo. No xperia or android logos on boot, just stuck on Sony logo.

Like in this video https://www.youtube.com/watch?v=n-OPqDKRnPY
[Magisk] veez21:
Seems very unlikely to me. Things like that don't cause bootloops as nothing gets executed on boot in this module. Maybe something else in the module is causing the problem, like rebooting twice or thrice might solve the problem.
[Magisk] PiixJu:
I don't know what to tell you. I rebooted three or four times (after letting it sit ca 10min), until I figured out how to disable modules in recovery. :D

Then I removed these lines because of this post: https://xdaforums.com/showpost.php?p=76054610&postcount=5533

But it seems the new Oreo fw is somewhat problematic on Sonys (xposed is not working either).
[Magisk] veez21:
UPDATE TO v11.2!

Changelog:

* Add vendor apps (you probably shouldn't mess with this though)
* Add option on deleting the apk in /data
* other changes

Download at the OP or at Magisk Manager

Donate
[Magisk] PiixJu:
I upgraded to Debloater 11.2 and App Systemizer 12.2 today and phone booted without any problem. :good:
[Magisk] rakib23:
I tried both deleting the apk and not deleting on two different apps, but failed to notice any difference. Don't seem to find any apk in /data. Could you please elaborate a little? Thanks :)
[Magisk] ColdUser:
Nice work bro!

I just want to know if someone's has a list with apps that i dont need on my Mi5 miui.

That will be great i dont wanna remove any important apps.

Thank you.
[Magisk] t0per666:
can i use this if i have super su? thanks!

i dont want magisk for this kind of phone im using
[Magisk] Didgeridoohan:
No. It relies entirely on Magisk specific functions. You'll have to debloat the old-fashioned way...
[Magisk] veez21:
UPDATE TO v11.3!

Changelog:

* Fix listing when going back and forth in the menu
* Misc

Download at the OP or at Magisk Manager

Donate
[Magisk] ColdUser:
Since the latest update i dont have the option to install the apps back.

And the numbers are incorrect when im trying to delete a app, like find device on nr 7 it deletes another app.
[Magisk] veez21:
Give logs.

Upload /cache/terminal_debloater-verbose.log here, or just type

logs

in the debloat menu and it will upload it for you, then give the link generated here.
[Magisk] NYLimited:
Can you elaborate? Is that an actual delete which cannot be recovered?

In case of a system app which has been updated via the Play Store - would it delete the updated version and leave the original ROM version, hence not debloat?

On another topic, is it possible to download previous versions for testing?
[Magisk] NYLimited:
I'm getting some really odd things going on here. Hopefully someone more familiar with this module can tell me what I'm doing wrong... :(

I'm working on a newly flashed LG V10 H901 device, running Nougat version 30C, latest Magisk (16.3), latest debloat and busybox modules. I load debloat and enter option 1 - system apps. Get a long list of over 100 items.

Try one I enter some 10 or 15 line numbers separated by a space.

Press enter.

I get a number of "Delete? y/n" prompts, reply n to each.

Reboot.

No change that I can detect.

I save logs but "terminal_debloater.log" is empty and "terminal_debloater-verbose.log" ends at the promp before I entered the selections (see attached file terminal_debloater-verbose.log"

I start over clean, loaddebloat again, select choice 1.

This time I specify only 1 app (facebook) and finish.

Reboot

Facebook is still there (see attached file terminal_debloater-verbose-2.log)

So, what am I missing?
[Magisk] veez21:
Can the app be uninstalled like a normal app now? The delete option appears if the app is found in /data (probably have been updated in the Play store).
[Magisk] ColdUser:
Since I'm new here i can't post a link now. I need to post 10 messages before i can send the link.

I have tried to find in storage but nothing..

Tried to reinstall the debloater but still the same.

Nvm it works now.?
[Magisk] NYLimited:
I have 2 different situations, both a problem. Let's deal with the simpler one for now.

In one situation I tried to debloat only Facebook which, as I recall, is located i /system and, although I have root, I don't want to alter the system partition (hence the systemless debloater). I'm not certain if Facebook was or was not updated. Probably yes. But, in either case, I was under the assumption that the debloat process would make the app disappear. Facebook continues to remain visible and usable even though I ran debloat on it.

Either I am misunderstanding what and how debloat does or it is not doing it on my device. ;-(

[ EDIT ] I removed the current version of the module (including all previously debloated directory entries) and installed an old version - version 9.0 of the debloat module.

After rebooting I loaded this version, selected Facebook, rebooted the device.

Facebook was no longer visible, as expected.

In other words, version 9.0 works the way I thought it should and totally hid the app.
[Magisk] freegame619:
I installed the module, and uninstalled all the apps I need from both /system/app and /system/priv-app but when I uninstalled the module, all the apps are back, so what does this module do exactly, does it simply hide the apps or what, I want to permanently remove these apps so that I can save may be 1 GB or more space on my device, I can uninstall most of the apps via Titanium but calendar, google app and oneplus message, gallery remains. Even though the delete option is shown for all the apps after uninstalling, only after some apps deleted message is shown, is there any way to uninstall all the apps permanently or not.
[Magisk] Didgeridoohan:
Yes, you're basically correct when you say that it just hides the apps. That's what systemless means, it doesn't really touch the /system partition...

Using Titanium to permanently uninstall should work, but only if you don't have Magisk mounting a systemless mask. Since you'd then be working with a "copy", it wouldn't work... The solution in that case would be to enable Magisk's Core Only Mode (so that the mask is disable) whenever you need to delete something from /system, or do all your debloating manually from a custom recovery.

It's not quite clear from your description, but it sounds like you haven't uninstalled updates for a few apps, and that's why they remain.
[Magisk] freegame619:
I have not updated any system apps, I was able to remove almost all of them expect google app, google calendar, oneplus gallery, google contacts sync, market feedback agent and 3 other apps that I have no use.
[Magisk] Sam Nakamura:
After I update my lg g watch to magisk 16.3 it broke the compatibility of module version 7.2 (I think, can't check atm as I'm not home). So I updated to debloater to 11.3 but you suggested method didn't work on adb shell...

adb shell
su
/magisk/terminal_debloater/system/bin/debloat

It's says "sh: not found" just like what is described at post #1 "debloat - nc".

I can't use a terminal emulator and filesystem is sqashfs which is read only, that's why I need a systemless solution..

If you need any logs just let me know!

Thanks

Edit: returning to magisk 16 makes debloater 7.2 function in the shell but app is still there after reboot
[Magisk] veez21:
Yeah, I need the logs. In /cache/terminal_debloater*.log
[Magisk] Sam Nakamura:
Here we go:

terminal_debloater.log

https://drive.google.com/file/d/15HjxZXdd_RS5Zo_WnpSATFMgdEE0iL1O/view?usp=drivesdk

terminal_debloater-verbose.log

https://drive.google.com/file/d/1jpELOqPbgnFXyzjPKrYbyCXf0kNtb4wV/view?usp=drivesdk

let me know if you need anything else...
[Magisk] veez21:
You have busybox installed?
[Magisk] Sam Nakamura:
Sure, osm0sis's systemless busybox, magisk manager shows it's active...
[Magisk] veez21:
I don't know what's the problem. Probably because things don't get mounted. Busybox was not detected and the files were successfully created by the debloater.

Try Magisk 16.3, maybe there are fixes that come with it.

/sbin/.core/img/terminal_debloater/system/bin
[Magisk] Sam Nakamura:
16.3 in combination with 11.3 was what I checked at the first place but this doesn't even execute the "magisk/terminal_debloater/system/bin/debloat" nore the "debloat -nc" in adb shell... adb shell only stared working with magisk 16.0 and debloater 7.x, that's the weird thing...
[Magisk] veez21:
/magisk folder/link no longer exists in 16.3

It's now in /sbin/.core/img.
[Magisk] Sam Nakamura:
Thanks for this hint, adb shell now starts "debloat" with module version 11.3 using your suggested path:

/sbin/.core/img/terminal_debloater/system/bin/debloat
[Magisk] paolocorpo:
Thanks for sharing

Does it run well on XIAOMI Mi6 with MIUI Gloabal Developer 8.4.19 ?
[Magisk] veez21:
It works on any device that supports magisk.
[Magisk] veez21:
UPDATE TO v12!

Changelog:

* Add options w/o menu (try: debloat -h)
* Fixes and optimizations (ala google XD)

Download at the OP or at Magisk Manager

Donate
[Magisk] psychoela:
Not working
[Magisk] veez21:
Wait, I forgot something.

edit: fixed, redownload/reinstalling it should fix it
[Magisk] Fif_:
debloat vs. deblaot
[Magisk] psychoela:
12.1, thanks
[Magisk] OldMid:
Nice implementation of command line arguments, maybe consider making the -d option more obvious, as it should be the main feature. Consider something like 'debloat -d -s' or 'debloat -ds' to delete from the system app folder while an option like '-d -p' or '-dp' could be for priv-apps, the same going for vendor apps, with -v.

Also consider a feature that presents options if a package name was misspelled, or only part of the package name was entered. This could be done with 'grep' in a pope with 'ls' to get all available package names that are close to any word entered. Its a bit difficult to explain via text and I'm in a hurry ATM, but I could type IP a sample in a couple hours when I'm free.

Love the work though, a constant reference for me!:good:
[Magisk] veez21:
I'll consider it. But I don't clearly see the point.

If you mean like something like in a linux distro terminal, then I'd probably implement that.

Thanks
[Magisk] alphahere:
Using Magisk 16.0 - I get the following error installing debloater zip.

Installing zip file '/sdcard/MagiskManager/Debloater_(Terminal_Emulator)-v12.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.
I:Legacy property environment not used in updater.
*******************************
Please install Magisk v15.0+!
*******************************
Updater process ended with ERROR: 1
I:Install took 0 second(s).
Error installing zip file '/sdcard/MagiskManager/Debloater_(Terminal_Emulator)-v12.1.zip'

Other modules install fine. Anything else I can try?

Thanks
[Magisk] ayyyy lmao:
Guys, idk if you were made aware of it, but v12.1 is incompatible with magisk 16.4.

Thanks
[Magisk] paolocorpo:
Whick kind of issue are you running ?
[Magisk] ayyyy lmao:
I was using 16.3 with a lot of modules, but without any issues. After I updated to 16.4 my phone would boot, only to loose magisk after a few seconds and unmounting all of the systemless apps. I uninstalled everything in my phone and re flashed 16.4, worked like a charm without modules. Then I started flashing my fav modules, one by one to see wich one was having issues with magisk. After flashing a couple of other modules without issue I flashed the debloater. Still no problem. Then I tried debloating chrome, just like I had done in 16.3 without issue, but now the error is back.

Thanks!
[Magisk] veez21:
I don't know how to reproduce this (in 16.x). Try installing in magisk manager instead.

Try reporting in the beta thread. I don't think this issue is exclusive in this module only if it can be reproduced.
[Magisk] eried1:
I installed the module successfully using Magisk v16.0 but when I enter commands they only return the options I have.
[Magisk] veez21:
I can't understand you. You've installed the one linked in the OP, that's borked? Install the latest in magisk manager.
[Magisk] eried1:
I didn't know there was a newer version than V12. I'll keep searching the thread.
[Magisk] veez21:
There is, it's in magisk manager. Install from there.
[Magisk] veez21:
UPDATE TO v13!

Changelog:

* debloat -d now supports app label (e.g. com.android.terminal)
* Misc improvements

Download at the OP or at Magisk Manager

Donate
[Magisk] veez21:
UPDATE TO v13.1!

Changelog:

* Fix detection of apk in /data
* System app listing looks better and much more readable :3
* Misc improvements

Download at the OP or at Magisk Manager

Donate

The reason for these frequent updates is because I'm planning to have a lazy vacation, doing nothing. So I made this as complete as possible :3
[Magisk] YiPing_Huang:
Last update, debloated apps are still shown in the list.
[Magisk] Zafrkant:
Same for me
[Magisk] veez21:
Fixed in v13.2 :3
[Magisk] paolocorpo:
Is the file updated name 13 ? I was figurin 13.2 ... Am I wrong ?
[Magisk] honua:
Trouble with removing Chrome

Google Chrome that is preinstalled with European region (CLT-L29) of the Huawei P20 Pro won't uninstall. The tool says that it was a success and after a reboot, no success. I also tried the system app remover from Google Play and it crashes when it tries to remove Google Chrome. Does this happen to anyone else?
[Magisk] Didgeridoohan:
Regular system app removers won't work with the Magisk mounted system mirror...

And about debloating the Magisk way: have you made sure to remove any updates for Chrome before running the debloater?
[Magisk] honua:
That fixed it. Thanks
[Magisk] AngryLady:
People need the manual about what apps to debloat.

Category SAFE and RADICAL debloating list. Thanks.
[Magisk] iWARR:
Xiaomi Redme Note 5, mi-globe MIUI v8.5.10 (8.1.0), TWRP v3.2.1-2

I have a problem running this module in adb shell:

adb shell
$ su
Permission denied

Why?

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

(I have found that I can't turn on "Install through USB" option in MIUI 9. Can this weird thing break permissions?

This f@... "G" and ugly "O"... and "X" , now they want a user login into Mi-acc to disable options.... OMG, f@... "G"O"Mi"needs)

Also I want to note, that Magisk v16.4 is likely not compatible with TWRP I used, and there are some problems with OS, Debloater v13.2 (stuck in TWRP) and other things.

My "whyred" TWRP & MIUI 9 works with Magisk v16.0 (stable), but I don't know if v16.0 is compatible with the rescent Debloater v13.2. For now, I can't use Magisk v16.4 on my TWRP/OS.
[Magisk] davidzam:
Hello. I would like to point out that I used the module on terminal emulator. It did erase registers from the app in the system drawer. But I want to remove them completely. I know there are saved somewhere inside the internal memory using precious space. How can I remove those backups? I'm certain that there won't be any malfunction on my device. I don't need them anymore. I need the space. Thanks.

Enviado desde mi SM-G550T1 mediante Tapatalk
[Magisk] NYLimited:
If you are certain that is what you want to do (and do not need an unaltered /system partition for any reason) and you understand the implications.. simply install a file manager with root abilities (such as

Root Explorer

) and delete them completely. I'd make sure I have a good TWRP or similar backup before doing so but, hey, that's just me....
[Magisk] iWARR:
Tried also using "Material Terminal Emulator v2.0.2" and have installed "Busybox for Android NDK v1.28.3" (I don't know if this step is necessary; please, tell me if you know).

In the Terminal Emulator I have an error:

$ su
sh: /system/etc/mkshrc[27]: alias: ..: invalid alias name
whyred:/ # su
sh: /system/etc/mkshrc[27]: alias: ..: invalid alias name

Please, help me. How to get this thing work?