Summary of commonly used commands

View current activity

dumpsys activity top

View package name information

dumpsys package

View the memory information of the specified process

dumpsys meminfo pid

View the database information of the specified package name

dumpsys dbinfo

Screenshot

screencap

Input content

input text

Port forwarding

forward

Clear data of an app

pm clear [pkgname]

Start an app

am start -n [package/包名.活动.activity] 

Start a service

am startservice -n [package/[包名].[服务].service]

View the ip of the device

netcfg

View memory map

cat /prop/pid/map 
可以查看加载的so和dex文件

View process status information

cat /proc/[pid]/status

Guess you like

Origin blog.csdn.net/esabeny/article/details/112277128