前言全局说明
MuMuManager.exe是MuMu模拟器12新加入的工具
官方说明:https://mumu.163.com/help/20230504/35047_1086360.html
一、说明
MuMu模拟器12的调用程序MuMuManager.exe在模拟器的安装目录下可以找到,
如“X:\Program Files\Netease\MuMuPlayer-12.0\shell>MuMuManager.exe”
二、查看/连接模拟器adb端口:
MuMuManager.exe adb -v [模拟器序号] //查询指定模拟器adb端口
MuMuManager.exe adb -v [模拟器序号] connect //连接指定模拟器adb端口
MuMuManager.exe adb -v [模拟器序号] shell //进入指定模拟器adb shell
三、启动/关闭模拟器:
MuMuManager.exe api -v [模拟器序号] launch_player //启动模拟器
MuMuManager.exe api -v [模拟器序号] shutdown_player //关闭模拟器
MuMuManager.exe api -v [模拟器序号] player_state //获取模拟器状态
四、app安装/卸载/启动/关闭:
MuMuManager.exe api -v [模拟器序号] install_apk [path] //安装本地apk,带文件路径参数
MuMuManager.exe api -v [模拟器序号] uninstall_app [package] //卸载app,带包名
MuMuManager.exe api -v [模拟器序号] launch_app [package] //启动app,带包名
MuMuManager.exe api -v [模拟器序号] close_app [package] //关闭app,带包名
MuMuManager.exe api -v [模拟器序号] app_state [package] //获取app运行状态,带包名
五、模拟器显示:
MuMuManager.exe api -v [模拟器序号] show_player_window //显示指定模拟器窗口(顶部)
MuMuManager.exe api -v [模拟器序号] hide_player_window //隐藏指定模拟器窗口(无任务栏)
六、可以直接调用查看支持的命令:
X:\Program Files\Netease\MuMuPlayer-12.0\shell>MuMuManager.exe
=================== adb =============================
get adb port: adb -v [0|1|2|3|...]
adb connect: adb -v [0|1|2|3|...] connect
adb shell: adb -v [0|1|2|3|...] shell
adb [options]: adb -v [0|1|2|3|...] [options]
=================== adb =============================
=================== api =============================
start shell for api: api -v [0|1|2|3|...] shell
launch player: api -v [0|1|2|3|...] launch_player [params]
shutdown player: api -v [0|1|2|3|...] shutdown_player
get player state: api -v [0|1|2|3|...] player_state
show player window: api -v [0|1|2|3|...] show_player_window
hide player window: api -v [0|1|2|3|...] hide_player_window
install apk: api -v [0|1|2|3|...] install_apk [path]
uninstall app: api -v [0|1|2|3|...] uninstall_app [package]
launch app: api -v [0|1|2|3|...] launch_app [package]
close app: api -v [0|1|2|3|...] close_app [package]
get app state: api -v [0|1|2|3|...] app_state [package]
get vt state: api -v [0|1|2|3|...] vt_enabled
get hyperv state: api -v [0|1|2|3|...] hyperv_enabled
=================== api =============================
免责声明:本号所涉及内容仅供安全研究与教学使用,如出现其他风险,后果自负。
参考、来源:
https://mumu.163.com/help/20230504/35047_1086360.html