1.adb(Android debugging bridge) is a tool of Android sdk.
2.adb is the bridge between computer and mobile phone.
3.adb has the functions of installing and uninstalling apk and copying push files.
4.adb consists of client, server and daemon.
Adb's common directive
1.adb-help help manual
2.adb devices detect Android devices connected to the computer.
3.adb logcat prints log information.
4. ADB log directory & gtD:/ log.txt put the log information in the log text of disk D.
5. ADB pulls < mobile phone path > < local path >; Pull the specified location information of the mobile phone and put it in the specified location of the computer.
6. ADB pushes < local path >; & lt Mobile Phone Path > Put the information of the designated location of the computer in the designated location of the mobile phone.
7.adb installs xx.apk and installs apk package.
8.adb uninstall application package name? Deletes the specified application.
9. View the package name and page name of the current application to start the test application on the device, and enter the following command to view the currently active application package name.
Android 7.0:ADB shell dump sys activity activities | findstr mFocusedActivity
Android 8.0:ADB shell dump sys activity activities | findstr mresumediactivity
Or: ADB Shell Dumpsy Window | FindstrmCurrentFocus
10.adb connect ip address is remotely connected to the mobile phone through wifi for debugging.
1 1.adb disconnected ip address has been disconnected.
12.adb tcpip port number specifies the port number used for debugging.
Monkey general instruction
1. ADB shell monkey 1000 random run 1000 times.
2.adb shell monkey -p package name 1000 Run the specified package randomly 1000 times.
3.adb shell monkey -p package name -throttle 100 1000 sets the time interval for each run.
4. The ADB shell monkey -p package name -s 100 1000 seed specifies the random generation number, and the running paths are consistent for many times.
5. ADB shell monkey-p package name-pct-touch < percentage >-s1001000 sets the percentage of touch events.
6. ADB Shell Monkey -p package name-pct-motion < percentage >-s1001000 sets the percentage of action events.
The first slogan of hotel service concept
1, excellent service, quality as the root.
2. Smiling and greeting are our attitudes.
3, self-r