Android commonly used commands (reprinted, follow their own perfect)

Source: Internet
Author: User

1.ADB devices: View the device that is currently connected.
2.ADB Shell: Enter the shell mode of Android.
3.echo 3>/proc/sys/vm/drop_caches: Clear the system cache.
4.exit: Exit adb shell
5.ADB Install xxx.apk: Installs the xxx.apk on the phone. If you are operating on a simulator, ensure that the simulator is turned on.
ADB install [-r] [-S] <file>: Install APK package with file name to emulator. where r means reinstalling the APK package, s means installing the APK package onto the SD card and installing it into the phone's memory by default.
6.ADB push d:\myfile.txt/sdcard/: Upload the myfile.txt of the D drive on the computer to the root of the sdcard on the simulator
7.ADB Pull/sdcard/file.txt D:\ : Upload the File.txt file from the emulator sdcard root directory to the root of the computer D drive
8.RM sdcard/myfile.txt: Remove the file.txt file from the emulator sdcard root directory
9.ls Data/app: This command is used in the shell environment, and when you enter Shell mode, the command is used to query all installed application names within the phone. If you are operating on a simulator, ensure that the simulator is turned on.
10.ls data/data: This command is also used in the shell environment, when entering shell mode, the command is used to query all installed programs in the phone's package name, usually the name of the domain name, such as Com.andorid.xxx. If you are operating on a simulator, ensure that the simulator is turned on.
11.ADB uninstall xxxx: This command is used to uninstall the installed programs in your phone. Uninstall the parameter that follows is the package name of the program that you want to unload, depending on the results of the query in Data/data above or running the program to determine the package name through Logcat information.
12.ADB logcat: This command is used to query the program log. If you are operating on a simulator, ensure that the simulator is turned on.
13.PS: If you want to run the ADB command directly in any directory, the usual way is to add the Adb.exe directory to the path.
14.top: Real-time view of CPU and memory usage.

Android commonly used commands (reprinted, follow their own perfect)

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.