libcorkscrew buildfix for gcc 4.8

clearly gcc 4.8 is smarter than 4.7, so ignore it

Change-Id: I67c4c5e7c8d47ae4f9dfbe5c8d46a385a58ad933
(cherry picked from commit 37bcd0fae7a011ee26406ba0bdc1e1847c3e5c94)
init: Do not build logo.c when initlogo is disabled

For now, logo.c was build even if TARGET_NO_INITLOGO was true.
Changing tty to KD_GRAPHICS is now done in init.c as it should be, when
the logo is not present.

Change-Id: Ifabd9aebc9c0ad8d6903e963dfac031a6dac32e1
(cherry picked from commit b51beda1c396ab5bcc86a6f7f97334f504b32713)
init: Fix serial number display for semc msm7x30 devices

Add proper check since semc msm7x30 bootloader exports
"serialno" in cmdline instead of the standard androidboot.serialno,
so init doesn't pick it

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: Ib4e715fafc64dd47fb667aeb63a7307334cca844
(cherry picked from commit f5f47b5a7697a050346e05c5486a46ed1448e9e0)
toolbox: Add setfattr

Change-Id: I1981604f72d96c9ad38583f03f7f65df1ab865b7
(cherry picked from commit cc345670c5fff7f773a0160c920ce735085a3006)
charger: Draw battery percentage over charger screen

Let user know the exact battery capacity.

Change-Id: Ie2abaeee0e443cd2a730780488287ad4d9ea1e9a
(cherry picked from commit 7b4a462f3d2e2c071ae03941182b44c4cb093d00)
charger: Toggle backlight while in charger mode.

The backlight is now toggled on/off in the charger mode via a sysfs
node. This is to compensate for the fact that on certain targets the
FBIOBLANK ioctl does not turn off the backlight.

Change-Id: I7c4531e7f1b0599b9a1f5ed6f95d13ee6a664066
CRs-fixed: 514940
(cherry picked from commit 02d61fd30956d9dc2d3f05f7b28e69f955606bc8)
charger: support alarm in power off charging

To implement this feature need to let the phone reboot some time
earlier than the alarm time.

CRs-fixed: 540039
Change-Id: I5001631114994f5bc29313bbd52395c43f7c4810
(cherry picked from commit 1bf00d2e070bd1a7a3dea780b7432c3f674a08ff)
charger: modify usb unplugged shutdown time in power off charging

Previous value for this feature is 10 secs which is too long,
and now change it to 2 secs.

CRs-Fixed: 535857
Change-Id: If1d74a25e00f897833092262c49a9a07d18c0674
(cherry picked from commit 635360edc59d42d6f5c6acba829ddfc1079ada4c)
charger: press power key to turn off charging animation

When charging animation is on, press power key to turn it off.

CRs-Fixed: 535893
Change-Id: Iaac536351426a09cb23c6d77ff3229a8901aaf70
(cherry picked from commit f694f6372f88dd1c5b2088552d5edca67e14587c)
charger: Fix arguments to gr_text

 * CWM's minui is oldschool, so comment this out for now.

Change-Id: If88d2df820b164fbb02ce6c40cba42de7880e86a
(cherry picked from commit 39ee84b928655242b97306d738156f909923e7e5)
audio: add EVRCWB EVRCB to supported audio formats

 compressed format should also include EVRCWB and EVRCB

 CRs-Fixed: 516138

Change-Id: I64f40d3380cb4fa055e0c3d79db3acf57929405c
(cherry picked from commit 9c94ae63c5789c2cfda60dc33ed227924a91731a)
init.rc: Restored TCP performance tuning

This patch tunes the TCP buffer sizes for high
performance data links including global max rmem
and wmem.

Change-Id: Ida0f9fd6ec23143b158284a019fd26672103c6ce
CRs-Fixed: 439205 435908
(cherry picked from commit 38eec44afa06ffad39233fd8982ee144df1b7f83)
Camera: Add meta data types for meta data callback

Add meta data callback types in order to reuse same callback
path for diffrent data types.

Change-Id: If8c6079c8a9a1fa7b3e708b6c5d9d04240509e2e
(cherry picked from commit 57f6ea881bcb3ad616ce9fecf731fc477a8b851b)
system/core: Add support for EVRCNW audio format

This change is needed to support EVRCNW audio format.

Change-Id: I161c2c24ca764ed291f59d17d0a2be443818a7aa
(cherry picked from commit 8c1a1bdcf220d3e7fc163689379ec5a8fc430789)
Camera: Adds longshot commands

- This change adds two new camera commands
  for enabling/disabling longshot mode.

CRs-Fixed: 514199
Change-Id: I47e4211ca0306347b6546707ed43b90ee3693060
(cherry picked from commit a467db288327700d7af9135c28cca4bf206d53b5)
audio: Enumerations for audio usecases

-Add enumerations for audio usecases to handle concurrency

Change-Id: Ided13b37d269db3b4509f4058581d329b5f4739e
(cherry picked from commit 7b94175b9026b02b7fbdd59fe6b74f6f405f1df8)
Camera: Adds auto HDR Metadata type

- This type is used during auto HDR
  Metadata callbacks.

(cherry picked from commit 2c84f29e3a66fc10991e21699b9ee52f22581c0f)
init: Increase maximum number of Android properties to 496.

As more and more properties are created, 372 is not enough.

Change-Id: Iab793e9f6cf540551e9821f61c2aeee8fb6dafc3
CRs-fixed: 538187
(cherry picked from commit fab21edd4a4f88f4025db4eb1a28e36010b6df55)