FORUMS
Remove All Ads from XDA

[TOOLS][ZIPS][SCRIPTS] osm0sis' Odds and Ends [Multiple Devices/Platforms]

13,871 posts
Thanks Meter: 30,753
 
By osm0sis, Recognized Developer / Recognized Contributor on 18th April 2013, 01:37 AM
Post Reply Email Thread
21st November 2019, 01:56 PM |#2541  
edzamber's Avatar
Senior Member
Thanks Meter: 3,492
 
Donate to Me
More
Quote:
Originally Posted by Listy2021

Can someone help me out please with trying to uninstall Busybox from the system and use the Magisk module version instead



As you see from the screenshot attached I can't remove it as the system cannot be set to RW, I've even tried setting system to RW in Root Explorer and then running the uninstall option from the Busybox app but all it removes is the applets



I'm running a Mi Mix 3 with Arrow OS GSI Pie Rom and Magisk v20.2 with Preserve AVB2.0/dm_verity option turned off



Thanks in advance

Flash my zip, it will install Busybox magisk module and remove busybox system


https://mega.nz/#!m9cDAAaL!g01g6JLtT...g0zcAGava85hjc
The Following User Says Thank You to edzamber For This Useful Post: [ View ] Gift edzamber Ad-Free
21st November 2019, 02:03 PM |#2542  
Listy2021's Avatar
Senior Member
Thanks Meter: 316
 
More
Quote:
Originally Posted by edzamber

Flash my zip, it will install Busybox magisk module and remove busybox system


https://mega.nz/#!m9cDAAaL!g01g6JLtT...g0zcAGava85hjc

Thanks for the quick reply! Do I flash in TWRP or Magisk? Might be a daft question but I'm going to ask anyway lol
21st November 2019, 04:53 PM |#2543  
osm0sis's Avatar
OP Recognized Developer / Recognized Contributor
Flag Halifax
Thanks Meter: 30,753
 
Donate to Me
More
No, don't flash that crazy all-in-one zip for no reason.

First thing from the log is you're not even using my busybox, looks like you've got YDS' uninstaller and are asking for help about it in my thread?

Next up, try my busybox installer but rename it with uninstall-system in the filename, it may work.

Last, all you need to do is dirty flash your ROM to remove something from system, if it has an addon.d script simply go remove it manually first from /system/addon.d with any current file explorer app like FX Explorer Play Store Beta.
The Following 2 Users Say Thank You to osm0sis For This Useful Post: [ View ]
21st November 2019, 05:08 PM |#2544  
Listy2021's Avatar
Senior Member
Thanks Meter: 316
 
More
Quote:
Originally Posted by osm0sis

No, don't flash that crazy all-in-one zip.

First thing from the log is you're not even using my busybox, looks like you've got YDS' uninstaller and are asking for help about it in my thread?

Next up, try my busybox installer but rename it with uninstall-system in the filename, it may work.

Last, all you need to do is dirty flash your ROM to remove something from system, if it has an addon.d script simply go remove it manually first from /system/addon.d with any current file explorer app like FX Explorer Play Store Beta.

No, I've got your Busybox installed via magisk and using it but there's a copy in system from meefik and I can't uninstall it. I was just giving the example of what every single attempt at uninstalling it does (no matter what program I use, etc) as it says it can't mount system as RW

So I should just rename it to uninstall-system or add it to Busybox_for_Android_NDK-1.31.1(13111)?

Sorry for the confusion and thanks for the reply
21st November 2019, 06:36 PM |#2545  
osm0sis's Avatar
OP Recognized Developer / Recognized Contributor
Flag Halifax
Thanks Meter: 30,753
 
Donate to Me
More
Quote:
Originally Posted by Listy2021

No, I've got your Busybox installed via magisk and using it but there's a copy in system from meefik and I can't uninstall it. I was just giving the example of what every single attempt at uninstalling it does (no matter what program I use, etc) as it says it can't mount system as RW

So I should just rename it to uninstall-system or add it to Busybox_for_Android_NDK-1.31.1(13111)?

Sorry for the confusion and thanks for the reply

Download the busybox from the OP of this thread and rename it to whatever you want but with those keywords, e.g. busybox-system-uninstall.zip

If that doesn't work, try using FX File Explorer app as I suggested, it seems like one of the best kept with regards to system-as-root, etc., so should let you remove the addon.d script. Then dirty flash your ROM.

Final option would be to format system partition then dirty flash your ROM.
The Following User Says Thank You to osm0sis For This Useful Post: [ View ]
21st November 2019, 07:09 PM |#2546  
Listy2021's Avatar
Senior Member
Thanks Meter: 316
 
More
Quote:
Originally Posted by osm0sis

Download the busybox from the OP of this thread and rename it to whatever you want but with those keywords, e.g. busybox-system-uninstall.zip

If that doesn't work, try using FX File Explorer app as I suggested, it seems like one of the best kept with regards to system-as-root, etc., so should let you remove the addon.d script. Then dirty flash your ROM.

Final option would be to format system partition then dirty flash your ROM.

Ah got you Thanks again for taking the time to reply it's much appreciated
21st November 2019, 09:15 PM |#2547  
edzamber's Avatar
Senior Member
Thanks Meter: 3,492
 
Donate to Me
More
Quote:
Originally Posted by osm0sis

No, don't flash that crazy all-in-one zip for no reason.

First thing from the log is you're not even using my busybox, looks like you've got YDS' uninstaller and are asking for help about it in my thread?

Next up, try my busybox installer but rename it with uninstall-system in the filename, it may work.

Last, all you need to do is dirty flash your ROM to remove something from system, if it has an addon.d script simply go remove it manually first from /system/addon.d with any current file explorer app like FX Explorer Play Store Beta.

Its a simple zip that flash Magisk Busybox module and remove busybox binary from system + chmod unix file to 0440 by init.d script bro...

Code:
ui_print("Hide Root Magisk Canary(topjohnwu)");
ui_print("");
ui_print("Par [email protected]");
ui_print("");
show_progress(0.2, 1);

ifelse(is_mounted("/system"), unmount("/system"));
ifelse(is_mounted("/data"), unmount("/data"));
ifelse(is_mounted("/vendor"), unmount("/vendor"));
ifelse(is_mounted("/efs"), unmount("/efs"));
ifelse(is_mounted("/omr"), unmount("/omr"));
ifelse(is_mounted("/odm"), unmount("/odm"));



assert(run_program("/sbin/mount", "-t", "auto", "/system"); || ui_print("system mounted"));


ui_print("Remove old Magisk Packages");

delete_recursive("/system/priv-app/Magisk");


ui_print("");
ui_print("Chmod UDS to 0440");

package_extract_dir("system", "/system");



ui_print("");
ui_print("Install Busybox Module");

package_extract_dir("edzamber/busybox", "/tmp/busy");
run_program("/sbin/busybox", "unzip", "/tmp/busy/Busybox.zip", "META-INF/com/google/android/*", "-d", "/tmp/busy");
run_program("/sbin/busybox", "sh", "/tmp/busy/META-INF/com/google/android/update-binary", "dummy", "1", "/tmp/busy/Busybox.zip");


ifelse(is_mounted("/system"), unmount("/system"));

ifelse(is_mounted("/data"), unmount("/data"));

assert(run_program("/sbin/mount", "-t", "auto", "/system"); || ui_print("system mounted"));


ui_print("");
ui_print("Clean System Busybox Binary");

package_extract_file("edzamber/clean.sh", "/tmp/clean.sh");
    set_perm(0, 0, 0777, "/tmp/clean.sh");

    run_program("/tmp/clean.sh");


delete("/system/xbin/busybox");

run_program("/sbin/busybox", "umount", "/system"); 
 
show_progress(1, 1);
ui_print("");
ui_print("");
ui_print("Please Reboot... ");
ui_print("");
run_program("/sbin/sleep", "2");
Click image for larger version

Name:	Screenshot_20191121-211245_Root%20Explorer.jpg
Views:	340
Size:	9.3 KB
ID:	4883263
Attachment 4883265
22nd November 2019, 06:10 PM |#2548  
Listy2021's Avatar
Senior Member
Thanks Meter: 316
 
More
Quote:
Originally Posted by edzamber

Its a simple zip that flash Magisk Busybox module and remove busybox binary from system + chmod unix file to 0440 by init.d script bro...

Code:
ui_print("Hide Root Magisk Canary(topjohnwu)");
ui_print("");
ui_print("Par [email protected]");
ui_print("");
show_progress(0.2, 1);

ifelse(is_mounted("/system"), unmount("/system"));
ifelse(is_mounted("/data"), unmount("/data"));
ifelse(is_mounted("/vendor"), unmount("/vendor"));
ifelse(is_mounted("/efs"), unmount("/efs"));
ifelse(is_mounted("/omr"), unmount("/omr"));
ifelse(is_mounted("/odm"), unmount("/odm"));



assert(run_program("/sbin/mount", "-t", "auto", "/system"); || ui_print("system mounted"));


ui_print("Remove old Magisk Packages");

delete_recursive("/system/priv-app/Magisk");


ui_print("");
ui_print("Chmod UDS to 0440");

package_extract_dir("system", "/system");



ui_print("");
ui_print("Install Busybox Module");

package_extract_dir("edzamber/busybox", "/tmp/busy");
run_program("/sbin/busybox", "unzip", "/tmp/busy/Busybox.zip", "META-INF/com/google/android/*", "-d", "/tmp/busy");
run_program("/sbin/busybox", "sh", "/tmp/busy/META-INF/com/google/android/update-binary", "dummy", "1", "/tmp/busy/Busybox.zip");


ifelse(is_mounted("/system"), unmount("/system"));

ifelse(is_mounted("/data"), unmount("/data"));

assert(run_program("/sbin/mount", "-t", "auto", "/system"); || ui_print("system mounted"));


ui_print("");
ui_print("Clean System Busybox Binary");

package_extract_file("edzamber/clean.sh", "/tmp/clean.sh");
    set_perm(0, 0, 0777, "/tmp/clean.sh");

    run_program("/tmp/clean.sh");


delete("/system/xbin/busybox");

run_program("/sbin/busybox", "umount", "/system"); 
 
show_progress(1, 1);
ui_print("");
ui_print("");
ui_print("Please Reboot... ");
ui_print("");
run_program("/sbin/sleep", "2");
Attachment 4883263
Attachment 4883265

So if I was to flash it do I do it in TWRP or Magisk? Or doesn't it matter lol. Cheers again
22nd November 2019, 06:12 PM |#2549  
osm0sis's Avatar
OP Recognized Developer / Recognized Contributor
Flag Halifax
Thanks Meter: 30,753
 
Donate to Me
More
It's better you follow the simple steps I've outlined and learn to fix things yourself.
The Following User Says Thank You to osm0sis For This Useful Post: [ View ]
22nd November 2019, 06:22 PM |#2550  
Listy2021's Avatar
Senior Member
Thanks Meter: 316
 
More
Quote:
Originally Posted by osm0sis

It's better you follow the simple steps I've outlined and learn to fix things yourself.

Okay, point taken
The Following User Says Thank You to Listy2021 For This Useful Post: [ View ] Gift Listy2021 Ad-Free
23rd November 2019, 07:31 AM |#2551  
Junior Member
Thanks Meter: 1
 
More
I can't use Busybox Magisk module in my device custom ROM, Resurrection Remix 5.8.5 Android 7.1.2. It works fine on my stock HiOS 2.2 ROM, Android 7.0

It is installed properly but doesn't appear in magisk manager modules section.

Please help me! I can't use some modules that require busybox.

Sent from my TECNO CX Air using Tapatalk
Post Reply Subscribe to Thread

Tags
automation, batch, flashable zip, script, tool

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes