Skip to content

Commit

Permalink
android-tools: Add flag to enable adbd service (openembedded#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 <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
tewarid authored and kraj committed Aug 16, 2021
1 parent a13db91 commit 9a36c94
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 9a36c94

Please sign in to comment.