New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
android-udev-rules: use proper path for udev/rules.d #31705
Conversation
Both directories are equivalent: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/hardware/udev.nix#L51 The rule file is also loaded without this patch:
|
I don't see /etc/udev/rules.d/51-android.rules on my machine and adb doesn't work without root, that's my point. Maybe it is something I forgot to do in configuration.nix. |
You need to add nixpkgs/nixos/modules/programs/adb.nix Lines 24 to 28 in a165a38
|
Thanks @jtojnar, I do now see the file in /etc/udev/rules.d, and with my user part of adbusers group, I still can't adb shell to my phone. |
It works for me fine even without adding myself to the group. Are you sure you have USB debugging enabled on the phone? |
I does work with other Linux distros that uses the same rules file. I get the following when I try to adb shell:
NEVERMIND I made sure to select Transfer files in the telephone menu, which transformed my phone from a fastboot device to a OnePlus 5 phone and after that I was able to adb shell into it as a user. |
This can be closed then. |
Motivation for this change
The file 51-android.rules don't appear properly in /etc/udev/rules.d
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)