How to flash zip on Genymotion programmatically

后端 未结 2 2002
生来不讨喜
生来不讨喜 2021-02-05 21:44

I\'m trying to flash google apps into a genymotion emulator. I can do this using the drag and drop feature, but it\'s required for my project that the google apps .zip is alread

相关标签:
2条回答
  • 2021-02-05 21:53

    Genymotion VMs contain some special scripts that interface with their launcher and skin controls. The one that you need is /system/bin/flash-archive.sh which is what gets run when you drag & drop a .zip archive.

    You can run flash-archive.sh directly using ADB or from a process within the VM. So if you have the zip in /sdcard/Download/gapps.zip, you can run the following command from the host machine:

    adb shell flash-archive.sh /sdcard/Download/gapps.zip
    adb reboot
    

    Don't forget to install the ARM translation package first, if applicable. It can be done using the same sequence.

    0 讨论(0)
  • 2021-02-05 22:02

    Paul's answer is good.

    Also, we will soon release features related to continuous integration and automation. A command line tool will be included on these features. It allows you to do all what you can do with your mouse, but through the command line. It will be available to paid licenses.

    You can find a demo we did at Droidcon Paris here.

    0 讨论(0)
提交回复
热议问题