Gundroid = Guix + Android ♥
This channel contains: cli-tools, emulator and android-studio.
Originally took Android Studio launching example from Julien Lepiller (@roptat) blogpost. You can also take a look on his guix-android channel.
Before lauching the emulator the followings needs to be properly packed (patchelf’ed) and expose proper binaries:
- [X] cli-tools (apkanalyzer, avdmanager, lint, retrace, sdkmanager)
- [X] emulator (emulator, mksdcard)
- [ ] build-tools (aapt2, apksigner, zipalign)
- [ ] platform-tools (adb, etc1tool, fastboot, logcat)
(see (1) as reference)
Even having it packed propely emulator won’t work, because it would expect envvar ANDROID_HOME
set propely and the content of this directory to replicate exact file-system structure (from (1)):
- commandline tools bins: cmdline-tools/version/bin/
- build tools bins: build-tools/version
- emulator’s bins: emulator
- platform-tools bins: platform-tools
This can be done by creating guix service after packing all them propely.
Android studio is packaged via (nonguix multiarch-container)
same as steam
in nonguix
.
Install via: guix package -L src -f src/gundroid/studio.scm
. Then you can run it with android-studio
command.
You can run emulator from it.
Don’t forget to add libvrt-service-type to your’s system config and set the virtualization option ON in bios to access emulator from Android Studio.
This channels includes nonfree software!
Please do NOT promote this repository on any official Guix communication channels, such as their mailing lists or IRC channel, even in response to support requests! This is to show respect for the Guix project’s strict policy against recommending nonfree software, and to avoid any unnecessary hostility.