Android terminal basic commands

Source: Internet
Author: User

To use the android command, first add the path of the tools file in your androidsdk Development Kit to the PATH variable of the system so that you can use the android command

  1. Open the start running window and Enter cmd to enter the black dos form.
  2. Android list // display all android platforms in the system and all AVD (simulators)
  3. Android list target // display all android platforms in the system
  4. Android list AVD // display all avd in the system (simulator)
  5. Android create AVD-name focuser-Target 9 // create AVD (simulator) create a simulator named focuser android2.3 Platform
  6. Android move AVD-name focuser-Rename www.focuser.org
    // Rename the AVD name and rename the avd of the focuser as www.focuser.org
  7. Android Delete AVD--name www.focuser.org
    // Delete the AVD named www.focuser.org
    Simulator
  8. Android Create Project-package org. focuser // package name *

-Name focus // project name

-Activity mainactivity // activity name *

-Target 10 // Android version *

-Path D: // Android/focuser // path for storing the project *

9. Android update project-Target 9 // Android platform version

-Path D: // Android/focuser.org // path for storing the project

-Name focuser // project name

10. emulator-AVD focuser-sdcard ~ /Focuser. IMG (-skin 1280 × 800) // start the simulator

11. ADB devices // display all running Simulators

12. ADB install mp3player.apk // install the APK Application

13. ADB install-r mp3player.apk // reinstall the APK Application

14. ADB uninstall org. focuser. mp3player // uninstall the application

15. ADB help // view the help information of the ADB command

16. Android help // view the help information of the android command

17. ADB root // obtain administrator privileges

18. Abd shell // enter the shell mode of the device or Simulator

19. ADB push <local path> <remote path> // send files from the computer to the mobile device

20. ADB push <remote path> <local path> // copy the file from the mobile device to the Local Computer

These are terminal commands that I often use, but I often forget to specially post these basic commands to check them when I forget them! Today, I went to dinner and made a small step every day. Come on!

Original article published in my personal independent blog --- "Focus
"Reprint please indicate the original link: http://www.focuser.org /? P = 212

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.