android-emulator-container-scripts icon indicating copy to clipboard operation
android-emulator-container-scripts copied to clipboard

Cannot reuse AVD snapshot from one container in another

Open apoorvam1 opened this issue 4 years ago • 0 comments

I am trying to reuse a snapshot created for an AVD in all the next spin ups of the emulator. Snapshot creation is going through fine and I could validate that I can spin-up an emulator in the same docker-container which uses the snapshot.

But once I take a copy of the AVD that has the snapshot and bringup a new container using this AVD instead of the default AVD results in Emulator getting into Unauthorized state.

Below are the changes I have made to spin-up emulator using snapshot

  1. Removed -wipe-data in the launch-emulator.sh script
  2. Pass the snapshot in the LAUNCH_CMD of the launch-emulator.sh as -snapshot new-snapshot

Is it possible to use snapshot while using launch-emulator.sh script? Is there any token that I need to generate so that emulator comes up with the snapshot?

apoorvam1 avatar Jul 26 '21 20:07 apoorvam1