Skip to content

Commit

Permalink
image-adbd: move usb-debugging-enabled flag file to /etc
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
lumag committed Oct 9, 2024
1 parent 249ead8 commit c44cde9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/image-adbd.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -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)}"

0 comments on commit c44cde9

Please sign in to comment.