diff --git a/device.mk b/device.mk index 6d2f6bd..0baba74 100644 --- a/device.mk +++ b/device.mk @@ -151,7 +151,8 @@ PRODUCT_PACKAGES += \ # GPS PRODUCT_PACKAGES += \ libgnsspps \ - gps.msm8953 + gps.msm8953 \ + libshims_get_process_name # IMS PRODUCT_PACKAGES += \ diff --git a/libshims/Android.mk b/libshims/Android.mk index 32c96a7..6974884 100644 --- a/libshims/Android.mk +++ b/libshims/Android.mk @@ -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) diff --git a/libshims/get_process_name.c b/libshims/get_process_name.c new file mode 100644 index 0000000..a6633d0 --- /dev/null +++ b/libshims/get_process_name.c @@ -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; +} + diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 6e91bf5..008ea17 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -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