From 91b15b8584a12ebd8e321d32536ed8ced1e321d7 Mon Sep 17 00:00:00 2001 From: nailyk-fr Date: Sun, 12 Feb 2017 15:48:08 +0100 Subject: shinano-common: shim: Add getdtablesize for iddd * iddd is missing getdtablesize. This function return 1024 Change-Id: I402c8671366a250d4b6982c27e681bbce552b4f6 --- libshims/Android.mk | 7 +++++++ libshims/idd.c | 22 ++++++++++++++++++++++ rootdir/init.camera.rc | 2 +- shinano.mk | 3 ++- 4 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 libshims/idd.c diff --git a/libshims/Android.mk b/libshims/Android.mk index cb466ba..88e307f 100644 --- a/libshims/Android.mk +++ b/libshims/Android.mk @@ -36,3 +36,10 @@ LOCAL_MODULE_TAGS := optional LOCAL_32_BIT_ONLY := true include $(BUILD_SHARED_LIBRARY) +include $(CLEAR_VARS) +LOCAL_SRC_FILES := idd.c +LOCAL_MODULE := libshims_idd +LOCAL_MODULE_TAGS := optional +LOCAL_32_BIT_ONLY := true +include $(BUILD_SHARED_LIBRARY) + diff --git a/libshims/idd.c b/libshims/idd.c new file mode 100644 index 0000000..fe6d4f7 --- /dev/null +++ b/libshims/idd.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. + */ + + +#include + +int getdtablesize(void) { + return 1024; +} diff --git a/rootdir/init.camera.rc b/rootdir/init.camera.rc index c5ea0e4..a2cafe1 100644 --- a/rootdir/init.camera.rc +++ b/rootdir/init.camera.rc @@ -17,7 +17,7 @@ on init - export LD_SHIM_LIBS /system/vendor/lib/libwvm.so|libshims_wvm.so:/system/bin/credmgrd|libshims_signal.so + export LD_SHIM_LIBS /system/vendor/lib/libwvm.so|libshims_wvm.so:/system/bin/credmgrd|libshims_signal.so:/system/bin/iddd|libshims_idd.so mkdir /idd 0751 idd idd mkdir /rca 0750 idd idd diff --git a/shinano.mk b/shinano.mk index 1ed3ecc..47001bd 100644 --- a/shinano.mk +++ b/shinano.mk @@ -52,7 +52,8 @@ PRODUCT_PACKAGES += \ tad_static \ wait4tad_static \ libshims_wvm \ - libshims_signal + libshims_signal \ + libshims_idd # ANT+ PRODUCT_PACKAGES += \ -- cgit v1.2.3