미뮤 명령어 참조 메뉴얼

미뮤 명령어 참조 메뉴얼

안녕하세요, 미뮤Player입니다.

긱스와 프로그래머한테 참 좋은 소식입니다.

MEMU Android Emulator 6.0MEMUC에게 새로운 명령어를 지원합니다. 예: memu, memumanage, memuconsole와 adb 같습니다. 그래서 아래 내용을 읽으면 이 강력한 명령의 모든 것을 알 수 있습니다.

memuc는 여러 인스턴스(VM)를 조작하는 것을 지원합니다. 예: 앱플레이어 다시 시작, 상태 검사, APK 다운로드, 프로그램을 실행 등. 먼저 VM의 명칭 또는 인덱스 위로 전달하는 것이다.

예: memuc clone -i 0 (or –index 0) //The 1st VM index is 0, 2nd is 1, 3rd is 2 …memuc remove -n MEmu_2 (or –name MEmu_2) //The 1st VM name is MEmu, 2nd is MEmu_1 …

MEMUC 참조 매뉴얼

[제1장] VM 관리

  1. Create a new VM
    • Usage:     memuc create
    • memuc create 44    (create certain version of Android)
      memuc create 51
      memuc create 71
    • Sample:   memuc create //Create a new VM
  2. Delete a existed VM
    • Usage:     memuc remove <-i vmindex | -n vmname>
    • Sample:   memuc remove -i 0 //Delete the MEmu VM
  3. Clone a existed VM
    • Usage:     memuc clone <-i vmindex | -n vmname>
    • Sample:   memuc clone -i 1 //Clone the MEmu_1 VM
    • [v6.1.0 Update] Since 6.0.9, you can use -t to make an asynchronous request. It will return the taskid to check taskstatus later.
  4. Export/Backup a VM to a file
    • Usage:     memuc export <-i vmindex | -n vmname> <ovafile>
    • Sample:   memuc export -n MEmu_1 c:\1.ova //Export MEmu_1 VM to 1.ova file in C drive
    • [v6.1.0 Update] Since 6.0.9, you can use -t to make an asynchronous request. It will return the taskid to check taskstatus later.
  5. Import/Restore a VM from a existed ova file
    • Usage:     memuc import <ovafile>
    • Sample:   memuc import c:\1.ova //Import a VM from 1.ova file in C drive
    • [v6.1.0 Update] Since 6.0.9, you can use -t to make an asynchronous request. It will return the taskid to check taskstatus later.
  6. Start a existed VM
    • Usage:     memuc start <-i vmindex | -n vmname> [-t]
    • Sample:   memuc start -n MEmu_2 //Start the MEmu_2 VM
    • [v6.1.0 Update] Since 6.0.9, you can use -t to make an asynchronous request. It will return the taskid to check taskstatus later.
  7. Stop a running VM
    • Usage:     memuc stop <-i vmindex | -n vmname>
    • Sample:   memuc stop -n MEmu //Stop the MEmu VM
    • [v6.1.0 Update] Since 6.0.9, you can use -t to make an asynchronous request. It will return the taskid to check taskstatus later.
  8. Stop all running VMs
    • Usage:     memuc stopall
    • Sample:   memuc stopall //Stop all the running VMs
  9. List information of all VMs
    • Usage:     memuc listvms [–running]
                       [–running] List information of all running VMs
    • Sample:   memuc listvms //List information like index, title, window handle, status, pid.
  10. Check whether VM is running or not
    • Usage:     memuc isvmrunning <-i vmindex | -n vmname>
    • Sample:   memuc isvmrunning -n MEmu_3 //Check whether VM is running or not
  11. Sort out all VM windows
    • Usage:     memuc sortwin
    • Sample:   memuc sortwin //Sort out all VM windows
  12. [v6.1.0 Update] Check asynchronous task status, like cloneexportimportstart and stop.
    • Usage:     taskstatus <taskid>
    • Sample:   taskstatus 100 //Check the status of task 100, it will return success, running or failed.

[제2장] VM 배치(VM 셧다운)

  1. Get configuration data of VM
    • Usage:     memuc getconfig <-i vmindex | -n vmname> <key>
                      <key> configuration key name
    • Sample:   memuc getconfig -i 0 memory //Get the memory size of MEmu VM
  2. Set configuration data of VM
    • Usage:     memuc setconfig <-i vmindex | -n vmname> <key> <value>
                      <key> configuration key name
    • Sample:   memuc setconfig -i 0 cpus 4 //Set the number of CPU core as

[제3장] VM 컨트롤(VM 실행 시)

  1. Install Apk in VM (Android)
    • Usage:     memuc installapp <-i vmindex | -n vmname> <apkfile>
                      <apkfile> apk filepath
    • Sample:   memuc installapp -n MEmu_1 c:\test.apk //Install test.apk into MEmu_1 VM
  2. Uninstall App from VM
    • Usage:     memuc uninstallapp <-i vmindex | -n vmname> <packagename>
                      <packagename> app package name
    • Sample:   memuc uninstallapp -i 1 com.microvirt.test //Uninstall this app from MEmu_1 VM
  3. Start App in VM
    • Usage:     memuc startapp <-i vmindex | -n vmname> <packageactivity>
                      <packageactivity> app main activity
    • Sample:   memuc startapp -i 1 com.android.settings/.Settings //Start Android settings in MEmu_1 VM
  4. Stop App in VM
    • Usage:     memuc stopapp <-i vmindex | -n vmname> <packagename>
                      <packagename> app package name
    • Sample:   memuc stopapp -i 1 com.android.settings //Stop Android settings in MEmu_1 VM
  5. Trigger Android keystroke
    • Usage:     memuc sendkey <-i vmindex | -n vmname> <key>
                      <key> back | home | menu | volumeup | volumedown
    • Sample:   memuc sendkey -i 0 home //Trigger home key in MEmu VM
  6. Trigger shake
    • Usage:     memuc shake <-i vmindex | -n vmname>
    • Sample:   memuc shake -i 1 //Trigger shake in MEmu_1 VM
  7. Reboot Android
    • Usage:     memuc reboot <-i vmindex | -n vmname>
    • Sample:   memuc reboot -n MEmu_2 //Reboot MEmu_2 VM
  8. Connect internet in Android
    • Usage:     memuc connect <-i vmindex | -n vmname>
    • Sample:   memuc connect -i 2 //Connect internet in MEmu_2 VM
  9. Disconnect internet in Android
    • Usage:     memuc disconnect <-i vmindex | -n vmname>
    • Sample:   memuc disconnect -i 2 //Disconnect internet in MEmu_2 VM
  10. Input text to Android
    • Usage:     memuc input <-i vmindex | -n vmname> <text>
    • Sample:   memuc input -i 0 “Hello World!” //Input “Hello World!” text into MEmu VM
  11. Execute command in Android
    • Usage:     memuc execmd <-i vmindex | -n vmname> <guestcmd>
    • Sample:   memuc execcmd -i 1 “getprop persist.sys.language” //Execute “getprop” command to get Android language in MEmu_1 VM

[제4장] ADB 명령

memuc execmd는 대부분 안드로이드 명령을 지원하기 때문에 ADB 명령이 필요없을 수 있습니다. 또한 memuc execmd는 adb 서버에 의존하지 않으며, 이는 보다 안정적인 것을 의미합니다. 근데 memuc adb는 어떤 이유로 특정한 adb 명령이 필요할 때를 대비해서 여전히 지원됩니다.

  • Usage:     memuc adb <-i vmindex | -n vmname> <adbcmd>
  • Sample:   memuc adb -i 0 “remount” //Execute “remount” command through ADB connection

미뮤 앱플레이어 이용해주셔서 감사합니다. 모든 문의사항 있으시면 연락주시기 바랍니다!

홈페이지: https://www.memuplay.com/ko/

네이버 공식 카페: https://cafe.naver.com/memu

디스코드: https://discord.gg/gA4GWV9