2012-10-25 1 views
0

android 에뮬레이터 (android 2.3.3)에 busybox를 설치하려고합니다.android 에뮬레이터 (android 2.3.3)에서 busybox를 설치하는 방법?

나는 게시물 pushing busybox into android emulator에 주어진 두 가지 방법을 따랐지만, 나는 문제에 직면하고있다. 이 게시물에서 최초의 솔루션을 사용하지만 난있어

# su 
su 
# cd /data/busybox 
cd /data/busybox 
# chmod 775 busybox 
chmod 775 busybox 
# ./busybox --install 
./busybox --install 
# busybox 
busybox 
busybox: not found 
# ./busybox 
./busybox 
BusyBox v1.8.1 (2007-11-14 10:11:37 EST) multi-call binary 
Copyright (C) 1998-2006 Erik Andersen, Rob Landley, and others. 
Licensed under GPLv2. See source distribution for full notice. 

Usage: busybox [function] [arguments]... 
    or: [function] [arguments]... 

    BusyBox is a multi-call binary that combines many common Unix 
    utilities into a single executable. Most people will create a 
    link to busybox for each function they wish to use and BusyBox 
    will act like whatever it was invoked as! 

Currently defined functions: 
    [, [[, addgroup, adduser, adjtimex, ar, arp, arping, ash, 
    awk, basename, bunzip2, bzcat, bzip2, cal, cat, catv, 
    chattr, chgrp, chmod, chown, chpasswd, chpst, chroot, 
    chrt, chvt, cksum, clear, cmp, comm, cp, cpio, crond, 
    crontab, cryptpw, cut, date, dc, dd, deallocvt, delgroup, 
    deluser, df, dhcprelay, diff, dirname, dmesg, dnsd, dos2unix, 
    du, dumpkmap, dumpleases, echo, ed, egrep, eject, env, 
    envdir, envuidgid, ether-wake, expand, expr, fakeidentd, 
    false, fbset, fdflush, fdformat, fdisk, fgrep, find, fold, 
    free, freeramdisk, fsck, fsck.minix, ftpget, ftpput, fuser, 
    getopt, getty, grep, gunzip, gzip, halt, hdparm, head, 
    hexdump, hostid, hostname, httpd, hwclock, id, ifconfig, 
    ifdown, ifup, inetd, init, insmod, install, ip, ipaddr, 
    ipcalc, ipcrm, ipcs, iplink, iproute, iprule, iptunnel, 
    kbd_mode, kill, killall, killall5, klogd, last, length, 
    less, linux32, linux64, linuxrc, ln, loadfont, loadkmap, 
    logger, login, logname, logread, losetup, ls, lsattr, 
    lsmod, lzmacat, makedevs, md5sum, mdev, mesg, microcom, 
    mkdir, mkfifo, mkfs.minix, mknod, mkswap, mktemp, modprobe, 
    more, mount, mountpoint, mt, mv, nameif, nc, netstat, 
    nice, nmeter, nohup, nslookup, od, openvt, passwd, patch, 
    pgrep, pidof, ping, ping6, pipe_progress, pivot_root, 
    pkill, poweroff, printenv, printf, ps, pscan, pwd, raidautorun, 
    rdate, readlink, readprofile, realpath, reboot, renice, 
    reset, resize, rm, rmdir, rmmod, route, rpm, rpm2cpio, 
    run-parts, runlevel, runsv, runsvdir, rx, sed, seq, setarch, 
    setconsole, setkeycodes, setlogcons, setsid, setuidgid, 
    sh, sha1sum, slattach, sleep, softlimit, sort, split, 
    start-stop-daemon, stat, strings, stty, su, sulogin, sum, 
    sv, svlogd, swapoff, swapon, switch_root, sync, sysctl, 
    syslogd, tail, tar, taskset, tcpsvd, tee, telnet, telnetd, 
    test, tftp, time, top, touch, tr, traceroute, true, tty, 
    ttysize, udhcpc, udhcpd, udpsvd, umount, uname, uncompress, 
    unexpand, uniq, unix2dos, unlzma, unzip, uptime, usleep, 
    uudecode, uuencode, vconfig, vi, vlock, watch, watchdog, 
    wc, wget, which, who, whoami, xargs, yes, zcat, zcip 

# busybox 
busybox 
busybox: not found 

을 다음

이 게시물에서 두 번째 솔루션을 사용하지만 얻었다 "비지 박스가 : 찾을 수 없음" "./busybox : 권한 거부"

# ./busybox --install 
./busybox --install 
./busybox: permission denied 
# ./busybox 
./busybox 
./busybox: permission denied 
# export PATH=/data/busybox:$PATH 
export PATH=/data/busybox:$PATH 

이 하나가 ... 나를 인도시겠습니까

답변

2

문제가 해결 될 때, 내가 링크 http://allencch.wordpress.com/2012/02/29/learn-to-root-android-using-emulator/에서 절차를 따랐다.

내가 실수로 생각한 것은 여분의 공간이있는 avd를 시작하지 않았다는 것입니다. 위의 튜토리얼에서는 "우리는/system에 여분의 디스크 공간이있는 에뮬레이터를 시작합니다. 후에."

emulator -avd MyAndroid -partition-size 128 -no-snapshot-load 

이 튜토리얼은 ADB 쉘을 "우리가 사용해야"고 언급하고 "우리는/시스템에 대한 쓰기 액세스 할 수 있도록/시스템을 다시 마운트 할 수 있습니다." 당신이 오류 메시지가있는 경우

adb push su /system/xbin/ 
adb push busybox /system/xbin/ 

(위 단계를 수행 한 후,

failed to copy 'busybox' to '/system/xbin//busybox': Out of memory 

그런 다음 파티션 크기보다 큰하여 AVD를 다시 시작

adb shell mount -o rw,remount -t yaffs2 /dev/block/mtdblock0 /system 

다음, 우리는 다음을 수행 할 필요가 128 예를 들어 512로 시작합니다. 그런 다음 위의 단계를 반복하십시오.)

adb shell chmod 06755 /system/xbin/su 
adb shell chmod 06755 /system/xbin/busybox 

에뮬레이터가 이미 루트 액세스 권한을 가지고 있기 때문에 su가 필요 없다고 생각하지만 전체 절차를 따랐습니다.

에뮬레이터를 다시 시작하면 모든 것이 기본값으로 바뀌므로 더 이상 'su'가 아닙니다. 위의 튜토리얼에서이 문제를 해결하려면 'Solution'이라는 제목의 단락을 읽으십시오. 비지 박스

./busybox --install 본이고

2

제 복사 비지 박스 chmod를 777 비지 폴더를 #from. #space 및 도트가 필요합니다.

그리고 나는 u가 누락 된 것 같아요. "