登录 立即注册
查看: 121280|回复: 1140

[使用经验] 【官方出品】逍遥安卓模拟器完整命令行整理

  [复制链接]

0

主题

2

帖子

0

积分

新手上路

Rank: 1

积分
0
发表于 2023-1-11 21:09:12 | 显示全部楼层
1234567890
回复 支持 反对

使用道具 举报

1142

主题

4153

帖子

4346

积分

超级版主

Rank: 8Rank: 8

积分
4346

逍遥会员章逍遥忠实勋章逍遥荣耀勋章逍遥达人勋章逍遥游戏玩家逍遥论坛达人逍遥新人资格章

发表于 2018-9-14 10:29:22
补充说明:命令行执行目录需置类似路径
  • D:\Program Files\Microvirt\MEmu\

[color=rgb(195, 76, 33) !important]复制代码


1. 完整新建模拟器命令行
其实,只参考其中设置部分属性的功能就可以了,可以先用
  • MEmuConsole create

[color=rgb(195, 76, 33) !important]复制代码

创建好模拟器后,通过指令设置部分所需属性即可,完整新建命令如下:
  • ..\MEmuHyperv\MEmuManage.exe import MEmu.ova --dry-run
  • ..\MEmuHyperv\MEmuManage.exe import MEmu.ova
  • ..\MEmuHyperv\MEmuManage.exe modifyvm MEmu --natpf1 delete "INP"
  • ..\MEmuHyperv\MEmuManage.exe modifyvm MEmu --natpf1 delete "MVD"
  • ..\MEmuHyperv\MEmuManage.exe modifyvm MEmu --natpf1 delete "APP"
  • ..\MEmuHyperv\MEmuManage.exe modifyvm MEmu --natpf1 delete "ADB"
  • ..\MEmuHyperv\MEmuManage.exe modifyvm MEmu --natpf1 delete "SNS"
  • ..\MEmuHyperv\MEmuManage.exe modifyvm MEmu --natpf1 "INP,tcp,127.0.0.1,21500,10.0.2.15,21500"
  • ..\MEmuHyperv\MEmuManage.exe modifyvm MEmu --natpf1 "MVD,tcp,127.0.0.1,21501,10.0.2.15,21501"
  • ..\MEmuHyperv\MEmuManage.exe modifyvm MEmu --natpf1 "APP,tcp,127.0.0.1,21502,10.0.2.15,21502"
  • ..\MEmuHyperv\MEmuManage.exe modifyvm MEmu --natpf1 "ADB,tcp,127.0.0.1,21503,10.0.2.15,5555"
  • ..\MEmuHyperv\MEmuManage.exe modifyvm MEmu --natpf1 "SNS,tcp,127.0.0.1,2l504,10.0.2.15,21504"
  • ..\MEmuHyperv\MEmuManage.exe modifyvm "MEmu" --"memory" 512
  • ..\MEmuHyperv\MEmuManage.exe modifyvm "MEmu" --"cpus" 1
  • ..\MEmuHyperv\MEmuManage.exe sharedfolder add "MEmu" --name "music" --hostpath "C:\Users\Administrator\Music\逍遥安卓音乐"
  • ..\MEmuHyperv\MEmuManage.exe sharedfolder add "MEmu" --name "movie" --hostpath "C:\Users\Administrator\Videos\逍遥安卓视频"
  • ..\MEmuHyperv\MEmuManage.exe sharedfolder add "MEmu" --name "picture" --hostpath "C:\Users\Administrator\Pictures\逍遥安卓照片"
  • ..\MEmuHyperv\MEmuManage.exe sharedfolder add "MEmu" --name "download" --hostpath "C:\Users\Administrator\Downloads\逍遥安卓下载"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu" "imsi" "460000446646798"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu" "imei" "133524256790010"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu" "enable_su" "1"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu" "hardware_opengl" "1"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu" "host_language" "1000"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu" "is_customed_resolution" "1"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu" "is_accl_on" "0"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu" "microvirt_vm_brand" "iphone"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu" "microvirt_vm_manufacturer" "iphone"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu" "microvirt_vm_model" "6 plus"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu" "resolution_height" "480"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu" "resolution_width" "800"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu" "simserial" "89860070200779921015"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu" "vbox_dpi" "192"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu" "linenum" "+8617677728760"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu" "phone_layout" "2"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu" "vkeyboard_mode" "-3"

[color=rgb(195, 76, 33) !important]复制代码

1.8.6之后添加的,隐藏侧边栏:
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu" "is_hide_toolbar" "1"

[color=rgb(195, 76, 33) !important]复制代码


2. 删除模拟器
  • ..\MEmuHyperv\MEmuManage.exe unregistervm "MEmu" --delete

[color=rgb(195, 76, 33) !important]复制代码


3. 完整克隆模拟器命令行
  • ..\MEmuHyperv\MEmuManage.exe import MEmu.ova
  • ..\MEmuHyperv\MEmuManage.exe storageattach "MEmu_1" --storagectl "IDE" --port 0 --device 1 --type hdd --medium none --mtype normal
  • ..\MEmuHyperv\MEmuManage.exe closemedium disk "D:\Program Files\Microvirt\MEmu\MemuHyperv VMs\MEmu_1\MEmu-20150728-disk2.vmdk" --delete
  • ..\MEmuHyperv\MEmuManage.exe clonehd "D:\Program Files\Microvirt\MEmu\MemuHyperv VMs\MEmu\MEmu-20150728-disk2.vmdk" "D:\Program Files\Microvirt\MEmu\MemuHyperv VMs\MEmu_1\MEmu-20150728-disk2.vmdk"
  • ..\MEmuHyperv\MEmuManage.exe storageattach "MEmu_1" --storagectl "IDE" --port 0 --device 1 --type hdd --medium "D:\Program Files\Microvirt\MEmu\MemuHyperv VMs\MEmu_1\MEmu-20150728-disk2.vmdk" --mtype normal
  • ..\MEmuHyperv\MEmuManage.exe storageattach "MEmu_1" --storagectl "IDE" --port 1 --device 0 --type hdd --medium none --mtype normal
  • ..\MEmuHyperv\MEmuManage.exe closemedium disk "D:\Program Files\Microvirt\MEmu\MemuHyperv VMs\MEmu_1\MEmu-20150728-disk1.vmdk" --delete
  • ..\MEmuHyperv\MEmuManage.exe clonehd "D:\Program Files\Microvirt\MEmu\MemuHyperv VMs\MEmu\MEmu-20150728-disk1.vmdk" "D:\Program Files\Microvirt\MEmu\MemuHyperv VMs\MEmu_1\MEmu-20150728-disk1.vmdk"
  • ..\MEmuHyperv\MEmuManage.exe storageattach "MEmu_1" --storagectl "IDE" --port 1 --device 0 --type hdd --medium "D:\Program Files\Microvirt\MEmu\MemuHyperv VMs\MEmu_1\MEmu-20150728-disk1.vmdk" --mtype normal
  • ..\MEmuHyperv\MEmuManage.exe modifyvm MEmu_1 --natpf1 delete "INP"
  • ..\MEmuHyperv\MEmuManage.exe modifyvm MEmu_1 --natpf1 delete "MVD"
  • ..\MEmuHyperv\MEmuManage.exe modifyvm MEmu_1 --natpf1 delete "APP"
  • ..\MEmuHyperv\MEmuManage.exe modifyvm MEmu_1 --natpf1 delete "ADB"
  • ..\MEmuHyperv\MEmuManage.exe modifyvm MEmu_1 --natpf1 delete "SNS"
  • ..\MEmuHyperv\MEmuManage.exe modifyvm MEmu_1 --natpf1 "INP,tcp,127.0.0.1,21510,10.0.2.15,21500"
  • ..\MEmuHyperv\MEmuManage.exe modifyvm MEmu_1 --natpf1 "MVD,tcp,127.0.0.1,21511,10.0.2.15,21501"
  • ..\MEmuHyperv\MEmuManage.exe modifyvm MEmu_1 --natpf1 "APP,tcp,127.0.0.1,21512,10.0.2.15,21502"
  • ..\MEmuHyperv\MEmuManage.exe modifyvm MEmu_1 --natpf1 "ADB,tcp,127.0.0.1,21513,10.0.2.15,5555"
  • ..\MEmuHyperv\MEmuManage.exe modifyvm MEmu_1 --natpf1 "SNS,tcp,127.0.0.1,2l514,10.0.2.15,21504"
  • ..\MEmuHyperv\MEmuManage.exe modifyvm "MEmu" --"memory" 512
  • ..\MEmuHyperv\MEmuManage.exe modifyvm "MEmu" --"cpus" 1
  • ..\MEmuHyperv\MEmuManage.exe sharedfolder add "MEmu_1" --name "music" --hostpath "C:\Users\Administrator\Music\逍遥安卓音乐"
  • ..\MEmuHyperv\MEmuManage.exe sharedfolder add "MEmu_1" --name "movie" --hostpath "C:\Users\Administrator\Videos\逍遥安卓视频"
  • ..\MEmuHyperv\MEmuManage.exe sharedfolder add "MEmu_1" --name "picture" --hostpath "C:\Users\Administrator\Pictures\逍遥安卓照片"
  • ..\MEmuHyperv\MEmuManage.exe sharedfolder add "MEmu_1" --name "download" --hostpath "C:\Users\Administrator\Downloads\逍遥安卓下载"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu_1" "channel" "0ecfe1c9"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu_1" "imsi" "460000446646798"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu_1" "imei" "133524256790010"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu_1" "enable_su" "1"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu_1" "hardware_opengl" "1"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu_1" "host_language" "1000"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu_1" "is_customed_resolution" "1"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu_1" "is_accl_on" "0"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu_1" "microvirt_vm_brand" "iphone"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu_1" "microvirt_vm_manufacturer" "iphone"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu_1" "microvirt_vm_model" "6 plus"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu_1" "resolution_height" "480"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu_1" "resolution_width" "800"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu_1" "simserial" "89860070200779921015"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu_1" "vbox_dpi" "192"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu_1" "linenum" "+8617677728760"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu_1" "phone_layout" "2"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu_1" "vkeyboard_mode" "-3"
  • ..\MEmuHyperv\MEmuManage.exe guestproperty set "MEmu_1" "custom_tag" "克隆自MEmu"

[color=rgb(195, 76, 33) !important]复制代码

事实上,克隆的这些指令,生成模拟器的部分可以调用官方提供的
  • MEmuConsole.exe clone "MEmu"

[color=rgb(195, 76, 33) !important]复制代码

来克隆,克隆结束后,使用设置属性的指令自定义所需属性即可。

4. 关闭模拟器命令行(如果你直接杀死窗体的话,记得执行如下指令)

  • ..\MEmuHyperv\MEmuManage.exe controlvm "MEmu" poweroff

[color=rgb(195, 76, 33) !important]复制代码


5. 启动模拟器命令行
  • MEmuConsole.exe "MEmu"

[color=rgb(195, 76, 33) !important]复制代码


6. 取所有启动成功的模拟器
  • ..\MEmuHyperv\MEmuManage.exe list runningvms

[color=rgb(195, 76, 33) !important]复制代码


CPU要支持虚拟化技术 主板开启VT 关闭Hyper-V 显卡驱动正确 完整系统
支持 1 反对 0

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|模拟器|手机模拟器|手游模拟器|安卓模拟器|( 沪ICP备14046591号 )

GMT+8, 2024-12-27 07:10 , Processed in 0.027015 second(s), 24 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表