网上找了一些adb指令获取当前应用端口,部分不能使用,以下这个指令大多项目产品确认可以使用 adb shell dumpsys window | findstr mCurrentFocus=Window