Skip to content

Commit

Permalink
gps: Add flp shim
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhawat2 committed Nov 20, 2017
1 parent 1c84cc6 commit 12c6c6c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
8 changes: 8 additions & 0 deletions libshims/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,11 @@ LOCAL_MODULE := libshims_get_process_name
LOCAL_MODULE_TAGS := optional

include $(BUILD_SHARED_LIBRARY)

include $(CLEAR_VARS)

LOCAL_SRC_FILES := flp.c
LOCAL_MODULE := libshims_flp
LOCAL_MODULE_TAGS := optional

include $(BUILD_SHARED_LIBRARY)
10 changes: 10 additions & 0 deletions libshims/flp.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Logging Improvements
const char *loc_logger_boolStr[]={"False","True"};
const char VOID_RET[] = "None";
const char FROM_AFW[] = "===>";
const char TO_MODEM[] = "--->";
const char FROM_MODEM[] = "<---";
const char TO_AFW[] = "<===";
const char EXIT_TAG[] = "Exiting";
const char ENTRY_TAG[] = "Entering";
const char EXIT_ERROR_TAG[] = "Exiting with error";
1 change: 1 addition & 0 deletions product/qcom-gps.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
PRODUCT_PACKAGES += \
[email protected] \
gps.msm8916 \
libshims_flp \
libshims_get_process_name

PRODUCT_COPY_FILES += \
Expand Down
2 changes: 1 addition & 1 deletion rootdir/etc/init.target.rc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#

on init
export LD_SHIM_LIBS /system/vendor/lib64/lib-imsdpl.so|libshim_boringssl.so:/system/vendor/lib64/libizat_core.so|libshims_get_process_name.so
export LD_SHIM_LIBS /system/vendor/lib64/lib-imsdpl.so|libshim_boringssl.so:/system/vendor/lib64/libflp.so|libshims_flp.so:/system/vendor/lib64/libizat_core.so|libshims_get_process_name.so

on boot
# change file owner for factory test
Expand Down

0 comments on commit 12c6c6c

Please sign in to comment.