Examples of ADB directives

Source: Internet
Author: User

  Specify a simulator or a real machine

-S emulator-5554 Shell

  Print Log

ADB logcat

  Upload a file

ADB push./sina_login.png/mnt/sdcard/dcim/camera/sina_login.png

  Upload a directory

ADB push./emo/mnt/sdcard/dcim/camera/emo

  Download a file

# adb pull/mnt/sdcard/dcim/camera/img_20121130_102210.jpg./img_20121130_102210.jpg280 KB/s (0.086s )

  Download a directory where the recursive parameter-R is not set, and the empty directory is not downloaded

ADB pull/mnt/sdcard/gigatalk./gigatalk

  Install APK

Install bigrampaid.apk1872 kb/s (930s) pkg:/data/local/tmp/bigrampaid.apk   

  Specify install to SD card

Install-s bigrampaid.apk2262 kb/s (180s) pkg:/sdcard/tmp/bigrampaid.apksuccess 

  Install again , prompt for error message: Installed

Install-s bigrampaid.apk2322 kb/s (839s) pkg:/sdcard/tmp/bigrampaid.apkfailure [Install_ Failed_already_exists]    
View Code

  Reinstall, retain legacy data, allow shared package names and digital signatures

Install-R bigrampaid.apk2526 kb/s (one806s) pkg:/data/local/tmp/bigrampaid.apk   

  Preserving data and caching directories

ADB uninstall Com.gigabud.bigram

  Reload/system Partition

ADB Remountremount succeeded

Examples of ADB directives

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.