Android: Difference between revisions
imported>D-goldin No edit summary |
imported>Orangecms notes on running emulators |
||
| Line 13: | Line 13: | ||
If you don't want to nixify your emulators, you can use Android Studio and set up emulators there like a regular system. | If you don't want to nixify your emulators, you can use Android Studio and set up emulators there like a regular system. | ||
Using sdkmanager and avdmanager from the Android SDK may not work given how Nix stores its files. | Using `sdkmanager` and `avdmanager` from the Android SDK may not work given how Nix stores its files. You can use them from the Android Studio GUI. | ||
When using machine images from the SDK, you will need to run them with `steam-run`, e.g.: | |||
<code>steam-run ~/Android/Sdk/emulator/emulator -feature -Vulkan @Pixel_5_API_33</code> | |||
=== hardware acceleration === | |||
Add your user to the <code>kvm</code> group: | |||
<syntaxhighlight lang=nix> | |||
{ | |||
users.users.<your-user>.extraGroups = ["kvm"]; | |||
} | |||
</syntaxhighlight> | |||
== adb setup == | == adb setup == | ||