Framebuffer permissions, code review fixes

Changed framebuffer permissions back to default (660).
Co-commits:
android_external_svmp_eventserver
android_frameworks_base
Enable building ROM with custom keys

Updated build script to generate new keys if existing ones don't exist
along with requesting certificate information.

Feature: Generate and sign builds with new keys.
Updated build script to ask for certificate info and to generate new
keys if not available in build/target/product/security.

Use separate set of keys in device folder.
Updated to use keys in device/product folder instead of default
build/target/product.

Updated to follow workflow for automated builds and to allow for custom
signing option as well as default AOSP key signing option.

Updated gitignore to ignore device/mitre/svmp/security folder which
includes custom keys.

Updated svmp.mk to check if the environment variable of custom keys is
defined before setting the AOSP custom key variable.

Change-Id: Ibf522adabc35fffaae69ce7b8885f0659beb7907
Bump the version number to 1.3

Change-Id: I948c2ac6143a1c6943782da398e01626e7c3c18e
Be more resistant to data volume corruption

Too many VM terminations and hard reboots would eventually corrupt
the user's data volume in strange ways (e.g., the home button would
stop working or the browser wouldn't start but everything else was
fine).

Added some extra mount options to /data and /cache to match physical
phones that use ext4 partitions. Also added e2fsck to the build which
it automatically run at mount-time if the volume was not cleanly
dismounted.

Bumped VM version number to 1.3.1.

Change-Id: I17b3235c17cce296d1adf558f9a77a24dbb25013
Make video fps/vsync configurable via fbset

The fbset command now takes a 3rd argument for setting the framebuffer
vsync rate:

fbset <x-res> <y-res> <fps>

Change-Id: Ie3bbe7c1aefa93df857678cd4faca7d14841e878
Fix for screen rotation on tablet clients

Forces the launcher to allow screen rotation. Set for all screen sizes
including phone aspect ratios.

This doesn't actually result in log messages. I'm not sure why the
developers changed this property to be part of log.tag.x.

Change-Id: I9893bd7d2c42cdd7c3fb084e5b8454525af2406c
Print network info to dmesg on boot

Change-Id: Id27900ca5a6f79506f50db5479a75a6aaa8284c5
Fix FPS calculation in fbset

fbset now correctly sets the FPS at all screen resolutions

Change-Id: Iec9146ba472f1d819fae2158f060601d9e1e8126
Initial commit of "fake" microphone device.

This device is used to "pickup" audio generated from applications
running within the VM. The scheme works as follows: An audio
application like an mp3 player will playback to the virtual speaker.
The virtual speaker will in turn write to a shared memory in the
form of an mmaped file. The microphone will read from the same
shared memory.

Change-Id: Ifda5e7ee19315946e998fc285a1ec11cdeffec57
Refactor audio device.

Change-Id: Ia14c136d1a38e4c5fbc3f2d00b0d73692943a287
Add kernel configuration for 64-bit Intel kernel

Config enables a bunch of new features:
* 64-bit kernel
* Support for more hypervisors including Xen domU and Hyper-V
* Lots of other tweaks I can't remember right now, browse through menuconfig

Change-Id: I64801b6d48b54ae0080ae6d5a1a52a085a52f32c
Auto-reboot for VM when /data gets connected

Just a simple script which checks if /data was mounted
correctly, and if it wasn't, goes into a loop which
waits for it to get attached then reboots the system.
There might be a cleaner way to do this but I think it
works well enough for our purposes.

Change-Id: I2f0136b2f447abea8408c87d49e9efa5141c6fdd
Signed-off-by: Ivan Lozano <ilozano@mitre.org>
Bump version number for 1.4.0 release

Change-Id: Ia582160779c89ff9a0ee6fd0e71a64ba647b0b75
Update kernel config for 3.4.91 merge

No actual changes. Only the version string changed from 3.4.67 to .91.

Change-Id: Ie42a1f67eb4b2502e51df77ac28ad19921d60ddc
Bump version to 1.4.1

Change-Id: I5f6b90c7fe2b4364c0b761b9dc1d1546b7890a43
Refactored SVMP VM image build rules

Moved all of the VM disk image building rules out of diskinstaller
and into image_build/svmp-images.mk here in the device tree.

New make targets:
  svmp_system_disk svmp_system_disk_[vdi|vmdk|qcow2]
  svmp_data_disk svmp_data_disk_[vdi|vmdk|qcow2]

All images are built using editdisklbl disk layout configurations. This
includes the user data disk, which is no longer a manually pre-configured
image.

Moved the cache partition onto the system disk from the data disk. The
data stored in /cache is ephemeral and not portable across ROM versions
so we probably shouldn't be putting it in the persistent data image. The
data image format is left intact the way it was before with a cache
partition present in order to retain backwards compatibility with old
existing data partitions. Worst case, we waste a GB in one image or
the other.

Change-Id: I768c1d3f8d886c4ce390fe2aef2249c5fdc8e509
Add all-in-one build target

Added an all-in-one target that puts the the system and user data all
on a single disk image. Could be useful in cases where your cloud
provider has very large root disks and you don't need the ability to
periodically reset the VM to the gold state while retaining user data.

Note for the future: editdisklbl can't handle creating images with
extended partitions. Fortunately we can get away with just the 4
standard, non-extended partitions.

Change-Id: I77e015dc6a8f6b9753d9ba7bd59a463f94619344
Massive build-script rewrite and prettification

Overhauled the build-svmp2.sh script to support all the new features
that will be getting added to the build system.

* Graphical menus for picking options
* Saves configuration to a file for future reuse
* Only builds the images the user actually wants, not everything
* Simplified the image format conversion rules

Change-Id: I5184de9d6f00e1dcc8e5cfe59060d20cde20c239
Fix build script for SSH disabled case

Change-Id: Ie1c7dcc29b5767ce4d003c993add573822d1f591
Fix broken VMDK and QCOW data image

Got a bit trigger happy with cut'n'paste in the all-in-one patch and
broke the data disk image builds for VMDK and QCOW2.

Also removed the now-obsolete comments from the 1st stage build script.

Change-Id: I817e554e35b015a186e9b8733fe5cca8fc00ee5e