From 353b3b1135563e2bcaf7797acfa35a2fe2d3a818 Mon Sep 17 00:00:00 2001 From: Ot ten Thije Date: Tue, 5 Oct 2010 17:53:30 +0100 Subject: Load state snapshot rather than booting to start emulator. This patch adds support for an optional file "snapshots.img" in the data directory of an AVD. This file should be an image formatted with the qcow2 file system and will be mounted on -hdb when the emulator starts up. If present, the emulator will attempt to load the snapshot named "default-boot" from this image, rather than going through the full boot procedure. To control the behaviour of this functionality, this patch introduces the following new command line options for the emulator: -snapstorage : override the default location of the snapshot storage file. -no-snapstorage: do not load the snapshots file, even if an explicit path is given. -snapshot : instead of loading "default-boot", load the state snapshot with the given name. -no-snapshot: do not load a snapshot, but force a full boot sequence, even if a snapshots file is mounted. Useful for creating snapshots. Note that this functionality is experimental and will be enabled only if the constant CONFIG_ANDROID_SNAPSHOTS in android/config/config.h is set to "1" before building. It is turned off by default. Change-Id: Iee2e9096a27f3414bacfc271f90ef93a98730c82 --- android/config/config.h | 1 + 1 file changed, 1 insertion(+) (limited to 'android/config') diff --git a/android/config/config.h b/android/config/config.h index e2191e3..ad43dd9 100644 --- a/android/config/config.h +++ b/android/config/config.h @@ -13,3 +13,4 @@ #ifndef _WIN32 #define CONFIG_NAND_LIMITS 1 #endif +#define CONFIG_ANDROID_SNAPSHOTS 0 -- cgit v1.1