Android command line

Source: Internet
Author: User

2 --name cupcake

Build Simulator: $ android Create AVD--target 2--name Cupcake

Removal Simulator: Android Delete avd--name cupcake

List created emulators: Android list AVD

Start Shell: $ adb shell

Catalog $ ls

Remove apk (under directory): $ rm apidemos.apk

Start adb adb start-server

Kill ADB: $adb kill-server

Restart phone adb reboot

Query Emulator instance: $ ADB devices

Installing APK $ adb Install ebook.apk

Uninstall APK $ adb Uninstall Net.blogjava.mobile.ebook

Emulator install APK $adb-s emulator-5554 install ebook.apk

Emulator reinstall APK $ADB-S emulator-5554 install-r ebook.apk

Real machine Install apk $adb-s ht9byl904399 install ebook.apk

Real machine Reinstall APK $ADB-S ht9byl904399 install-r ebook.apk

Copy files from real machine to PC $ adb-s ht9byl904399 pull/sdcard/camera.jpg picture.jpg

Copy from PC to file to real machine $ adb-s ht9byl904399 push picture.jpg/sdcard/abc.jpg

Get Mobile Info: $ adb shell

$ cat/system/build.prop

Android command line

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.