mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-13 17:39:57 +00:00
android-tools: Create flag file /etc/usb-debugging-enabled
Location of the file that systemd uses to check whether to start adbd or not has been updated from /var to /etc in android-tools-adbd.service. This change changes the path of creation of usb-debugging-enabled flag file in android-tools recipes from /var/usb-debugging-enabled to /etc/usb-debugging-enabled Backport-of:2a3d4be999("android-tools: create flag flag file for adbd at a proper location") Fixes:a29c6386d5("android-toold-adbd: Fix inconsistency between selinux configurations") Fixes:8106cfe769("android-tools-adbd.service: Change /var to /etc in ConditionPathExists") Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Raghuvarya S <quic_raghuvar@quicinc.com> Acked-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
committed by
Armin Kuster
parent
ebad6c98e2
commit
145ae5af9e
+1
-1
@@ -188,7 +188,7 @@ FILES:${PN} += "${libdir}/android ${libdir}/android/*"
|
||||
BBCLASSEXTEND = "native"
|
||||
|
||||
android_tools_enable_devmode() {
|
||||
touch ${IMAGE_ROOTFS}/var/usb-debugging-enabled
|
||||
touch ${IMAGE_ROOTFS}/etc/usb-debugging-enabled
|
||||
}
|
||||
|
||||
ROOTFS_POSTPROCESS_COMMAND_${PN}-adbd += "${@bb.utils.contains("USB_DEBUGGING_ENABLED", "1", "android_tools_enable_devmode;", "", d)}"
|
||||
|
||||
@@ -189,7 +189,7 @@ FILES:${PN}-fstools = "\
|
||||
BBCLASSEXTEND = "native"
|
||||
|
||||
android_tools_enable_devmode() {
|
||||
touch ${IMAGE_ROOTFS}/var/usb-debugging-enabled
|
||||
touch ${IMAGE_ROOTFS}/etc/usb-debugging-enabled
|
||||
}
|
||||
|
||||
ROOTFS_POSTPROCESS_COMMAND_${PN}-adbd += "${@bb.utils.contains("USB_DEBUGGING_ENABLED", "1", "android_tools_enable_devmode;", "", d)}"
|
||||
|
||||
Reference in New Issue
Block a user