Android: Difference between revisions
Update n9ix-shell command for platform-tools |
m Android Debug Bridge |
||
| Line 232: | Line 232: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== Android Debug Bridge === | |||
<syntaxhighlight lang="nix"> | |||
{ | |||
programs.adb.enable = true; | |||
services.udev.extraRules = '' | |||
# replace the "[]" for the idVendor and idProduct variable | |||
SUBSYSTEM=="usb", ATTR{idVendor}==""[]", MODE="[]", GROUP="adbusers", TAG+="uaccess" | |||
SUBSYSTEM=="usb", ATTR{idVendor}=="[]", ATTR{idProduct}=="[]", SYMLINK+="android_adb" | |||
SUBSYSTEM=="usb", ATTR{idVendor}=="[]", ATTR{idProduct}=="[]", SYMLINK+="android_fastboot" | |||
''; | |||
# add user to adbusers group | |||
users.users.myUser = { | |||
isNormalUser = true; | |||
extraGroups = [ | |||
"adbusers" | |||
]; | |||
} | |||
</syntaxhighlight> | |||
# [https://nixos.org/nix-dev/2015-April/016881.html more information on that snippet] | # [https://nixos.org/nix-dev/2015-April/016881.html more information on that snippet] | ||
# [https://gist.github.com/Nadrieril/d006c0d9784ba7eff0b092796d78eb2a A shell.nix to build LineageOS] | # [https://gist.github.com/Nadrieril/d006c0d9784ba7eff0b092796d78eb2a A shell.nix to build LineageOS] | ||
# [https://github.com/danielfullmer/robotnix robotnix], building aosp roms (e.g. LineageOS) with nix. | # [https://github.com/danielfullmer/robotnix robotnix], building aosp roms (e.g. LineageOS) with nix. | ||
# [https://github.com/mrVanDalo/LineagoOS-build LineageOS build setup using terranix and hcloud], based on the [https://gist.github.com/Nadrieril/d006c0d9784ba7eff0b092796d78eb2a shell.nix to build LineageOS]. Useful if you are in a rush and don't have to much CPU power on your hand. | # [https://github.com/mrVanDalo/LineagoOS-build LineageOS build setup using terranix and hcloud], based on the [https://gist.github.com/Nadrieril/d006c0d9784ba7eff0b092796d78eb2a shell.nix to build LineageOS]. Useful if you are in a rush and don't have to much CPU power on your hand. | ||
# [https://wiki.archlinux.org/title/Android_Debug_Bridge Archlinux Wiki to Android_Debug_Bridge] | |||