Get the Android phone app startup time

After a day of exploration, and finally found how to deal with, to a high of automation technology is not white, that was quite a sense of accomplishment, ha ha

Problems encountered computer 1 mobile phone link, the device has not show up, run the command adb devices, show only: List of devices attached, it had to change the data lines can be displayed.

2. Some phones have been displaying: xxxxx unauthorized, then restart the computer to solve the problem.

1,2 chance encounter in both cases is relatively large, pay attention to look like.

Acquisition device and package name Activity name:

aapt dump badging app.apk (Note: The presence of a computer directly to the app where you can drag)

 

Get app startup time:

adb shell am start -S -R 5 -W package name / full name Activity

 

Note: Check Android application package name, several methods of Activity:  http://www.sohu.com/a/294671907_216613

 

Guess you like

Origin www.cnblogs.com/zzllovehappy/p/11130489.html