Browse Source

msm8916-common: shim for samsung gps libs

 - add missing symbol so gps can quit barking

Change-Id: Ie515ec9ee554c6250f9850e78fb501890ad678ee
queso_bringup
Nick Reuter 5 years ago
parent
commit
061011af79
4 changed files with 31 additions and 2 deletions
  1. 2
    1
      BoardConfigCommon.mk
  2. 9
    0
      libshims/Android.mk
  3. 18
    0
      libshims/LocAdapterBase.cpp
  4. 2
    1
      msm8916.mk

+ 2
- 1
BoardConfigCommon.mk View File

@@ -260,7 +260,8 @@ TARGET_LD_SHIM_LIBS := \
/system/lib/hw/camera.vendor.msm8916.so|libcamera_shim.so \
/system/vendor/lib/libizat_core.so|libshim_gps.so \
/system/vendor/lib/libqomx_jpegenc.so|libboringssl-compat.so \
/system/vendor/lib/hw/android.hardware.bluetooth@1.0-impl-qti.so|libbase_shim.so
/system/vendor/lib/hw/android.hardware.bluetooth@1.0-impl-qti.so|libbase_shim.so \
/system/vendor/lib/libgeofence.so|liblocadapterbase_shim.so

# Snapdragon LLVM
TARGET_USE_SDCLANG := true

+ 9
- 0
libshims/Android.mk View File

@@ -40,3 +40,12 @@ LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := SHARED_LIBRARIES

include $(BUILD_SHARED_LIBRARY)

include $(CLEAR_VARS)

LOCAL_SRC_FILES := LocAdapterBase.cpp
LOCAL_MODULE := liblocadapterbase_shim
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := SHARED_LIBRARIES

include $(BUILD_SHARED_LIBRARY)

+ 18
- 0
libshims/LocAdapterBase.cpp View File

@@ -0,0 +1,18 @@
/*
* Copyright (C) 2016 The CyanogenMod 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.
*/

extern "C" void _ZN8loc_core14LocAdapterBase13reportCiqDataER10GpsCiqData(void) { };


+ 2
- 1
msm8916.mk View File

@@ -242,7 +242,8 @@ PRODUCT_PACKAGES += \
com.android.location.provider \
com.android.location.provider.xml \
gps.msm8916 \
libshim_gps
libshim_gps \
liblocadapterbase_shim

# GPS Properties
PRODUCT_PROPERTY_OVERRIDES += \

Loading…
Cancel
Save