Open adb and enter the following command:
ADB shell am start-w-N com.zhangshao.app/com.qihoo.util.startactivity
AM is a command that is integrated in the shell, abbreviated by the Activitymanager. -W refers to when startup is complete and returns time-consuming. -N is followed by the package name and launchactivity of the app that needs to be launched.
To view the package name and activity name: Download Apktool, put the three files in the Windows directory, and then enter in cmd: AAPT dump badging Package Address
such as: AAPT dump badging C:\Users\Administrator\Desktop\taofeicui.apk can see the
The result of the startup time is as follows:
If you are only concerned about the startup time of an application, refer to TotalTime; If you are concerned about the time-consuming system startup application, refer to waittime; If you are concerned about application interface activity start time, refer to Thistime
Android App launch time test