KW warnings

dlsym on gps_geofence_get_interface should check NULL,
and gmtime return should also check NULL

Change-Id: I23ab17f016ad9f4667ac197c12f016433c48af90
CRs-Fixed: 674884
Add support for XTRA_VERSION_CHECK QMI LOC msg

A new QMI LOC msg is introduced which injects into
the modem a value that determines whether or not
the version of XTRA is to be checked

Change-Id: I0ef579332d064713ce73d80e66dc8c6fef1c1638
CRs-fixed: 649860
fixing the SSR recovery race condition

There is a race condition where when startFix is
called right at the time when modem or griffon
subsystem is down, GPS HAL doesn't get the correct
error code, and therefore the right handling.

Mapped ENGINE_DOWN to ENGINE_OFFLINE, as they are
the same; and modified loc_eng_start_handler to
update the state upon the right error code.

There is a one problem though. General failure is
also handled as SSR. This is because of an unhandled
race condition in the kernel, so the error code
returned and propagated is not deterministic enough
for us to tell if this is SSR. Until that fix is in
place, we might have to treat general failure as SSR
although the side effect should be none. Only
semantically incorrect.

Change-Id: If93823f08428275da171bb22d73a06e38365585b
CR-Fixed: 692085
Platform:ADPES2,Chip Info:APQ8064 Automotive

Changes to include "auto" option as well for ro.baseband property.
submitting on behalf of Madhanraj Chelladurai

Change-Id: I96abaea799df34d375a6a5db7341c17b99c94675
Changes for External DR enablement feature.

Change Summary:
* Structure definitions for GNSS SV Measurement and GNSS SV
  Polynomial to report it to ULP and to external DR module;
* New function additions in LocApiBase, LocAdapterBase and
  LocEngAdapter to report SV Measurement and SV Polynomial;
* definition and changes to detect "auto" platform in loc_target;
* enable SV Measurement and SV Polynomial report for "auto"
  platform;

Change-Id: I0611023197ce58f5d083588809c2f18922738357
Migrating XTRA from gpsonextra.net to cloud based izatcloud.net

*Added logic to remove xtra1.gpsonextra.net from URLs
received from modem.
*Added logic to override modem URLs with those configured
in gps.conf
*Replaced all instances of xtra{1,2,3}.gpsonextra.net domain URLs
in gps.conf with xtrapath{1,2,3}.izatcloud.net URLs.
*Replaced all commented instances of xtra.bin in gps.conf with xtra2.bin.

CRs-fixed: 643816

Change-Id: I803b26bce22f06910dcaa1ee057902b9381667bf

Conflicts:
	gps/etc/gps.conf
Remove reduntant clearing of GpsLocation memory

GpsLocation memory will now be cleared inside the
Loc Api handler itself, so no need to do it a second
time before calling into the Loc Api handler.

Change-Id: Iec37624621d6eb4806eb8e13c807bb4e40584e39
CRs-fixed: 726800
Enable large heap for Trebuchet

Change-Id: I89da84d33e9c2f64fe95526bf6eb46af8a30b246
Fix Ambient Display

Signed-off-by: Dragon <dragon7780@hotmail.nl>
Use 3GB dalvik heap and hwui memory (Originally 2GB)

Dependent on the following in frameworks/native
https://github.com/FusionSP/android_frameworks_native/commit/d94df8eb50fe0faf7f662bba2cecb6622c35dc2e

Signed-off-by: Dragon <dragon7780@hotmail.nl>
Enable lazy dexopt

Signed-off-by: Dragon <dragon7780@hotmail.nl>
klte-common: compile lbwpa_client

Change-Id: I8f800fd2d04d25becab07ecaeea8d9c83885ed26
klte-common: copy hostapd_default.conf

Change-Id: I9072f6de37c19917a5fdb9816d7eb034cab90d1c
klte-common: remove qpngd and qpngp from init

Change-Id: Ie1180fa38456ddf202d4b15fd9aaf19119e6bc0b
klte-common: provider our own hostapd_default.conf at build time

Change-Id: Icd460bd04df5d45cca739652b8cefa420ba92f3d
klte-common: Set BT disable delay to 100 ms

Change-Id: I0bb47c4e7af39f8e5d1a5ceedc84807e6b78a34c
klte-common: update bluetooth permissions

Change-Id: I025ab9f2602cc873f97969d4055c33265bd4cd7d