- 注册
- 2024/07/26
- 消息
- 677
wing 作为我们日常开发的命令行开发工具,项目开源以来,陆陆续续接入了多个插件,在这里集中分享给大家。
☞ Github ☜ ☞ Gitee ☜
# 解析APK文件
$ wing -apktool d /home/test.apk -o test
# 重新打包
$ wing -apktool b test -o /home/test-pack.apk
# wing -adb {type}
# top
# print top windows info from Android device
# pull {package name}
# pull target apk from Android device
# dump {ui/sys/log}
# get all running services and log info from Android device
# list
# get all install app list
1、显示当前前台界面和窗口的应用包名。
$ wing -adb top
Top window: com.android.chrome
Top activity: com.android.chrome
2、导出指定包名的应用安装包。
$ wing -adb pull com.android.chrome
from: /data/app/~~xmz9GYRVkRYXNuWYWryZXw==/com.android.chrome-dGUKeyVxcPRVQAm6bp0oIw==/base.apk
to: com.android.chrome.apk
3、导出设备信息。
$ wing -adb dump
dump ui
>>> /Users/xxx/Downloads/log/dump_20240823_223051/ui.xml
dump activity
>>> /Users/xxx/Downloads/log/dump_20240823_223051/activity.xml
dump window
>>> /Users/xxx/Downloads/log/dump_20240823_223051/window.xml
dump anr
>>> /Users/xxx/Downloads/log/dump_20240823_223051/anr.txt
dump ps
>>> /Users/xxx/Downloads/log/dump_20240823_223051/ps.txt
dump net
dump property
dump service
dump app
dump Currently running services:
dump AGPService
dump BastetService
dump Binder.Pged
dump BleNotify
dump CommunicationManager
dump DdmpDataBusService
......
4、显示已安装应用信息。
$ wing -adb list
[Sys]: com.android.localtransport
[Sys]: com.android.permissioncontroller
[Sys]: com.huawei.featurelayer.sharedfeature.xrkit
......
[App]: com.baidu.searchbox.harmony.hmservice
[App]: com.ss.android.lark
[App]: app.podcast.cosmos
......
[Disabled]: com.huawei.ohos.healthservice
[Disabled]: cn.wps.moffice_eng
......
# wing -tree [level] Print directory structure
# level: max level print, default print all
$ wing -tree
$ wing -update
# 输出
wing -update [jadx/apktool/mobtool]
wing
Local version: 1.3.1
Remote version: 1.3.1
Wing already the latest version.
☞ Github ☜ ☞ Gitee ☜
01. wing -screen
作为Android平台设备投屏插件,根据PC系统平台集成scrcpy或QTScrcpy组件,支持多个设备并行操作。02. wing -jadx
集成Android平台的apk/dex/Jar逆向分析组件。03. wing -mobtool
日常IPA和APK文件重签名工具,日志采集工具。04. wing -apktool
支持apktool的所有命令。# 解析APK文件
$ wing -apktool d /home/test.apk -o test
# 重新打包
$ wing -apktool b test -o /home/test-pack.apk
05. wing -adb
我们的产品主要围绕移动平台,而Android又是重中之重,所以对于adb命令的日常使用较多,现已集成了以下命令。# wing -adb {type}
# top
# print top windows info from Android device
# pull {package name}
# pull target apk from Android device
# dump {ui/sys/log}
# get all running services and log info from Android device
# list
# get all install app list
1、显示当前前台界面和窗口的应用包名。
$ wing -adb top
Top window: com.android.chrome
Top activity: com.android.chrome
2、导出指定包名的应用安装包。
$ wing -adb pull com.android.chrome
from: /data/app/~~xmz9GYRVkRYXNuWYWryZXw==/com.android.chrome-dGUKeyVxcPRVQAm6bp0oIw==/base.apk
to: com.android.chrome.apk
3、导出设备信息。
$ wing -adb dump
dump ui
>>> /Users/xxx/Downloads/log/dump_20240823_223051/ui.xml
dump activity
>>> /Users/xxx/Downloads/log/dump_20240823_223051/activity.xml
dump window
>>> /Users/xxx/Downloads/log/dump_20240823_223051/window.xml
dump anr
>>> /Users/xxx/Downloads/log/dump_20240823_223051/anr.txt
dump ps
>>> /Users/xxx/Downloads/log/dump_20240823_223051/ps.txt
dump net
dump property
dump service
dump app
dump Currently running services:
dump AGPService
dump BastetService
dump Binder.Pged
dump BleNotify
dump CommunicationManager
dump DdmpDataBusService
......
4、显示已安装应用信息。
$ wing -adb list
[Sys]: com.android.localtransport
[Sys]: com.android.permissioncontroller
[Sys]: com.huawei.featurelayer.sharedfeature.xrkit
......
[App]: com.baidu.searchbox.harmony.hmservice
[App]: com.ss.android.lark
[App]: app.podcast.cosmos
......
[Disabled]: com.huawei.ohos.healthservice
[Disabled]: cn.wps.moffice_eng
......
06. wing -tree
工作中有时候需要输出当前目录下的文件结构,特别是写一些文档的时候,无需再安装其他命令行工具,即可方便使用。# wing -tree [level] Print directory structure
# level: max level print, default print all
$ wing -tree
07. wing -update
你可以通过wing -update命令来升级wing,可以通过参数指定要升级的插件,我们会在新版本插件验证后发布更新。$ wing -update
# 输出
wing -update [jadx/apktool/mobtool]
wing
Local version: 1.3.1
Remote version: 1.3.1
Wing already the latest version.