meefik / busybox

BusyBox for Android
https://meefik.github.io/busybox
GNU General Public License v2.0
1.46k stars 258 forks source link

Latest version ( BusyBox 1.34.1) doesn't contains busybox bin #117

Open joselbr2099 opened 2 years ago

joselbr2099 commented 2 years ago

apk from play store and GitHub versions says:

/system/bin/sh: <stdin>[12]: 
busybox: inaccessible or not found

checking busybox-v1_34_1.apk assets dir only contains all folder

superbonaci commented 2 years ago

Maybe you need root with Magisk and root first. Are you on LineageOS or stock rom? busybox-v1_34_1-51.apk does work for me:

$ adb shell
android:/ $ which sh
/system/bin/sh
android:/ $ file /system/bin/sh
/system/bin/sh: ELF shared object, 32-bit LSB arm, dynamic (/system/bin/linker), for Android 30, BuildID=68530569b44b24853d1363f7750c794f, stripped
android:/ $ stat /system/bin/sh
  File: /system/bin/sh
  Size: 217252   Blocks: 432     IO Blocks: 512  regular file
Device: b31eh/45854d     Inode: 907      Links: 1        Device type: 0,0
Access: (0755/-rwxr-xr-x)       Uid: (    0/    root)   Gid: ( 2000/   shell)
Access: 2008-12-31 19:00:00.000000000 -0500
Modify: 2008-12-31 19:00:00.000000000 -0500
Change: 2008-12-31 19:00:00.000000000 -0500
android:/ $ /system/bin/sh -v
# Copyright (c) 2010, 2012, 2013, 2014
#       Thorsten Glaser <tg@mirbsd.org>
# This file is provided under the same terms as mksh.
#-
# Minimal /system/etc/mkshrc for Android
#
# Support: https://launchpad.net/mksh

set +o nohup

if (( USER_ID )); then PS1='$'; else PS1='#'; fi
PS4='[$EPOCHREALTIME] '; PS1='${|
        local e=$?

        (( e )) && REPLY+="$e|"

        return $e
}$HOSTNAME:${PWD:-?} '"$PS1 "

export TERM=xterm-256color
rubenpgrady commented 1 year ago

@joselbr2099 Does this help? #123