sanders: build a 32bit version of sensorservice
system_server is currently responable of starting SensorService and since it is a 64bit instance, system looks for 64bit sensorhal. Disable this mechanism and manually start SensorService with a 32bit copy of sensorservice to force the system using the 32bit HAL This is based on vache's work on potter
This commit is contained in:
@@ -346,7 +346,8 @@ PRODUCT_COPY_FILES += \
|
|||||||
$(LOCAL_PATH)/configs/sensors/sensor_def_qcomdev.conf:system/etc/sensors/sensor_def_qcomdev.conf
|
$(LOCAL_PATH)/configs/sensors/sensor_def_qcomdev.conf:system/etc/sensors/sensor_def_qcomdev.conf
|
||||||
|
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
android.hardware.sensors@1.0-impl
|
android.hardware.sensors@1.0-impl \
|
||||||
|
sensorservice_32
|
||||||
|
|
||||||
# Thermal
|
# Thermal
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
|
|||||||
23
sensorservice/Android.mk
Normal file
23
sensorservice/Android.mk
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
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)
|
||||||
3
sensorservice/sensorservice.rc
Normal file
3
sensorservice/sensorservice.rc
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
service sensorservice /vendor/bin/sensorservice_32
|
||||||
|
class main
|
||||||
|
user root
|
||||||
Reference in New Issue
Block a user