diff options
-rw-r--r-- | libshims/Android.mk | 25 | ||||
-rw-r--r-- | libshims/libsonycamera.cpp | 16 | ||||
-rw-r--r-- | shinano.mk | 7 |
3 files changed, 1 insertions, 47 deletions
diff --git a/libshims/Android.mk b/libshims/Android.mk deleted file mode 100644 index 62315cb..0000000 --- a/libshims/Android.mk +++ /dev/null @@ -1,25 +0,0 @@ -# -# Copyright (C) 2016 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. - -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) -LOCAL_SRC_FILES := libsonycamera.cpp -LOCAL_MODULE := libsonycamera -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_CLASS := SHARED_LIBRARIES -LOCAL_SHARED_LIBRARIES := liblog -LOCAL_32_BIT_ONLY := true -include $(BUILD_SHARED_LIBRARY) diff --git a/libshims/libsonycamera.cpp b/libshims/libsonycamera.cpp deleted file mode 100644 index 8d759fe..0000000 --- a/libshims/libsonycamera.cpp +++ /dev/null @@ -1,16 +0,0 @@ -#include <cutils/log.h> -#include <sys/types.h> -#include <dlfcn.h> -#include <string.h> - -// Unlock all Sony parameters -extern "C" { - int property_get(const char * key, char * value, const char * default_value) { - if (strcmp("ro.build.type", key) == 0) { - strcpy(value, "eng"); - return 3; - } - - return ((int( * )(const char * , char *, const char * ))(dlsym((void * ) - 1, "property_get")))(key, value, default_value); - } -}
\ No newline at end of file @@ -52,12 +52,7 @@ PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \ $(COMMON_PATH)/rootdir/init.qcom.power.rc:root/init.recovery.qcom.rc -# Camera (stock .575 blobs) -PRODUCT_PACKAGES += \ - libshims_signal \ - libshims_idd \ - libsonycamera - +# Camera PRODUCT_COPY_FILES += \ $(COMMON_PATH)/rootdir/sbin/tad_static:root/sbin/tad_static |