1. View Activity on the current phone interface
Dumpsys | grep "Mfocusedactivity"
2. View All Packages
PM List Packages
View packages for keywords
pm List Packages | grep "Android " or (no quotes can be) PM list packages "Android"
3. View information about the app Dumpsys package _package_name
Dumpsys Package Com.example.coolweather.app
You can also use the following command, but not all of the machines can be executed, recommended with the first
PM Dump Com.example.coolweather.app
4. Install and Uninstall Apps
PM Install and PM Uninstall
5. View the APK file installation information AAPT dump badging _file_name.apk
AAPT dump badging a.apk
6. Launch the App
Am Start-n com.android.settings/. Settings
Am Start-a android.intent.action.dial-d tel:10086
Am start-a android.intent.action.sendto-d mailto:[email protected]
Am Start-a android.intent.action.view-d http://www.baidu.com
Am start-a android.intent.action.view-d file:////mnt/sdcard/ttpod/song/nemo.mp3-t audio/*
Am start-a android.intent.action.view-d "File:////mnt/sdcard/11/Bye Bye beautiful.mp4"-t video/*
Am Start-a android.intent.action.view-t image/*-D file:////mnt/sdcard/CGB/downloading_imgs/100000000325.png
Reference:
Http://blog.chinaunix.net/uid-20564848-id-74753.html
Android Common Commands