gps: Add get_process_name shim

Change-Id: Iff9c1e33b9cd0343f5c4ea7f9a4c84c562c4142b
This commit is contained in:
Vachounet
2017-08-23 12:53:11 +02:00
parent cda41c9417
commit bc64085b00
4 changed files with 34 additions and 2 deletions

View File

@@ -151,7 +151,8 @@ PRODUCT_PACKAGES += \
# GPS
PRODUCT_PACKAGES += \
libgnsspps \
gps.msm8953
gps.msm8953 \
libshims_get_process_name
# IMS
PRODUCT_PACKAGES += \

View File

@@ -47,3 +47,12 @@ LOCAL_SHARED_LIBRARIES := libgui
LOCAL_MODULE := libshim_ril
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := get_process_name.c
LOCAL_MODULE := libshims_get_process_name
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)

View File

@@ -0,0 +1,22 @@
/*
* Copyright (C) 2017 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.
*/
static const char* process_name = "unknown";
const char* get_process_name(void) {
return process_name;
}

View File

@@ -58,7 +58,7 @@ on fs
on init
# Symbols required for motorola blobs
export LD_SHIM_LIBS /system/vendor/lib/libmot_gpu_mapper.so|libshim_camera.so:/system/vendor/lib/lib-imsvt.so|libshim_ims.so:/system/bin/adspd|libshim_adsp.so:/system/lib/libandroid.so|libshim_ril.so
export LD_SHIM_LIBS /system/vendor/lib/libmot_gpu_mapper.so|libshim_camera.so:/system/vendor/lib/lib-imsvt.so|libshim_ims.so:/system/bin/adspd|libshim_adsp.so:/system/lib/libandroid.so|libshim_ril.so:/system/vendor/lib/libizat_core.so:libshims_get_process_name.so
write /sys/module/qpnp_rtc/parameters/poweron_alarm 1