android-tools: recommend the USB gadget modules adbd needs

Recommend libcomposite and usb_f_fs from the adbd package.

adbd needs both loaded: android-gadget-setup modprobes the first, and
the second comes in via request_module when the ffs function is
created. Nothing in an image pulls them in, so adbd fails to start on
kernels that build them as modules. A kernel with gadget support built
in ships no kernel-module packages, which recommendations tolerate.

Assisted-by: Claude Code:claude-opus-5

Signed-off-by: Daiane Angolini <daiane.angolini@oss.qualcomm.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Daiane Angolini
2026-09-14 13:56:22 -07:00
committed by Khem Raj
parent 3bcb1ac551
commit e37c3ee6fc
@@ -228,6 +228,7 @@ do_install:append:class-native() {
PACKAGES =+ "${PN}-adbd"
RDEPENDS:${PN}:class-target = "android-tools-conf-configfs 7zip android-libboringssl"
RDEPENDS:${PN}-adbd += "${PN}"
RRECOMMENDS:${PN}-adbd += "kernel-module-libcomposite kernel-module-usb-f-fs"
PRIVATE_LIBS:${PN} = "liblog.so.0 libbase.so.0 libcutils.so.0"
inherit useradd