Revert "goldfish_nand.c: Change sizes"

This reverts commit 53a9dc320839683c8b374220065d86f277d5843b.

Change-Id: I7505d1196d2fe95076cfafbf0a640f0683b91af7
Merge "Revert "goldfish_nand.c: Change sizes""
Change sizes for ext4 images

Change page_size to 512 and extra_size to 0. This is needed to use ext4
filesystem, which is used beyond apiLevel 18, on goldfish.  A new
hardware property has been added to specify which filesystem to use:
ext4 or yaffs2. The default for this property is to use yaffs2 if
apiLevel <= 18 and use ext4 otherwise. It can be overridden in AVD's
config.ini by specifying "hw.useext4=yes".

Bug: http://b.android.com/38561
Change-Id: I978afe0f742795beef66e7eaee59a8d9e76d4602
Merge "Change sizes for ext4 images"
Auto-detect ext4 image file.

Although the existing code can detect the usage of ext4 file
system by the API level.  However, there might be some
problem when we are building and running the emulator in
the source tree.

This CL workaround this issue by checking the magic word in
the ext4 header.  If the system.img has the magic word at
0x438, then add hw.useext4 to the hardware-qemu.ini.

Related Issue:
http://code.google.com/p/android/issues/detail?id=38561

Change-Id: I0b3606911cba5f52d92157accaaba3b2caef85c1
Merge "Auto-detect ext4 image file."
emulator: Add option to control SELinux enforcement.

This change adds the following command line
options to the emulator:

  -selinux disabled
  -selinux permissive

This configures SELinux in either permissive or disabled modes.

"disabled" completely disables userspace support for SELinux. No
policy is ever loaded, nor is the SELinux filesystem /sys/fs/selinux
ever mounted.

"permissive" loads the SELinux policy, but puts SELinux into
permissive mode. SELinux policy violations are logged, but not rejected.

Change-Id: I97974deb5b39d5caab36032e8b282281c1e478ea
Merge "emulator: Add option to control SELinux enforcement."
Set ro.config.low_ram=true when AVD has <= 512M of RAM

This is a partial fix for Issue 11377795

Change-Id: I1f1b1be527e32f25ede5c80ff960051644d9e717
Merge "Set ro.config.low_ram=true when AVD has <= 512M of RAM"
Add support for xxhdpi and xxxhdpi when injecting a skin dpi.

Change-Id: I5c89b33ac317b804abb88a7f29faf51809dda1d2
Merge "Add support for xxhdpi and xxxhdpi when injecting a skin dpi."
Handle long library search paths

Before launching the arch-specific emulator, the emulator wrapper adds
a directory to the library search path (LD_LIBRARY_PATH or PATH).
There were two problems that this change fixes:

- The new path was assembled in a 2048 byte buffer. If the assembled
  path was longer than that, it would be truncated, in effect removing
  some directories. This change dynamically allocates the buffer so
  truncation doesn't happen.

- On Windows, the new directories were appended instead of prepended
  to the existing search path. If the path was truncated due to the
  previous problem, the new directory wouldn't be added to the path,
  and the arch-specific emulator would fail to load. This isn't a real
  problem now that truncation doesn't occur, but this change makes
  the Windows version prepend the directory for consistency's sake.

Bug: http://b.android.com/33336
Change-Id: I13068c4871254f8507eea265f6a1b698e5e1e3ce
Merge "Handle long library search paths"
Merge branch 'master' of https://android.googlesource.com/platform/external/qemu into HEAD

Change-Id: I6886c4aa552e1160928066c191c3327b1d14246a
Merge pull request #1 from CyanogenMod/cm-11.0

Cm 11.0