Friday 16 September 2011

Installing new apk in android emulator using ubuntu.

Steps: Before installation
1.Go to sdk/platform-tools
Cmd:   cd  /home/android-sdk/platform-tools
2. List the devices
Cmd:   ./adb devices
Ex:    ./adb devices
List of devices attached
emulator-5554    device

3.To install
Cmd:  ./adb install .filename.apk
Ex:   ./adb install AndExplorer.apk
1083 KB/s (338651 bytes in 0.305s)
pkg: /data/local/tmp/AndExplorer.apk
Success

Steps: After installation.
tec@tec-G41M-Combo:~$ sudo su
root@tec-G41M-Combo:/home/tec# cd /home/tec/
root@tec-G41M-Combo:/home/tec# chmod 777 -R android-sdk-linux_x86/
root@tec-G41M-Combo:/home/tec# clear
root@tec-G41M-Combo:/home/tec# cd android-sdk-linux_x86/platform-tools/
root@tec-G41M-Combo:/home/tec/android-sdk-linux_x86/platform-tools# ls3dspusbbus dexdump  Maid with the Flaxen Hair.mp3
3dspusbwlan.ko     dhd.ko         NOTICE.txt
3dspusbwlanpriv    dmesg.log      Ny
aapt               dmesg_mod.txt  pdf
adb                dmesg.txt      sample
aidl               drive          Sleep Away.mp3
apps               Driver         source.properties
binary             driver_src     test2
BlueW-2310U_2.0.0  dx             untitled folder
con                img            uwb
config             lib            uwbtest
config~            llvm-rs-cc     wlan
root@tec-G41M-Combo:/home/tec/android-sdk-linux_x86/platform-tools# ./adb devices
List of devices attached
emulator-5554    offline
root@tec-G41M-Combo:/home/tec/android-sdk-linux_x86/platform-tools# ./adb devices
List of devices attached
emulator-5554    device
root@tec-G41M-Combo:/home/tec/android-sdk-linux_x86/platform-tools# ./adb install AndExplorer.apk
1083 KB/s (338651 bytes in 0.305s)
    pkg: /data/local/tmp/AndExplorer.apk
Success