一、查看端口被占用情況
1.以管理員身份運行;
2.進入命令提示符,輸入netstat -ano命令,按回車鍵查看所有被占用的端口情況;
3.查找對應的端口占用的進程:netstat -aon|findstr "8080" ,找到占用8080端口對應的程序的PID號;
4.查到對應進程id后,就可以通過id查找對應的進程名稱,使用命令tasklist |findstr "進程id號"
5.通過命令殺掉進程,命令taskkill /f /t /im "進程id或者進程名稱"
二、adb shell
https://www.cnblogs.com/zhuminghui/p/10472193.html
1.查看手機硬件與系統屬性:
adb shell "cat /system/build.prop | grep "product""

2.查看手機正在運行的進程
adb shell ps
adb shell "ps|grep" mob #以包名做過濾