Use an Android emulator image on multiple machines

2019-05-07 03:56发布

问题:

I've created a custom build of Android and got it running as an emulator image on the development machine. I need to be able to use that image on another computer running Windows (it was built on the Mac). I've found the image files that the emulator uses (ramdisk.img, userdata.img and system.img) but I'm not sure how to create a new target that I can access from the SDK and AVD manager. Anybody have experience with this?

Thanks

回答1:

You should perform the following steps:

  1. Create a new AVD in AVD Manager with the version equal to your custor ROM.
  2. Go to %userprofile%/.android/avd/your_avd_name.avd and substitute system.img with your built ROM
  3. Run created AVD.