android-tools-adbd.service: Change /var to /etc in ConditionPathExists

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

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
quic-raghuvar 2024-07-29 14:49:20 +05:30 committed by Khem Raj
parent 98a4af1f78
commit 8106cfe769
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -1,6 +1,6 @@
[Unit]
Description=Android Debug Bridge
ConditionPathExists=/var/usb-debugging-enabled
ConditionPathExists=/etc/usb-debugging-enabled
Before=android-system.service
[Service]