potter: provide ASensor_getHandle for libmdmcutback
This commit is contained in:
@@ -260,6 +260,7 @@ PRODUCT_COPY_FILES += \
|
|||||||
# RIL
|
# RIL
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
librmnetctl \
|
librmnetctl \
|
||||||
|
libshim_ril \
|
||||||
libxml2
|
libxml2
|
||||||
|
|
||||||
# Sensors
|
# Sensors
|
||||||
|
|||||||
@@ -39,3 +39,11 @@ LOCAL_SHARED_LIBRARIES := libstagefright_foundation
|
|||||||
LOCAL_MODULE := libshim_ims
|
LOCAL_MODULE := libshim_ims
|
||||||
LOCAL_MODULE_TAGS := optional
|
LOCAL_MODULE_TAGS := optional
|
||||||
include $(BUILD_SHARED_LIBRARY)
|
include $(BUILD_SHARED_LIBRARY)
|
||||||
|
|
||||||
|
# RIL
|
||||||
|
include $(CLEAR_VARS)
|
||||||
|
LOCAL_SRC_FILES := sensor.cpp
|
||||||
|
LOCAL_SHARED_LIBRARIES := libgui
|
||||||
|
LOCAL_MODULE := libshim_ril
|
||||||
|
LOCAL_MODULE_TAGS := optional
|
||||||
|
include $(BUILD_SHARED_LIBRARY)
|
||||||
|
|||||||
22
libshims/sensor.cpp
Normal file
22
libshims/sensor.cpp
Normal 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <gui/Sensor.h>
|
||||||
|
|
||||||
|
extern "C" int ASensor_getHandle(ASensor const* sensor)
|
||||||
|
{
|
||||||
|
return static_cast<android::Sensor const*>(sensor)->getHandle();
|
||||||
|
}
|
||||||
@@ -53,7 +53,7 @@ on fs
|
|||||||
|
|
||||||
on init
|
on init
|
||||||
# Symbols required for motorola blobs
|
# 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
|
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
|
||||||
|
|
||||||
write /sys/module/qpnp_rtc/parameters/poweron_alarm 1
|
write /sys/module/qpnp_rtc/parameters/poweron_alarm 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user