Sie sind auf Seite 1von 3

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

Android Debug Bridge (adb) udev definition file This rules file will add a /dev/android_adb symlink when an Android phone with an identified idVendor:idProduct appears on the USB port. Then it will run the Android adb program (located in specified RUN+ statement below). This file may be out of date, please check Android developer documentation for ##-android.rules udev rules file to support Android Debug Bridge on USB. Some codes have idVendor, and some have an extra {idProduct} code. NOTE: Only uncomment the phone you are debugging since you will not want to uncomment a working phone. You may need to add extra ATTRS{idProduct}=="????" tests if you have more than 1 USB device from the same manufacturer, this way, you identify the right product. For examples, look at # Google or HTC codes shown below which have additional {idProduct} tests. If you find new {idProduct} codes, please send info to www.linux-usb.org, and also to android developer forum. You can test for new values by running the command lsusb to identify any USB devices. Some Android devices have different codes while running in normal or in debug mode. udev is case sensitive so your need to ensure that you use the same (lower) case for hexidecimal values. NOTE: You need to modify the RUN+="" statement to point to your location you use where your adb program is located. NOTE: Debian type distros may need to have GROUP="plugdev" instead of "usb" NOTE: You have to add yourself to the "usb" (or "plugdev") group if you choose to use MODE=0664 instead of MODE=0666. This example rules file uses MODE=0664. Version 1.0, by Jose Da Silva <Digital@JoesCat.com> 2011oct11

ACTION!="add", GOTO="android_rules_end" SUBSYSTEM=="usb", GOTO="android_usb_rules_begin" SUBSYSTEM!="usb", GOTO="android_usb_rules_end" LABEL="android_usb_rules_begin" # (Remove the comment '#' if your device has a comment in front of it) # Acer # ATTRS{idVendor}=="0502", ENV{adb_matched}="yes" # Acer Liquid 3202, 3203=(debug) ATTRS{idVendor}=="0502", ATTRS{idProduct}=="3203", ENV{adb_matched}="yes" # Archos 5 1350=(storage), 1357=(media), 1360=(network), 1361, 18d1:0002=(debug) # ATTRS{idVendor}=="0e79", ATTRS{idProduct}=="1361", ENV{adb_matched}="yes" # ASUS # ATTRS{idVendor}=="0b05", ENV{adb_matched}="yes" # Dell # ATTRS{idVendor}=="413c", ENV{adb_matched}="yes" # Foxconn ATTRS{idVendor}=="0489", ENV{adb_matched}="yes" # Garmin-Asus # ATTRS{idVendor}=="091e", ENV{adb_matched}="yes" # Google, Nexus One 4e11, 4e12=(debug), 4e13=(tether) # Google, Nexus S 4e20=(fastboot), 4e21, 4e22=(debug), 4e24=(tether) ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="4e?2", ENV{adb_matched}="yes" # HTC Dream / ADP1 / G1 / Magic / Tattoo =0c01, 0c02=(debug) ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0c02", ENV{adb_matched}="yes" # HTC Desire 0c87=(debug) ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0c87", ENV{adb_matched}="yes" # HTC EVO 4G 0c8d=(debug)

ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0c8d", ENV{adb_matched}="yes" # HTC Desire 0c99=(debug) ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0c99", ENV{adb_matched}="yes" # HTC Desire HD 0ca2=(debug), 0ff8=(tether) ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0ca2", ENV{adb_matched}="yes" # HTC Android Fastboot Bootloader 0fff, 0ffe=(modem) ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="0fff", ENV{adb_matched}="yes" # Huawei # ATTRS{idVendor}=="12d1", ENV{adb_matched}="yes" # Huawei Ideos 1037, 1038=(debug) ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1038", ENV{adb_matched}="yes" # K-Touch # ATTRS{idVendor}=="24e3", ENV{adb_matched}="yes" # KT Tech # ATTRS{idVendor}=="2116", ENV{adb_matched}="yes" # Kyocera # ATTRS{idVendor}=="0482", ENV{adb_matched}="yes" # Lenovo # ATTRS{idVendor}=="17ef", ENV{adb_matched}="yes" # LG # ATTRS{idVendor}=="1004", ENV{adb_matched}="yes" # LG Ally/Optimus One/Vortex/P500 618f, 618e=(debug) ATTRS{idVendor}=="1004", ATTRS{idProduct}=="618e", ENV{adb_matched}="yes" # LG GT540, 61b4 (disable "as USB storage) ATTRS{idVendor}=="1004", ATTRS{idProduct}=="61b4", ENV{adb_matched}="yes" # Motorola # ATTRS{idVendor}=="22b8", ENV{adb_matched}="yes" # Motorola Droid/Milestone/Nexus 41d9, 41db=(debug), 41de=(PCmode) ATTRS{idVendor}=="22b8", ATTRS{idProduct}=="41db", ENV{adb_matched}="yes" # Motorola Cliq/MB200 2d66=(debug) ATTRS{idVendor}=="22b8", ATTRS{idProduct}=="2d66", ENV{adb_matched}="yes" # Motorola Xoom MZ600 70a8, 70a9=(debug) ATTRS{idVendor}=="22b8", ATTRS{idProduct}=="70a9", ENV{adb_matched}="yes" # NEC # ATTRS{idVendor}=="0409", ENV{adb_matched}="yes" # Barnes and Noble Nook=0001, NOOKcolor=0002 # ATTRS{idVendor}=="2080", ENV{adb_matched}="yes" # Nvidia # ATTRS{idVendor}=="0955", ENV{adb_matched}="yes" # Nvidia Notion Ink Adam 7100, ????=(debug) ATTRS{idVendor}=="0955", ATTRS{idProduct}=="71??", ENV{adb_matched}="yes" # OTGV # ATTRS{idVendor}=="2257", ENV{adb_matched}="yes" # Pantech # ATTRS{idVendor}=="10a9", ENV{adb_matched}="yes" # Pegatron # ATTRS{idVendor}=="1d4d", ENV{adb_matched}="yes" # Philips # ATTRS{idVendor}=="0471", ENV{adb_matched}="yes" # Panasonic (Matsushita) # ATTRS{idVendor}=="04dA", ENV{adb_matched}="yes" # Qualcomm # ATTRS{idVendor}=="05c6", ENV{adb_matched}="yes" # SK Telesys # ATTRS{idVendor}=="1f53", ENV{adb_matched}="yes" # Samsung # ATTRS{idVendor}=="04e8", ENV{adb_matched}="yes" # Samsung GT19100 Galaxy S II, 6860, 685e=(debug), 685b=(storage) ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="685e", ENV{adb_matched}="yes" # Samsung Z100 Mobile Phone 6601=(debug)

ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="6601", ENV{adb_matched}="yes" # Sharp # ATTRS{idVendor}=="04dd", ENV{adb_matched}="yes" # Sony Ericsson # ATTRS{idVendor}=="0fce", ENV{adb_matched}="yes" # Sony Ericsson Xperia X10 mini 3137, 2137=(debug) ATTRS{idVendor}=="0fce", ATTRS{idProduct}=="2137", ENV{adb_matched}="yes" # Sony Ericsson Xperia X10 mini pro 3138, 2138=(debug) ATTRS{idVendor}=="0fce", ATTRS{idProduct}=="2138", ENV{adb_matched}="yes" # Sony Ericsson Xperia X8 3149, 2149=(debug) ATTRS{idVendor}=="0fce", ATTRS{idProduct}=="2149", ENV{adb_matched}="yes" # Sony Ericsson Xperia X12 e14f, 614f=(debug) ATTRS{idVendor}=="0fce", ATTRS{idProduct}=="614f", ENV{adb_matched}="yes" # Toshiba # ATTRS{idVendor}=="0930", ENV{adb_matched}="yes" # ZTE # ATTRS{idVendor}=="19d2", ENV{adb_matched}="yes" # ZTE Blade 1353, 1351=(debug), 1354=(recovery) 18d1:d00d=(fastboot) ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="1351", ENV{adb_matched}="yes" # If a match is found, then add the device and run the adb server ENV{adb_matched}!="yes", GOTO="android_rules_end" SYMLINK+="android_adb", MODE="0664", GROUP="usb" RUN+="/opt/android-sdk-linux_x86/platform-tools/adb devices" LABEL="android_rules_end"

Das könnte Ihnen auch gefallen