sanders: remove 32b sensorservice/hal from build
* Switched to 64b sensors
This commit is contained in:
@@ -379,8 +379,7 @@ PRODUCT_COPY_FILES += \
|
|||||||
|
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
android.hardware.sensors@1.0-impl \
|
android.hardware.sensors@1.0-impl \
|
||||||
android.hardware.sensors@1.0-service_32 \
|
android.hardware.sensors@1.0-service
|
||||||
sensorservice_32
|
|
||||||
|
|
||||||
# Thermal
|
# Thermal
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
|
|||||||
@@ -1,23 +0,0 @@
|
|||||||
LOCAL_PATH := $(call my-dir)
|
|
||||||
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
LOCAL_SRC_FILES:= \
|
|
||||||
../../../../frameworks/native/services/sensorservice/main_sensorservice.cpp
|
|
||||||
|
|
||||||
LOCAL_SHARED_LIBRARIES := \
|
|
||||||
libsensorservice \
|
|
||||||
libbinder \
|
|
||||||
libutils
|
|
||||||
|
|
||||||
LOCAL_CFLAGS := -Wall -Werror -Wextra
|
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := optional
|
|
||||||
|
|
||||||
LOCAL_MODULE:= sensorservice_32
|
|
||||||
|
|
||||||
LOCAL_32_BIT_ONLY := true
|
|
||||||
LOCAL_INIT_RC := sensorservice.rc
|
|
||||||
LOCAL_PROPRIETARY_MODULE := true
|
|
||||||
|
|
||||||
include $(BUILD_EXECUTABLE)
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
service sensorservice /vendor/bin/sensorservice_32
|
|
||||||
class main
|
|
||||||
user root
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
|
||||||
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
LOCAL_MODULE_RELATIVE_PATH := hw
|
|
||||||
LOCAL_PROPRIETARY_MODULE := true
|
|
||||||
LOCAL_MODULE := android.hardware.sensors@1.0-service_32
|
|
||||||
LOCAL_32_BIT_ONLY := true
|
|
||||||
LOCAL_INIT_RC := android.hardware.sensors@1.0-service_32.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)
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
service sensors-hal-1-0 /vendor/bin/hw/android.hardware.sensors@1.0-service_32
|
|
||||||
class hal
|
|
||||||
user system
|
|
||||||
group system input wakelock
|
|
||||||
capabilities BLOCK_SUSPEND SYS_NICE
|
|
||||||
@@ -1,31 +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 <android/hardware/sensors/1.0/ISensors.h>
|
|
||||||
#include <hidl/LegacySupport.h>
|
|
||||||
|
|
||||||
using android::hardware::sensors::V1_0::ISensors;
|
|
||||||
using android::hardware::defaultPassthroughServiceImplementation;
|
|
||||||
|
|
||||||
int main() {
|
|
||||||
/* 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<ISensors>(2);
|
|
||||||
}
|
|
||||||
@@ -248,10 +248,6 @@ PRODUCT_PROPERTY_OVERRIDES += \
|
|||||||
ro.hardware.sensors=sanders \
|
ro.hardware.sensors=sanders \
|
||||||
ro.mot.sensors.glance_approach=false
|
ro.mot.sensors.glance_approach=false
|
||||||
|
|
||||||
# SensorService
|
|
||||||
PRODUCT_PROPERTY_OVERRIDES += \
|
|
||||||
system_init.startsensorservice=0
|
|
||||||
|
|
||||||
#Trim properties
|
#Trim properties
|
||||||
PRODUCT_PROPERTY_OVERRIDES += \
|
PRODUCT_PROPERTY_OVERRIDES += \
|
||||||
ro.vendor.qti.sys.fw.trim_enable_memory=2147483648
|
ro.vendor.qti.sys.fw.trim_enable_memory=2147483648
|
||||||
|
|||||||
Reference in New Issue
Block a user