From 3d88b50c84b37fd1a04be000bcafb7f6fe976050 Mon Sep 17 00:00:00 2001 From: Joey Parrish Date: Fri, 2 Feb 2024 14:40:21 -0800 Subject: [PATCH] fix(Linux): Fix service user access to Android over USB (#46) Closes #45 --- shaka-lab-node/linux/debian/shaka-lab-node.postinst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shaka-lab-node/linux/debian/shaka-lab-node.postinst b/shaka-lab-node/linux/debian/shaka-lab-node.postinst index 98303be..325ac66 100755 --- a/shaka-lab-node/linux/debian/shaka-lab-node.postinst +++ b/shaka-lab-node/linux/debian/shaka-lab-node.postinst @@ -31,6 +31,11 @@ adduser \ # Don't fail if docker is not installed. usermod -a -G docker shaka-lab-node || true +# Grant that user access to plugdev, to be able to talk to USB-connected +# Android devices via adb. +# Don't fail if the plugdev group does not exist. +usermod -a -G plugdev shaka-lab-node || true + # Install NVM, which we don't / shouldn't bundle into the deb package. # The location of our NVM installation. export NVM_DIR=/opt/shaka-lab/nvm