add uinputd (virtual input)
This commit is contained in:
@@ -160,6 +160,7 @@ $(foreach lib,$(evdev_libs),\
|
|||||||
|
|
||||||
# $(1): module name (and file name)
|
# $(1): module name (and file name)
|
||||||
# $(2): depended modules
|
# $(2): depended modules
|
||||||
|
# $(3): init.rc
|
||||||
define define-redroid-prebuilt-bin
|
define define-redroid-prebuilt-bin
|
||||||
include $$(CLEAR_VARS)
|
include $$(CLEAR_VARS)
|
||||||
LOCAL_MODULE := $1
|
LOCAL_MODULE := $1
|
||||||
@@ -171,6 +172,9 @@ LOCAL_MODULE_TAGS := optional
|
|||||||
LOCAL_PROPRIETARY_MODULE := true
|
LOCAL_PROPRIETARY_MODULE := true
|
||||||
LOCAL_CHECK_ELF_FILES := false
|
LOCAL_CHECK_ELF_FILES := false
|
||||||
LOCAL_REQUIRED_MODULES := $2
|
LOCAL_REQUIRED_MODULES := $2
|
||||||
|
ifneq ($3,)
|
||||||
|
LOCAL_INIT_RC := prebuilts/$$(TARGET_ARCH)/share/$3
|
||||||
|
endif
|
||||||
include $$(BUILD_PREBUILT)
|
include $$(BUILD_PREBUILT)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
@@ -183,3 +187,5 @@ $(foreach i,$(bins),\
|
|||||||
bins:=ffmpeg ffprobe
|
bins:=ffmpeg ffprobe
|
||||||
$(foreach i,$(bins),\
|
$(foreach i,$(bins),\
|
||||||
$(eval $(call define-redroid-prebuilt-bin,$(i),$(ffmpeg_libs))))
|
$(eval $(call define-redroid-prebuilt-bin,$(i),$(ffmpeg_libs))))
|
||||||
|
|
||||||
|
$(eval $(call define-redroid-prebuilt-bin,uinputd,$(evdev_libs),uinputd/uinputd.rc))
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ PRODUCT_PACKAGES += \
|
|||||||
gralloc.gbm \
|
gralloc.gbm \
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
ffprobe \
|
ffprobe \
|
||||||
|
uinputd \
|
||||||
|
|
||||||
|
|
||||||
# vaapi
|
# vaapi
|
||||||
|
|||||||
BIN
prebuilts/aarch64/bin/uinputd
Executable file
BIN
prebuilts/aarch64/bin/uinputd
Executable file
Binary file not shown.
5
prebuilts/aarch64/share/uinputd/uinputd.rc
Normal file
5
prebuilts/aarch64/share/uinputd/uinputd.rc
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
service vendor.uinputd /vendor/bin/uinputd
|
||||||
|
disabled
|
||||||
|
|
||||||
|
on property:ro.boot.use_redroid_stream=1
|
||||||
|
start vendor.uinputd
|
||||||
BIN
prebuilts/x86_64/bin/uinputd
Executable file
BIN
prebuilts/x86_64/bin/uinputd
Executable file
Binary file not shown.
5
prebuilts/x86_64/share/uinputd/uinputd.rc
Normal file
5
prebuilts/x86_64/share/uinputd/uinputd.rc
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
service vendor.uinputd /vendor/bin/uinputd
|
||||||
|
disabled
|
||||||
|
|
||||||
|
on property:ro.boot.use_redroid_stream=1
|
||||||
|
start vendor.uinputd
|
||||||
Reference in New Issue
Block a user