Skip to content

Commit

Permalink
athene: provide ASensor_getHandle for libmdmcutback
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto97 authored and nikitsharma15 committed Sep 13, 2017
1 parent 426c0cb commit 3e3d168
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 1 deletion.
1 change: 1 addition & 0 deletions device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
libcnefeatureconfig \
librmnetctl \
libshim_ril \
libxml2

PRODUCT_PACKAGES += \
Expand Down
8 changes: 8 additions & 0 deletions libshims/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,11 @@ LOCAL_MODULE := libshims_get_process_name
LOCAL_MODULE_TAGS := optional

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 changes: 22 additions & 0 deletions libshims/sensor.cpp
Original file line number Diff line number Diff line change
@@ -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();
}
2 changes: 1 addition & 1 deletion rootdir/etc/init.qcom.rc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ on early-init
on init
start qfintverify

export LD_SHIM_LIBS /system/vendor/lib/lib-imsvt.so|libshims_ims.so:/system/vendor/lib/libril-qc-qmi-1.so|rild_socket.so:/system/vendor/lib/libizat_core.so:libshims_get_process_name.so
export LD_SHIM_LIBS /system/vendor/lib/lib-imsvt.so|libshims_ims.so:/system/vendor/lib/libril-qc-qmi-1.so|rild_socket.so:/system/vendor/lib/libizat_core.so:libshims_get_process_name.so:/system/lib/libandroid.so|libshim_ril.so

# Set permissions for persist partition
mkdir /persist 0771 system system
Expand Down

0 comments on commit 3e3d168

Please sign in to comment.