sanders: Build a 32 bit version of rild and fp service
For now we're using 32 bits from stock, for both services. So use it until 64 bits blobs are ready Signed-off-by: jhenrique09 <jhenrique09.mcz@hotmail.com>
This commit is contained in:
@@ -169,7 +169,7 @@ PRODUCT_PACKAGES += \
|
|||||||
|
|
||||||
# Fingerprint
|
# Fingerprint
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
android.hardware.biometrics.fingerprint@2.1-service \
|
android.hardware.biometrics.fingerprint@2.1-service_32 \
|
||||||
fingerprint.msm8953
|
fingerprint.msm8953
|
||||||
|
|
||||||
# FM
|
# FM
|
||||||
@@ -333,7 +333,11 @@ PRODUCT_PACKAGES += \
|
|||||||
libshim_ril \
|
libshim_ril \
|
||||||
libprotobuf-cpp-full \
|
libprotobuf-cpp-full \
|
||||||
libxml2 \
|
libxml2 \
|
||||||
rild_socket
|
rild_socket \
|
||||||
|
rild_32
|
||||||
|
|
||||||
|
PRODUCT_COPY_FILES += \
|
||||||
|
$(LOCAL_PATH)/rild/rild.rc:system/vendor/etc/init/rild.rc
|
||||||
|
|
||||||
# Seccomp policy
|
# Seccomp policy
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
|
|||||||
@@ -27,6 +27,9 @@ LOCAL_SHARED_LIBRARIES := \
|
|||||||
LOCAL_MODULE_RELATIVE_PATH := hw
|
LOCAL_MODULE_RELATIVE_PATH := hw
|
||||||
LOCAL_MODULE := fingerprint.msm8953
|
LOCAL_MODULE := fingerprint.msm8953
|
||||||
LOCAL_MODULE_TAGS := optional
|
LOCAL_MODULE_TAGS := optional
|
||||||
|
LOCAL_32_BIT_ONLY := true
|
||||||
|
|
||||||
include $(BUILD_SHARED_LIBRARY)
|
include $(BUILD_SHARED_LIBRARY)
|
||||||
|
|
||||||
|
include $(call all-makefiles-under,$(LOCAL_PATH))
|
||||||
|
|
||||||
|
|||||||
22
fingerprint/service_32/Android.mk
Normal file
22
fingerprint/service_32/Android.mk
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
LOCAL_PATH := $(call my-dir)
|
||||||
|
|
||||||
|
include $(CLEAR_VARS)
|
||||||
|
LOCAL_MODULE := android.hardware.biometrics.fingerprint@2.1-service_32
|
||||||
|
LOCAL_INIT_RC := android.hardware.biometrics.fingerprint@2.1-service_32.rc
|
||||||
|
LOCAL_PROPRIETARY_MODULE := true
|
||||||
|
LOCAL_32_BIT_ONLY := true
|
||||||
|
LOCAL_MODULE_RELATIVE_PATH := hw
|
||||||
|
LOCAL_SRC_FILES := \
|
||||||
|
../../../../../hardware/interfaces/biometrics/fingerprint/2.1/default/BiometricsFingerprint.cpp \
|
||||||
|
../../../../../hardware/interfaces/biometrics/fingerprint/2.1/default/service.cpp
|
||||||
|
|
||||||
|
LOCAL_SHARED_LIBRARIES := \
|
||||||
|
libcutils \
|
||||||
|
liblog \
|
||||||
|
libhidlbase \
|
||||||
|
libhidltransport \
|
||||||
|
libhardware \
|
||||||
|
libutils \
|
||||||
|
android.hardware.biometrics.fingerprint@2.1
|
||||||
|
|
||||||
|
include $(BUILD_EXECUTABLE)
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
service fps_hal /vendor/bin/hw/android.hardware.biometrics.fingerprint@2.1-service_32
|
||||||
|
# "class hal" causes a race condition on some devices due to files created
|
||||||
|
# in /data. As a workaround, postpone startup until later in boot once
|
||||||
|
# /data is mounted.
|
||||||
|
class late_start
|
||||||
|
user system
|
||||||
|
group system input
|
||||||
33
rild/Android.mk
Normal file
33
rild/Android.mk
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
# Copyright 2006 The Android Open Source Project
|
||||||
|
|
||||||
|
LOCAL_PATH:= $(call my-dir)
|
||||||
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
|
LOCAL_SRC_FILES:= \
|
||||||
|
../../../../hardware/ril/rild/rild.c
|
||||||
|
|
||||||
|
LOCAL_SHARED_LIBRARIES := \
|
||||||
|
libcutils \
|
||||||
|
libdl \
|
||||||
|
liblog \
|
||||||
|
libril
|
||||||
|
|
||||||
|
# Temporary hack for broken vendor RILs.
|
||||||
|
LOCAL_WHOLE_STATIC_LIBRARIES := \
|
||||||
|
librilutils_static
|
||||||
|
|
||||||
|
LOCAL_CFLAGS := -DRIL_SHLIB
|
||||||
|
LOCAL_CFLAGS += -Wall -Wextra -Werror
|
||||||
|
|
||||||
|
ifeq ($(SIM_COUNT), 2)
|
||||||
|
LOCAL_CFLAGS += -DANDROID_MULTI_SIM
|
||||||
|
LOCAL_CFLAGS += -DANDROID_SIM_COUNT_2
|
||||||
|
endif
|
||||||
|
|
||||||
|
LOCAL_MODULE_RELATIVE_PATH := hw
|
||||||
|
LOCAL_PROPRIETARY_MODULE := true
|
||||||
|
LOCAL_32_BIT_ONLY := true
|
||||||
|
LOCAL_MODULE := rild_32
|
||||||
|
|
||||||
|
include $(BUILD_EXECUTABLE)
|
||||||
|
|
||||||
5
rild/rild.rc
Normal file
5
rild/rild.rc
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
service ril-daemon /vendor/bin/hw/rild_32
|
||||||
|
class main
|
||||||
|
user radio
|
||||||
|
group radio cache inet misc audio log readproc wakelock
|
||||||
|
capabilities BLOCK_SUSPEND NET_ADMIN NET_RAW
|
||||||
@@ -872,7 +872,7 @@ on property:ro.data.large_tcp_window_size=true
|
|||||||
# Adjust socket buffer to enlarge TCP receive window for high bandwidth (e.g. DO-RevB)
|
# Adjust socket buffer to enlarge TCP receive window for high bandwidth (e.g. DO-RevB)
|
||||||
write /proc/sys/net/ipv4/tcp_adv_win_scale 2
|
write /proc/sys/net/ipv4/tcp_adv_win_scale 2
|
||||||
|
|
||||||
service ril-daemon2 /vendor/bin/hw/rild -c 2
|
service ril-daemon2 /vendor/bin/hw/rild_32 -c 2
|
||||||
class main
|
class main
|
||||||
user radio
|
user radio
|
||||||
group radio cache inet misc audio log readproc wakelock
|
group radio cache inet misc audio log readproc wakelock
|
||||||
|
|||||||
Reference in New Issue
Block a user