Android: Difference between revisions

Axka (talk | contribs)
Make "ADB setup" section independent of operating system and method of installation.
Tags: Mobile edit Mobile web edit Visual edit
Locnide (talk | contribs)
m add missing trailing ; in android studio install snippet
 
(One intermediate revision by one other user not shown)
Line 38: Line 38:
== ADB setup ==
== ADB setup ==


To use the <code>adb</code> program, you can just [[Package installation|install]] the <code>android-tools</code> package.
To use <code>adb</code>, you can just [[Adding programs to PATH|run it from]] the <code>android-tools</code> package.


{{Note|1=Previously you would need use <code>programs.adb.enable = true;</code> and <code>users.users.<your-user>.extraGroups = [ "adbusers" ];</code> to add ADB to your PATH and configure access rules. This option is no longer needed as systemd 258 handles uaccess rules automatically. See the Nixpkgs pull request {{pull|454366}}.}}
{{Note|1=Previously you would need use <code>programs.adb.enable = true;</code> and <code>users.users.<your-user>.extraGroups = [ "adbusers" ];</code> to add ADB to your PATH and configure access rules. This option is no longer needed as systemd 258 handles uaccess rules for ADB and fastboot automatically. See the Nixpkgs pull request {{pull|454366}}.}}


=== Use Older Platform Version ===
=== Use Older Platform Version ===
Line 124: Line 124:
environment.systemPackages = [
environment.systemPackages = [
   pkgs.android-studio
   pkgs.android-studio
]
];
</syntaxhighlight>
</syntaxhighlight>