Revert "adbd: Don't close/reopen FFS ep0 on disconnect"

This reverts commit b5d385f1ef38ad0c163598c3a4e167d4ae9df3c6.

Commit b5d385f "adbd: Don't close/reopen FFS ep0 on disconnect"
fixes USBCV chapter 9 failures due to re-enumeration as part of
reopening FFS ep0 handle. This was done from usb_kick function
which gets invoked whenever adb read/write fails.
But, not allowing USB re-enumeration on real IO failures results
in adb to go offline and only way to recover is by re-connecting
USB cable.
As ADB function is used for debugging and USBCV tests are not
mandatory, hence, revert original change to allow USB
enumeration on any read/write failures.

CRs-fixed: 689512
Change-Id: Ic0b38223761b7c0eb3e2c54328e88010297318fb
Dedupe _GNU_SOURCE and ucontext.h definition and inclusion, put them in sane locations.

Change-Id: Ib61db11ec1a00ca675820da8dc916f7ce03e445e
audio: Unhide PCM offload enums

Change-Id: Iab074ae64d293781769032cc902e72a93374679f
ueventd: Add bootdevice symlink

Create the /dev/block/bootdevice symlink to point to the
boot device information based on kernel command line.
This decouples references to the boot device from the
actual device nodes (e.g. eMMC, UFS).

Change-Id: If54b0b6ba6007742e9cb3d9d90cb3c86cd30b898
IMS-VT: Define IMS group.

Define IMS group.

CRs-Fixed: 615689

Conflicts:
	include/private/android_filesystem_config.h

Change-Id: Ie7fed3090a20db1e27a03d2d2cdde443d7ff5435
init: Allow platform devices directly under soc.0 *HACK*

Allow one level of platform device to be registered right
under the /sys/devices/soc.0 platform device.

Change-Id: I57c80c294a92f8b9ab91b3ee2f73bb156bb18945
init: Allow target-specific platform device base to be specified

Add optional build-time flag, TARGET_PLATFORM_DEVICE_BASE,
to specify the base sysfs path (without the /sys prefix)
where the platform device resides.  This provides support for
targets where platform devices are all under a master level
platform device (e.g. soc-bus).

Change-Id: I7b19b69f2c95335d6512e181f265b874e1713f64
init: Fix memory corruption when sanitizing platform paths

This commit fixes code that incorrectly increments s when it
hits the terminator character of the string being sanitized.
This means it will randomly start trashing memory beyond the
end of the string being sanitized until it happens to hit two
NULs (\0\0) which will break it out of the loop.

Change-Id: I76553d7f183236a78a0bc7b408e92559b98f732f
system: Update function to calculate bytes per sample for offload

Update function to calculate bytes per sample for offload format

Change-Id: I46b78024293be959ad5d1db1f583933d2ab14576
Merge branch 'cm-11.0' into stable/cm-11.0
charger: Use project pathmap

Change-Id: I048780594d9aaccb07edc42240dbe5a055f6c039
System/core: Start qrng daemon upon power up

1. Set root permissions to qrng daemon upon powerup
2. Drop all permissions except few, just enough to make ioctl calls

Permission for hardware random device is changed in
this gerrit (part of Point 1(above))

Change-Id: Ibf58b7212ba1ec532de9d461266081f3ac4395e3
Signed-off-by: Hariprasad Dhalinarasimha <hnamgund@codeaurora.org>
audio: Unhide MP2/WMA enums

Change-Id: Id7dd73ef35776fda1f753987856759d34fb541f6
fastboot: Add missing USB ID

Change-Id: I1616e9e6a57652aa919f979833c0e19479343966
adb/fastboot: Support SuperSpeed USB devices

When enumerating USB 3.0 devices, a 6-byte SuperSpeed companion
descriptor follows each standard descriptor. The ADB and Fastboot
Linux clients currently fail to interpret these additional
descriptors and simply bail. Fix this by skipping over them.

Change-Id: I254dad8ed81e8de74a4fac36e8ce54b5da9715fe
system: core: Add Sensors group

Defining group for sensors.

CRs-Fixed: 431081

Change-Id: I58151f2fd727bded1b16adb3caeac85e27e44036
system: core: Add Sensors group

Defining group for sensors.

CRs-Fixed: 431081

Change-Id: I58151f2fd727bded1b16adb3caeac85e27e44036
(cherry picked from commit 5d31680ee750ff6bae40c55175ad7ad6876d5774)
core: Correct the sensors UID

Change-Id: I4e456de6dfa6612caf9dcef751f39e9e478a775e
core: Correct the sensors UID

Change-Id: I4e456de6dfa6612caf9dcef751f39e9e478a775e
(cherry picked from commit 9aac9eaa5722bb152b33469d9b95b7848b048239)
init: add a new charger-fs trigger in the power off charging mode

Add the charger-fs trigger and mount the charger file system earlier
than the propery service init in the power off charging mode.

Change-Id: Iecc0fcdabca836365d6822ca6ef9e0944258d687