Description
Hello, M0Rf30 (Gianluca Boiano). Thank you and the team for your useful and necessary work. Rules 51-android.rules
work well, including with new smartphones.
I apologize in advance for my poor English, I write through an online translator. :)
I don't have a message about adding rules or an error, I only need your advice if you don't mind. For myself and other users inexperienced in udev
, I studied the drawing (style) of the code in which you write rules and made an automatic rule editor for your 51-android.rules
: https://github.com/AKotov-dev/areditor
This can be useful for emergency insertion of the necessary rule, if it is missing, since packages with distribution updates are not released as often as we would like.
It searches for and shows in the list of rules a device that is connected to USB. If the device is not found, it offers to insert a ready-made rule with a comment like:
# Nokia-3310 my super phone
ATTR{idVendor}=="13fe", ATTR{idProduct}=="6300", ENV{adb_user}="yes"
The editor analyzes 3 main fragments of the rules:
- Minimalistic (idVendor and ENV):
ATTR{idVendor}==idVendor, ENV{adb_user}="yes" - Advanced (idVendor and idProduct):
ATTR{idVendor}==idVendor, ATTR{idProduct}==idProduct, ... - Complex (idVendor!= block, then searches for idProduct inside it):
ATTR{idVendor}!=idVendor ...
ATTR{idProduct}==idProduct ...
I noticed that outside the GOTO/LABEL
blocks you use ENV{adb_user}= "yes"
, and inside the GOTO/LABEL
blocks - ENV{adb_adb}="yes"
and some other combinations (ENV{adb_adbfast}="yes", SYMLINK+="android_adb").
Question: which ENV{adb_user}="yes"
or ENV{adb_adb}="yes"
(or something else ENV{???}
) is it better to use it for automatic addition to the list of rules so that the smartphone/device is guaranteed to work/recognized?
For example: ATTR{idVendor}=="13fe", ATTR{idProduct}=="6300", ENV{?right here?}="yes"
Thank you in advance.
Sincerely,
Alex