As an android Development Engineer, we will inevitably use Android commands in our development. Some commands are indeed very useful. The following describes the ADB shell commands that are frequently used in development.
1. Run the TOP command to check the percentage of CPU occupied by the application.
The figure shows that the CPU usage of the Media Player provided by the mobile phone system is 19%.
2. Start and close the ADB Service (ADB start-server and ADB kill-server)
During daily development, the ADB Service (cannot connect to the simulator or mobile phone) encounters an exception after the simulator or mobile phone is running for a period of time. In this case, you need to shut down and restart the ADB service again. Of course, restarting eclipse may solve the problem. But that is troublesome. To manually disable the ADB service, use the following command.
ADB kill-Server
After the ADB service is disabled, run the following command to start the ADB service.
ADB start-Server