diff --git a/sensors/Android.bp b/sensors/Android.bp index c950d79..b8b2949 100644 --- a/sensors/Android.bp +++ b/sensors/Android.bp @@ -16,29 +16,3 @@ cc_library_static { ], export_include_dirs: ["."], } - -cc_binary { - name: "android.hardware.sensors@1.0-service.samsung8226", - defaults: ["hidl_defaults"], - relative_install_path: "hw", - vendor: true, - init_rc: ["android.hardware.sensors@1.0-service.samsung8226.rc"], - srcs: ["service.cpp"], - - shared_libs: [ - "liblog", - "libcutils", - "libdl", - "libbase", - "libutils", - "libhidlbase", - "libhidltransport", - "libhwbinder", - "android.hardware.sensors@1.0", - ], - arch: { - arm: { - cflags: ["-DARCH_ARM_32"], - }, - }, -} diff --git a/sensors/Android.mk b/sensors/Android.mk index 842f0f6..6d65d20 100644 --- a/sensors/Android.mk +++ b/sensors/Android.mk @@ -29,38 +29,17 @@ LOCAL_SRC_FILES := \ multihal.cpp \ SensorEventQueue.cpp \ +LOCAL_HEADER_LIBRARIES := \ + libhardware_headers \ + LOCAL_SHARED_LIBRARIES := \ libcutils \ libdl \ liblog \ libutils \ - libhardware LOCAL_STRIP_MODULE := false -LOCAL_VENDOR_MODULE := true include $(BUILD_SHARED_LIBRARY) -include $(CLEAR_VARS) -LOCAL_MODULE_RELATIVE_PATH := hw -LOCAL_PROPRIETARY_MODULE := true -LOCAL_MODULE := android.hardware.sensors@1.0-service.s3ve3g -LOCAL_INIT_RC := android.hardware.sensors@1.0-service.s3ve3g.rc -LOCAL_SRC_FILES := \ - service.cpp - -LOCAL_SHARED_LIBRARIES := \ - liblog \ - libcutils \ - libdl \ - libbase \ - libutils - -LOCAL_SHARED_LIBRARIES += \ - libhidlbase \ - libhidltransport \ - android.hardware.sensors@1.0 - -include $(BUILD_EXECUTABLE) - include $(call all-makefiles-under, $(LOCAL_PATH)) diff --git a/sensors/android.hardware.sensors@1.0-service.samsung8226.rc b/sensors/android.hardware.sensors@1.0-service.samsung8226.rc deleted file mode 100644 index ee9a5a6..0000000 --- a/sensors/android.hardware.sensors@1.0-service.samsung8226.rc +++ /dev/null @@ -1,6 +0,0 @@ -service sensors-hal-1-0 /vendor/bin/hw/android.hardware.sensors@1.0-service.samsung8226 - class hal - user system - group system input wakelock - capabilities BLOCK_SUSPEND - rlimit rtprio 10 10 diff --git a/sensors/service.cpp b/sensors/service.cpp deleted file mode 100644 index 72f32fd..0000000 --- a/sensors/service.cpp +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2016 The Android Open Source 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. - */ - -#define LOG_TAG "android.hardware.sensors@1.0-service" - -#include -#include -#ifdef ARCH_ARM_32 -#include -#endif - -using android::hardware::sensors::V1_0::ISensors; -using android::hardware::defaultPassthroughServiceImplementation; - -int main() { -#ifdef ARCH_ARM_32 - android::hardware::ProcessState::initWithMmapSize((size_t)8192); -#endif - /* Sensors framework service needs at least two threads. - * One thread blocks on a "poll" - * The second thread is needed for all other HAL methods. - */ - return defaultPassthroughServiceImplementation(2); -}