Skip to content

Commit

Permalink
android-tools: Add flag to enable adbd service (#147)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
tewarid authored and kraj committed Aug 17, 2021
1 parent aa2201d commit 4271cc2
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,9 @@ FILES:${PN}-fstools = "\
"

BBCLASSEXTEND = "native"

android_tools_enable_devmode() {
touch ${IMAGE_ROOTFS}/var/usb-debugging-enabled
}

ROOTFS_POSTPROCESS_COMMAND_${PN}-adbd += "${@bb.utils.contains("USB_DEBUGGING_ENABLED", "1", "android_tools_enable_devmode;", "", d)}"

0 comments on commit 4271cc2

Please sign in to comment.