pmaports/hybris/lxc-android/0002-fix-android-rules.patch

26 lines
1.2 KiB
Diff
Raw Normal View History

diff --git a/lib/udev/rules.d/65-android.rules b/lib/udev/rules.d/65-android.rules
index b3233aa..99fac2f 100644
--- a/lib/udev/rules.d/65-android.rules
+++ b/lib/udev/rules.d/65-android.rules
@@ -12,15 +12,15 @@ ACTION=="add", KERNEL=="binder", MODE="0666"
SUBSYSTEM=="graphics", KERNEL=="*", SYMLINK+="graphics/%k"
# input devices
-ACTION=="add", KERNEL=="event[0-9]*", GROUP="android_input", MODE="0660"
+ACTION=="add", KERNEL=="event[0-9]*", GROUP="aid_input", MODE="0660"
# misc devices
-ACTION=="add", KERNEL=="alarm", OWNER="system", GROUP="phablet", MODE="0660"
-ACTION=="add", KERNEL=="uhid", OWNER="system", GROUP="system", MODE="0660"
+ACTION=="add", KERNEL=="alarm", OWNER="aid_system", GROUP="plugdev", MODE="0660"
+ACTION=="add", KERNEL=="uhid", OWNER="aid_system", GROUP="aid_system", MODE="0660"
ACTION=="add", KERNEL=="mtp_usb", OWNER="root", GROUP="plugdev", MODE="0660"
# memory
-ACTION=="add", KERNEL=="ashmem", OWNER="system", GROUP="system", MODE="0666"
+ACTION=="add", KERNEL=="ashmem", OWNER="aid_system", GROUP="aid_system", MODE="0666"
# rfkill
-ACTION=="add", KERNEL=="rfkill", GROUP="android_input", MODE="0660"
+ACTION=="add", KERNEL=="rfkill", GROUP="aid_input", MODE="0660"