adb install device auswahl

  • Antworten:3
Mac Systems
  • Forum-Beiträge: 1.727

20.12.2010, 16:59:49 via Website

Komme nicht drauf wie das zu benutzen ist:

adb install [-l] [-r] <file> - push this package file to the device and install it
('-l' means forward-lock the app)
('-r' means reinstall the app, keeping its data)

Habe den Emulator und das Device selbst unter Linux am rennen, der install sagt mir nun "error: more than one device and emulator".
Wie sagte Ich im auf welchem Device er die APK deployen soll ?


thx,
Mac

Windmate HD, See you @ IO 14 , Worked on Wundercar, Glass V3, LG G Watch, Moto 360, Android TV

Antworten
Gian U.
  • Forum-Beiträge: 117

20.12.2010, 19:58:46 via Website

Ich glaube du musst den Parameter -s setzen, also z.B.
adb -s emulator-5554 install [-l] [-r] <file>

Kann aber auch sein, dass ich mich täusche.

Mnemono - Efficient learning!

Antworten
Gelöschter Account
  • Forum-Beiträge: 5.136

21.12.2010, 00:10:00 via Website

adb -s <seriennummer des Device> install software.apk <- installiert auf dem Device mit der Seriennummer die "adb devices" ausgibt

adb -e -s <seriennummer des Device> install -r xyz.apk <- reinstalliert die Software ohne vorher notwendigen Deinstall der apk sofern dieses Paket schon installiert ist ..

Beispiel:

C:\Users\vossisMac>adb devices
List of devices attached
HT062P8AB9212 device
emulator-5554 device
emulator-5553 device

C:\Users\vossisMac> adb -e -s emulator-5554 install -r xyz.apk
490 KB/s (388583 bytes in 0.781s)
pkg: /data/local/tmp/quickcall.d.apk
success
Im Beispiel war xyz.apk schon auf dem Device installiert.

— geändert am 21.12.2010, 00:24:21

lg Voss

Antworten