Skip to content

Commit e0d5ebf

Browse files
Update 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: Raghuvarya S <[email protected]>
1 parent 64c481d commit e0d5ebf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meta-oe/recipes-devtools/android-tools/android-tools/android-tools-adbd.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[Unit]
22
Description=Android Debug Bridge
3-
ConditionPathExists=/var/usb-debugging-enabled
3+
ConditionPathExists=/etc/usb-debugging-enabled
44
Before=android-system.service
55

66
[Service]

0 commit comments

Comments
 (0)