merge in jb-mr1-factory-release history after reset to jb-mr1-dev
merge in jb-mr1-factory-release history after reset to jb-mr1-dev
merge in jb-mr1-factory-release history after reset to jb-mr1-dev
Reconcile with jb-mr1-factory-release jb-mr1-release - do not merge

Change-Id: I89230f756ce6caee4d7fa4514f47b6b0fc44d1f3
am d1e39491: Add usb vendor id for Teleepoch.

* commit 'd1e39491f063626e026304ba8abe084cc43c94da':
  Add usb vendor id for Teleepoch.
Fix fs_mgr to properly invoke e2fsck on encrypted devices

Change-Id: Ie220f5cb7b614a48ec8afe66f4721ede3a368166
Reconcile with jb-mr1-release - do not merge

Change-Id: I70866c059c12fdba45761ecbbb6e2a4cf2aa8107
Merge "Fix fs_mgr to properly invoke e2fsck on encrypted devices" into jb-mr1.1-dev
libsuspend: compile as a static library

Compile libsuspend as a static library as well, currently needed by the charger
code in some cases.

Related-to-bug: 7429504
Change-Id: I113017c2c855f915b77c76d8934b6e57c0bb532c
Signed-off-by: Iliyan Malchev <malchev@google.com>
init.usb.rc: set sys.usb.config to none before changing it

On encrypted devices, persistent properties are loaded after the device
is decrypted. To properly change sys.usb.config to its persistent value,
it must first be set to "none" and then to ${persist.sys.usb.config}.

Bug: 7678835
Change-Id: I4f91245cedc04e3178ce9cee21390f5b657733c9
Merge "init.usb.rc: set sys.usb.config to none before changing it" into jb-mr1.1-dev
charger: suspend enable in charger mode

To reduce power consumption after charging completion, enable suspend when LCD
is turned off.

Bug: 7429504
Change-Id: I34731dc392661c9051a20cea74f70d94a8aaeb42
Signed-off-by: Iliyan Malchev <malchev@google.com>
charger: fix build

Looks like libsuspend is not available on all platforms.

Change-Id: Ic32dc93221f3c488e846da35235f247f4ddb4c69
Signed-off-by: Iliyan Malchev <malchev@google.com>
charger: Do not suspend when disconnecting from charger

The device should be power off when disconnecting from charger.
If the device enter to suspend, the device couldn't handle the power off
process. So the device shouldn't suspend to handle the power off at that time

Bug: 7429504
Change-Id: I9a0a60e53f315cd83550dc730a33bc7bd464ef67
Fix ELF header parser bug.

[cherry-picked from AOSP]
Program header size should be 32 instead of 40.

Bug: 7696928
Change-Id: I48e411837ff8a571544b55ccc37e20202dca424c
Merge "Fix ELF header parser bug." into jb-mr1.1-dev
rootdir: init.rc: set perms for cpufreq governor boostpulse_duration

Change-Id: I09b9a1ed548e4ffe1232f583e8ff5f026760f616
audio: add QCOM supported audio devices

- Add ANC headset, FM, and proxy devices

Change-Id: Ib7b7495ed69ca3ab072c5512e9286da8d3538682
(cherry picked from commit fd629294bcaaa2cb70befc631f7596439d6cbe70)

audio: add support for QCOM audio formats

- Add support for EVRC, QCELP, and WMA formats

Change-Id: Id5f7845ff7bc609e947f93d8647ad3f3e57babfb
(cherry picked from commit 8b3476f14882afa74e9c3b778d9ccbd97ee329f0)

audio: add QCOM supported audio channels

Change-Id: Id29cb6949e137be8fb71d8d45e8e12bc47795f40
(cherry picked from commit 2fe37a40228c97e6f3b0575d94d4ec50b4dde1d6)

system/core: Add Qcom specific audio flags

- Support for Tunnel Mode Playback
- Reserve the LPA and VOIP_RX flags

Change-Id: Ifcbeb2a28feb86b030f48010a8a4e9cda8629e5b

Add ifdefs for QCOM enhanced features

Change-Id: Idefa831ecb4fdb881c990ba02ab4ab0ab7871986
audio: fix build break for non QCOM

Output:
error: 'AUDIO_DEVICE_IN_ANC_HEADSET' was not declared in this scope
error: 'AUDIO_DEVICE_IN_FM_RX' was not declared in this scope
error: 'AUDIO_DEVICE_IN_FM_RX_A2DP' was not declared in this scope
error: 'AUDIO_DEVICE_IN_PROXY' was not declared in this scope

Change-Id: Ie18c623303b944544b68eecca6208607d54b1c9a
camera: Remove histogram commands

Change-Id: Ice4012922936ee1d0f9005797f72f9f2b38b951c