busybox icon indicating copy to clipboard operation
busybox copied to clipboard

Busybox 1.31 Install error on Android 9 -- SOLVED

Open taichichuan opened this issue 4 years ago • 15 comments

OK, I managed to solve the installation issue with Android 9 on the Samsung Galaxy Tab S6.

Here's how I did it:

  1. root the tablet by installing twrp, dm_verity and magisk
  2. boot into Android
  3. install root_checker and verify that the device is rooted
  4. install Meefik's busybox but don't run the internal installer

From adb shell session or connectbot or other terminal application (log in and su)

  1. cd /data/data/ru.meefik.busybox/files/scripts

  2. ../bin/vi install.sh change busybox mount -o rw,remount /system to busybox mount -o rw,remount /

6a. Make sure to make the same sort of correction to the remove.sh script

  1. Make sure that /system is still writable mount -o rw,remount /

  2. chmod 777 /system/xbin

  3. Now, run the internal installer for busybox app and it should work and copy busybox and set symlinks

  4. chmod 755 /system/xbin

  5. reset the /system to ro mount -o ro,remount /

Meefik's busybox is now installed.

taichichuan avatar Mar 24 '20 01:03 taichichuan

Thanks! This worked perfectly for me on my mata device (Essential PH-1) running LineageOS 16.0 (Android 9). I was getting the Remounting /system to rw . . . fail error. Not any more. @taichichuan maybe add a note that the same should be done for the remove.sh script.

mspacek avatar Mar 31 '20 13:03 mspacek

Also, see #72

mspacek avatar Mar 31 '20 13:03 mspacek

It works to me too. Thanks. The only difference is that I need to mkdir /system/xbin manually before the step 8.

Erich-Chen avatar Apr 22 '20 08:04 Erich-Chen

This worked for me, too. Thanks!

(off-topic but just wanted to share what I discovered just now. Android 10's toybox ships with few binaries removed --viz curl, ssh, sftp, start-ssh, tracepath6. I was relying on curl in a Tasker profile that fetches the sunset/sunrise times to do various other actions but since curl wasn't found in /system/bin my Tasker profiles broke. I used Terminal Emulator to see if this was a Tasker issue but turns out /system/bin is missing a few important binaries (probably for security?) that were present in Pie but removed in 10. So I thought if Meefik's busybox could bring these applets back and have them symlinked under /system/xbin but Meefik's busybox applets do not include curl. So I compiled the binary for aarch64, placed it under /system/bin manually, chown'ed for shell:shell, set +x bit and everything was working fine there-after :))

cyfrost avatar Apr 24 '20 16:04 cyfrost

Here it does not have this 'files' folder, only cache and code_cache

ineedhacker12345 avatar May 15 '20 15:05 ineedhacker12345

Works, confirmed on Huawei Mate 9 Pro EMUI9.0.1 Android 9 + Magisk

rikka0w0 avatar Jul 03 '20 19:07 rikka0w0

also works on Android 10 + Magisk

Casper-09 avatar Aug 28 '20 23:08 Casper-09

Hey @taichichuan (or anyone else). Having a bit of trouble with this, could anyone point me in the right direction?

Attempting to create the /system/xbin folder as @Erich-Chen mentioned but having no luck. If created using termux su, the command doesn't finish and the tablet eventually softlocks. Have spent a lot of time trying to figure this out and stuck!

snug avatar Mar 03 '21 00:03 snug

@snug as I recall the su in Termux is a busybox link, try using the one that came with your root package (probably /system/bin/su but check first)

ls -l `which su` should tell you for certain which one you're using (note the back-ticks)

annihat avatar Mar 18 '21 20:03 annihat

Hey @annihat,

Thanks for your response! Checked this out and was using the termux version. As such, I installed a terminal emulator and as a result get this now instead: lrwxrwxrwx 1 root root 8 1970-02-11 19:10 /sbin/su -> ./magisk

Running mkdir /system/xbin after mounting /system still softlocks the system though. Have also tried running mount -o rw,remount /sbin/magisk/mirror/system_root which also softlocks.

Are there any other options that I can try? Would really love a chroot of arch on my eink tablet instead of just a proot. Would make for a much smoother experience.

Thanks again for your help :)

snug avatar Apr 05 '21 09:04 snug

OK, I managed to solve the installation issue with Android 9 on the Samsung Galaxy Tab S6.

Here's how I did it:

1. root the tablet by installing twrp, dm_verity and magisk

2. boot into Android

3. install root_checker and verify that the device is rooted

4. install Meefik's busybox but don't run the internal installer

From adb shell session or connectbot or other terminal application (log in and su)

1. **cd /data/data/ru.meefik.busybox/files/scripts**

2. **../bin/vi install.sh**
   change     **busybox mount -o rw,remount /system**
   to                **busybox mount -o rw,remount /**

6a. Make sure to make the same sort of correction to the remove.sh script

1. Make sure that /system is still writable
   **mount -o rw,remount /**

2. **chmod 777 /system/xbin**

3. Now, run the internal installer for busybox app and it should work and copy busybox and set symlinks

4. **chmod 755 /system/xbin**

5. reset the /system to ro
   **mount -o ro,remount /**

Meefik's busybox is now installed.

Working on Fairphone 3+ with /e/ OS rooted by Magisk!

StaticallyTypedRice avatar Apr 09 '21 01:04 StaticallyTypedRice

I've this problem in android 11. It works to me too. Thanks.

rardcode avatar May 18 '21 06:05 rardcode

Not sure if anything has changed since first posted. I am trying to install busybox on android 9 with Magisk. All the steps above work fine, but when I run internal install on busybox I always get I/O error when app script tries to create busybox.

If I tsu with termux or just su in another term app, mount -o rw,remount / and try mkdir /system/xbin/busybox I get a read I/O error as well.

So I am not sure whether or not the issue is something new different, being a couple of years later after this post was originally posted. Any ideas, suggs or advice much appreciated.

naphelge avatar Jan 25 '23 14:01 naphelge

any idea why i get this?

Jelly2:/ # mkdir -p /system/xbin/busybox
mkdir: '/system/xbin': No space left on device

DocMAX avatar Jul 31 '23 08:07 DocMAX

There is another layer, this Lenovo tablet has 0x4000 ro filesystem flag. I think it's for shared_blocks. I'll keep working on it, but I need a hand.

Edit: the filesystem looked full 2 me, so there is nowhere to put stuff anyways. I'll look for what I can safely dump.

cheako avatar Aug 28 '23 00:08 cheako