Fix emulation of old platform images.

A previous patch introduced a regression that prevented the
emulator from properly booting older platform images.

The root cause of the problem is that old SDK platforms
(e.g. Gingerbread), do not provide a build.prop file.

For these, the target API level is extracted from the
AVD's config.ini file instead.

A series of recent changes made the emulator initialization
code overwrite this value from the one extracted from build.prop,
and unfortunately, when this file didn't exist, an API level value
of 1000 was returned.

This made the emulator misconfigure the emulation parameters,
in particular, the cache partition was configured to be ext4,
while the safety code later detected the image to be yaffs2
and refused to go-on.

This fixes the issue by avoiding the overwrite.

Change-Id: I529ff991a9e8df42957c40e1e5929c0472773b14
3 files changed