Android: Difference between revisions
imported>Orangecms notes on running emulators |
imported>Orangecms more notes on hardware accel |
||
| 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 | Using <code>sdkmanager</code> and <code>avdmanager</code> 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 | When using machine images from the SDK, you will need to run them with <code>steam-run</code>, and possibly pass extra flags, e.g.: | ||
<code>steam-run ~/Android/Sdk/emulator/emulator -feature -Vulkan @Pixel_5_API_33</code> | <code>steam-run ~/Android/Sdk/emulator/emulator -feature -Vulkan @Pixel_5_API_33</code> | ||
=== hardware acceleration === | === hardware acceleration === | ||
NOTE: Whether this here is effective needs more research and confirmation. My colleague and I have seen the emulator using around 800% CPU. So far, the following has improved that on my side. | |||
Add your user to the <code>kvm</code> group: | Add your user to the <code>kvm</code> group: | ||