summaryrefslogtreecommitdiff
path: root/libshims
diff options
context:
space:
mode:
authorNikhil Punathil <nikhilpe@gmail.com>2017-08-22 01:07:52 +0530
committerArian <arian.kulmer@web.de>2019-10-07 11:07:17 +0200
commit6bdb7f5aa759393c719acde800f6b45a7f687bda (patch)
tree94cdb516abd4945d23696217095fc07dce11ac88 /libshims
parent608222fa02a32eb94518160b9440276d69a5a13b (diff)
shinano-common: move some more common shims to msm8974-common
Change-Id: I7fc609323254b5e164440444293fa4f23aad929b Signed-off-by: Nikhil Punathil <nikhilpe@gmail.com>
Diffstat (limited to 'libshims')
-rw-r--r--libshims/Android.mk25
-rw-r--r--libshims/libsonycamera.cpp16
2 files changed, 0 insertions, 41 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