How to flash zip on Genymotion programmatically

后端 未结 2 1998
生来不讨喜
生来不讨喜 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.

提交回复
热议问题