Giter Site home page Giter Site logo

Unavoidable GOTO about android-udev-rules HOT 5 CLOSED

m0rf30 avatar m0rf30 commented on August 25, 2024
Unavoidable GOTO

from android-udev-rules.

Comments (5)

zamber avatar zamber commented on August 25, 2024

That's right.

https://github.com/M0Rf30/android-udev-rules/blob/master/51-android.rules#L496 :

# Skip other vendor tests
LABEL="android_usb_rule_match"

How exactly is that an issue for you, @tibocapo?
Once you get a matching vendor ID, there's no point in parsing anything after that.

from android-udev-rules.

tibocapo avatar tibocapo commented on August 25, 2024

My issue is my vendor id is never matched because of this row:

https://github.com/M0Rf30/android-udev-rules/blob/master/51-android.rules#L132

I have an HTC which is supposed to be check after this GOTO.

from android-udev-rules.

zamber avatar zamber commented on August 25, 2024

I see, this should be fixed. I'll do a Pull request later today if I find a free minute. For now just change it from:

#   Honeywell/Foxconn
ATTR{idVendor}=="0c2e", ENV{adb_user}="yes"
#       D70e
ATTR{idProduct}=="0ba3", SYMLINK+="android_adb"
GOTO="android_usb_rule_match"

to:

#   Honeywell/Foxconn
ATTR{idVendor}!="0c2e", GOTO="not_Foxconn"
ENV{adb_user}="yes"
#       D70e
ATTR{idProduct}=="0ba3", SYMLINK+="android_adb"
GOTO="android_usb_rule_match"
LABEL="not_Foxconn"

and it should work fine.

from android-udev-rules.

tibocapo avatar tibocapo commented on August 25, 2024

Thanks

from android-udev-rules.

zamber avatar zamber commented on August 25, 2024

You're welcome :). Thanks for taking your time to get an account on GitHub
to report this!

On Wed, Oct 12, 2016 at 4:20 PM tibocapo [email protected] wrote:

Thanks


You are receiving this because you commented.

Reply to this email directly, view it on GitHub
#88 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAiACkpW-252gSD2aki3pg3Y5ytzFC1Hks5qzK6kgaJpZM4KTsPZ
.

from android-udev-rules.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.