Skip to content

Commit

Permalink
Update android-tools-adbd.service: Change /var to /etc in ConditionPa…
Browse files Browse the repository at this point in the history
…thExists

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]>
  • Loading branch information
quic-raghuvar committed Sep 2, 2024
1 parent 64c481d commit e0d5ebf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Unit]
Description=Android Debug Bridge
ConditionPathExists=/var/usb-debugging-enabled
ConditionPathExists=/etc/usb-debugging-enabled
Before=android-system.service

[Service]
Expand Down

0 comments on commit e0d5ebf

Please sign in to comment.