Skip to content

Commit

Permalink
android-tools: Fix inconsistency between selinux configurations
Browse files Browse the repository at this point in the history
ConditionPathExists is set to /etc/usb-debugging-enabled as part of meta-oe/
recipes-devtools/android-tools/android-tools/android-tools-adbd.service file.
However, in meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/
android-tools/android-tools-adbd.service file ConditionPathExists is set to
/var/usb-debugging-enabled

This causes an internal inconsistency between selinux-enabled and -disabled
configurations.

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

Reported-by: Dmitry Baryshkov <[email protected]>

Signed-off-by: Raghuvarya S <[email protected]>
  • Loading branch information
quic-raghuvar committed Sep 2, 2024
1 parent 1235dd4 commit 75c3590
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 75c3590

Please sign in to comment.