android: Problem Installing app to Emulator
I want to install busybox to my emulator. I followed the following steps : Start emulator from dos prompt 1) emulator –avd youravdname –partition-size 128
2) Copy file to /data/local cat busybox > /data/local/busybox OR adb push busybox /data/local/busybox
3) STart shesll adb shell
3) Mount as RW su -c mount -o remount,rw /dev/block/mtdblock0 /system
4) Copy file to system cat /da开发者_高级运维ta/local/busybox > /system/xbin/busybox
5) Install busybox cd /system/xbin busybox --install .
Till step 4 all works perfectly fine. At Step 5, I get "No such fiel or directory" for each file that had to be installed. Like :
# busybox --install .
busybox --install .
busybox: /data/busybox/[: No such file or directory
busybox: /data/busybox/[[: No such file or directory
busybox: /data/busybox/addgroup: No such file or directory
busybox: /data/busybox/adduser: No such file or directory
busybox: /data/busybox/adjtimex: No such file or directory
busybox: /data/busybox/ar: No such file or directory
busybox: /data/busybox/arp: No such file or directory
busybox: /data/busybox/arping: No such file or directory
List goes on till file "zcip". I tried to install in /data/busybox folder also. There also I get the same. If I create a folder /busybox and the ntry to install, then I ger "Invalid device cross-link ..." for each file.
Can anyone help me know why is htis error and how to solve it. I got to have busybox installed. After doing lots of research I found the above steps that helped me gain some success till coping to /xbin. Now installing is the issue.
Any help is highly appreciated.
I tried by copying busybox file to /sbin directory. I assume you know how to mount / partition in read-write mode (else run mount -o rw,remount rootfs /
)
Then run:
mkdir /bin
mkdir /usr/bin
mkdir /usr/sbin
/sbin/busybox --install
It has worked for me!!
You are trying to do more what you need to do.
Just use the following command to install an external apk in your emulator
adb install your_apk.apk
Help Link
http://developer.android.com/guide/developing/tools/adb.html#move
精彩评论