Hello community, here is the log from the commit of package android-udev-rules for openSUSE:Factory checked in at 2020-07-31 15:56:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/android-udev-rules (Old) and /work/SRC/openSUSE:Factory/.android-udev-rules.new.3592 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "android-udev-rules" Fri Jul 31 15:56:07 2020 rev:3 rq:823666 version:20200613 Changes: -------- --- /work/SRC/openSUSE:Factory/android-udev-rules/android-udev-rules.changes 2020-07-30 10:04:06.843386263 +0200 +++ /work/SRC/openSUSE:Factory/.android-udev-rules.new.3592/android-udev-rules.changes 2020-07-31 16:05:04.432702105 +0200 @@ -1,0 +2,16 @@ +Thu Jul 30 05:31:23 UTC 2020 - [email protected] + +- Update to version 20200613 + * Indentation cleanup + * Removed duplicate entry for Qualcomm (05c6) + * Adds support for Huawei P10 Lite to udev rules + * Disable ADVANCE rules: needs specific product rules + * Add Spectralink + +- Update to version 20200410 + * Cleanup of entries without an action + * Revert "Uncommented Dell idVendor line" + * Add Sonim as vendor + * Essential Phone PH-1 is also known as `2e17:c032` + +------------------------------------------------------------------- @@ -10 +26 @@ -- initial package for version 20191103 +- Initial package for version 20191103 Old: ---- android-udev-rules-20191103.tar.gz New: ---- android-udev-rules-20200613.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ android-udev-rules.spec ++++++ --- /var/tmp/diff_new_pack.ykBIpz/_old 2020-07-31 16:05:07.928704785 +0200 +++ /var/tmp/diff_new_pack.ykBIpz/_new 2020-07-31 16:05:07.932704788 +0200 @@ -1,7 +1,7 @@ # # spec file for package android-udev-rules # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: android-udev-rules -Version: 20191103 +Version: 20200613 Release: 0 Summary: Android udev rules list aimed to be the most comprehensive on the net License: GPL-3.0-or-later @@ -27,9 +27,9 @@ BuildRequires: sysuser-shadow BuildRequires: sysuser-tools Recommends: android-tools -BuildArch: noarch Provides: android-tools-udev = %{version}-%{release} Obsoletes: android-tools-udev < %{version}-%{release} +BuildArch: noarch %{sysusers_requires} %description @@ -43,8 +43,8 @@ %sysusers_generate_pre android-udev.conf adbusers %install -install -D -m 0644 -t %{buildroot}%{_sysusersdir}/ android-udev.conf -install -D -m 0644 -t %{buildroot}%{_udevrulesdir}/ 51-android.rules +install -D -m 0644 -t %{buildroot}%{_sysusersdir} android-udev.conf +install -D -m 0644 -t %{buildroot}%{_udevrulesdir} 51-android.rules %pre -f adbusers.pre ++++++ android-udev-rules-20191103.tar.gz -> android-udev-rules-20200613.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/android-udev-rules-20191103/51-android.rules new/android-udev-rules-20200613/51-android.rules --- old/android-udev-rules-20191103/51-android.rules 2019-11-03 12:12:14.000000000 +0100 +++ new/android-udev-rules-20200613/51-android.rules 2020-06-13 12:26:14.000000000 +0200 @@ -44,8 +44,8 @@ # Denver TAD 70111 ATTR{idProduct}=="0c02", SYMLINK+="android_adb" -# ADVANCE -ATTR{idVendor}=="0a5c", ENV{adb_user}="yes" +# ADVANCE (Need product specific rules) +#ATTR{idVendor}=="0a5c", ENV{adb_user}="yes" # S5 ATTR{idProduct}=="e681", SYMLINK+="android_adb" @@ -86,7 +86,7 @@ ATTR{idProduct}=="4c91", SYMLINK+="android_adb" ATTR{idProduct}=="4daf", SYMLINK+="android_fastboot" # Tegra APX -ATTR{idProduct}=="7030" +ATTR{idProduct}=="7030", SYMLINK+="android_adb" GOTO="android_usb_rule_match" LABEL="not_Asus" @@ -102,15 +102,15 @@ GOTO="android_usb_rule_match" LABEL="not_BQ" -# Dell -ATTR{idVendor}=="413c", ENV{adb_user}="yes" +# Dell (Need product specific rules) +#ATTR{idVendor}=="413c", ENV{adb_user}="yes" # Essential ATTR{idVendor}!="2e17", GOTO="not_Essential" ENV{adb_user}="yes" # Essential PH-1 ATTR{idProduct}=="c009", SYMLINK+="android_adb" -ATTR{idProduct}=="c030", SYMLINK+="android_adb" +ATTR{idProduct}=="c03[02]", SYMLINK+="android_adb" GOTO="android_usb_rule_match" LABEL="not_Essential" @@ -138,8 +138,8 @@ # Google ATTR{idVendor}!="18d1", GOTO="not_Google" ENV{adb_user}="yes" -# Nexus, Pixel, Pixel XL, Pixel 2, Pixel 2XL (4ee2=mtp,adb 4ee4=rndis,adb 4ee6=ptp,adb 4ee7=adb 4ee9=midi,adb 2d01=accessory,adb 2d03=audio_source,adb 2d05=accessory,audio_source,adb) -# See https://android.googlesource.com/device/google/wahoo/+/master/init.hardware.usb.rc +# Nexus, Pixel, Pixel XL, Pixel 2, Pixel 2XL (4ee2=mtp,adb 4ee4=rndis,adb 4ee6=ptp,adb 4ee7=adb 4ee9=midi,adb 2d01=accessory,adb 2d03=audio_source,adb 2d05=accessory,audio_source,adb) +# See https://android.googlesource.com/device/google/wahoo/+/master/init.hardware.usb.rc ATTR{idProduct}=="4ee2", SYMLINK+="android_adb" ATTR{idProduct}=="4ee4", SYMLINK+="android_adb" ATTR{idProduct}=="4ee6", SYMLINK+="android_adb" @@ -154,8 +154,8 @@ ATTR{idProduct}=="4e40", SYMLINK+="android_fastboot" # Nexus 5, Nexus 10 ATTR{idProduct}=="4ee1", ENV{adb_adbfast}="yes" -# Nexus S (4e22=mass_storage,adb 4e24=rndis,adb) -# See https://android.googlesource.com/device/samsung/crespo/+/android-4.1.2_r2.1/init.herring.usb.rc +# Nexus S (4e22=mass_storage,adb 4e24=rndis,adb) +# See https://android.googlesource.com/device/samsung/crespo/+/android-4.1.2_r2.1/init.herring.usb.rc ATTR{idProduct}=="4e22", SYMLINK+="android_adb" ATTR{idProduct}=="4e24", SYMLINK+="android_adb" ATTR{idProduct}=="4e20", SYMLINK+="android_fastboot" @@ -223,7 +223,7 @@ # MyTouch 4G ATTR{idProduct}=="0c96", SYMLINK+="android_adb" # One (m7) && One (m8) -ATTR{idProduct}=="0c93" +ATTR{idProduct}=="0c93", SYMLINK+="android_adb" # Sensation ATTR{idProduct}=="0f87", SYMLINK+="android_adb" ATTR{idProduct}=="0ff0", SYMLINK+="android_fastboot" @@ -233,8 +233,7 @@ ATTR{idProduct}=="0cd6", SYMLINK+="android_adb" # Slide ATTR{idProduct}=="0e03", SYMLINK+="android_adb" -# Tatoo, Dream, ADP1, G1, Magic -ATTR{idProduct}=="0c01" +# Tatoo, Dream, ADP1, G1, Magic (0c01=mass_storage) ATTR{idProduct}=="0c02", ENV{adb_adbfast}="yes" # Vision ATTR{idProduct}=="0c91", SYMLINK+="android_adb" @@ -267,6 +266,8 @@ ATTR{idProduct}=="1052", SYMLINK+="android_adb" # MediaPad T3 ATTR{idProduct}=="107d", SYMLINK+="android_adb" +# P10 Lite +ATTR{idProduct}=="107e", SYMLINK+="android_adb" # Watch ATTR{idProduct}=="1c2c", SYMLINK+="android_adb" # Mate 9 @@ -307,7 +308,7 @@ # LeTv ATTR{idVendor}!="2b0e", GOTO="not_letv" ENV{adb_user}="yes" -# LEX720 LeEco Pro3 6GB (610c=normal,610d=debug, 610b=camera) +# LEX720 LeEco Pro3 6GB (610c=normal,610d=debug, 610b=camera) ATTR{idProduct}=="610d", ENV{adb_fastboot}="yes" GOTO="android_usb_rule_match" LABEL="not_letv" @@ -315,8 +316,7 @@ # LG ATTR{idVendor}!="1004", GOTO="not_LG" ENV{adb_user}="yes" -# Ally, Vortex, P500, P500h -ATTR{idProduct}=="618f" +# Ally, Vortex, P500, P500h (618f=mass_storage) ATTR{idProduct}=="618e", SYMLINK+="android_adb" # G2 D802 ATTR{idProduct}=="61f1", SYMLINK+="android_adb" @@ -364,11 +364,11 @@ ATTR{idVendor}!="22b8", GOTO="not_Motorola" ENV{adb_user}="yes" # CLIQ XT/Quench -ATTR{idProduct}=="2d66" +ATTR{idProduct}=="2d66", SYMLINK+="android_adb" # Defy/MB525 -ATTR{idProduct}=="428c" +ATTR{idProduct}=="428c", SYMLINK+="android_adb" # Droid -ATTR{idProduct}=="41db" +ATTR{idProduct}=="41db", SYMLINK+="android_adb" # Xoom ID 1 ATTR{idProduct}=="70a8", ENV{adb_adbfast}="yes" # Xoom ID 2 @@ -424,11 +424,11 @@ # OnePlus(Oreo) ATTR{idVendor}!="2a70", GOTO="not_OnePlus" ENV{adb_user}="yes" -# Charging mode +# Charging mode ATTR{idProduct}=="4ee7", SYMLINK+="android_adb" -# MTP mode +# MTP mode ATTR{idProduct}=="9011", SYMLINK+="android_adb" -# PTP mode +# PTP mode ATTR{idProduct}=="904e", SYMLINK+="android_adb" GOTO="android_usb_rule_match" LABEL="not_OnePlus" @@ -470,7 +470,7 @@ ATTR{idProduct}=="900e", SYMLINK+="android_adb" # OnePlus 3T ATTR{idProduct}=="676c", SYMLINK+="android_adb" -# OnePlus 3T w/ Oreo MIDI mode +# OnePlus 3T w/ Oreo MIDI mode ATTR{idProduct}=="90bb", SYMLINK+="android_adb" # OnePlus 5 / 6 / 6T ATTR{idProduct}=="9011", SYMLINK+="android_adb" @@ -530,23 +530,22 @@ # Sharp ATTR{idVendor}=="04dd", ENV{adb_user}="yes" +# Sonim +ATTR{idVendor}=="1d9c", ENV{adb_user}="yes" + # Sony ATTR{idVendor}=="054c", ENV{adb_user}="yes" # Sony Ericsson ATTR{idVendor}!="0fce", GOTO="not_Sony_Ericsson" ENV{adb_user}="yes" -# Xperia X10 mini -ATTR{idProduct}=="3137" +# Xperia X10 mini (3137=mass_storage) ATTR{idProduct}=="2137", SYMLINK+="android_adb" -# Xperia X10 mini pro -ATTR{idProduct}=="3138" +# Xperia X10 mini pro (3138=mass_storage) ATTR{idProduct}=="2138", SYMLINK+="android_adb" -# Xperia X8 -ATTR{idProduct}=="3149" +# Xperia X8 (3149=mass_storage) ATTR{idProduct}=="2149", SYMLINK+="android_adb" -# Xperia X12 -ATTR{idProduct}=="e14f" +# Xperia X12 (e14f=mass_storage) ATTR{idProduct}=="614f", SYMLINK+="android_adb" # Xperia Arc S ATTR{idProduct}=="414f", ENV{adb_adbfast}="yes" @@ -580,6 +579,9 @@ GOTO="android_usb_rule_match" LABEL="not_Sony_Ericsson" +# Spectralink +ATTR{idVendor}=="1973", ENV{adb_user}="yes" + # Spreadtrum ATTR{idVendor}=="1782", ENV{adb_user}="yes" @@ -600,9 +602,6 @@ # Toshiba ATTR{idVendor}=="0930", ENV{adb_user}="yes" -# WEARNERS -ATTR{idVendor}=="05c6", ENV{adb_user}="yes" - # XiaoMi ATTR{idVendor}!="2717", GOTO="not_XiaoMi" ENV{adb_user}="yes" @@ -640,7 +639,7 @@ # Yota ATTR{idVendor}!="2916", GOTO="not_Yota" ENV{adb_user}="yes" -# YotaPhone2 (f003=normal,9139=debug) +# YotaPhone2 (f003=normal,9139=debug) ATTR{idProduct}=="9139", SYMLINK+="android_adb" GOTO="android_usb_rule_match" LABEL="not_Yota" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/android-udev-rules-20191103/README.md new/android-udev-rules-20200613/README.md --- old/android-udev-rules-20191103/README.md 2019-11-03 12:12:14.000000000 +0100 +++ new/android-udev-rules-20200613/README.md 2020-06-13 12:26:14.000000000 +0200 @@ -14,36 +14,51 @@ ### Ubuntu - # Clone this repository - git clone https://github.com/M0Rf30/android-udev-rules.git - cd android-udev-rules - # Copy rules file - sudo cp -v 51-android.rules /etc/udev/rules.d/51-android.rules - # OR create a sym-link to the rules file - choose this option if you'd like to update your udev rules using git. - sudo ln -sf "$PWD"/51-android.rules /etc/udev/rules.d/51-android.rules - # Change file permissions - sudo chmod a+r /etc/udev/rules.d/51-android.rules - # If adbusers group already exists remove old adbusers group - groupdel adbusers - # add the adbusers group if it's doesn't already exist - sudo mkdir -p /usr/lib/sysusers.d/ && sudo cp android-udev.conf /usr/lib/sysusers.d/ - sudo systemd-sysusers # (1) - # OR on Fedora: - groupadd adbusers - # Add your user to the adbusers group - sudo usermod -a -G adbusers $(whoami) - # Restart UDEV - sudo udevadm control --reload-rules - sudo service udev restart - # OR on Fedora: - sudo systemctl restart systemd-udevd.service - # Restart the ADB server - adb kill-server - # Replug your Android device and verify that USB debugging is enabled in developer options - adb devices - # You should now see your device - -(1) Not available on Ubuntu 16.04 and mint 18, use `sudo groupadd adbusers` instead. +```sh +# Clone this repository +git clone https://github.com/M0Rf30/android-udev-rules.git +cd android-udev-rules + +# Copy rules file +sudo cp -v 51-android.rules /etc/udev/rules.d/51-android.rules + +# OR create a sym-link to the rules file - choose this option if you'd like to update your udev rules using git. +sudo ln -sf "$PWD"/51-android.rules /etc/udev/rules.d/51-android.rules + +# Change file permissions +sudo chmod a+r /etc/udev/rules.d/51-android.rules + +# If adbusers group already exists remove old adbusers group +groupdel adbusers + +# add the adbusers group if it's doesn't already exist +sudo mkdir -p /usr/lib/sysusers.d/ && sudo cp android-udev.conf /usr/lib/sysusers.d/ +sudo systemd-sysusers # (if not Ubuntu 16.04 and Mint 18) + +# if Ubuntu 16.04 and Mint 18 +sudo groupadd adbusers + +# OR on Fedora: +groupadd adbusers + +# Add your user to the adbusers group (back to Debian again) +sudo usermod -a -G adbusers $(whoami) + +# Restart UDEV +sudo udevadm control --reload-rules +sudo service udev restart + +# OR on Fedora: +sudo systemctl restart systemd-udevd.service + +# Restart the ADB server (back to Debian again) +adb kill-server + +# Replug your Android device and verify that USB debugging is enabled in developer options +adb devices + +# You should now see your device +``` ## To Contribute: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/android-udev-rules-20191103/install.sh new/android-udev-rules-20200613/install.sh --- old/android-udev-rules-20191103/install.sh 1970-01-01 01:00:00.000000000 +0100 +++ new/android-udev-rules-20200613/install.sh 2020-06-13 12:26:14.000000000 +0200 @@ -0,0 +1,38 @@ +#!/usr/bin/env sh + +SELECTED_USER="$1" +CURRENT_UID="$(id -u)" + +if [ "$SELECTED_USER" = "" ]; then + echo "Please specify a user!" + exit 1 +fi + +if [ $CURRENT_UID -ne 0 ]; then + echo "Please run using sudo!" + exit 1 +fi + +if [ "$USE_SYMLINK" = "true" ]; then + ln -sf "$PWD"/51-android.rules /etc/udev/rules.d/51-android.rules +else + cp -v 51-android.rules /etc/udev/rules.d/51-android.rules +fi + chmod a+r /etc/udev/rules.d/51-android.rules +if [ "$USE_GROUP" = "false" ]; then + mkdir -p /usr/lib/sysusers.d/ && sudo cp android-udev.conf /usr/lib/sysusers.d/ + systemd-sysusers +else + groupdel adbusers + groupadd adbusers +fi + +usermod -a -G adbusers "$USER" +udevadm control --reload-rules + +if [ "$USE_SERVICE_CMD" = "true" ]; then + service udev restart +else + systemctl restart systemd-udevd.service +fi + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/android-udev-rules-20191103/rpm/android-udev-rules.spec new/android-udev-rules-20200613/rpm/android-udev-rules.spec --- old/android-udev-rules-20191103/rpm/android-udev-rules.spec 1970-01-01 01:00:00.000000000 +0100 +++ new/android-udev-rules-20200613/rpm/android-udev-rules.spec 2020-06-13 12:26:14.000000000 +0200 @@ -0,0 +1,40 @@ +Name: android-udev-rules +Version: 0.0.1 +Release: 1%{?dist} +Summary: Udev rules to allow communication with Android devices +License: GPLv3+ +URL: https://github.com/M0Rf30/android-udev-rules +Source0: https://github.com/M0Rf30/android-udev-rules/raw/master/51-android.rules +Source1: https://github.com/M0Rf30/android-udev-rules/raw/master/README.md +Source2: https://github.com/M0Rf30/android-udev-rules/raw/master/LICENSE +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +%description +Android udev rules list aimed to be the most comprehensive on the net. +Based on the official Android Studio documentation as well as suggestions from +the Archlinux and Github Communities. + +%prep +cp %{SOURCE0} %{SOURCE1} %{SOURCE2} . + +%build + +%install +mkdir -p %{buildroot}/etc/udev/rules.d/. +install -m 644 51-android.rules %{buildroot}/etc/udev/rules.d/. + +%clean +rm -rf %{buildroot} + +%files +%config(noreplace) /etc/udev/rules.d/51-android.rules +%{!?_licensedir:%global license %%doc} +%license LICENSE +%doc README.md + +%changelog + +* Sun Dec 15 2019 Håkon Løvdal <[email protected]> - 0.0.1-1 +- Created. +
