Linaro / meta-qcom

OpenEmbedded/Yocto Project BSP layer for Qualcomm based platforms
MIT License
63 stars 76 forks source link

50-adbd-cmdline.conf: Change /var to /etc in ConditionPathExists #668

Closed lumag closed 1 month ago

lumag commented 1 month ago

If android-tools-adbd.service service needs to be up upon boot, then the path assigned to ConditionPathExists must be present at boot time. This means that the path set to ConditionPathExists must be created at build time itself. /etc is a better place to keep files and directories that are created at build time rather than /var. /var is expected to house files that are created at run time.

Hence, change ConditionPathExists=|/var/usb-debugging-enabled to ConditionPathExists=|/etc/usb-debugging-enabled

(cherry picked from commit edfc44e0462f259b3ab763144ba579d25750bfdc)