From 53c2d7e270f0cd64c8d7d8f9b58e85f4b563c537 Mon Sep 17 00:00:00 2001 From: fiftydinar <65243233+fiftydinar@users.noreply.github.com> Date: Wed, 16 Apr 2025 16:38:56 +0200 Subject: [PATCH] Add `/usr/lib/` path for android udev rules This is useful if some distros or custom images ship those rules in this path. --- android-tools-appimage.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android-tools-appimage.sh b/android-tools-appimage.sh index 9b38ab7..f11924f 100755 --- a/android-tools-appimage.sh +++ b/android-tools-appimage.sh @@ -43,12 +43,13 @@ CURRENTDIR="$(dirname "$(readlink -f "$0")")" UDEVNOTICE='No android udev rules detected, use "--getudev" to install' UDEVREPO="https://github.com/M0Rf30/android-udev-rules.git" cat /etc/udev/rules.d/*droid.rules >/dev/null 2>&1 && UDEVNOTICE="" +cat /usr/lib/udev/rules.d/*droid.rules >/dev/null 2>&1 && UDEVNOTICE="" BIN="${ARGV0#./}" unset ARGV0 export PATH="$CURRENTDIR/bin:$PATH" _get_udev_rules() { - if cat /etc/udev/rules.d/*droid.rules >/dev/null 2>&1; then + if cat /etc/udev/rules.d/*droid.rules >/dev/null 2>&1 || cat /usr/lib/udev/rules.d/*droid.rules >/dev/null 2>&1; then echo "ERROR: udev rules are already installed!" echo "Errors persisting with installed udev rules may be due to missing" echo "udev rules for device or lack of permissions from device"