Results 1 to 9 of 9
Like Tree2Likes
  • 1 Post By mallik_raj
  • 1 Post By Satanic

Thread: some useful ADB commands

  1. [translate]    #1
    Member
    Join Date
    Feb 2010
    Location
    Hyderabad, India
    Posts
    68

    Default some useful ADB commands

    CREDITS: listed in easy to use format by shamsud


    download driver for window from here http://forum.samdroid.net/attachment...gtrans/auto/en

    download sdk from here http://developer.android.com/intl/de/sdk/index.html

    but dont open instead extract to root of c drive rename folder to AndroidSDK

    connect ur phone to pc but dont mount sdcard (also tick the usb debugging option from setting-application-development)

    open cmd and enter command



    cd\

    cd AndroidSDK\tools\ -----------connect to adb

    adb devices --------------– lists which devices are currently attached to your computer

    if u dont get ur device number something u did wrong cheack again

    once ur device is connected u can try the below command for ur use

    note; to install or push anything to phone place the file u want to push or install in C:\AndroidSDK\tools


    --------------------------------command list--------------------------------------------------------------


    adb shell mount -o remount,rw,codepage=utf8,vfat,xattr,check=no /dev/stl5 /system -----let u mount ur system

    adb push <packagename.apk> /system/app/ ----------put in system folder

    adb devices – ----lists which devices are currently attached to your computer

    adb install <packagename.apk> – lets you install an Android application on your phone

    adb remount – Remounts your system in write mode – this lets you alter system files on your phone using ADB

    adb push <localfile> <location on your phone> – lets you upload files to your phones filesystem

    adb pull <location on your phone> <localfile> – lets you download files off your phones filesystem

    adb logcat – starts dumping debugging information from your handset to the console – useful for debugging your apps

    adb shell <command> – drops you into a basic linux command shell on your phone with no parameters, or lets you run commands directly

    adb devices – lists which devices are currently attached to your computer

    adb install <packagename.apk> – lets you install an Android application on your phone

    adb remount – Remounts your system in write mode – this lets you alter system files on your phone using ADB

    adb push <localfile> <location on your phone> – lets you upload files to your phones filesystem

    adb pull <location on your phone> <localfile> – lets you download files off your phones filesystem

    adb logcat – starts dumping debugging information from your handset to the console – useful for debugging your apps
    adb
    adb shell <command> – drops you into a basic linux command shell on your phone with no parameters, or lets you run commands directly

    Fastboot Commands

    fastboot devices – lists which devices in fastboot mode are currently attached to your computer

    fastboot boot <filename> – boots a rom stored on your pc specified by the filename

    fastboot flash <partition> <filename> – flashes a rom stored on your pc, partition can be one of {boot, recovery, system, userdata}


    MODS: Please make the topic sticky so that the questions regarding adb dont have to be answered repeatedly.

    You can also remove unused application like "Myspace in my case"
    1.remount filesystem in rw mode
    cmd: adb shell mount -o remount,rw,codepage=utf8,vfat,xattr,check=no /dev/stl5 /system
    2. make a copy of the file before deleting
    cmd: adb pull /system/app C:\xxxx
    3.login into shell to delete file
    cmd:
    adb shell
    cd /system/app
    rm myspace.apk
    exit
    Last edited by mallik_raj; 02-21-2010 at 09:02 PM.
    piskor likes this.

  2. [translate]    #2
    FAQ makers mrJohn's Avatar
    Join Date
    Jan 2010
    Location
    Russia/Ulyanovsk
    Posts
    147

    Default

    MODS: Please make the topic sticky so that the questions regarding adb dont have to be answered repeatedly.
    in faq now

  3. [translate]    #3
    Moderator
    Join Date
    Feb 2010
    Location
    Russia, Ekaterinburg
    Posts
    520

    Talking

    ну вы блин даете....
    ALL ADB COMMANDS
    Quote Originally Posted by adb.exe >> adb.txt
    Android Debug Bridge version 1.0.25

    -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
    (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 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.
    piskor likes this.
    aka Lokicoon Twitter | Blog | Devices: HTC Desire + Samsung Spica - Кухня SamdroidMod на JE1

  4. [translate]    #4
    Administrator
    Join Date
    Dec 2009
    Location
    Moscow, Russia
    Posts
    3,731

    Default

    Кто бы в FAQ_е еще расписал подробнее назначение каждой команды...

  5. [translate]    #5
    Junior Member
    Join Date
    Feb 2012
    Location
    philippines
    Posts
    1

    Default

    what about if my phone is rooted what is the command? tnx!

  6. [translate]    #6
    Junior Member
    Join Date
    Feb 2012
    Location
    CA
    Posts
    8

    Default very good, it's very useful to me, thank you very much!

    very good, it's very useful to me, thank you very much! --------------------- runescape gold, Runescape Gold – PlayersAid.com

  7. [translate]    #7
    Junior Member
    Join Date
    Feb 2012
    Location
    CA
    Posts
    8

    Default very good, it's very useful to me, thank you very much!

    very good, it's very useful to me, thank you very much! --------------------- runescape gold, Runescape Gold – PlayersAid.com

  8. [translate]    #8
    Junior Member
    Join Date
    Dec 2012
    Location
    Russia
    Posts
    4

    Default

    thx

  9. [translate]    #9
    Junior Member
    Join Date
    Dec 2012
    Location
    india
    Posts
    4

    Default

    Hello ! friend this is nice information for all .
    microchipsdirect.co.uk/ , stablesoft-europe.com/

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •