diff --git a/gps/Android.mk b/gps/Android.mk index e2c5a56..4b52234 100644 --- a/gps/Android.mk +++ b/gps/Android.mk @@ -1,5 +1,19 @@ -ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),) +# +# Copyright 2018 The LineageOS Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + LOCAL_PATH := $(call my-dir) include $(call all-makefiles-under,$(LOCAL_PATH)) -endif diff --git a/gps/CleanSpec.mk b/gps/CleanSpec.mk deleted file mode 100644 index dd1849d..0000000 --- a/gps/CleanSpec.mk +++ /dev/null @@ -1,50 +0,0 @@ -# Copyright (C) 2007 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# If you don't need to do a full clean build but would like to touch -# a file or delete some intermediate files, add a clean step to the end -# of the list. These steps will only be run once, if they haven't been -# run before. -# -# E.g.: -# $(call add-clean-step, touch -c external/sqlite/sqlite3.h) -# $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/STATIC_LIBRARIES/libz_intermediates) -# -# Always use "touch -c" and "rm -f" or "rm -rf" to gracefully deal with -# files that are missing or have been moved. -# -# Use $(PRODUCT_OUT) to get to the "out/target/product/blah/" directory. -# Use $(OUT_DIR) to refer to the "out" directory. -# -# If you need to re-do something that's already mentioned, just copy -# the command and add it to the bottom of the list. E.g., if a change -# that you made last week required touching a file and a change you -# made today requires touching the same file, just copy the old -# touch step and add it to the end of the list. -# -# ************************************************ -# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST -# ************************************************ - -# For example: -#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/AndroidTests_intermediates) -#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/core_intermediates) -#$(call add-clean-step, find $(OUT_DIR) -type f -name "IGTalkSession*" -print0 | xargs -0 rm -f) -#$(call add-clean-step, rm -rf $(PRODUCT_OUT)/data/*) - -# ************************************************ -# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST -# ************************************************ -$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/SHARED_LIBRARIES/libloc_api*) diff --git a/gps/Makefile.am b/gps/Makefile.am deleted file mode 100644 index f64790e..0000000 --- a/gps/Makefile.am +++ /dev/null @@ -1,10 +0,0 @@ -# Makefile.am - Automake script for gps loc_api -# - -ACLOCAL_AMFLAGS = -I m4 - -SUBDIRS = core location gnss - -pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = loc-hal.pc -EXTRA_DIST = $(pkgconfig_DATA) diff --git a/gps/configure.ac b/gps/configure.ac deleted file mode 100644 index ec41c86..0000000 --- a/gps/configure.ac +++ /dev/null @@ -1,91 +0,0 @@ -# configure.ac -- Autoconf script for gps loc_hal -# -# Process this file with autoconf to produce a configure script - -# Requires autoconf tool later than 2.61 -AC_PREREQ(2.61) -# Initialize the gps loc-hal package version 1.0.0 -AC_INIT([loc-hal],1.0.0) -# Does not strictly follow GNU Coding standards -AM_INIT_AUTOMAKE([foreign]) -# Disables auto rebuilding of configure, Makefile.ins -AM_MAINTAINER_MODE -# Verifies the --srcdir is correct by checking for the path -AC_CONFIG_SRCDIR([utils/loc_cfg.cpp]) -# defines some macros variable to be included by source -AC_CONFIG_HEADERS([config.h]) -AC_CONFIG_MACRO_DIR([m4]) - -# Checks for programs. -AC_PROG_LIBTOOL -AC_PROG_CXX -AC_PROG_CC -AM_PROG_CC_C_O -AC_PROG_AWK -AC_PROG_CPP -AC_PROG_INSTALL -AC_PROG_LN_S -AC_PROG_MAKE_SET -PKG_PROG_PKG_CONFIG - -# Checks for libraries. -PKG_CHECK_MODULES([QMI], [qmi]) -AC_SUBST([QMI_CFLAGS]) -AC_SUBST([QMI_LIBS]) - -PKG_CHECK_MODULES([QMIF], [qmi-framework]) -AC_SUBST([QMIF_CFLAGS]) -AC_SUBST([QMIF_LIBS]) - -PKG_CHECK_MODULES([DATA], [data]) -AC_SUBST([DATA_CFLAGS]) -AC_SUBST([DATA_LIBS]) - -PKG_CHECK_MODULES([LOCPLA], [loc-pla]) -AC_SUBST([LOCPLA_CFLAGS]) -AC_SUBST([LOCPLA_LIBS]) - -PKG_CHECK_MODULES([GPSUTILS], [gps-utils]) -AC_SUBST([GPSUTILS_CFLAGS]) -AC_SUBST([GPSUTILS_LIBS]) - -AC_ARG_WITH([core_includes], - AC_HELP_STRING([--with-core-includes=@<:@dir@:>@], - [Specify the location of the core headers]), - [core_incdir=$withval], - with_core_includes=no) - -if test "x$with_core_includes" != "xno"; then - CPPFLAGS="${CPPFLAGS} -I${core_incdir}" -fi - -AC_SUBST([CPPFLAGS]) - -AC_ARG_WITH([glib], - AC_HELP_STRING([--with-glib], - [enable glib, building HLOS systems which use glib])) - -if (test "x${with_glib}" = "xyes"); then - AC_DEFINE(ENABLE_USEGLIB, 1, [Define if HLOS systems uses glib]) - PKG_CHECK_MODULES(GTHREAD, gthread-2.0 >= 2.16, dummy=yes, - AC_MSG_ERROR(GThread >= 2.16 is required)) - PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.16, dummy=yes, - AC_MSG_ERROR(GLib >= 2.16 is required)) - GLIB_CFLAGS="$GLIB_CFLAGS $GTHREAD_CFLAGS" - GLIB_LIBS="$GLIB_LIBS $GTHREAD_LIBS" - - AC_SUBST(GLIB_CFLAGS) - AC_SUBST(GLIB_LIBS) -fi - -AM_CONDITIONAL(USE_GLIB, test "x${with_glib}" = "xyes") - -AC_CONFIG_FILES([ \ - Makefile \ - core/Makefile \ - location/Makefile \ - gnss/Makefile \ - loc-hal.pc \ - ]) - -AC_OUTPUT diff --git a/gps/core/Android.mk b/gps/core/Android.mk index dba0b0a..946610d 100644 --- a/gps/core/Android.mk +++ b/gps/core/Android.mk @@ -1,6 +1,3 @@ -ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),) -ifneq ($(BUILD_TINY_ANDROID),true) - LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) @@ -10,12 +7,6 @@ LOCAL_MODULE_PATH_32 := $(TARGET_OUT_VENDOR)/lib LOCAL_MODULE_PATH_64 := $(TARGET_OUT_VENDOR)/lib64 LOCAL_MODULE_TAGS := optional -ifeq ($(TARGET_DEVICE),apq8026_lw) -LOCAL_CFLAGS += -DPDK_FEATURE_SET -else ifeq ($(BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET),true) -LOCAL_CFLAGS += -DPDK_FEATURE_SET -endif - LOCAL_SHARED_LIBRARIES := \ liblog \ libutils \ @@ -64,6 +55,3 @@ LOCAL_EXPORT_C_INCLUDE_DIRS := \ $(LOCAL_PATH)/data-items/common \ $(LOCAL_PATH)/observer include $(BUILD_HEADER_LIBRARY) - -endif # not BUILD_TINY_ANDROID -endif # BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE diff --git a/gps/core/Makefile.am b/gps/core/Makefile.am deleted file mode 100644 index c83ccc3..0000000 --- a/gps/core/Makefile.am +++ /dev/null @@ -1,62 +0,0 @@ -AM_CFLAGS = -I./ \ - -I../utils \ - -I../location \ - $(LOCPLA_CFLAGS) \ - $(GPSUTILS_CFLAGS) \ - -I$(WORKSPACE)/gps-noship/flp \ - -D__func__=__PRETTY_FUNCTION__ \ - -fno-short-enums \ - -std=c++11 - -libloc_core_la_h_sources = \ - LocApiBase.h \ - LocAdapterBase.h \ - ContextBase.h \ - LocDualContext.h \ - LBSProxyBase.h \ - UlpProxyBase.h \ - loc_core_log.h \ - LocAdapterProxyBase.h \ - data-items/DataItemId.h \ - data-items/IDataItemCore.h \ - data-items/DataItemConcreteTypesBase.h \ - observer/IDataItemObserver.h \ - observer/IDataItemSubscription.h \ - observer/IFrameworkActionReq.h \ - observer/IOsObserver.h \ - SystemStatusOsObserver.h \ - SystemStatus.h - -libloc_core_la_c_sources = \ - LocApiBase.cpp \ - LocAdapterBase.cpp \ - ContextBase.cpp \ - LocDualContext.cpp \ - loc_core_log.cpp \ - data-items/DataItemsFactoryProxy.cpp \ - data-items/common/ClientIndex.cpp \ - data-items/common/DataItemIndex.cpp \ - data-items/common/IndexFactory.cpp \ - SystemStatusOsObserver.cpp \ - SystemStatus.cpp - -library_includedir = $(pkgincludedir)/core - -library_include_HEADERS = $(libloc_core_la_h_sources) - -libloc_core_la_SOURCES = $(libloc_core_la_c_sources) - -if USE_GLIB -libloc_core_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@ -libloc_core_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0 -libloc_core_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@ -else -libloc_core_la_CFLAGS = $(AM_CFLAGS) -libloc_core_la_LDFLAGS = -Wl,-z,defs -lpthread -shared -version-info 1:0:0 -libloc_core_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -endif - -libloc_core_la_LIBADD = -lstdc++ -ldl $(LOCPLA_LIBS) $(GPSUTILS_LIBS) - -#Create and Install libraries -lib_LTLIBRARIES = libloc_core.la diff --git a/gps/etc/apdr.conf b/gps/etc/apdr.conf deleted file mode 100644 index c75f688..0000000 --- a/gps/etc/apdr.conf +++ /dev/null @@ -1,44 +0,0 @@ -# AP DR SENSOR Configuration file -# -# SENSOR_SERVICE options are one of below -# accel,gyro,vehicle_accel,vehicle_gyro,pedometer,vehicle_odometry,accel_temp, -# gyro_temp,baro,mag_calib,mag_uncalib,amd,rmd. -# -# SENSOR_PROVIDER options is one of -- default,native,ssc,samlite. -# -# SENSOR_RATE = 1~100 (Hz) -# -# SENSOR_SAMPLES = 1~N -# -# SENSOR_STATISTIC_ENABLED -# bit 0: Diag Print Enabled -# bit 1: Adb Print Enabled -# SENSOR_STATISTIC_PRINT_COUNT -# Skip Number of Print -# - -SENSOR_SERVICE = accel -SENSOR_PROVIDER = native -SENSOR_RATE = 100 -SENSOR_SAMPLES = 1 -SENSOR_STATISTIC_ENABLED = 3 -SENSOR_STATISTIC_PRINT_COUNT = 50 - -SENSOR_SERVICE = vehicle_accel -SENSOR_PROVIDER = native -SENSOR_RATE = 10 -SENSOR_SAMPLES = 1 -SENSOR_STATISTIC_ENABLED = 3 -SENSOR_STATISTIC_PRINT_COUNT = 50 - -SENSOR_SERVICE = gyro -SENSOR_PROVIDER = native -SENSOR_RATE = 100 -SENSOR_SAMPLES = 1 -SENSOR_STATISTIC_ENABLED = 3 -SENSOR_STATISTIC_PRINT_COUNT = 50 - -GNSS_POS_STATISTIC_ENABLED = 3 -GNSS_POS_STATISTIC_PRNTCNT = 10 -GNSS_MSR_STATISTIC_ENABLED = 3 -GNSS_MSR_STATISTIC_PRNTCNT = 10 diff --git a/gps/etc/flp.conf b/gps/etc/flp.conf index dae3b82..752ea47 100644 --- a/gps/etc/flp.conf +++ b/gps/etc/flp.conf @@ -12,7 +12,7 @@ # of batched locations that can be allocated, # which is limited by memory. The default # batch size defined as 20 as below. -BATCH_SIZE=20 +BATCH_SIZE=40 # The number of batched locations # requested to modem for outdoor diff --git a/gps/etc/gps.conf b/gps/etc/gps.conf index d97df86..9a648df 100644 --- a/gps/etc/gps.conf +++ b/gps/etc/gps.conf @@ -1,5 +1,4 @@ -#Uncommenting these urls would only enable -#the power up auto injection and force injection(test case). +#URLs from which to download XTRA data XTRA_SERVER_1=https://xtrapath1.izatcloud.net/xtra3grc.bin XTRA_SERVER_2=https://xtrapath2.izatcloud.net/xtra3grc.bin XTRA_SERVER_3=https://xtrapath3.izatcloud.net/xtra3grc.bin @@ -9,7 +8,7 @@ XTRA_SERVER_3=https://xtrapath3.izatcloud.net/xtra3grc.bin #AUTO = 1 #XTRA2 = 2 #XTRA3 = 3 -XTRA_VERSION_CHECK=0 +XTRA_VERSION_CHECK=1 # Error Estimate # _SET = 1 @@ -35,10 +34,10 @@ INTERMEDIATE_POS=0 # Set bit 0x1 if MO GPS functionalities are to be locked # Set bit 0x2 if NI GPS functionalities are to be locked # default - non is locked for backward compatibility -GPS_LOCK = 3 +#GPS_LOCK = 0 -# supl version 2.0 -SUPL_VER=0x20000 +# supl version 1.0 +SUPL_VER=0x10000 # Emergency SUPL, 1=enable, 0=disable #SUPL_ES=0 @@ -53,7 +52,7 @@ SUPL_VER=0x20000 #config.xml. #MSA=0X2 #MSB=0X1 -SUPL_MODE=1 +#SUPL_MODE= # GPS Capabilities bit mask # SCHEDULING = 0x01 @@ -73,8 +72,8 @@ CAPABILITIES=0x37 ################################ # FOR SUPL SUPPORT, set the following -SUPL_HOST=supl.google.com -SUPL_PORT=7275 +# SUPL_HOST=supl.host.com or IP +# SUPL_PORT=1234 # FOR C2K PDE SUPPORT, set the following # C2K_HOST=c2k.pde.com or IP @@ -153,7 +152,6 @@ AGPS_CONFIG_INJECT = 1 # please do not change, keep the default values ################################################## -################################################## # AP Coarse Timestamp Uncertainty ################################################## # default : 10 @@ -168,7 +166,7 @@ AP_TIMESTAMP_UNCERTAINTY = 10 # 1 : QDR enabled # This settings enables QDR Configuration for # automotive use case, if enabled then -# DR_AP_Service needs to be enabled in izat.con +# DR_AP_Service needs to be enabled in izat.conf #EXTERNAL_DR_ENABLED = 0 ##################################### diff --git a/gps/etc/izat.conf b/gps/etc/izat.conf index a697739..2c4b2d0 100644 --- a/gps/etc/izat.conf +++ b/gps/etc/izat.conf @@ -37,7 +37,7 @@ LPPE_SRN_DATA_SCAN_INJECT_TIME=2 # without EULA consent, but the uncertainty can be high. # QNP preferred mode prefers QNP when there is EULA consent, # otherwise OSNLP is used. -NLP_MODE = 1 +NLP_MODE = 4 NLP_MODE_EMERGENCY = 2 NLP_TOLERANCE_TIME_FIRST = 5000 NLP_TOLERANCE_TIME_AFTER = 20000 @@ -54,11 +54,18 @@ OSNLP_ACTION = com.android.location.service.v3.NetworkLocationProvider # REGION_OSNLP_PACKAGE/REGION_OSNLP_ACTION: # These two values will be used as alternative # for particular region where default NLP is not functional. +# liubin modified begin, 2016.10.18, use AMap NLP as default NLP in China +REGION_OSNLP_PACKAGE = com.amap.android.location +REGION_OSNLP_ACTION = com.android.location.service.v3.NetworkLocationProvider +# liubin modified end #REGION_OSNLP_PACKAGE = com.baidu.map.location #REGION_OSNLP_ACTION = com.android.location.service.v3.NetworkLocationProvider # Threshold period for ZPP triggers ZPP_TRIGGER_THRESHOLD=60000 +# Accuracy threshold for ZPP positions +# less accurate positions are ignored +ZPP_ACCURACY_THRESHOLD=20000 ################################### # GEOFENCE SERVICES @@ -102,11 +109,13 @@ GTP_CELL_PROC=MODEM #GTP_CELL valid modes: # DISABLED # BASIC +# liubin modified 2016.06.23, Disable GTP_CELL by setting GTP_CELL from BASIC to DISABLED GTP_CELL=DISABLED #GTP_WIFI valid modes: # DISABLED # BASIC +# liubin modified 2016.06.23, Disable GTP_WIFI by setting GTP_WIFI from BASIC to DISABLED GTP_WIFI=DISABLED #GTP_WAA valid modes: @@ -118,7 +127,8 @@ GTP_WAA=DISABLED # DISABLED # BASIC # PREMIUM -SAP=BASIC +# liubin modified 2016.06.23, Disable SAP by setting SAP from BASIC to DISABLED +SAP=DISABLED #ODCPI valid modes: #DISABLED @@ -178,7 +188,7 @@ WIFI_SUPPLICANT_INFO=BASIC PROCESS_NAME=DR_AP_Service PROCESS_ARGUMENT= PROCESS_STATE=DISABLED -PROCESS_GROUPS=gps diag +PROCESS_GROUPS=gps oem_2901 PREMIUM_FEATURE=0 IZAT_FEATURE_MASK=0 PLATFORMS=all @@ -191,8 +201,8 @@ HARDWARE_TYPE=automotive #DISABLED -> if this process is to be disabled on lean and mean targets PROCESS_NAME=garden_app PROCESS_ARGUMENT=-l 0 -T 1 -PROCESS_STATE=ENABLED -PROCESS_GROUPS=gps diag +PROCESS_STATE=DISABLED +PROCESS_GROUPS=gps oem_2901 PREMIUM_FEATURE=0 IZAT_FEATURE_MASK=0 PLATFORMS=all @@ -202,7 +212,7 @@ HARDWARE_TYPE=automotive PROCESS_NAME=gpsone_daemon PROCESS_ARGUMENT= -PROCESS_STATE=ENABLED +PROCESS_STATE=DISABLED PROCESS_GROUPS=inet PREMIUM_FEATURE=0 IZAT_FEATURE_MASK=0 @@ -214,7 +224,7 @@ HARDWARE_TYPE=all PROCESS_NAME=lowi-server PROCESS_ARGUMENT= PROCESS_STATE=ENABLED -PROCESS_GROUPS=gps net_admin wifi inet oem_2950 +PROCESS_GROUPS=gps net_admin wifi inet oem_2901 PREMIUM_FEATURE=0 IZAT_FEATURE_MASK=0xf303 PLATFORMS=all @@ -222,9 +232,10 @@ BASEBAND=all LEAN_TARGETS=DISABLED HARDWARE_TYPE=all +# liubin modified 2016.06.23, Disable xtwifi-inet-agent PROCESS_NAME=xtwifi-inet-agent PROCESS_ARGUMENT= -PROCESS_STATE=ENABLED +PROCESS_STATE=DISABLED PROCESS_GROUPS=inet gps PREMIUM_FEATURE=1 IZAT_FEATURE_MASK=0xf0f @@ -233,10 +244,11 @@ BASEBAND=all LEAN_TARGETS=DISABLED HARDWARE_TYPE=all +# liubin modified 2016.06.23, Disable xtwifi-client PROCESS_NAME=xtwifi-client PROCESS_ARGUMENT= -PROCESS_STATE=ENABLED -PROCESS_GROUPS=wifi inet gps oem_2952 system wakelock +PROCESS_STATE=DISABLED +PROCESS_GROUPS=wifi inet gps system oem_2904 PREMIUM_FEATURE=1 IZAT_FEATURE_MASK=0xf0f PLATFORMS=all @@ -244,10 +256,11 @@ BASEBAND=all LEAN_TARGETS=DISABLED HARDWARE_TYPE=all +# liubin modified 2016.06.23, Disable SAP PROCESS_NAME=slim_daemon PROCESS_ARGUMENT= -PROCESS_STATE=ENABLED -PROCESS_GROUPS=gps oem_2950 can +PROCESS_STATE=DISABLED +PROCESS_GROUPS=gps oem_2901 can PREMIUM_FEATURE=1 IZAT_FEATURE_MASK=0xf0 PLATFORMS=all diff --git a/gps/etc/sap.conf b/gps/etc/sap.conf index 1269b0f..eb21f01 100644 --- a/gps/etc/sap.conf +++ b/gps/etc/sap.conf @@ -67,3 +67,4 @@ VN_PROC_CLOCK_RATIO=1.93165618815148 # 3 - CLOCK_REALTIME # 4 - CLOCK_BOOTTIME using Alarm timer interface NDK_PROVIDER_TIME_SOURCE=1 + diff --git a/gps/gnss/Android.mk b/gps/gnss/Android.mk index 4d738bd..048be9c 100644 --- a/gps/gnss/Android.mk +++ b/gps/gnss/Android.mk @@ -1,6 +1,3 @@ -ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),) -ifneq ($(BUILD_TINY_ANDROID),true) - LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) @@ -27,10 +24,6 @@ LOCAL_SRC_FILES += \ LOCAL_CFLAGS += \ -fno-short-enums \ -ifeq ($(TARGET_BUILD_VARIANT),user) - LOCAL_CFLAGS += -DTARGET_BUILD_VARIANT_USER -endif - LOCAL_HEADER_LIBRARIES := \ libgps.utils_headers \ libloc_core_headers \ @@ -39,9 +32,4 @@ LOCAL_HEADER_LIBRARIES := \ LOCAL_CFLAGS += $(GNSS_CFLAGS) -LOCAL_PRELINK_MODULE := false - include $(BUILD_SHARED_LIBRARY) - -endif # not BUILD_TINY_ANDROID -endif # BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE diff --git a/gps/gnss/Makefile.am b/gps/gnss/Makefile.am deleted file mode 100644 index 3afdcd7..0000000 --- a/gps/gnss/Makefile.am +++ /dev/null @@ -1,99 +0,0 @@ -AM_CFLAGS = \ - $(LOCPLA_CFLAGS) \ - $(LOCHAL_CFLAGS) \ - -I./ \ - -I../utils \ - -I../core \ - -I../location \ - -std=c++11 - -libgnss_la_SOURCES = \ - location_gnss.cpp \ - GnssAdapter.cpp \ - Agps.cpp - -if USE_GLIB -libgnss_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@ -libgnss_la_LDFLAGS = -lstdc++ -lpthread @GLIB_LIBS@ -shared -avoid-version -libgnss_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@ -else -libgnss_la_CFLAGS = $(AM_CFLAGS) -libgnss_la_LDFLAGS = -lpthread -shared -version-info 1:0:0 -libgnss_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -endif - -libgnss_la_LIBADD = -lstdc++ $(LOCPLA_LIBS) $(LOCHAL_LIBS) - - -#Create and Install libraries -#lib_LTLIBRARIES = libgnss.la - -#library_includedir = $(pkgincludedir) -#pkgconfigdir = $(libdir)/pkgconfig -#pkgconfig_DATA = location-api.pc -#EXTRA_DIST = $(pkgconfig_DATA) - - -libloc_ds_api_CFLAGS = \ - $(QMIF_CFLAGS) \ - $(QMI_CFLAGS) \ - $(DATA_CFLAGS) \ - $(GPSUTILS_CFLAGS) \ - -I$(WORKSPACE)/qcom-opensource/location/loc_api/ds_api - -libloc_ds_api_la_SOURCES = \ - $(WORKSPACE)/qcom-opensource/location/loc_api/ds_api/ds_client.c - -if USE_GLIB -libloc_ds_api_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(libloc_ds_api_CFLAGS) @GLIB_CFLAGS@ -libloc_ds_api_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0 -libloc_ds_api_la_LDFLAGS += -Wl,--export-dynamic -libloc_ds_api_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(libloc_ds_api_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@ -else -libloc_ds_api_la_CFLAGS = $(AM_CFLAGS) $(libloc_ds_api_CFLAGS) -libloc_ds_api_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread -Wl,--export-dynamic -shared -version-info 1:0:0 -libloc_ds_api_la_LDFLAGS += -Wl,--export-dynamic -libloc_ds_api_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(libloc_ds_api_CFLAGS) -endif - -libloc_ds_api_la_LIBADD = -lstdc++ $(QMIF_LIBS) -lqmiservices -ldsi_netctrl $(GPSUTILS_LIBS) $(LOCPLA_LIBS) - -libloc_api_v02_CFLAGS = \ - $(QMIF_CFLAGS) \ - $(GPSUTILS_CFLAGS) \ - -I$(WORKSPACE)/qcom-opensource/location/loc_api/ds_api \ - -I$(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02 - -libloc_api_v02_la_SOURCES = \ - $(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02/LocApiV02.cpp \ - $(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02/loc_api_v02_log.c \ - $(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02/loc_api_v02_client.c \ - $(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02/loc_api_sync_req.c \ - $(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02/location_service_v02.c - -if USE_GLIB -libloc_api_v02_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(libloc_api_v02_CFLAGS) @GLIB_CFLAGS@ -libloc_api_v02_la_LDFLAGS = -lstdc++ -g -Wl,-z,defs -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0 -libloc_api_v02_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(libloc_api_v02_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@ -else -libloc_api_v02_la_CFLAGS = $(AM_CFLAGS) $(libloc_api_v02_CFLAGS) -libloc_api_v02_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread -shared -version-info 1:0:0 -libloc_api_v02_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(libloc_api_v02_CFLAGS) -endif - -libloc_api_v02_la_CXXFLAGS = -std=c++0x -libloc_api_v02_la_LIBADD = -lstdc++ -lqmi_cci -lqmi_common_so $(QMIF_LIBS) $(GPSUTILS_LIBS) $(LOCPLA_LIBS) ../core/libloc_core.la libloc_ds_api.la - -library_include_HEADERS = \ - $(WORKSPACE)/qcom-opensource/location/loc_api/ds_api/ds_client.h \ - $(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02/location_service_v02.h \ - $(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02/loc_api_v02_log.h \ - $(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02/loc_api_v02_client.h \ - $(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02/loc_api_sync_req.h \ - $(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02/LocApiV02.h \ - $(WORKSPACE)/qcom-opensource/location/loc_api/loc_api_v02/loc_util_log.h - -library_includedir = $(pkgincludedir) - -#Create and Install libraries -lib_LTLIBRARIES = libgnss.la libloc_ds_api.la libloc_api_v02.la diff --git a/gps/gnsspps/Android.mk b/gps/gnsspps/Android.mk index f87b674..fc4714e 100644 --- a/gps/gnsspps/Android.mk +++ b/gps/gnsspps/Android.mk @@ -1,4 +1,3 @@ -ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),) LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) @@ -32,5 +31,3 @@ include $(CLEAR_VARS) LOCAL_MODULE := libgnsspps_headers LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) include $(BUILD_HEADER_LIBRARY) - -endif diff --git a/gps/gnsspps/Makefile.am b/gps/gnsspps/Makefile.am deleted file mode 100644 index 390c1cc..0000000 --- a/gps/gnsspps/Makefile.am +++ /dev/null @@ -1,36 +0,0 @@ -AM_CFLAGS = \ - $(LOCPLA_CFLAGS) \ - $(GPSUTILS_CFLAGS) \ - -I./ - -ACLOCAL_AMFLAGS = -I m4 - -libgnsspps_la_SOURCES = \ - gnsspps.c - -if USE_GLIB -libgnsspps_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@ -libgnsspps_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0 -libgnsspps_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@ -else -libgnsspps_la_CFLAGS = $(AM_CFLAGS) -libgnsspps_la_LDFLAGS = -Wl,-z,defs -lpthread -shared -version-info 1:0:0 -libgnsspps_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -endif - -libgnsspps_la_LIBADD = -lstdc++ $(GPSUTILS_LIBS) - -library_include_HEADERS = \ - gnsspps.h - -#Create and Install libraries -lib_LTLIBRARIES = libgnsspps.la - -library_includedir = $(pkgincludedir) -pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = gnsspps.pc -EXTRA_DIST = $(pkgconfig_DATA) - - - - diff --git a/gps/gnsspps/configure.ac b/gps/gnsspps/configure.ac deleted file mode 100644 index b0ffa77..0000000 --- a/gps/gnsspps/configure.ac +++ /dev/null @@ -1,64 +0,0 @@ -# configure.ac -- Autoconf script for gps lbs-core -# -# Process this file with autoconf to produce a configure script - -# Requires autoconf tool later than 2.61 -AC_PREREQ(2.61) -# Initialize the gps lbs-core package version 1.0.0 -AC_INIT([gnsspps],1.0.0) -# Does not strictly follow GNU Coding standards -AM_INIT_AUTOMAKE([foreign]) -# Disables auto rebuilding of configure, Makefile.ins -AM_MAINTAINER_MODE -# Verifies the --srcdir is correct by checking for the path -AC_CONFIG_SRCDIR([Makefile.am]) -# defines some macros variable to be included by source -AC_CONFIG_HEADERS([config.h]) -AC_CONFIG_MACRO_DIR([m4]) - -# Checks for programs. -AC_PROG_LIBTOOL -AC_PROG_CXX -AC_PROG_CC -AM_PROG_CC_C_O -AC_PROG_AWK -AC_PROG_CPP -AC_PROG_INSTALL -AC_PROG_LN_S -AC_PROG_MAKE_SET -PKG_PROG_PKG_CONFIG - -# Checks for libraries. -PKG_CHECK_MODULES([LOCPLA], [loc-pla]) -AC_SUBST([LOCPLA_CFLAGS]) -AC_SUBST([LOCPLA_LIBS]) - -PKG_CHECK_MODULES([GPSUTILS], [gps-utils]) -AC_SUBST([GPSUTILS_CFLAGS]) -AC_SUBST([GPSUTILS_LIBS]) - -AC_ARG_WITH([glib], - AC_HELP_STRING([--with-glib], - [enable glib, building HLOS systems which use glib])) - -if (test "x${with_glib}" = "xyes"); then - AC_DEFINE(ENABLE_USEGLIB, 1, [Define if HLOS systems uses glib]) - PKG_CHECK_MODULES(GTHREAD, gthread-2.0 >= 2.16, dummy=yes, - AC_MSG_ERROR(GThread >= 2.16 is required)) - PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.16, dummy=yes, - AC_MSG_ERROR(GLib >= 2.16 is required)) - GLIB_CFLAGS="$GLIB_CFLAGS $GTHREAD_CFLAGS" - GLIB_LIBS="$GLIB_LIBS $GTHREAD_LIBS" - - AC_SUBST(GLIB_CFLAGS) - AC_SUBST(GLIB_LIBS) -fi - -AM_CONDITIONAL(USE_GLIB, test "x${with_glib}" = "xyes") - -AC_CONFIG_FILES([ \ - Makefile \ - gnsspps.pc - ]) - -AC_OUTPUT diff --git a/gps/gnsspps/gnsspps.pc.in b/gps/gnsspps/gnsspps.pc.in deleted file mode 100644 index 604eedd..0000000 --- a/gps/gnsspps/gnsspps.pc.in +++ /dev/null @@ -1,10 +0,0 @@ -prefix=@prefix@ -exec_prefix=@exec_prefix@ -libdir=@libdir@ -includedir=@includedir@ - -Name: gnsspps -Description: QTI GPS drplugin-client -Version: @VERSION -Libs: -L${libdir} -lgnsspps -Cflags: -I${includedir}/gnsspps diff --git a/gps/loc-hal.pc.in b/gps/loc-hal.pc.in deleted file mode 100644 index 64750db..0000000 --- a/gps/loc-hal.pc.in +++ /dev/null @@ -1,10 +0,0 @@ -prefix=@prefix@ -exec_prefix=@exec_prefix@ -libdir=@libdir@ -includedir=@includedir@ - -Name: loc-hal -Description: QTI GPS Loc HAL -Version: @VERSION -Libs: -L${libdir} -lloc_core -llocation_api -lgnss -lloc_ds_api -lloc_api_v02 -Cflags: -I${includedir} -I${includedir}/loc-hal -I${includedir}/loc-hal/location -I${includedir}/loc-hal/gnss -I${includedir}/loc-hal/core diff --git a/gps/location/Android.mk b/gps/location/Android.mk index 6ac8e36..cd620ce 100644 --- a/gps/location/Android.mk +++ b/gps/location/Android.mk @@ -1,6 +1,3 @@ -ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),) -ifneq ($(BUILD_TINY_ANDROID),true) - LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) @@ -28,8 +25,6 @@ LOCAL_HEADER_LIBRARIES := \ libloc_pla_headers \ libgps.utils_headers -LOCAL_PRELINK_MODULE := false - LOCAL_CFLAGS += $(GNSS_CFLAGS) include $(BUILD_SHARED_LIBRARY) @@ -37,6 +32,3 @@ include $(CLEAR_VARS) LOCAL_MODULE := liblocation_api_headers LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) include $(BUILD_HEADER_LIBRARY) - -endif # not BUILD_TINY_ANDROID -endif # BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE diff --git a/gps/location/Makefile.am b/gps/location/Makefile.am deleted file mode 100644 index d1d0131..0000000 --- a/gps/location/Makefile.am +++ /dev/null @@ -1,40 +0,0 @@ -AM_CFLAGS = \ - $(LOCPLA_CFLAGS) \ - $(GPSUTILS_CFLAGS) \ - $(LOCHAL_CFLAGS) \ - -I./ \ - -I../utils \ - -std=c++11 - -liblocation_api_la_SOURCES = \ - LocationAPI.cpp \ - LocationAPIClientBase.cpp - -if USE_GLIB -liblocation_api_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@ -liblocation_api_la_LDFLAGS = -lstdc++ -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0 -liblocation_api_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@ -else -liblocation_api_la_CFLAGS = $(AM_CFLAGS) -liblocation_api_la_LDFLAGS = -lpthread -shared -version-info 1:0:0 -liblocation_api_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -endif - -liblocation_api_la_LIBADD = -lstdc++ $(LOCPLA_LIBS) $(GPSUTILS_LIBS) $(LOCHAL_LIBS) - -library_include_HEADERS = \ - LocationAPI.h \ - LocationAPIClientBase.h \ - location_interface.h - -#Create and Install libraries -lib_LTLIBRARIES = liblocation_api.la - -library_includedir = $(pkgincludedir) -#pkgconfigdir = $(libdir)/pkgconfig -#pkgconfig_DATA = location-api.pc -#EXTRA_DIST = $(pkgconfig_DATA) - - - - diff --git a/gps/utils/Android.mk b/gps/utils/Android.mk index 3f3b83a..5f2b6c0 100644 --- a/gps/utils/Android.mk +++ b/gps/utils/Android.mk @@ -1,12 +1,7 @@ -ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),) -ifneq ($(BUILD_TINY_ANDROID),true) -#Compile this library only for builds with the latest modem image - LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) - ## Libs LOCAL_SHARED_LIBRARIES := \ libutils \ @@ -49,8 +44,6 @@ LOCAL_MODULE_PATH_32 := $(TARGET_OUT_VENDOR)/lib LOCAL_MODULE_PATH_64 := $(TARGET_OUT_VENDOR)/lib64 LOCAL_MODULE_TAGS := optional -LOCAL_PRELINK_MODULE := false - LOCAL_CFLAGS += $(GNSS_CFLAGS) include $(BUILD_SHARED_LIBRARY) @@ -60,6 +53,4 @@ LOCAL_MODULE := libgps.utils_headers LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) include $(BUILD_HEADER_LIBRARY) -include $(addsuffix /Android.mk, $(addprefix $(LOCAL_PATH)/, platform_lib_abstractions)) -endif # not BUILD_TINY_ANDROID -endif # BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE +include $(call all-makefiles-under,$(LOCAL_PATH)) diff --git a/gps/utils/Makefile.am b/gps/utils/Makefile.am deleted file mode 100644 index 33a87da..0000000 --- a/gps/utils/Makefile.am +++ /dev/null @@ -1,64 +0,0 @@ -AM_CFLAGS = -Wundef \ - -I./ \ - -std=c++11 \ - $(LOCPLA_CFLAGS) - -AM_CPPFLAGS = -Wundef \ - -I./ \ - -std=c++11 \ - $(LOCPLA_CFLAGS) - -libgps_utils_so_la_h_sources = \ - msg_q.h \ - linked_list.h \ - loc_cfg.h \ - loc_log.h \ - loc_target.h \ - loc_timer.h \ - MsgTask.h \ - LocHeap.h \ - LocThread.h \ - LocTimer.h \ - loc_misc_utils.h \ - loc_nmea.h \ - gps_extended_c.h \ - gps_extended.h \ - loc_gps.h - -libgps_utils_so_la_c_sources = \ - linked_list.c \ - msg_q.c \ - loc_cfg.cpp \ - loc_log.cpp \ - loc_target.cpp \ - LocHeap.cpp \ - LocTimer.cpp \ - LocThread.cpp \ - MsgTask.cpp \ - loc_misc_utils.cpp \ - loc_nmea.cpp - - -library_include_HEADERS = $(libgps_utils_so_la_h_sources) - -libgps_utils_so_la_SOURCES = $(libgps_utils_so_la_c_sources) - -if USE_GLIB -libgps_utils_so_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@ -libgps_utils_so_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0 -libgps_utils_so_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@ -else -libgps_utils_so_la_CFLAGS = $(AM_CFLAGS) -libgps_utils_so_la_LDFLAGS = -Wl,-z,defs -lpthread -shared -version-info 1:0:0 -libgps_utils_so_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -endif - -libgps_utils_so_la_LIBADD = -lcutils -lstdc++ -llog $(LOCPLA_LIBS) - -#Create and Install libraries -lib_LTLIBRARIES = libgps_utils_so.la -library_includedir = $(pkgincludedir) -pkgconfigdir = $(libdir)/pkgconfig - -pkgconfig_DATA = gps-utils.pc -EXTRA_DIST = $(pkgconfig_DATA) diff --git a/gps/utils/configure.ac b/gps/utils/configure.ac deleted file mode 100644 index a7ab9b4..0000000 --- a/gps/utils/configure.ac +++ /dev/null @@ -1,59 +0,0 @@ -# configure.ac -- Autoconf script for gps gps-utils -# -# Process this file with autoconf to produce a configure script - -# Requires autoconf tool later than 2.61 -AC_PREREQ(2.61) -# Initialize the gps gps-utils package version 1.0.0 -AC_INIT([gps-utils],1.0.0) -# Does not strictly follow GNU Coding standards -AM_INIT_AUTOMAKE([foreign]) -# Disables auto rebuilding of configure, Makefile.ins -AM_MAINTAINER_MODE -# Verifies the --srcdir is correct by checking for the path -AC_CONFIG_SRCDIR([Makefile.am]) -# defines some macros variable to be included by source -AC_CONFIG_HEADERS([config.h]) -AC_CONFIG_MACRO_DIR([m4]) - -# Checks for programs. -AC_PROG_LIBTOOL -AC_PROG_CXX -AC_PROG_CC -AM_PROG_CC_C_O -AC_PROG_AWK -AC_PROG_CPP -AC_PROG_INSTALL -AC_PROG_LN_S -AC_PROG_MAKE_SET -PKG_PROG_PKG_CONFIG - -PKG_CHECK_MODULES([LOCPLA], [loc-pla]) -AC_SUBST([LOCPLA_CFLAGS]) -AC_SUBST([LOCPLA_LIBS]) - -AC_ARG_WITH([glib], - AC_HELP_STRING([--with-glib], - [enable glib, building HLOS systems which use glib])) - -if (test "x${with_glib}" = "xyes"); then - AC_DEFINE(ENABLE_USEGLIB, 1, [Define if HLOS systems uses glib]) - PKG_CHECK_MODULES(GTHREAD, gthread-2.0 >= 2.16, dummy=yes, - AC_MSG_ERROR(GThread >= 2.16 is required)) - PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.16, dummy=yes, - AC_MSG_ERROR(GLib >= 2.16 is required)) - GLIB_CFLAGS="$GLIB_CFLAGS $GTHREAD_CFLAGS" - GLIB_LIBS="$GLIB_LIBS $GTHREAD_LIBS" - - AC_SUBST(GLIB_CFLAGS) - AC_SUBST(GLIB_LIBS) -fi - -AM_CONDITIONAL(USE_GLIB, test "x${with_glib}" = "xyes") - -AC_CONFIG_FILES([ \ - Makefile \ - gps-utils.pc - ]) - -AC_OUTPUT diff --git a/gps/utils/gps-utils.pc.in b/gps/utils/gps-utils.pc.in deleted file mode 100644 index 3ed3d90..0000000 --- a/gps/utils/gps-utils.pc.in +++ /dev/null @@ -1,10 +0,0 @@ -prefix=@prefix@ -exec_prefix=@exec_prefix@ -libdir=@libdir@ -includedir=@includedir@ - -Name: gps-utils -Description: QTI GPS Location utils -Version: @VERSION -Libs: -L${libdir} -lgps_utils_so -Cflags: -I${includedir}/gps-utils diff --git a/gps/utils/platform_lib_abstractions/Android.mk b/gps/utils/platform_lib_abstractions/Android.mk index b923a4c..5053e7d 100644 --- a/gps/utils/platform_lib_abstractions/Android.mk +++ b/gps/utils/platform_lib_abstractions/Android.mk @@ -1,5 +1 @@ -ifneq ($(BUILD_TINY_ANDROID),true) - include $(call all-subdir-makefiles) - -endif diff --git a/gps/utils/platform_lib_abstractions/loc_pla/Android.mk b/gps/utils/platform_lib_abstractions/loc_pla/Android.mk index b923a4c..5053e7d 100644 --- a/gps/utils/platform_lib_abstractions/loc_pla/Android.mk +++ b/gps/utils/platform_lib_abstractions/loc_pla/Android.mk @@ -1,5 +1 @@ -ifneq ($(BUILD_TINY_ANDROID),true) - include $(call all-subdir-makefiles) - -endif diff --git a/gps/utils/platform_lib_abstractions/loc_pla/Makefile.am b/gps/utils/platform_lib_abstractions/loc_pla/Makefile.am deleted file mode 100644 index 8996763..0000000 --- a/gps/utils/platform_lib_abstractions/loc_pla/Makefile.am +++ /dev/null @@ -1,10 +0,0 @@ -# Makefile.am for gps loc-pla -# - -ACLOCAL_AMFLAGS = -I m4 - -SUBDIRS = src - -pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = loc-pla.pc -EXTRA_DIST = $(pkgconfig_DATA) diff --git a/gps/utils/platform_lib_abstractions/loc_pla/configure.ac b/gps/utils/platform_lib_abstractions/loc_pla/configure.ac deleted file mode 100644 index a8b892b..0000000 --- a/gps/utils/platform_lib_abstractions/loc_pla/configure.ac +++ /dev/null @@ -1,61 +0,0 @@ -# configure.ac -- Autoconf script for gps loc-pla -# -# Process this file with autoconf to produce a configure script - -# Requires autoconf tool later than 2.61 -AC_PREREQ(2.61) -# Initialize the gps loc-pla package version 1.0.0 -AC_INIT([loc-pla],1.0.0) -# Does not strictly follow GNU Coding standards -AM_INIT_AUTOMAKE([foreign]) -# Disables auto rebuilding of configure, Makefile.ins -AM_MAINTAINER_MODE -# Verifies the --srcdir is correct by checking for the path -AC_CONFIG_SRCDIR([include/platform_lib_includes.h]) -# defines some macros variable to be included by source -AC_CONFIG_HEADERS([config.h]) -AC_CONFIG_MACRO_DIR([m4]) - -# Checks for programs. -AC_PROG_LIBTOOL -AC_PROG_CXX -AC_PROG_CC -AM_PROG_CC_C_O -AC_PROG_AWK -AC_PROG_CPP -AC_PROG_INSTALL -AC_PROG_LN_S -AC_PROG_MAKE_SET -PKG_PROG_PKG_CONFIG - -# Checks for libraries. -PKG_CHECK_MODULES([LOCSTUB], [loc-stub]) -AC_SUBST([LOCSTUB_CFLAGS]) -AC_SUBST([LOCSTUB_LIBS]) - -AC_ARG_WITH([glib], - AC_HELP_STRING([--with-glib], - [enable glib, building HLOS systems which use glib])) - -if (test "x${with_glib}" = "xyes"); then - AC_DEFINE(ENABLE_USEGLIB, 1, [Define if HLOS systems uses glib]) - PKG_CHECK_MODULES(GTHREAD, gthread-2.0 >= 2.16, dummy=yes, - AC_MSG_ERROR(GThread >= 2.16 is required)) - PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.16, dummy=yes, - AC_MSG_ERROR(GLib >= 2.16 is required)) - GLIB_CFLAGS="$GLIB_CFLAGS $GTHREAD_CFLAGS" - GLIB_LIBS="$GLIB_LIBS $GTHREAD_LIBS" - - AC_SUBST(GLIB_CFLAGS) - AC_SUBST(GLIB_LIBS) -fi - -AM_CONDITIONAL(USE_GLIB, test "x${with_glib}" = "xyes") - -AC_CONFIG_FILES([ \ - Makefile \ - src/Makefile \ - loc-pla.pc \ - ]) - -AC_OUTPUT diff --git a/gps/utils/platform_lib_abstractions/loc_pla/loc-pla.pc.in b/gps/utils/platform_lib_abstractions/loc_pla/loc-pla.pc.in deleted file mode 100644 index 1aad2f4..0000000 --- a/gps/utils/platform_lib_abstractions/loc_pla/loc-pla.pc.in +++ /dev/null @@ -1,10 +0,0 @@ -prefix=@prefix@ -exec_prefix=@exec_prefix@ -libdir=@libdir@ -includedir=@includedir@ - -Name: loc-pla -Description: QTI GPS Location Platform Library Abstractions -Version: @VERSION@ -Libs: -L${libdir} -lloc_pla -Cflags: -I${includedir}/loc-pla diff --git a/gps/utils/platform_lib_abstractions/loc_pla/src/Android.mk b/gps/utils/platform_lib_abstractions/loc_pla/src/Android.mk index ab13717..d7aea94 100644 --- a/gps/utils/platform_lib_abstractions/loc_pla/src/Android.mk +++ b/gps/utils/platform_lib_abstractions/loc_pla/src/Android.mk @@ -16,10 +16,6 @@ GNSS_CFLAGS := \ -Wno-error=switch \ -Wno-error=date-time -ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),) -ifneq ($(BUILD_TINY_ANDROID),true) -#Compile this library only for builds with the latest modem image - LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) @@ -55,7 +51,6 @@ LOCAL_MODULE_PATH_32 := $(TARGET_OUT_VENDOR)/lib LOCAL_MODULE_PATH_64 := $(TARGET_OUT_VENDOR)/lib64 LOCAL_MODULE_TAGS := optional -LOCAL_PRELINK_MODULE := false LOCAL_CFLAGS += $(GNSS_CFLAGS) include $(BUILD_SHARED_LIBRARY) @@ -63,6 +58,3 @@ include $(CLEAR_VARS) LOCAL_MODULE := libloc_pla_headers LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/../include include $(BUILD_HEADER_LIBRARY) - -endif # not BUILD_TINY_ANDROID -endif # BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE diff --git a/gps/utils/platform_lib_abstractions/loc_pla/src/Makefile.am b/gps/utils/platform_lib_abstractions/loc_pla/src/Makefile.am deleted file mode 100644 index 30c4b4c..0000000 --- a/gps/utils/platform_lib_abstractions/loc_pla/src/Makefile.am +++ /dev/null @@ -1,39 +0,0 @@ -AM_CFLAGS = \ - $(LOCSTUB_CFLAGS) \ - -I../include \ - -D__func__=__PRETTY_FUNCTION__ \ - -fno-short-enums - -h_sources = \ - ../include/platform_lib_gettid.h \ - ../include/platform_lib_includes.h \ - ../include/platform_lib_log_util.h \ - ../include/platform_lib_macros.h \ - ../include/platform_lib_property_service.h \ - ../include/platform_lib_sched_policy.h \ - ../include/platform_lib_time.h - -library_includedir = $(pkgincludedir) -library_include_HEADERS = $(h_sources) - -libloc_pla_la_SOURCES = \ - platform_lib_gettid.cpp \ - platform_lib_log_util.cpp \ - platform_lib_property_service.cpp \ - platform_lib_sched_policy.cpp \ - platform_lib_time.cpp - -if USE_GLIB -libloc_pla_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@ -libloc_pla_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0 -libloc_pla_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@ -else -libloc_pla_la_CFLAGS = $(AM_CFLAGS) -libloc_pla_la_LDFLAGS = -Wl,-z,defs -lpthread -shared -version-info 1:0:0 -libloc_pla_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -endif - -libloc_pla_la_LIBADD = -lstdc++ -ldl -llog $(LOCSTUB_LIBS) - -#Create and Install libraries -lib_LTLIBRARIES = libloc_pla.la diff --git a/gps/utils/platform_lib_abstractions/loc_stub/Android.mk b/gps/utils/platform_lib_abstractions/loc_stub/Android.mk index b923a4c..5053e7d 100644 --- a/gps/utils/platform_lib_abstractions/loc_stub/Android.mk +++ b/gps/utils/platform_lib_abstractions/loc_stub/Android.mk @@ -1,5 +1 @@ -ifneq ($(BUILD_TINY_ANDROID),true) - include $(call all-subdir-makefiles) - -endif diff --git a/gps/utils/platform_lib_abstractions/loc_stub/Makefile.am b/gps/utils/platform_lib_abstractions/loc_stub/Makefile.am deleted file mode 100644 index d81e363..0000000 --- a/gps/utils/platform_lib_abstractions/loc_stub/Makefile.am +++ /dev/null @@ -1,9 +0,0 @@ -# Makefile.am for gps loc-stub - -ACLOCAL_AMFLAGS = -I m4 - -SUBDIRS = src - -pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = loc-stub.pc -EXTRA_DIST = $(pkgconfig_DATA) diff --git a/gps/utils/platform_lib_abstractions/loc_stub/configure.ac b/gps/utils/platform_lib_abstractions/loc_stub/configure.ac deleted file mode 100644 index 8900f04..0000000 --- a/gps/utils/platform_lib_abstractions/loc_stub/configure.ac +++ /dev/null @@ -1,67 +0,0 @@ -# configure.ac -- Autoconf script for gps loc-stub -# -# Process this file with autoconf to produce a configure script - -# Requires autoconf tool later than 2.61 -AC_PREREQ(2.61) -# Initialize the gps loc-stub package version 1.0.0 -AC_INIT([loc-stub],1.0.0) -# Does not strictly follow GNU Coding standards -AM_INIT_AUTOMAKE([foreign]) -# Disables auto rebuilding of configure, Makefile.ins -AM_MAINTAINER_MODE -# Verifies the --srcdir is correct by checking for the path -AC_CONFIG_SRCDIR([Makefile.am]) -# defines some macros variable to be included by source -AC_CONFIG_HEADERS([config.h]) -AC_CONFIG_MACRO_DIR([m4]) - -# Checks for programs. -AC_PROG_LIBTOOL -AC_PROG_CXX -AC_PROG_CC -AM_PROG_CC_C_O -AC_PROG_AWK -AC_PROG_CPP -AC_PROG_INSTALL -AC_PROG_LN_S -AC_PROG_MAKE_SET -PKG_PROG_PKG_CONFIG - -# Checks for libraries. -AC_ARG_WITH([hardware_include], - AC_HELP_STRING([--with-hardware-include=@<:@dir@:>@], - [Specify the location of the hardware headers]), - [hardware_incdir=$withval], - with_hardware_include=no) - -if test "x$with_hardware_include" != "xno"; then - CPPFLAGS="${CPPFLAGS} -I${hardware_incdir}" -fi - -AC_ARG_WITH([glib], - AC_HELP_STRING([--with-glib], - [enable glib, building HLOS systems which use glib])) - -if (test "x${with_glib}" = "xyes"); then - AC_DEFINE(ENABLE_USEGLIB, 1, [Define if HLOS systems uses glib]) - PKG_CHECK_MODULES(GTHREAD, gthread-2.0 >= 2.16, dummy=yes, - AC_MSG_ERROR(GThread >= 2.16 is required)) - PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.16, dummy=yes, - AC_MSG_ERROR(GLib >= 2.16 is required)) - GLIB_CFLAGS="$GLIB_CFLAGS $GTHREAD_CFLAGS" - GLIB_LIBS="$GLIB_LIBS $GTHREAD_LIBS" - - AC_SUBST(GLIB_CFLAGS) - AC_SUBST(GLIB_LIBS) -fi - -AM_CONDITIONAL(USE_GLIB, test "x${with_glib}" = "xyes") - -AC_CONFIG_FILES([ \ - Makefile \ - src/Makefile \ - loc-stub.pc - ]) - -AC_OUTPUT diff --git a/gps/utils/platform_lib_abstractions/loc_stub/loc-stub.pc.in b/gps/utils/platform_lib_abstractions/loc_stub/loc-stub.pc.in deleted file mode 100644 index c2ae764..0000000 --- a/gps/utils/platform_lib_abstractions/loc_stub/loc-stub.pc.in +++ /dev/null @@ -1,10 +0,0 @@ -prefix=@prefix@ -exec_prefix=@exec_prefix@ -libdir=@libdir@ -includedir=@includedir@ - -Name: loc-stub -Description: QTI GPS Location Stub -Version: @VERSION -Libs: -L${libdir} -lloc_stub -Cflags: -I${includedir}/loc-stub diff --git a/gps/utils/platform_lib_abstractions/loc_stub/src/Android.mk b/gps/utils/platform_lib_abstractions/loc_stub/src/Android.mk index 08697cb..bdfbe43 100644 --- a/gps/utils/platform_lib_abstractions/loc_stub/src/Android.mk +++ b/gps/utils/platform_lib_abstractions/loc_stub/src/Android.mk @@ -1,7 +1,3 @@ -ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),) -ifneq ($(BUILD_TINY_ANDROID),true) -#Compile this library only for builds with the latest modem image - LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) @@ -24,7 +20,6 @@ LOCAL_CFLAGS += \ -D_ANDROID_ \ -std=c++11 - LOCAL_LDFLAGS += -Wl,--export-dynamic ## Includes @@ -36,7 +31,6 @@ LOCAL_MODULE_PATH_32 := $(TARGET_OUT_VENDOR)/lib LOCAL_MODULE_PATH_64 := $(TARGET_OUT_VENDOR)/lib64 LOCAL_MODULE_TAGS := optional -LOCAL_PRELINK_MODULE := false LOCAL_CFLAGS += $(GNSS_CFLAGS) include $(BUILD_SHARED_LIBRARY) @@ -44,6 +38,3 @@ include $(CLEAR_VARS) LOCAL_MODULE := libloc_stub_headers LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/../include include $(BUILD_HEADER_LIBRARY) - -endif # not BUILD_TINY_ANDROID -endif # BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE diff --git a/gps/utils/platform_lib_abstractions/loc_stub/src/Makefile.am b/gps/utils/platform_lib_abstractions/loc_stub/src/Makefile.am deleted file mode 100644 index ba823a2..0000000 --- a/gps/utils/platform_lib_abstractions/loc_stub/src/Makefile.am +++ /dev/null @@ -1,40 +0,0 @@ -AM_CFLAGS = \ - -I../include \ - -D__func__=__PRETTY_FUNCTION__ \ - -fno-short-enums - -libloc_stub_la_extra_h = \ - ../include/utils/Log.h - -libloc_stub_la_c_sources = \ - loc_stub_android_runtime.cpp \ - loc_stub_gettid.cpp \ - loc_stub_property_service.cpp \ - loc_stub_sched_policy.cpp \ - loc_stub_time.cpp - -libloc_stub_la_SOURCES = $(libloc_stub_la_c_sources) $(libloc_stub_la_extra_h) - -library_include_HEADERS = \ - ../include/loc_stub_android_runtime.h \ - ../include/loc_stub_gettid.h \ - ../include/loc_stub_property_service.h \ - ../include/loc_stub_sched_policy.h \ - ../include/loc_stub_time.h - -library_includedir = $(pkgincludedir) - -if USE_GLIB -libloc_stub_la_CFLAGS = -DUSE_GLIB $(AM_CFLAGS) @GLIB_CFLAGS@ -libloc_stub_la_LDFLAGS = -lstdc++ -Wl,-z,defs -lpthread @GLIB_LIBS@ -shared -version-info 1:0:0 -libloc_stub_la_CPPFLAGS = -DUSE_GLIB $(AM_CFLAGS) $(AM_CPPFLAGS) @GLIB_CFLAGS@ -else -libloc_stub_la_CFLAGS = $(AM_CFLAGS) -libloc_stub_la_LDFLAGS = -Wl,-z,defs -lpthread -shared -version-info 1:0:0 -libloc_stub_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -endif - -libloc_stub_la_LIBADD = -lstdc++ -ldl -llog - -#Create and Install libraries -lib_LTLIBRARIES = libloc_stub.la diff --git a/product/qcom-gps.mk b/product/qcom-gps.mk index 49acd38..6d41ea7 100644 --- a/product/qcom-gps.mk +++ b/product/qcom-gps.mk @@ -1,12 +1,12 @@ # GPS PRODUCT_PACKAGES += \ android.hardware.gnss@1.0-impl-qti \ + android.hardware.gnss@1.0-service-qti \ libcurl \ libgnss \ libgnsspps PRODUCT_COPY_FILES += \ - $(VENDOR_PATH)/gps/etc/apdr.conf:$(TARGET_COPY_OUT_VENDOR)/etc/apdr.conf \ $(VENDOR_PATH)/gps/etc/flp.conf:$(TARGET_COPY_OUT_VENDOR)/etc/flp.conf \ $(VENDOR_PATH)/gps/etc/gps.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gps.conf \ $(VENDOR_PATH)/gps/etc/izat.conf:$(TARGET_COPY_OUT_VENDOR)/etc/izat.conf \ diff --git a/proprietary-files-qc.txt b/proprietary-files-qc.txt index 4454453..bf505fb 100644 --- a/proprietary-files-qc.txt +++ b/proprietary-files-qc.txt @@ -140,48 +140,31 @@ vendor/lib64/libssd.so vendor/lib/hw/gatekeeper.msm8953.so:vendor/lib/hw/gatekeeper.msm8937.so vendor/lib64/hw/gatekeeper.msm8953.so:vendor/lib64/hw/gatekeeper.msm8937.so -# GPS - from bardock-pro - OPM1.171019.011 -etc/permissions/com.qti.location.sdk.xml|cb68a566bd77dcc75bb7547199d528289fac01cb -etc/permissions/com.qualcomm.location.xml|e837966b6a1a63430ac7ff648e84b0312cd3a46b -etc/permissions/izat.xt.srv.xml|a0f460056f27b5495a4d6e959eecf0e429c42a57 -framework/com.qti.location.sdk.jar|f2e9f1d49201e1bad83008445fdafe9541e9b2bd -framework/izat.xt.srv.jar|e10f1baf6ae0f70c4a529e5711559cebbc3644c9 -lib64/liblocationservice_jni.so|84fddd9ace2be661d26cad1864281c386b709cb2 -lib64/libxt_native.so|900aa51d3d2f731b906a321e25c259fbab656f1c -lib64/vendor.qti.gnss@1.0.so|716a812a9f4cdb45c57eb0a6fabb17624a91d553 --priv-app/com.qualcomm.location/com.qualcomm.location.apk|397314f080f553489440c63da44d01f482e6b761 -vendor/bin/hw/vendor.qti.gnss@1.0-service|bdf23fe2af07c2afb74721023431446104fd828d -vendor/bin/loc_launcher|0675f4524d2c9e94f7e978b5e00734c0835ddf15 -vendor/bin/lowi-server|4aa6f305f31ff36fdddc7e3beeb29cf0bf1a9d54 -vendor/bin/slim_daemon|ac7b90dcc27ef1d1fdd6a1c98bc495f90d19ecf4 -vendor/bin/xtra-daemon|8dac3ae4b8d1be18b40763861f9440b6278ff902 -vendor/etc/cacert_location.pem|0789bf799c7e45d352a83e2f79ddb0cea86db85b -vendor/etc/init/vendor.qti.gnss@1.0-service.rc|98655e2adc2158a052b0ecf06b065535f0a2aac7 -vendor/etc/xtra_root_cert.pem|f55a31ec4d9cf8ce2724acadecf00c779f8767db -vendor/lib64/hw/vendor.qti.gnss@1.0-impl.so|3a66e268286ebfad3f1e35f54b041d6b3d2ed191 -vendor/lib64/libalarmservice_jni.so|2791b868e4f145e05d3405b99e40692e87d0a3c6 -vendor/lib64/libdataitems.so|e175d6254907cde80b1352da2874d88c3607d77f -vendor/lib64/libdrplugin_client.so|bcd1266f5775888824a925c65020cac65b4124df -vendor/lib64/libDRPlugin.so|21256ab36eb1ae0a9b32eee03a6af162d1920fc8 -vendor/lib64/libevent_observer.so|c163884372303f68e1fc073cf42d30959ef771c6 -vendor/lib64/libflp.so|22f9cfcbd1c89db91b3e9cece2f670c282eacc1b -vendor/lib64/libgdtap.so|efc9752ac1f829bd28d4575370c3bf649fb9c691 -vendor/lib64/libgeofence.so|a92df9ea383d7bad2d0283c9d160d6b26f30fdbb -vendor/lib64/libizat_client_api.so|896931c51c7fa8a9f626c971361679823e635d77 -vendor/lib64/libizat_core.so|8857e6b3b0fa04900285fad5101b4157f62f33a7 -vendor/lib64/liblbs_core.so|3f55ad81c6eaa76c9a8cdc436808692e3d12fe44 --vendor/lib64/libloc_api_v02.so|548d3280b4b340803cc7cdbd794dfcffd65012bf -vendor/lib64/libloc_ds_api.so|88bd00eef7b3e052e2725ce8883a8da0d95028f0 -vendor/lib64/libloc_externalDr.so|9165f1621d9d34034c4921c96bf45849429f32fd -vendor/lib64/liblocationservice_glue.so|9f56f0e9089f0eadc29036c2cffd5a06852f4cb0 -vendor/lib64/liblocationservice.so|13eae193a44f991daf2c54eb2311901bd32a6d8b -vendor/lib64/liblowi_client.so|b6a6e3315ff02115fba6a3c7c023ef94530cf272 -vendor/lib64/liblowi_wifihal.so|831095ee8091008db81af836cafc8a90b210d4bc -vendor/lib64/libquipc_os_api.so|12ffd3e3a2d566d68c1ee45b0879597822df7971 -vendor/lib64/libulp2.so|1a92023fbe40d5042239f3efbdcd82f3299e8b17 -vendor/lib64/libxtadapter.so|7705b2c895dfc91f459f9e69860bc312c16b4216 -vendor/lib64/libxtwifi_ulp_adaptor.so|d2e768c4d5f44a101b12ef668f8b7393a42541ce -vendor/lib64/vendor.qti.gnss@1.0_vendor.so|249c76153f8de014bf2dd2ab623ee3d87741fbc8 +# GPS - from bardock - OPM1.171019.019 +vendor/bin/hw/vendor.qti.gnss@1.0-service +vendor/bin/loc_launcher +vendor/bin/lowi-server +vendor/bin/xtra-daemon +vendor/etc/init/vendor.qti.gnss@1.0-service.rc +vendor/lib64/hw/vendor.qti.gnss@1.0-impl.so +vendor/lib64/libdataitems.so +vendor/lib64/libDRPlugin.so +vendor/lib64/libdrplugin_client.so +vendor/lib64/libevent_observer.so +vendor/lib64/libflp.so +vendor/lib64/libgeofence.so +vendor/lib64/libizat_client_api.so +vendor/lib64/libizat_core.so +vendor/lib64/liblbs_core.so +vendor/lib64/libloc_api_v02.so +vendor/lib64/libloc_ds_api.so +vendor/lib64/liblocationservice.so +vendor/lib64/liblocationservice_glue.so +vendor/lib64/liblowi_client.so +vendor/lib64/libulp2.so +vendor/lib64/libxtadapter.so +vendor/lib64/libxtwifi_ulp_adaptor.so +vendor/lib64/vendor.qti.gnss@1.0_vendor.so # Graphics - from vince 8.1.0 OPM1.171019.019 vendor/lib/egl/eglSubDriverAndroid.so diff --git a/rootdir/init.qcom.rc b/rootdir/init.qcom.rc index 645c60b..8475b79 100644 --- a/rootdir/init.qcom.rc +++ b/rootdir/init.qcom.rc @@ -386,9 +386,9 @@ service wpa_supplicant /vendor/bin/hw/wpa_supplicant \ oneshot service loc_launcher /vendor/bin/loc_launcher - #loc_launcher will start as root and set its uid to gps + # loc_launcher will start as root and set its uid to gps class late_start - group gps inet diag wifi + group gps inet oem_2901 wifi writepid /dev/cpuset/system-background/tasks service qcom-sh /vendor/bin/init.qcom.sh