Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package android-udev-rules for openSUSE:Factory checked in at 2021-04-27 21:34:40 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/android-udev-rules (Old) and /work/SRC/openSUSE:Factory/.android-udev-rules.new.12324 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "android-udev-rules" Tue Apr 27 21:34:40 2021 rev:7 rq:888557 version:20210425 Changes: -------- --- /work/SRC/openSUSE:Factory/android-udev-rules/android-udev-rules.changes 2021-03-11 20:13:19.624764356 +0100 +++ /work/SRC/openSUSE:Factory/.android-udev-rules.new.12324/android-udev-rules.changes 2021-04-27 21:34:51.096002497 +0200 @@ -1,0 +2,16 @@ +Sun Apr 25 10:48:42 UTC 2021 - [email protected] + +- Update to version 20210425 + added: + * Microsoft Surface Duo + * Umidigi F1 + * Iconia Tab 210 + * Fairphone 1 & 2 + + fixed: + * Exclude BIND actions from udev triggering (close #204) + +- Call %udev_rules_update in %post/%postun +- Remove fix-consider-bind-action.patch (fixed upstream) + +------------------------------------------------------------------- Old: ---- android-udev-rules-20210302.tar.gz fix-consider-bind-action.patch New: ---- android-udev-rules-20210425.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ android-udev-rules.spec ++++++ --- /var/tmp/diff_new_pack.Rm3lBf/_old 2021-04-27 21:34:51.588003307 +0200 +++ /var/tmp/diff_new_pack.Rm3lBf/_new 2021-04-27 21:34:51.592003314 +0200 @@ -17,22 +17,20 @@ Name: android-udev-rules -Version: 20210302 +Version: 20210425 Release: 0 Summary: Android udev rules list aimed to be the most comprehensive on the net License: GPL-3.0-or-later Group: Hardware/Mobile URL: https://github.com/M0Rf30/android-udev-rules -Source0: https://github.com/M0Rf30/%{name}/archive/%{version}/%{name}-%{version}.tar.gz -# PATCH-FIX-UPSTREAM fix-consider-bind-action.patch boo#1183058 [email protected] -- Systemd catches up with bind events -Patch0: fix-consider-bind-action.patch +Source0: https://github.com/M0Rf30/android-udev-rules/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: sysuser-shadow BuildRequires: sysuser-tools Recommends: android-tools Provides: android-tools-udev = %{version} Obsoletes: android-tools-udev < %{version} BuildArch: noarch -%{sysusers_requires} +%sysusers_requires %description These rules refer to 'Run Apps on a Hardware Device - Android Studio' @@ -50,6 +48,12 @@ %pre -f adbusers.pre +%post +%udev_rules_update + +%postun +%udev_rules_update + %files %license LICENSE %doc README.md ++++++ android-udev-rules-20210302.tar.gz -> android-udev-rules-20210425.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/android-udev-rules-20210302/51-android.rules new/android-udev-rules-20210425/51-android.rules --- old/android-udev-rules-20210302/51-android.rules 2021-03-02 12:05:53.000000000 +0100 +++ new/android-udev-rules-20210425/51-android.rules 2021-04-25 11:10:39.000000000 +0200 @@ -16,7 +16,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # Skip testing for android devices if device is not add, or usb -ACTION!="add", GOTO="android_usb_rules_end" +ACTION!="add", ACTION!="bind", GOTO="android_usb_rules_end" SUBSYSTEM!="usb", GOTO="android_usb_rules_end" # For Android devices that enable this universal rule suggested here: @@ -34,6 +34,8 @@ ATTR{idVendor}!="0502", GOTO="not_Acer" # Iconia Tab A1-830 ATTR{idProduct}=="3604", ENV{adb_adbfast}="yes" +# Iconia Tab A210 (33cc=normal,33cb=debug) +ATTR{idProduct}=="33cb", ENV{adb_adb}="yes" # Iconia Tab A500 ATTR{idProduct}=="3325", ENV{adb_adbfast}="yes" # Liquid (3202=normal,3203=debug) @@ -117,8 +119,16 @@ GOTO="android_usb_rule_match" LABEL="not_Essential" -# Fairphone 2 -ATTR{idVendor}=="2ae5", ENV{adb_user}="yes" +# Fairphone 1 (see Hisense 109b) +# Fairphone 2 (f005=tether, f00e=rndis, 90de=charge, 90dc=charge,adb f000=MTP, 9039=MTP,adb, 904d=PTP, 904e=PTP,adb, 9015=storage,adb, 9024=rndis,adb) 90bb=qualcom midi+adb +ATTR{idVendor}!="2ae5", GOTO="not_Fairphone2" +ATTR{idProduct}=="9015", ENV{adb_adb}="yes" +ATTR{idProduct}=="9039", ENV{adb_adb}="yes" +ATTR{idProduct}=="904e", ENV{adb_adb}="yes" +ATTR{idProduct}=="90dc", ENV{adb_adb}="yes" +ATTR{idProduct}=="90bb", ENV{adb_adb}="yes", ENV{midi_user}="yes" +GOTO="android_usb_rule_match" +LABEL="not_Fairphone2" # Foxconn # Commtiva Z71, Geeksphone One @@ -138,7 +148,7 @@ # Google ATTR{idVendor}!="18d1", GOTO="not_Google" -# 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) +# Nexus, Pixel, Pixel XL, Pixel 2, Pixel 2XL (4ee1=mtp, 4ee2=mtp,adb 4ee3=rndis, 4ee4=rndis,adb 4ee5=ptp, 4ee6=ptp,adb 4ee7=adb 4ee8=midi, 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 # OnePlus 6, 4ee1=charging, 4ee2=MTP+debug, 4ee6=PTP+debug, 4ee7=charging+debug # Pico i.MX7 Dual Development Board 4ee7=debug @@ -177,13 +187,17 @@ ATTR{idProduct}=="d00?", ENV{adb_adb}="yes" # Generic and unspecified debug interface (test after d00?) ATTR{idProduct}=="d00d", ENV{adb_adbfast}="yes" + +# Other vendors that also used duplicated Google's idVendor code follows: +# IDEA XDS-1078 (debug=2c11) +ATTR{idProduct}=="2c11", ENV{adb_adb}="yes" GOTO="android_usb_rule_match" LABEL="not_Google" # Haier ATTR{idVendor}=="201e", ENV{adb_user}="yes" -# Hisense +# Hisense (includes Fairphone 1) ATTR{idVendor}=="109b", ENV{adb_user}="yes" # Honeywell/Foxconn @@ -346,13 +360,6 @@ GOTO="android_usb_rule_match" LABEL="not_LG" -# Idea -ATTR{idVendor}!="18d1", GOTO="not_IDEA" -# XDS-1078 -ATTR{idProduct}=="2c11", ENV{adb_adb}="yes" -GOTO="android_usb_rule_match" -LABEL="not_IDEA" - # Meizu ATTR{idVendor}!="2a45", GOTO="not_Meizu" # MX6 @@ -367,6 +374,14 @@ GOTO="android_usb_rule_match" LABEL="not_Micromax" +# Microsoft +ATTR{idVendor}!="045e", GOTO="not_Microsoft" +ENV{adb_user}="yes" +# Surface Duo +ATTR{idProduct}=="0c26", ENV{adb_adbfast}="yes" +GOTO="android_usb_rule_match" +LABEL="not_Microsoft" + # Motorola ATTR{idVendor}!="22b8", GOTO="not_Motorola" ENV{adb_user}="yes" @@ -398,7 +413,12 @@ LABEL="not_Motorola" # MTK (MediaTek Inc) -ATTR{idVendor}=="0e8d", ENV{adb_user}="yes" +ATTR{idVendor}=="0e8d", GOTO="not_MTK" +ENV{adb_user}="yes" +# Umidigi F1 +ATTR{idProduct}=="201c", ENV{adb_adbfast}="yes" +GOTO="android_usb_rule_match" +LABEL="not_MTK" # NEC ATTR{idVendor}=="0409", ENV{adb_user}="yes" @@ -439,10 +459,10 @@ ATTR{idProduct}=="4ee2", ENV{adb_adb}="yes" ATTR{idProduct}=="4ee6", ENV{adb_adb}="yes" ATTR{idProduct}=="4ee7", ENV{adb_adb}="yes" -# MTP mode -ATTR{idProduct}=="9011", ENV{adb_adb}="yes" -# PTP mode -ATTR{idProduct}=="904e", ENV{adb_adb}="yes" +# OnePlus 3T with Oreo MIDI mode 90bb=adb+midi, 9011=MTP, 904e=PTP +ATTR{idProduct}=="90bb", ENV{adb_adb}="yes" +ATTR{idProduct}=="9011", SYMLINK+="android_adb" +ATTR{idProduct}=="904e", SYMLINK+="android_adb" GOTO="android_usb_rule_match" LABEL="not_OnePlus" @@ -482,7 +502,7 @@ GOTO="android_usb_rule_match" LABEL="not_Point_Mobile" -# Qualcomm +# Qualcomm (Wearners also 05c6) ATTR{idVendor}!="05c6", GOTO="not_Qualcomm" ENV{adb_user}="yes" # Geeksphone Zero @@ -495,14 +515,13 @@ ATTR{idProduct}=="900e", SYMLINK+="android_adb" # OnePlus 3T ATTR{idProduct}=="676c", SYMLINK+="android_adb" -# OnePlus 3T w/ Oreo MIDI mode -ATTR{idProduct}=="90bb", SYMLINK+="android_adb" +# Snapdragon, OnePlus 3T w/ Oreo MIDI mode (90bb=adb,midi, 9011=MTP, 904e=PTP) +# Xiaomi A1 (90bb=midi+adb) +ATTR{idProduct}=="90bb", ENV{adb_adb}="yes" # OnePlus 5 / 6 / 6T ATTR{idProduct}=="9011", SYMLINK+="android_adb" # OnePlus 6 / Asia ATTR{idProduct}=="f003", SYMLINK+="android_adb" -# Xiaomi A1 (90bb=midi+adb) -ATTR{idProduct}=="90bb", SYMLINK+="android_adb" GOTO="android_usb_rule_match" LABEL="not_Qualcomm" @@ -726,7 +745,7 @@ ENV{adb_fast}=="yes", SYMLINK+="android_fastboot" # Enable device as a user device if found (add an "android" SYMLINK) -ENV{adb_user}=="yes", MODE="0660", GROUP="adbusers", TAG+="uaccess", SYMLINK+="android" +ENV{adb_user}=="yes", MODE="0660", GROUP="adbusers", TAG+="uaccess", SYMLINK+="android", SYMLINK+="android%n" # Devices listed here {begin...end} are connected by USB LABEL="android_usb_rules_end" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/android-udev-rules-20210302/README.md new/android-udev-rules-20210425/README.md --- old/android-udev-rules-20210302/README.md 2021-03-02 12:05:53.000000000 +0100 +++ new/android-udev-rules-20210425/README.md 2021-04-25 11:10:39.000000000 +0200 @@ -2,17 +2,22 @@ ## Description -These rules refer to [Run Apps on a Hardware Device - Android Studio](https://developer.android.com/studio/run/device.html) and include many suggestions from the Archlinux and Github Communities. - +These rules refer to +[Run Apps on a Hardware Device - Android Studio](https://developer.android.com/studio/run/device.html) +and include many suggestions from the Archlinux and Github Communities. ## Installation ### Arch -On Arch it should be enough to follow the [instructions for connecting a device on the Arch wiki](https://wiki.archlinux.org/index.php/Android_Debug_Bridge). There's no need to clone this repository. +On Arch it should be enough to follow the +[instructions for connecting a device on the Arch wiki](https://wiki.archlinux.org/index.php/Android_Debug_Bridge). +There's no need to clone this repository. +### Other distros -### Ubuntu +The following instructions assume that you're using a GNU/Linux distro with +systemd ```sh # Clone this repository @@ -22,45 +27,35 @@ # 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. +# 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) +# Add the adbusers group if it's doesn't already exist +sudo cp android-udev.conf /usr/lib/sysusers.d/ +sudo systemd-sysusers + +# Add your user to the adbusers group +sudo gpasswd -a $(whoami) adbusers # 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 +# Replug your Android device and verify that USB debugging is enabled in +# developer options adb devices # You should now see your device ``` -## To Contribute: +## To Contribute 1. Fork this repository. 2. Make your edits. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/android-udev-rules-20210302/debian/changelog new/android-udev-rules-20210425/debian/changelog --- old/android-udev-rules-20210302/debian/changelog 2021-03-02 12:05:53.000000000 +0100 +++ new/android-udev-rules-20210425/debian/changelog 2021-04-25 11:10:39.000000000 +0200 @@ -1,5 +1,6 @@ -android-udev-rules (0.0.1-1) stable; urgency=low +android-udev-rules (20210425-1) stable; urgency=low - * First build of a deb + * Latest stable tag. + + -- Builder <[email protected]> Sun, 25 Apr 2021 16:11:00 +0100 - -- builder <builder@wheezy-builder> Mon, 24 Mar 2014 16:05:35 +0100 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/android-udev-rules-20210302/debian/compat new/android-udev-rules-20210425/debian/compat --- old/android-udev-rules-20210302/debian/compat 2021-03-02 12:05:53.000000000 +0100 +++ new/android-udev-rules-20210425/debian/compat 2021-04-25 11:10:39.000000000 +0200 @@ -1 +1 @@ -7 +9 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/android-udev-rules-20210302/debian/control new/android-udev-rules-20210425/debian/control --- old/android-udev-rules-20210302/debian/control 2021-03-02 12:05:53.000000000 +0100 +++ new/android-udev-rules-20210425/debian/control 2021-04-25 11:10:39.000000000 +0200 @@ -2,11 +2,11 @@ Section: developer-tools Priority: extra Maintainer: Simon Sickle <[email protected]> -Build-Depends: debhelper (>= 8.0.0) +Build-Depends: debhelper (>= 9) Standards-Version: 3.9.4 Vcs-Git: https://github.com/M0Rf30/android-udev-rules.git Package: android-udev-rules Architecture: any -Depends: android-tools-adb, android-tools-fastboot +Suggests: android-tools-adb, android-tools-fastboot Description: udev rules to get ADB working diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/android-udev-rules-20210302/debian/files new/android-udev-rules-20210425/debian/files --- old/android-udev-rules-20210302/debian/files 2021-03-02 12:05:53.000000000 +0100 +++ new/android-udev-rules-20210425/debian/files 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -android-udev-rules_0.0.1-1_amd64.deb developer-tools extra diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/android-udev-rules-20210302/debian/postinst new/android-udev-rules-20210425/debian/postinst --- old/android-udev-rules-20210302/debian/postinst 2021-03-02 12:05:53.000000000 +0100 +++ new/android-udev-rules-20210425/debian/postinst 2021-04-25 11:10:39.000000000 +0200 @@ -5,9 +5,4 @@ # Make sure adbusers is setup properly groupadd adbusers -usermod -a -G adbusers $(whoami) - -# Reload udev and reset adb -udevadm control --reload-rules -service udev restart -adb kill-server +usermod -a -G adbusers "$(whoami)" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/android-udev-rules-20210302/install.sh new/android-udev-rules-20210425/install.sh --- old/android-udev-rules-20210302/install.sh 2021-03-02 12:05:53.000000000 +0100 +++ new/android-udev-rules-20210425/install.sh 2021-04-25 11:10:39.000000000 +0200 @@ -4,35 +4,34 @@ CURRENT_UID="$(id -u)" if [ "$SELECTED_USER" = "" ]; then - echo "Please specify a user!" - exit 1 + echo "Please specify a user!" + exit 1 fi -if [ $CURRENT_UID -ne 0 ]; then - echo "Please run using sudo!" - exit 1 +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 + 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 + cp -v 51-android.rules /etc/udev/rules.d/51-android.rules fi - chmod a+r /etc/udev/rules.d/51-android.rules +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 + mkdir -p /usr/lib/sysusers.d/ && sudo cp android-udev.conf /usr/lib/sysusers.d/ + systemd-sysusers else - groupdel adbusers - groupadd adbusers + groupdel adbusers + groupadd adbusers fi usermod -a -G adbusers "$USER" udevadm control --reload-rules if [ "$USE_SERVICE_CMD" = "true" ]; then - service udev restart + service udev restart else - systemctl restart systemd-udevd.service + systemctl restart systemd-udevd.service fi - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/android-udev-rules-20210302/rpm/android-udev-rules.spec new/android-udev-rules-20210425/rpm/android-udev-rules.spec --- old/android-udev-rules-20210302/rpm/android-udev-rules.spec 2021-03-02 12:05:53.000000000 +0100 +++ new/android-udev-rules-20210425/rpm/android-udev-rules.spec 2021-04-25 11:10:39.000000000 +0200 @@ -1,5 +1,5 @@ Name: android-udev-rules -Version: 0.0.1 +Version: 20210425 Release: 1%{?dist} Summary: Udev rules to allow communication with Android devices License: GPLv3+ @@ -35,6 +35,6 @@ %changelog -* Sun Dec 15 2019 H??kon L??vdal <[email protected]> - 0.0.1-1 -- Created. +* Sun Apr 25 2021 H??kon L??vdal <[email protected]> - 20210425-1 +- Latest stable tag.
