合理利用本帖,可以完全脱离可视化多开管理器的界面。
贴内命令行内容功能介绍:
1. 完整新建模拟器命令行(包含设置CPU、端口、内存、共享目录、品牌、型号、root权限、IMEI和分辨率等所有属性的部分,注意,命令行设置这些属性,仅限于模拟器未启动时执行,启动时的指令后面会发另外的帖子)
2. 删除模拟器(克隆和新建的相同)
3. 完整克隆模拟器命令行
4. 关闭模拟器命令行(配合终止进程使用,可以正常关闭模拟器而不会卡住)
5. 启动模拟器命令行
6. 取所有启动成功的模拟器
启动模拟器 MEmuconsole vmname
创建模拟器 MEmuconsole create
克隆镜像 MEmuconsole clone vmname
导入镜像 MEmuconsole import ovaname
导出镜像 MEmuconsole export vmname ovafile
安装APK MEmuconsole installapk vmname apkfile
补充说明:命令行执行目录需置类似路径
- D:Program FilesMicrovirtMEmu
1. 完整新建模拟器命令行
其实,只参考其中设置部分属性的功能就可以了,可以先用
- MEmuConsole create
- ..MEmuHypervMEmuManage.exe import MEmu.ova --dry-run
- ..MEmuHypervMEmuManage.exe import MEmu.ova
- ..MEmuHypervMEmuManage.exe modifyvm MEmu --natpf1 delete "INP"
- ..MEmuHypervMEmuManage.exe modifyvm MEmu --natpf1 delete "MVD"
- ..MEmuHypervMEmuManage.exe modifyvm MEmu --natpf1 delete "APP"
- ..MEmuHypervMEmuManage.exe modifyvm MEmu --natpf1 delete "ADB"
- ..MEmuHypervMEmuManage.exe modifyvm MEmu --natpf1 delete "SNS"
- ..MEmuHypervMEmuManage.exe modifyvm MEmu --natpf1 "INP,tcp,127.0.0.1,21500,10.0.2.15,21500"
- ..MEmuHypervMEmuManage.exe modifyvm MEmu --natpf1 "MVD,tcp,127.0.0.1,21501,10.0.2.15,21501"
- ..MEmuHypervMEmuManage.exe modifyvm MEmu --natpf1 "APP,tcp,127.0.0.1,21502,10.0.2.15,21502"
- ..MEmuHypervMEmuManage.exe modifyvm MEmu --natpf1 "ADB,tcp,127.0.0.1,21503,10.0.2.15,5555"
- ..MEmuHypervMEmuManage.exe modifyvm MEmu --natpf1 "SNS,tcp,127.0.0.1,2l504,10.0.2.15,21504"
- ..MEmuHypervMEmuManage.exe modifyvm "MEmu" --"memory" 512
- ..MEmuHypervMEmuManage.exe modifyvm "MEmu" --"cpus" 1
- ..MEmuHypervMEmuManage.exe sharedfolder add "MEmu" --name "music" --hostpath "C:UsersAdministratorMusic逍遥安卓音乐"
- ..MEmuHypervMEmuManage.exe sharedfolder add "MEmu" --name "movie" --hostpath "C:UsersAdministratorVideos逍遥安卓视频"
- ..MEmuHypervMEmuManage.exe sharedfolder add "MEmu" --name "picture" --hostpath "C:UsersAdministratorPictures逍遥安卓照片"
- ..MEmuHypervMEmuManage.exe sharedfolder add "MEmu" --name "download" --hostpath "C:UsersAdministratorDownloads逍遥安卓下载"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu" "imsi" "460000446646798"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu" "imei" "133524256790010"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu" "enable_su" "1"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu" "hardware_opengl" "1"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu" "host_language" "1000"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu" "is_customed_resolution" "1"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu" "is_accl_on" "0"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu" "microvirt_vm_brand" "iphone"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu" "microvirt_vm_manufacturer" "iphone"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu" "microvirt_vm_model" "6 plus"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu" "resolution_height" "480"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu" "resolution_width" "800"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu" "simserial" "89860070200779921015"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu" "vbox_dpi" "192"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu" "linenum" "+8617677728760"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu" "phone_layout" "2"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu" "vkeyboard_mode" "-3"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu" "is_hide_toolbar" "1"
2. 删除模拟器
- ..MEmuHypervMEmuManage.exe unregistervm "MEmu" --delete
3. 完整克隆模拟器命令行
- ..MEmuHypervMEmuManage.exe import MEmu.ova
- ..MEmuHypervMEmuManage.exe storageattach "MEmu_1" --storagectl "IDE" --port 0 --device 1 --type hdd --medium none --mtype normal
- ..MEmuHypervMEmuManage.exe closemedium disk "D:Program FilesMicrovirtMEmuMemuHyperv VMsMEmu_1MEmu-20150728-disk2.vmdk" --delete
- ..MEmuHypervMEmuManage.exe clonehd "D:Program FilesMicrovirtMEmuMemuHyperv VMsMEmuMEmu-20150728-disk2.vmdk" "D:Program FilesMicrovirtMEmuMemuHyperv VMsMEmu_1MEmu-20150728-disk2.vmdk"
- ..MEmuHypervMEmuManage.exe storageattach "MEmu_1" --storagectl "IDE" --port 0 --device 1 --type hdd --medium "D:Program FilesMicrovirtMEmuMemuHyperv VMsMEmu_1MEmu-20150728-disk2.vmdk" --mtype normal
- ..MEmuHypervMEmuManage.exe storageattach "MEmu_1" --storagectl "IDE" --port 1 --device 0 --type hdd --medium none --mtype normal
- ..MEmuHypervMEmuManage.exe closemedium disk "D:Program FilesMicrovirtMEmuMemuHyperv VMsMEmu_1MEmu-20150728-disk1.vmdk" --delete
- ..MEmuHypervMEmuManage.exe clonehd "D:Program FilesMicrovirtMEmuMemuHyperv VMsMEmuMEmu-20150728-disk1.vmdk" "D:Program FilesMicrovirtMEmuMemuHyperv VMsMEmu_1MEmu-20150728-disk1.vmdk"
- ..MEmuHypervMEmuManage.exe storageattach "MEmu_1" --storagectl "IDE" --port 1 --device 0 --type hdd --medium "D:Program FilesMicrovirtMEmuMemuHyperv VMsMEmu_1MEmu-20150728-disk1.vmdk" --mtype normal
- ..MEmuHypervMEmuManage.exe modifyvm MEmu_1 --natpf1 delete "INP"
- ..MEmuHypervMEmuManage.exe modifyvm MEmu_1 --natpf1 delete "MVD"
- ..MEmuHypervMEmuManage.exe modifyvm MEmu_1 --natpf1 delete "APP"
- ..MEmuHypervMEmuManage.exe modifyvm MEmu_1 --natpf1 delete "ADB"
- ..MEmuHypervMEmuManage.exe modifyvm MEmu_1 --natpf1 delete "SNS"
- ..MEmuHypervMEmuManage.exe modifyvm MEmu_1 --natpf1 "INP,tcp,127.0.0.1,21510,10.0.2.15,21500"
- ..MEmuHypervMEmuManage.exe modifyvm MEmu_1 --natpf1 "MVD,tcp,127.0.0.1,21511,10.0.2.15,21501"
- ..MEmuHypervMEmuManage.exe modifyvm MEmu_1 --natpf1 "APP,tcp,127.0.0.1,21512,10.0.2.15,21502"
- ..MEmuHypervMEmuManage.exe modifyvm MEmu_1 --natpf1 "ADB,tcp,127.0.0.1,21513,10.0.2.15,5555"
- ..MEmuHypervMEmuManage.exe modifyvm MEmu_1 --natpf1 "SNS,tcp,127.0.0.1,2l514,10.0.2.15,21504"
- ..MEmuHypervMEmuManage.exe modifyvm "MEmu" --"memory" 512
- ..MEmuHypervMEmuManage.exe modifyvm "MEmu" --"cpus" 1
- ..MEmuHypervMEmuManage.exe sharedfolder add "MEmu_1" --name "music" --hostpath "C:UsersAdministratorMusic逍遥安卓音乐"
- ..MEmuHypervMEmuManage.exe sharedfolder add "MEmu_1" --name "movie" --hostpath "C:UsersAdministratorVideos逍遥安卓视频"
- ..MEmuHypervMEmuManage.exe sharedfolder add "MEmu_1" --name "picture" --hostpath "C:UsersAdministratorPictures逍遥安卓照片"
- ..MEmuHypervMEmuManage.exe sharedfolder add "MEmu_1" --name "download" --hostpath "C:UsersAdministratorDownloads逍遥安卓下载"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu_1" "channel" "0ecfe1c9"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu_1" "imsi" "460000446646798"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu_1" "imei" "133524256790010"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu_1" "enable_su" "1"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu_1" "hardware_opengl" "1"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu_1" "host_language" "1000"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu_1" "is_customed_resolution" "1"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu_1" "is_accl_on" "0"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu_1" "microvirt_vm_brand" "iphone"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu_1" "microvirt_vm_manufacturer" "iphone"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu_1" "microvirt_vm_model" "6 plus"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu_1" "resolution_height" "480"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu_1" "resolution_width" "800"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu_1" "simserial" "89860070200779921015"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu_1" "vbox_dpi" "192"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu_1" "linenum" "+8617677728760"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu_1" "phone_layout" "2"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu_1" "vkeyboard_mode" "-3"
- ..MEmuHypervMEmuManage.exe guestproperty set "MEmu_1" "custom_tag" "克隆自MEmu"
- MEmuConsole.exe clone "MEmu"
4. 关闭模拟器命令行(如果你直接杀死窗体的话,记得执行如下指令)
- ..MEmuHypervMEmuManage.exe controlvm "MEmu" poweroff
5. 启动模拟器命令行
- MEmuConsole.exe "MEmu"
6. 取所有启动成功的模拟器
- ..MEmuHypervMEmuManage.exe list runningvms