Skip to content

Commit 4271cc2

Browse files
tewaridkraj
authored andcommitted
android-tools: Add flag to enable adbd service (#147)
android-tools-adbd service can be enabled in the image using USB_DEBUGGING_ENABLED = "1" in local.conf. Signed-off-by: Devendra Tewari <devendra.tewari@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
1 parent aa2201d commit 4271cc2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

meta-oe/recipes-devtools/android-tools/android-tools_5.1.1.r37.bb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,3 +180,9 @@ FILES:${PN}-fstools = "\
180180
"
181181

182182
BBCLASSEXTEND = "native"
183+
184+
android_tools_enable_devmode() {
185+
touch ${IMAGE_ROOTFS}/var/usb-debugging-enabled
186+
}
187+
188+
ROOTFS_POSTPROCESS_COMMAND_${PN}-adbd += "${@bb.utils.contains("USB_DEBUGGING_ENABLED", "1", "android_tools_enable_devmode;", "", d)}"

0 commit comments

Comments
 (0)