CERCA
PER MODELLO
FullScreen Chatbox! :)

Utente del giorno: 9mm con ben 3 Thanks ricevuti nelle ultime 24 ore
Utente della settimana: 9mm con ben 8 Thanks ricevuti negli ultimi sette giorni
Utente del mese: 9mm con ben 29 Thanks ricevuti nell'ultimo mese

Visualizzazione dei risultati da 1 a 5 su 5
Discussione:

un po' di comandi utili di adb

Se questa discussione ti č stata utile, ti preghiamo di lasciare un messaggio di feedback in modo che possa essere preziosa in futuro anche per altri utenti come te!
  1. #1
    Androidiani Power User L'avatar di androgiallo


    Registrato dal
    Feb 2010
    Localitā
    Trento
    Messaggi
    7,414
    Smartphone
    Oneplus 2

    Ringraziamenti
    55
    Ringraziato 1,276 volte in 897 Posts
    Predefinito

    un po' di comandi utili di adb

    eccovi u po' di comandi utili da dare da adb...
    NB: Per utenti linux e mac,i comandi sono identici in tutto e per tutto a quelli sotto,dovete semplicemente aggiungere il prefisso

    ./
    davanti al comando adb...
    per esempio:

    ./adb shell

    UTILIZZO:

    -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
    -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

    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
    (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 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-product - prints: <product-id>
    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

    networking:
    adb ppp <tty> [parameters] - Run PPP over USB.
    Note: you should not automatically start a PDP 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.
    Alcuni non li ho mai usati, nč mai sentiti menzionare, perciō non mi assumo responsabilitā se il vostro terminale vi salta addosso e vi azzanna

    edit:su linux e mac basta impostare la variabile di sistema PATH (come faccio io di solito con eseguibili) e non c'č bisogno di mettere ./ davanti.
    es. OSX (ma anche alcune distro linux)
    ~/.bash_profile -> alla fine del file -> PATH=/directory/android/sdk/tools:$PATH THANKS TO ELEGOS
    edit 2: ecco un altro link utile -> Android Debug Bridge | Android Developers THANKS TO POLHALLEN
    Gianluca
    Ultima modifica di androgiallo; 25-05-10 alle 15:31 - Motivo: thanks to polhalle

  2.  
  3. #2
    Androidiano VIP L'avatar di elegos


    Registrato dal
    Jul 2009
    Messaggi
    1,714

    Ringraziamenti
    2
    Ringraziato 153 volte in 120 Posts
    Predefinito

    adb --help non dā la stessa risposta? xD

    cmq su linux e mac basta impostare la variabile di sistema PATH (come faccio io di solito con eseguibili) e non c'č bisogno di mettere ./ davanti.

    es. OSX (ma anche alcune distro linux)
    ~/.bash_profile -> alla fine del file -> PATH=/directory/android/sdk/tools:$PATH

  4. #3
    Androidiani Power User L'avatar di androgiallo


    Registrato dal
    Feb 2010
    Localitā
    Trento
    Messaggi
    7,414
    Smartphone
    Oneplus 2

    Ringraziamenti
    55
    Ringraziato 1,276 volte in 897 Posts
    Predefinito

    grazie elegos, corretto e aggiunto....
    Gianluca

  5. #4
    Androidiano


    Registrato dal
    Apr 2010
    Messaggi
    59

    Ringraziamenti
    1
    Ringraziato 0 volte in 0 Posts
    Predefinito

    Mi permetto di postare questo link (Android Debug Bridge)

    Android Debug Bridge | Android Developers

    Pol

  6. #5
    Androidiani Power User L'avatar di androgiallo


    Registrato dal
    Feb 2010
    Localitā
    Trento
    Messaggi
    7,414
    Smartphone
    Oneplus 2

    Ringraziamenti
    55
    Ringraziato 1,276 volte in 897 Posts
    Predefinito

    grazie molhallen...aggiungo anche questo link al 3d iniziale

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire risposte
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Torna su
Privacy Policy