init: define BOARD_CHARGING_CMDLINE parameters

Change-Id: I722e49e2a13418bf887c361c85e9d102168ca973
healthd: Use project pathmap for recovery

Change-Id: Ifa71a7adfb3a3d897a6e24e7aa18388c364efb95
Revert "Revert "Revert "put back the unused virtuals in Vector<>"""

This reverts commit 14e215dccc71cda7e6cfde6b96d479a29e91c11c.

Change-Id: I2ca2b7c610916db8c8361b7a9f80942bcca6fbac
Revert "Revert "put back the unused virtuals in Vector<>""

This reverts commit 225c66a48cdc3acef21ee380dc134449749d3cb3

Change-Id: If31a04b81052cbc7dd7bf237c07107c33066d03d

Conditionally Revert "put back the unused virtuals in Vector<>"

These symbols are needed for MR2 camera.tegra and other blobs,
but they conflict with KK blobs so define it for devices that
need it by setting COMMON_GLOBAL_CFLAGS += -DNEEDS_VECTORIMPL_SYMBOLS

Change-Id: I59e66074526f013918a29c3afc10e52b9812778c
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
Make tombstones directory to not follow symlink.

Use file descriptor to change ownership.

Change-Id: I3e00ccb8496d8d91bae9b78ce5e38e4cabd4a3d6
system: core: fastboot: Increase USB protocol buffer size to 1024

With USB3.0 SS support the max packet size supported by USB protocol
is 1024 bytes. When connected to a USB device in SuperSpeed, if only
512 bytes are sent at a time the device would interpret each transfer
as a short packet and slows down overall throughput. To accommodate
for SuperSpeed USB bulk endpoints, increase the buffer size to 1024.

Change-Id: I4f447fe38045bc0008e2d6dd3f36c2d6819d6c15
healthd: Treat Wipower charging as a form of Wireless Charging

Wipower charging is a form of Wireless charging where the
power path is via induction and control path goes over BT.

Change-Id: Ib2767d512394a0b4aef11a961a83872070a46cd8
Revert "healthd: charger: Modify charger unplug shutdown time to 1s"

This fixes hammerhead off mode charging and shouldn't bother
other devices.

This reverts commit 2e8628e9685c62b2cf881ba9f5aef406713f0175.

Change-Id: Ibe6477884d22e37981a3c5549a3a72aae1963152
core: Fix compile error with QCOM_LEGACY_UIDS

Change-Id: I01c7f73ba0e87533ae06b8af183b4c88dbbf944e
init: Do not call recursive_restorecon on soc.0

During coldboot calling restorecon_recursive on soc.0 causes boot
time delays and failing the framework to bootup.Increase the coldboot
timeout to accomodate recursive restorecon on "/sys/devices/"

Change-Id: Ie364a3ca30db3a1344ea95def04f09660947a13f
system: core: increase the polling time for remount_ro

eMMC4.5 introduces an addition of cache on the device.
We experienced long flush durations in some of the devices,
and therefore the adb reboot resets the target before the flush
completes.

CRs-Fixed: 562350
Change-Id: I3f54901e12ffd232a7696dadfde1edec99ef91c6
Revert "Add unpackbootimg."

This reverts commit 7a6a26f4aeac896c91206e99fa90561f3f287146.

Change-Id: I4a7d5a2a24ea3e4b8e0224a0c5dceee2f499c487
system: core: increase the polling time for remount_ro to 3600

eMMC4.5 introduces an addition of cache on the device.
We experienced long flush durations in some of the devices,
and therefore the adb reboot resets the target before the flush
completes.
Latest tests show that increasing it to 2400 wasn't enough thus
it was increased to 3600.

Change-Id: Ifbe7af16aa1861d0d57c808b0240361c0317d5c5
CRs-fixed: 581363
Add torch light access permission to torch app

Add torch light access permission to torch app

Change-Id: Icf3eb08d75481fb70229887b76a8cdb5d3516944