From 9dc71f0fb9077937c9530b856e0a221e3cb7bc7e Mon Sep 17 00:00:00 2001 From: "YOUNG HO CHA (aka ganachoco)" Date: Thu, 13 Jun 2024 20:31:09 +0900 Subject: [PATCH 1/3] feat: add UVC for Pixel devices (close #321) (#322) --- 51-android.rules | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/51-android.rules b/51-android.rules index 4187951..7fd8932 100644 --- a/51-android.rules +++ b/51-android.rules @@ -221,6 +221,10 @@ ATTR{idProduct}=="4ee9", GOTO="adbmidi" ATTR{idProduct}=="4eec", GOTO="adbcdc" ATTR{idProduct}=="4ee0", GOTO="adbfast" +# Tensor Pixel phones (Pixel 7/7 pro/6/6A/6 Pro) 4eed=uvc; 4eee=uvc,adb +ATTR{idProduct}=="4eed", GOTO="uvc" +ATTR{idProduct}=="4eee", GOTO="adbuvc" + # Pixel Watch 2 (4ee0=fastboot 4e11=adb) ATTR{idProduct}=="4e11", GOTO="adb" @@ -1007,6 +1011,10 @@ LABEL="adbaud", ENV{adb_adb}="yes", GOTO="android_usb_rule_match" # ADB Debug and AT-commands CDC Serial LABEL="adbcdc", ENV{adb_adbcdc}="yes", GOTO="android_usb_rule_match" +# ADB Debug and USB Video Class +LABEL="adbuvc", ENV{adb_adbuvc}="yes" +LABEL="uvc", ENV{adb_uvc}="yes", GOTO="android_usb_rule_match" + # ADB Debug and Fastboot mode LABEL="adbfast", ENV{adb_adbfast}="yes", GOTO="android_usb_rule_match" @@ -1044,6 +1052,7 @@ ENV{adb_adbmass}=="yes", ENV{adb_mass}="yes" ENV{adb_adbmtp}=="yes", ENV{adb_adb}="yes", ENV{adb_mtp}="yes" ENV{adb_adbptp}=="yes", ENV{adb_adb}="yes", ENV{adb_ptp}="yes" ENV{adb_adbmidi}=="yes", ENV{adb_adb}="yes", SYMLINK+="android_midi", SYMLINK+="android_midi0%n" +ENV{adb_adbuvc}=="yes", ENV{adb_adb}="yes", ENV{adb_uvc}="yes" ENV{adb_adb}=="yes", ENV{adb_user}="yes", SYMLINK+="android_adb" ENV{adb_fast}=="yes", SYMLINK+="android_fastboot" ENV{adb_mass}=="yes", ENV{adb_mtp}="yes" From 3e08642524dcaf8ff88b25ed1d8dccfe31185fa2 Mon Sep 17 00:00:00 2001 From: Sertonix Date: Sat, 22 Jun 2024 11:32:47 +0000 Subject: [PATCH 2/3] feat: add Oculus Go and Oculus Quest (#324) --- 51-android.rules | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/51-android.rules b/51-android.rules index 7fd8932..f832810 100644 --- a/51-android.rules +++ b/51-android.rules @@ -592,6 +592,10 @@ LABEL="not_Nvidia" # Oculus ATTR{idVendor}!="2833", GOTO="not_Oculus" +# Oculus Go +ATTR{idProduct}=="0083", GOTO="user" +# Oculus Quest +ATTR{idProduct}=="0183", GOTO="user" # Oculus Quest 2, Quest 3 ATTR{idProduct}=="0186", GOTO="user" GOTO="android_usb_rules_end" From e76a9f118304f6cdf18dca249debebcac4716f43 Mon Sep 17 00:00:00 2001 From: Sebastiano Barezzi Date: Mon, 24 Jun 2024 22:39:56 +0200 Subject: [PATCH 3/3] feat: Add Nintendo Switch Change-Id: If57670208f0460379164c55fbb477418a38ae380 --- 51-android.rules | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/51-android.rules b/51-android.rules index f832810..adb5c9b 100644 --- a/51-android.rules +++ b/51-android.rules @@ -566,6 +566,13 @@ ATTR{idVendor}=="0409", ATTR{idProduct}=="0300", GOTO="user" # Nextbit (Need product specific rules) #ATTR{idVendor}=="2c3f", GOTO="user" +# Nintendo +ATTR{idVendor}!="057e", GOTO="not_Nintendo" +# Switch +ATTR{idProduct}=="2000", GOTO="adb" +GOTO="android_usb_rules_end" +LABEL="not_Nintendo" + # Nokia X (Need product specific rules) #ATTR{idVendor}=="0421", GOTO="user"