[Galaxy Tab 2 7" Android Development] Setialpha:
Hi folks,

here's an easy-to-install busybox for your Galaxy Tab 2. NOW with Cyanogen Mod support.

ChangeLog:

BusyBox 1.21.0-git Nano1 (2012-07-28): initial release

BusyBox 1.21.0-git Nano2 (2012-07-29): applied various patches:

BUGFIX: flush all open files after listing them (ls)

BUGFIX: when setting hostname from file p**** whole name

COMPAT: ps now accepts (= ignores) all options a POSIX ps should

allow passing -mthumb to make

ash applet now exports HOME

silently ignore processes from inittab with terminal names without matching device file

default behaviour of 'showkey' applet changed from displaying interpreted keycode to decimals

do not show a message when testing an uninitialized variable

changed some terms in top applet output (rss vs. vsz)

BusyBox 1.21.0-git Nano3 (2012-08-05): major fix

NEW: rfkill applet¹

several minor modifications to applet

BUGFIX fixed a bug in busyinstall that left system without 'sh' upon uninstall²

provide busybox-patches to the world

BusyBox 1.21.0-git Nano4 (2012-08-15): minor fix / cm 10 edition

updated to latest git (some bugfixes)

BUGFIX: reading profile now works

BUGFIX: adjusted shell paths

BUGFIX: history now works

BUGFIX: no longer replace reboot on stock rom³

NEW: Cyanogen Mod edition (tested on cm10)

¹ Either redo 'busyinstall install', or do 'ln -sf /system/bin/busybox /system/bin/rfkill'

² You can find the original sh in you CWM backup, or here: http://www.nanolx.org/downloads/P3110/original-sh

If you didn't get /system/bin/sh.orig after 'busyinstall install', use this file as /system/bin/sh.orig

³ push new busyinstall into tablet to ensure future install/uninstall is fine. then do 'mv /system/bin/reboot.orig /system/bin/reboot'

from within 'adb shell' as root to get original reboot back.

Prerequisites:

* root access on your Tablet

Download:

busybox (normal): http://www.nanolx.org/downloads/P3110/busybox-nano4

busybox (debug): http://www.nanolx.org/downloads/P3110/busybox_unstripped-nano4

busyinstall (installer/stock): http://www.nanolx.org/downloads/P3110/busyinstall

busyinstall (installer/cm10): http://www.nanolx.org/downloads/P3110/busyinstall-cm

profile (optional): http://www.nanolx.org/downloads/P3110/profile¹

busybox (patches): http://www.nanolx.org/downloads/index.php?dir=P3110/busybox-patches/

¹ profile is a generic file, read on each startup of busybox. Mine sets HOME to /,

and puts /system/xbin/ in front of /system/bin/ in PATH. You can also adjust the

prompt (PS1) or whatever here, it's valid for all users. You could check for

'$(id -u) == 0' to adjust prompt for root, if not 0, for ordinary user.

Ordinary user should get 'busybox (normal)', rather than 'busybox (debug)'.

NEW INSTALLATION (STOCK ROM):

Putting busybox on internal sd-storage:

adb push busybox /mnt/extSdCard/
adb push busyinstall /mnt/extSdCard/

replace "extSdCard" if you saved busybox somewhere else

adb shell
su
chmod 0777 /mnt/extSdCard/busybox
chmod 0777 /mnt/extSdCard/busyinstall
/mnt/extSdCard/busybox remount -o rw,remount /system
/mnt/extSdCard/busybox mv -f /mnt/extSdCard/busybox /system/bin/
/system/bin/busybox mv -f /mnt/extSdCard/busyinstall /system/bin
busyinstall install

NEW INSTALLATION (CYANOGEN ROM):

Putting busybox on device:

in Settings > Development > set 'root access' to 'apps + adb'

adb root
adb shell
busybox mount -o rw,remount /system
exit
adb push busybox /system/xbin/busybox.nano
adb push busyinstall /system/bin/busyinstall
adb push profile /system/etc/profile # optional, if downloaded profile
adb shell
chmod 0777 /system/bin/busyinstall
busyinstall install

UPDATE:

Just download busybox, busyinstall and replace the ones in /system/bin/ - it will instantly work:

adb push busybox /system/bin/
adb push busyinstall /system/bin/
adb shell
su
toolbox chmod 0777 /system/bin/busybox # if you use windows, the executable bit might be missing in the uploaded file
chmod 0777 /system/bin/busyinstall

UNINSTALLATION:

ab shell
su
busyinstall --

That's it!

I tested everything and it does work perfect, either way a backup (CWM) is always recommened, when working around with stuff down the stack.

Suggestions welcome.