All AMS information
adb shell dumpsys activity
Activity-related information
adb shell dumpsys activity activities
View the current foreground focus page
adb shell dumpsys activity a | grep mFocusedApp
view currently visible pages
adb shell dumpsys activity a | grep mResumedActivity
View the details of the top page
adb shell dumpsys activity top-resumed
View current container level information
adb shell dumpsys activity containers
Activity information last started
adb shell dumpsys activity starter
View SleepToken information
adb shell dumpsys activity processes | grep SleepToken
Service component information
adb shell dumpsys activity services
Broadcast component information
adb shell dumpsys activity broadcasts
broadcast statistics
adb shell dumpsys activity broadcast-stats
ContentProvider component information
adb shell dumpsys activity providers
PendingIntent information
adb shell dumpsys activity intents
View the current system time-consuming message (MIUI)
adb shell dumpsys activity loopers
View binder proxy related information
adb shell dumpsys activity binder-proxies
View user space related information
adb shell dumpsys activity users
Permission related information
adb shell dumpsys activity permissions
Breakpoint before app process starts
Enable debug mode
adb shell am set-debug-app -w pkn
clear debug mode
adb shell am clear-debug-app -w pkn
Process information related
View all process information
adb shell dumpsys activity processes
View information about a process
adb shell dumpsys activity p processName
View ams process lru list
adb shell dumpsys activity lru
Process killing related
Check miui's keep-alive list
adb shell dumpsys ProcessManager
lowmemorykiller killing level quantity records
adb shell dumpsys activity lmk
View process death records
adb shell dumpsys activity exit-info
kill process
adb shell am force-stop pkn
Ordinary killing process
adb shell kill -9 pkn
Process priority view
View the procState and adj of the process
adb shell dumpsys activity oom
View desktop widgets
adb shell dumpsys appwidget
Turn on the debug switch of AMS
adb shell dumpsys activity logging
adb shell am logging enable-text XXX
WMS related
Basic commands
View window information
adb shell dumpsys window w
View the various levels of information drawn by the UI
adb shell dumpsys SurfaceFlinger
View the currently focused window
adb shell dumpsys activity a | grep mCurrentFocus
Debug log open
View the debug log that can be opened
adb shell dumpsys window logging
Turn on the corresponding debug log switch
adb shell wm logging enable-text groups
PMS-related
List related package information
List all applications
adb shell pm list package
list system apps
adb shell pm list package -s
List third-party apps
adb shell pm list package -3
List the application package name and the corresponding apk name and storage location
adb shell pm list package -f
List application package names and their installation sources
adb shell pm list package -i
Only display the disabled package name
adb shell pm list package -d
at last
If you want to become an architect or want to break through the 20-30K salary range, then don't be limited to coding and business, but you must be able to select models, expand, and improve programming thinking. In addition, a good career plan is also very important, and the habit of learning is very important, but the most important thing is to be able to persevere. Any plan that cannot be implemented consistently is empty talk.
If you have no direction, here I would like to share with you a set of "Advanced Notes on the Eight Major Modules of Android" written by the senior architect of Ali, to help you organize the messy, scattered and fragmented knowledge systematically, so that you can systematically and efficiently Master the various knowledge points of Android development.
Compared with the fragmented content we usually read, the knowledge points of this note are more systematic, easier to understand and remember, and are arranged strictly according to the knowledge system.
Full set of video materials:
1. Interview collection
2. Source code analysis collection
3. The collection of open source frameworks
welcomes everyone to support with one click and three links. If you need the information in the article, directly scan the CSDN official certification WeChat card at the end of the article to get it for free↓↓↓