Friday, 16 September 2011

Installing new apk in android emulator using ubuntu.

Steps:

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




Before Installation


 After Installation.



Work Done:


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

2 comments:

  1. i am try your tutorial, but I did not get a word success when I install the file.apk, how do I know it has successfully?

    ReplyDelete
  2. Go to Settings-->Applications-->Manage Applications select all in your phone.You can see installed apps there.

    ReplyDelete