!UUYziobKGGxpovWyAN:nixos.org

Robotnix

237 Members
Build Android (AOSP) using Nix | https://github.com/danielfullmer/robotnix73 Servers

Load older messages


SenderMessageTime
15 Oct 2025
@volth:matrix.orgvolth joined the room.01:15:13
@volth:matrix.orgvolth
nix-build -E "with (import ./default.nix {
 configuration = {
  flavor = "lineageos";
  flavorVersion = "22.2";
  device = "sdk_phone_x86_64";
 }
});  factoryImg'

built successfully.
the only question is how to run it :)
probably we need .iso or .qcow2 outputs akin to BlissRoms

14:38:33
@atemu12:matrix.orgatemu12 @volth:matrix.org there's an emulator output 16:08:00
@atemu12:matrix.orgatemu12It's a wrapper that directly runs the emulator16:08:19
@atemu12:matrix.orgatemu12With correct image and all16:08:31
@volth:matrix.orgvolth

not actually, but it is a good point to start:

INFO         | Android emulator version 36.3.2.0 (build_id 14184492) (CL:N/A)
INFO         | Graphics backend: gfxstream
INFO         | Found systemPath /nix/store/nabl5nqq1hz6mns1cvmx8fss7v9c9yd7-fake-sdk/system-images/android/x86_64/
FATAL        | QEMU2 emulator does not support arm64 CPU architecture
17:14:43
@atemu12:matrix.orgatemu12 @volth:matrix.org yeah that means it's the wrong arch 17:28:48
@volth:matrix.orgvolth It runs! On the screen there is only sort of a screensaver with 3 circles (https://imgur.com/arsGi9L.png), while adb shell does work. And the guest works very slow as though it emulates a foreign architecture. probably -enable-kvm is required somewhere 20:27:12
@atemu12:matrix.orgatemu12That's the LOS boot animation20:28:05
@atemu12:matrix.orgatemu12If you're emulating, it'll run veeeery slowly, so it getting stuck is unfortunately normal20:28:38
@atemu12:matrix.orgatemu12You can't do KVM with a foreign arch. Like, that conceptually does not work. You need to set the correct arch via the robotnix option then it works with KVM automagically20:30:05
@atemu12:matrix.orgatemu12At least it did half a year ago when I fixed the emulator20:30:22
@volth:matrix.orgvolthIt is not foreign, x86_64 everywhere20:31:40
@atemu12:matrix.orgatemu12Ah, I misread20:32:01
@atemu12:matrix.orgatemu12Hm, does KVM work otherwise on your system?20:32:25
@volth:matrix.orgvolthyes. I tried BlissOS in normal qemu (not avd emulator) and it runs quite fast20:33:31
@atemu12:matrix.orgatemu12There was some way to make the emulator print debug logs20:33:57
@atemu12:matrix.orgatemu12And you could have a look at the cli args of the qemu process20:34:14
@volth:matrix.orgvolthIt is AOSP with virtio drivers20:34:15
@volth:matrix.orgvolth

LOS boot animation

that boot animation runs for 25 minutes already....

20:35:59
@atemu12:matrix.orgatemu12Is it progressing or still stuck?20:36:22
@atemu12:matrix.orgatemu12Trying to figure out whether it did actually boot quickly and the graphics stack is simply stuck20:36:41
@atemu12:matrix.orgatemu12Check the logcat to figure out what state it's in20:36:56
@atemu12:matrix.orgatemu12And there was some way to check whether the system has booted20:37:11
@atemu12:matrix.orgatemu12Need to dig that out of my bachelor thesis lol20:37:22
@atemu12:matrix.orgatemu12 getprop sys.boot_completed 20:37:41
@atemu12:matrix.orgatemu12You could play with the different GPU options20:38:08
@atemu12:matrix.orgatemu12 I did have to put some other version of mesa.drivers into the LD_LIBRARY_PATH when I last played around with that 20:38:55
@atemu12:matrix.orgatemu12Probably the one from the nixpkgs input of the robotnix flake20:39:07
@volth:matrix.orgvolth

Probably this: Could not find 'aidl/activity' for ctl.interface_start from pid: 169 (/system/bin/servicemanager)

Likely I am the first one who run LOS 22.2 in the emulator, I had to start with something older and tested

20:50:35

Show newer messages


Back to Room ListRoom Version: 6