Fórum Ubuntu CZ/SK

Ubuntu pro osobní počítače => Obecná podpora => Téma založeno: sunamo 19 Prosince 2010, 12:02:43

Název: Vodafone 845 a Ubuntu 10.10 - problém s detekováním v avd
Přispěvatel: sunamo 19 Prosince 2010, 12:02:43
Dobrý den,

řeším problém - chci udělat screenshot na VF845 skrz ddms a nedaří se, nejvíc kam jsem se dostal je tato obrazovka.
(http://img214.imageshack.us/img214/4269/devicescreencapture002.png)
Mám stáhnuté nejnovější android SDK 8 (v mobilu mám ale verzi Androidu 2.1, tedy 7), nicméně API jsem instaloval pro verzi 7. Instaloval jsem i několik balíčků, co jsem našel různě v návodech pro propojení s VF 845 po internetu. Myslím že žádný balíček není přímo na škodu, takže mi stačí říct co mám instalovat a já nainstaluji, pokud nemám. V Eclipse se také nemohu připojit na VF845 skrz AVD:
(http://img139.imageshack.us/img139/3975/androiddevicechooser003.png)

Děkuji všem za odpovědi, je to pro mě důležité. Závisí na tom, jestli zůstanu na Linuxu.
Název: Re: Vodafone 845 a Ubuntu 10.10 - problém s detekováním v avd
Přispěvatel: soudruh 19 Prosince 2010, 15:00:34
Pokud máš telefon rootnutý, tak asi bude pohodlnější dělat screenshoty přímo v mobilu pomocí "ShootMe" - zapneš a pak když chceš udělat screen, tak zatřeseš s mobilem... /Sám na tomto modelu používám na výbornou/
Název: Re: Vodafone 845 a Ubuntu 10.10 - problém s detekováním v avd
Přispěvatel: sunamo 19 Prosince 2010, 15:14:59
Právě že rootnutý nemám a ani nechci. Ne proto že by to bylo složitější než toto, ale vím že toot je riziko, že se něco nenávratně pokazí. Navíc bych chtěl mít ty screeny hned v PC, ne v mobilu a pak je kopírovat. Musí to nějak jít, nikde jsem nenašel přímo, že AVD pod Linuxem nefunguje...
Název: Re: Vodafone 845 a Ubuntu 10.10 - problém s detekováním v avd
Přispěvatel: soudruh 19 Prosince 2010, 15:29:19
Důležitá informace, kterou jsi neuvedl. Máš zaplý USB debugging? Na udělání screenu je to potřeba.
Název: Re: Vodafone 845 a Ubuntu 10.10 - problém s detekováním v avd
Přispěvatel: sunamo 19 Prosince 2010, 18:24:44
Ano mám, na Win mi to normálně fungovalo a teď jsem to ještě pro jistotu zkontroloval. Při připojení USB se mi v horní "tray" liště zobrazí 2 nové notifikační ikony - usb zapojeno a usb debugging...
Název: Re: Vodafone 845 a Ubuntu 10.10 - problém s detekováním v avd
Přispěvatel: Miroslav Marcišin 21 Prosince 2010, 22:40:07
na příkaz "list avds" ti to najde zařízení?
Název: Re: Vodafone 845 a Ubuntu 10.10 - problém s detekováním v avd
Přispěvatel: sunamo 24 Prosince 2010, 18:31:58
sunamo@sunamo-HP-Compaq-nx7400-EY587ES-AKB:~$ sudo list avds
[sudo] password for sunamo:
sudo: list: command not found
sunamo@sunamo-HP-Compaq-nx7400-EY587ES-AKB:~$ list avds
No command 'list' found, did you mean:
 Command 'dist' from package 'nmh' (universe)
 Command 'lst' from package 'lustre-utils' (universe)
 Command 'slist' from package 'ncpfs' (universe)
 Command 'klist' from package 'heimdal-clients' (universe)
 Command 'klist' from package 'krb5-user' (main)
 Command 'listg' from package 'nauty' (multiverse)
 Command 'hist' from package 'loki' (universe)
 Command 'flist' from package 'nmh' (universe)
 Command 'last' from package 'sysvinit-utils' (main)
 Command 'gist' from package 'yorick' (universe)
 Command 'bist' from package 'bist' (universe)
list: command not found
sunamo@sunamo-HP-Compaq-nx7400-EY587ES-AKB:~$
Název: Re: Vodafone 845 a Ubuntu 10.10 - problém s detekováním v avd
Přispěvatel: Miroslav Marcišin 25 Prosince 2010, 12:14:35
aha no... musíš před musíš přes adb, tak jinak

dostaň se do složky kde je adb a potom napiš:

./adb list advs
Název: Re: Vodafone 845 a Ubuntu 10.10 - problém s detekováním v avd
Přispěvatel: sunamo 26 Prosince 2010, 21:15:28
Kód: [Vybrat]
sunamo@sunamo-HP-Compaq-nx7400-EY587ES-AKB:~/android/android-sdk-linux_86/tools$ ./adb list advs devices
Android Debug Bridge version 1.0.26

 -d                            - directs command to the only connected USB device
                                 returns an error if more than one USB device is present.
 -e                            - directs command to the only running emulator.
                                 returns an error if more than one emulator is running.
 -s <serial number>            - directs command to the USB device or emulator with
                                 the given serial number. Overrides ANDROID_SERIAL
                                 envivornment variable.
 -p <product name or path>     - simple product name like 'sooner', or
                                 a relative/absolute path to a product
                                 out directory like 'out/target/product/sooner'.
                                 If -p is not specified, the ANDROID_PRODUCT_OUT
                                 environment variable is used, which must
                                 be an absolute path.
 devices                       - list all connected devices
 connect <host>:<port>         - connect to a device via TCP/IP
 disconnect <host>:<port>      - disconnect from a TCP/IP device

device commands:
  adb push <local> <remote>    - copy file/dir to device
  adb pull <remote> [<local>]  - copy file/dir from device
  adb sync [ <directory> ]     - copy host->device only if changed
                                 (-l means list but don't copy)
                                 (see 'adb help all')
  adb shell                    - run remote shell interactively
  adb shell <command>          - run remote shell command
  adb emu <command>            - run emulator console command
  adb logcat [ <filter-spec> ] - View device log
  adb forward <local> <remote> - forward socket connections
                                 forward specs are one of:
                                   tcp:<port>
                                   localabstract:<unix domain socket name>
                                   localreserved:<unix domain socket name>
                                   localfilesystem:<unix domain socket name>
                                   dev:<character device name>
                                   jdwp:<process pid> (remote only)
  adb jdwp                     - list PIDs of processes hosting a JDWP transport
  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)
  adb uninstall [-k] <package> - remove this app package from the device
                                 ('-k' means keep the data and cache directories)
  adb bugreport                - return all information from the device
                                 that should be included in a bug report.

  adb help                     - show this help message
  adb version                  - show version num

DATAOPTS:
 (no option)                   - don't touch the data partition
  -w                           - wipe the data partition
  -d                           - flash the data partition

scripting:
  adb wait-for-device          - block until device is online
  adb start-server             - ensure that there is a server running
  adb kill-server              - kill the server if it is running
  adb get-state                - prints: offline | bootloader | device
  adb get-serialno             - prints: <serial-number>
  adb status-window            - continuously print device status for a specified device
  adb remount                  - remounts the /system partition on the device read-write
  adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or recovery program
  adb reboot-bootloader        - reboots the device into the bootloader
  adb root                     - restarts the adbd daemon with root permissions
  adb usb                      - restarts the adbd daemon listening on USB
  adb tcpip <port>             - restarts the adbd daemon listening on TCP on the specified port
networking:
  adb ppp <tty> [parameters]   - Run PPP over USB.
 Note: you should not automatically start a PPP connection.
 <tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
 [parameters] - Eg. defaultroute debug dump local notty usepeerdns

adb sync notes: adb sync [ <directory> ]
  <localdir> can be interpreted in several ways:

  - If <directory> is not specified, both /system and /data partitions will be updated.

  - If it is "system" or "data", only the corresponding partition
    is updated.

environmental variables:
  ADB_TRACE                    - Print debug information. A comma separated list of the following values
                                 1 or all, adb, sockets, packets, rwx, usb, sync, sysdeps, transport, jdwp
  ANDROID_SERIAL               - The serial number to connect to. -s takes priority over this if given.
  ANDROID_LOG_TAGS             - When used with the logcat option, only these debug tags are printed.
sunamo@sunamo-HP-Compaq-nx7400-EY587ES-AKB:~/android/android-sdk-linux_86/tools$

sunamo@sunamo-HP-Compaq-nx7400-EY587ES-AKB:~/android/android-sdk-linux_86/tools$ ./adb list advs
Android Debug Bridge version 1.0.26

 -d                            - directs command to the only connected USB device
                                 returns an error if more than one USB device is present.
 -e                            - directs command to the only running emulator.
                                 returns an error if more than one emulator is running.
 -s <serial number>            - directs command to the USB device or emulator with
                                 the given serial number. Overrides ANDROID_SERIAL
                                 envivornment variable.
 -p <product name or path>     - simple product name like 'sooner', or
                                 a relative/absolute path to a product
                                 out directory like 'out/target/product/sooner'.
                                 If -p is not specified, the ANDROID_PRODUCT_OUT
                                 environment variable is used, which must
                                 be an absolute path.
 devices                       - list all connected devices
 connect <host>:<port>         - connect to a device via TCP/IP
 disconnect <host>:<port>      - disconnect from a TCP/IP device

device commands:
  adb push <local> <remote>    - copy file/dir to device
  adb pull <remote> [<local>]  - copy file/dir from device
  adb sync [ <directory> ]     - copy host->device only if changed
                                 (-l means list but don't copy)
                                 (see 'adb help all')
  adb shell                    - run remote shell interactively
  adb shell <command>          - run remote shell command
  adb emu <command>            - run emulator console command
  adb logcat [ <filter-spec> ] - View device log
  adb forward <local> <remote> - forward socket connections
                                 forward specs are one of:
                                   tcp:<port>
                                   localabstract:<unix domain socket name>
                                   localreserved:<unix domain socket name>
                                   localfilesystem:<unix domain socket name>
                                   dev:<character device name>
                                   jdwp:<process pid> (remote only)
  adb jdwp                     - list PIDs of processes hosting a JDWP transport
  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)
  adb uninstall [-k] <package> - remove this app package from the device
                                 ('-k' means keep the data and cache directories)
  adb bugreport                - return all information from the device
                                 that should be included in a bug report.

  adb help                     - show this help message
  adb version                  - show version num

DATAOPTS:
 (no option)                   - don't touch the data partition
  -w                           - wipe the data partition
  -d                           - flash the data partition

scripting:
  adb wait-for-device          - block until device is online
  adb start-server             - ensure that there is a server running
  adb kill-server              - kill the server if it is running
  adb get-state                - prints: offline | bootloader | device
  adb get-serialno             - prints: <serial-number>
  adb status-window            - continuously print device status for a specified device
  adb remount                  - remounts the /system partition on the device read-write
  adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or recovery program
  adb reboot-bootloader        - reboots the device into the bootloader
  adb root                     - restarts the adbd daemon with root permissions
  adb usb                      - restarts the adbd daemon listening on USB
  adb tcpip <port>             - restarts the adbd daemon listening on TCP on the specified port
networking:
  adb ppp <tty> [parameters]   - Run PPP over USB.
 Note: you should not automatically start a PPP connection.
 <tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
 [parameters] - Eg. defaultroute debug dump local notty usepeerdns

adb sync notes: adb sync [ <directory> ]
  <localdir> can be interpreted in several ways:

  - If <directory> is not specified, both /system and /data partitions will be updated.

  - If it is "system" or "data", only the corresponding partition
    is updated.

environmental variables:
  ADB_TRACE                    - Print debug information. A comma separated list of the following values
                                 1 or all, adb, sockets, packets, rwx, usb, sync, sysdeps, transport, jdwp
  ANDROID_SERIAL               - The serial number to connect to. -s takes priority over this if given.
  ANDROID_LOG_TAGS             - When used with the logcat option, only these debug tags are printed.
sunamo@sunamo-HP-Compaq-nx7400-EY587ES-AKB:~/android/android-sdk-linux_86/tools$