From c44cde9d52f0d84b0e450371e216c721c93346af Mon Sep 17 00:00:00 2001 From: Dmitry Baryshkov Date: Thu, 10 Oct 2024 01:55:37 +0300 Subject: [PATCH] image-adbd: move usb-debugging-enabled flag file to /etc 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. Move the created usb-debugging-enabled flag file from /var/usb-debugging-enabled to /etc/usb-debugging-enabled. Signed-off-by: Dmitry Baryshkov --- classes/image-adbd.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/image-adbd.bbclass b/classes/image-adbd.bbclass index 3202379..7bb3f98 100644 --- a/classes/image-adbd.bbclass +++ b/classes/image-adbd.bbclass @@ -7,7 +7,7 @@ IMAGE_FEATURES[validitems] += "enable-adbd" PACKAGE_INSTALL:append = " ${@bb.utils.contains('IMAGE_FEATURES', [ 'enable-adbd' ], 'android-tools-adbd', '',d)} " enable_adbd_at_boot () { - touch ${IMAGE_ROOTFS}/var/usb-debugging-enabled + touch ${IMAGE_ROOTFS}/etc/usb-debugging-enabled } ROOTFS_POSTPROCESS_COMMAND += "${@bb.utils.contains('IMAGE_FEATURES', [ 'enable-adbd' ], 'enable_adbd_at_boot; ', '',d)}"