Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package android-tools for openSUSE:Factory 
checked in at 2025-07-23 16:33:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/android-tools (Old)
 and      /work/SRC/openSUSE:Factory/.android-tools.new.8875 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "android-tools"

Wed Jul 23 16:33:21 2025 rev:26 rq:1295064 version:35.0.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/android-tools/android-tools.changes      
2025-06-05 20:36:31.542748180 +0200
+++ /work/SRC/openSUSE:Factory/.android-tools.new.8875/android-tools.changes    
2025-07-23 16:34:27.234224715 +0200
@@ -1,0 +2,10 @@
+Tue Jul 22 10:20:58 UTC 2025 - mun...@googlemail.com
+
+- Add fix-libusb-enumeration.patch
+  * Fix libusb enumeration to handle PINE64 PinePhone modem
+    (gh#nmeum/android-tools#153)
+- The android-udev-rules package is now suggested but no longer
+  required. See https://github.com/systemd/systemd/pull/36939
+  and (gh#M0Rf30/android-udev-rules#344)
+
+-------------------------------------------------------------------

New:
----
  fix-libusb-enumeration.patch

----------(New B)----------
  New:
- Add fix-libusb-enumeration.patch
  * Fix libusb enumeration to handle PINE64 PinePhone modem
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ android-tools.spec ++++++
--- /var/tmp/diff_new_pack.ye823n/_old  2025-07-23 16:34:29.490319254 +0200
+++ /var/tmp/diff_new_pack.ye823n/_new  2025-07-23 16:34:29.506319925 +0200
@@ -35,6 +35,8 @@
 Patch0:         fix-install-completion.patch
 # PATCH-FIX-UPSTREAM fix-protobuf-30-compat.patch -- based on commit 0c4d799
 Patch1:         fix-protobuf-30-compat.patch
+# PATCH-FIX-UPSTREAM fix-libusb-enumeration.patch gh#nmeum/android-tools#153
+Patch2:         fix-libusb-enumeration.patch
 BuildRequires:  cmake >= 3.12
 BuildRequires:  go
 BuildRequires:  llvm-gold
@@ -49,9 +51,9 @@
 BuildRequires:  pkgconfig(libzstd)
 BuildRequires:  pkgconfig(protobuf) >= 21
 BuildRequires:  pkgconfig(zlib)
-Requires:       android-udev-rules
 Suggests:       %{name}-mkbootimg = %{version}
 Suggests:       %{name}-partition = %{version}
+Suggests:       android-udev-rules
 Provides:       %{name}-python3 = %{version}-%{release}
 Obsoletes:      %{name}-python3 < %{version}-%{release}
 Provides:       bundled(boringssl)

++++++ fix-libusb-enumeration.patch ++++++
>From d349fae010f6c780d76e89c5d6b81d45119137c0 Mon Sep 17 00:00:00 2001
From: Arnav Singh <m...@arnavion.dev>
Date: Sat, 3 Aug 2024 21:55:23 -0700
Subject: [PATCH] Fix libusb enumeration to handle PINE64 PinePhone modem.

The PINE64 PinePhone modem exposes itself as an adb-accessible device over USB
but its device class is LIBUSB_CLASS_MISCELLANEOUS, so allow that too.
---
 vendor/adb/client/usb_libusb.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/vendor/adb/client/usb_libusb.cpp b/vendor/adb/client/usb_libusb.cpp
index 6133e7c8..9af91eb7 100644
--- a/vendor/adb/client/usb_libusb.cpp
+++ b/vendor/adb/client/usb_libusb.cpp
@@ -364,8 +364,8 @@ struct LibusbConnection : public Connection {
     }
 
     bool FindInterface(libusb_device_descriptor* device_desc) {
-        if (device_desc->bDeviceClass != LIBUSB_CLASS_PER_INTERFACE) {
-            // Assume that all Android devices have the device class set to 
per interface.
+        if (device_desc->bDeviceClass != LIBUSB_CLASS_PER_INTERFACE && 
device_desc->bDeviceClass != LIBUSB_CLASS_MISCELLANEOUS) {
+            // Assume that all Android devices have the device class set to 
per interface or miscellaneous.
             // TODO: Is this assumption valid?
             VLOG(USB) << "skipping device with incorrect class at " << 
device_address_;
             return false;
@@ -1039,7 +1039,7 @@ void usb_init() {
             
static_cast<libusb_hotplug_event>(LIBUSB_HOTPLUG_EVENT_DEVICE_ARRIVED |
                                               
LIBUSB_HOTPLUG_EVENT_DEVICE_LEFT),
             LIBUSB_HOTPLUG_ENUMERATE, LIBUSB_HOTPLUG_MATCH_ANY, 
LIBUSB_HOTPLUG_MATCH_ANY,
-            LIBUSB_CLASS_PER_INTERFACE, hotplug_callback, nullptr, nullptr);
+            LIBUSB_HOTPLUG_MATCH_ANY, hotplug_callback, nullptr, nullptr);
 
     if (rc != LIBUSB_SUCCESS) {
         LOG(FATAL) << "failed to register libusb hotplug callback";
-- 
2.46.0

Reply via email to