Copy the ETB dumps and maps file to /data/core

On enabling the persist.debug.trace, ETB maps and dumps will be
copied to /data/core only for the first crash.

Change-Id: I336bd053514b0c67b73567ea17ef84bbd7735b3a
adbd: Don't close/reopen FFS ep0 on disconnect

In case of bulk read/write failure or disconnect, transport_usb
calls usb_ffs_kick in order to force the daemon to re-open the
FunctionFS ep files as a way to soft restart the kernel driver.

However, there's no reason to always close the ep0 file, as it
would need to be reopened and the descriptors rewritten--this
is unnecessary, especially in the simple/frequent case of cable
disconnect, and causes the kernel driver to unbind and bind *all*
of the function drivers. This is causing USB Chapter 9 tests to fail.

Thus, try to reuse the same ep0 file handle across reconnects. In
case there is a failure, the ep1/ep2 opens would fail and all the
file handles get dropped. For the adb root case, the entire daemon
gets restarted anyway.

CRs-fixed: 571846
Change-Id: I0840085c52a0795dcb2d751c39aa4a436c039ee2
audio: Add Dolby subformat

Add Dolby subformats to support Dual-Mono content

Change-Id: Iff7d141f6689d5c378bee35c9e6627ce8af70cb6
charger: support alarm in power off charging

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

Change-Id: I5001631114994f5bc29313bbd52395c43f7c4810
Dolby:  Add support for Dolby UDC DD/DD+ Decoder

- System property changes to handle Dolby UDC settings

Change-Id: I2d67297c6acf488b2646d5b9c4ea3f2663cc292e
Merge "adbd: Don't close/reopen FFS ep0 on disconnect"
system/audio: Add the the SPDIF device entry

Add the the SPDIF device entry

Change-Id: Ied13adebb4581c4f45ab9fde858c5417c4414d9a
Merge "Dolby:  Add support for Dolby UDC DD/DD+ Decoder"
Merge "charger: support alarm in power off charging"
Merge "Copy the ETB dumps and maps file to /data/core"
Merge "system/audio: Add the the SPDIF device entry"
Merge "audio: Add Dolby subformat"
init: Change vendor-specific initialization hooks loaded order.

To read the vendor-specific initialization hooks after loading properties
from default system properties and before loading override properties.

Change-Id: Ic2bf6974c9752f49059fd3126ae8fb550dc1fa6b
audio: New audio formats for PCM Offload

- Add new formats 16/24 bit PCM offload formats

Change-Id: I68bccc2851e3820c7adb98af9e2e3818ea5bf01b
charger: Display battery percentage on the charging screen

Let user know the exact battery percentage under power off
charging.

Change-Id: Ie2abaeee0e443cd2a730780488287ad4d9ea1e9a
Merge "charger: Display battery percentage on the charging screen"
Charger: make animation can be turned off by power key

Animation can only be turned on by pressing power key. This change
makes animation can also be turned off by power key.

Change-Id: Id64528da2a6f7a0ae84a9367df3e95a0e4476366
Merge "init: Change vendor-specific initialization hooks loaded order."
IMS-VT: Define IMS group.

Define IMS group.

Change-Id: I0ae680aaabd731dcdff98d3da1594ca5c7c3486f
CRs-Fixed: 615689
QuickBoot: Charger: add parameter to support QuickBoot mode

If there is unplug event in QuickBoot mode, close display
and go to sleep mode.

Change-Id: Iaa41255b71767e5cce327c4f441de9a870b384f3