Como Manipular o MEmu através da Linha de Comando

Se você deseja manipular o MEmu através da linha de comando, verifique esta postagem.

Comando Básico: MEmuConsole.exe (C:\Program Files\Microvirt\MEmu)

  • MEmuConsole MEmu_1 (start MEmu_1)
  • MEmuConsole ShutdownVm MEmu_1 (shutdown MEmu_1)
  • MEmuConsole create (create a new MEmu by default )
  • MEmuConsole clone MEmu_1 (clone a new MEmu from a MEmu_1)
  • MEmuConsole import D:\my_memu.ova (import a MEmu from my_memu.ova)
  • MEmuConsole export MEmu_1 D:\my_memu.ova (export MEmmaniu_1 to my_memu.ova)
  • MEmuConsole installapk MEmu_1 D:\my_app.apk (install my_app.apk to MEmu_1)

Comando Avançado: MEmuManage.exe (C:\Program Files\Microvirt\MEmuHyperv)

  • MEmuManage.exe import MEmu.ova –dry-run
  • MEmuManage.exe import MEmu.ova
  • MEmuManage.exe list runningvms
  • MEmuManage.exe unregistervm MEmu –delete
  • MEmuManage.exe controlvm MEmu poweroff
  • MEmuManage.exe modifyvm MEmu –memory 512
  • MEmuManage.exe modifyvm MEmu –cpus 1
  • MEmuManage.exe modifyvm MEmu –natpf1 delete INP
  • MEmuManage.exe modifyvm MEmu –natpf1 delete MVD
  • MEmuManage.exe modifyvm MEmu –natpf1 delete APP
  • MEmuManage.exe modifyvm MEmu –natpf1 delete ADB
  • MEmuManage.exe modifyvm MEmu –natpf1 delete SNS
  • MEmuManage.exe modifyvm MEmu –natpf1 “INP,tcp,127.0.0.1,21500,10.0.2.15,21500”
  • MEmuManage.exe modifyvm MEmu –natpf1 “MVD,tcp,127.0.0.1,21501,10.0.2.15,21501”
  • MEmuManage.exe modifyvm MEmu –natpf1 “APP,tcp,127.0.0.1,21502,10.0.2.15,21502”
  • MEmuManage.exe modifyvm MEmu –natpf1 “ADB,tcp,127.0.0.1,21503,10.0.2.15,5555”
  • MEmuManage.exe modifyvm MEmu –natpf1 “SNS,tcp,127.0.0.1,2l504,10.0.2.15,21504”
  • MEmuManage.exe guestproperty set MEmu imsi 460000446646798
  • MEmuManage.exe guestproperty set MEmu imei 133524256790010
  • MEmuManage.exe guestproperty set MEmu simserial 89860070200779921015
  • MEmuManage.exe guestproperty set MEmu enable_su 1
  • MEmuManage.exe guestproperty set MEmu microvirt_vm_brand iphone
  • MEmuManage.exe guestproperty set MEmu microvirt_vm_model 6 plus
  • MEmuManage.exe guestproperty set MEmu microvirt_vm_manufacturer Apple
  • MEmuManage.exe guestproperty set MEmu resolution_height 480
  • MEmuManage.exe guestproperty set MEmu resolution_width 800
  • MEmuManage.exe guestproperty set MEmu vbox_dpi 192
  • MEmuManage.exe guestproperty set MEmu linenum +8617677728760
  • MEmuManage.exe guestproperty set MEmu is_hide_toolbar 1
  • MEmuManage.exe guestproperty set MEmu_1 custom_tag “Cloned from MEmu”
  • MEmuManage.exe sharedfolder add MEmu –name music –hostpath “D:\MEmu Music”
  • MEmuManage.exe sharedfolder add MEmu –name movie –hostpath “D:\MEmu Video”
  • MEmuManage.exe sharedfolder add MEmu –name picture –hostpath “D:\MEmu Picture”
  • MEmuManage.exe sharedfolder add MEmu –name download –hostpath “D:\MEmu Download”

Nota: Certifique-se de executar a linha de comando como administrador.

Nota: É recomendável fechar o emulador antes de executar o MEmuManage.exe. As alterações terão efeito quando reiniciá-lo.

Nota: Se você deseja conhecer todos os parâmetros com mais detalhes, visite o download deste documento.


> Retorne ao MEmu 101, tudo que você precisa saber sobre o MEmu <<