!UUYziobKGGxpovWyAN:nixos.org

Robotnix

247 Members
Build Android (AOSP) using Nix | https://github.com/nix-community/robotnix76 Servers

Load older messages


SenderMessageTime
20 Apr 2026
@cyclopentane:aidoskyneen.eupentaneoh and btw, just to reiterate what I said earlier, I won't merge any LLM-generated or LLM-assisted contributions, ever.06:34:12
@cyclopentane:aidoskyneen.eupentanelooked into this just now btw and it seems like LOS did us the favour of documenting the "API" the update server needs to have: https://github.com/LineageOS/android_packages_apps_Updater/blob/lineage-23.2/README.md 06:35:14
@cyclopentane:aidoskyneen.eupentanehaving dug into this a bit deeper - the JSON response format dorsn't seem to have changed at all, but we rather need to change the resource URL we set via the product RRO in modules/apps/updater.nix07:26:38
@cyclopentane:aidoskyneen.eupentaneok nvm. the problem solely seems to be that the overlay doesn't get applied correctly22:07:51
@cyclopentane:aidoskyneen.eupentanenamespace collision with some stock LineageOS overlay maybe?22:08:06
23 Apr 2026
@cyclopentane:aidoskyneen.eupentanerobotnix is not an official NixOS project, and has no formal governance model except for a de-factor meritocracy à la "whoever steps up to maintain it gets to call the shots"18:07:24
@magic_rb:matrix.redalder.orgmagic_rbAnd the current BDFL has a more sane take than the nixos project thankfully18:09:24
@cyclopentane:aidoskyneen.eupentanebut still </topic> please18:11:13
@cyclopentane:aidoskyneen.eupentane * but still, </topic> please 18:11:19
@cyclopentane:aidoskyneen.eupentane* robotnix is not an official NixOS project, and has no formal governance model except for a de-facto meritocracy à la "whoever steps up to maintain it gets to call the shots"18:12:19
@cyclopentane:aidoskyneen.eupentaneOh lol, this room got matrixed again as it seems18:37:26
@cyclopentane:aidoskyneen.eupentane Okay so I think I've narrowed down the problem to a namespace collision w.r.t. Updater__lineage_FP4__auto_generated_rro_product 21:45:08
@cyclopentane:aidoskyneen.eupentaneI am however unsure whether the two auto-generated overlays (the stock lineage one and the robotnix one) should be merged, or whether they should be two different APKs with distinct names21:46:22
27 Apr 2026
@tmms_:matrix.orgtom joined the room.13:24:10
@bigfreakintaco:matrix.orgbigfreakintaco joined the room.15:35:26
@bigfreakintaco:matrix.orgbigfreakintacoHello Everyone :)15:37:37
@bigfreakintaco:matrix.orgbigfreakintacoI just want to say thank you to all the devs/contributors to this project!15:56:05
@chrillefkr:matrix.orgchrillefkr

Hey, anyone gotten this issue before?

$ nix run .\#robotnixConfigurations.dailydriver.releaseScript -- keys
Signing target files
....
    signing: com.android.adbd.apex                                                  container (/dev/shm/robotnix_keys.XXXXGNTOWw/com.android.adbd)
           : com.android.adbd.apex                                                  payload   (/dev/shm/robotnix_keys.XXXXGNTOWw/com.android.adbd.pem)
    signing: com.android.adservices.apex                                            container (/dev/shm/robotnix_keys.XXXXGNTOWw/com.android.adservices)
           : com.android.adservices.apex                                            payload   (/dev/shm/robotnix_keys.XXXXGNTOWw/com.android.adservices.pem)
NOT signing: com.android.apex.cts.shim.apex
        (skipped due to special cert string)
    signing: com.android.appsearch.apex                                             container (/dev/shm/robotnix_keys.XXXXGNTOWw/com.android.appsearch)
           : com.android.appsearch.apex                                             payload   (/dev/shm/robotnix_keys.XXXXGNTOWw/com.android.appsearch.pem)
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/nix/store/09k3hq5374awmdc5x43lqlbin4fwk6xn-ota-tools/bin/sign_target_files_apks/__main__.py", line 52, in <module>
  File "/nix/store/09k3hq5374awmdc5x43lqlbin4fwk6xn-ota-tools/bin/sign_target_files_apks/__main__.py", line 46, in _soong_main
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "sign_target_files_apks.py", line 1958, in <module>
  File "sign_target_files_apks.py", line 1933, in main
  File "sign_target_files_apks.py", line 828, in ProcessTargetFiles
  File "apex_utils.py", line 518, in SignApex
  File "apex_utils.py", line 443, in SignCompressedApex
  File "apex_utils.py", line 358, in SignUncompressedApex
  File "apex_utils.py", line 95, in ProcessApexFile
apex_utils.ApexSigningError: Failed to find signing keys for apk file /tmp/tmptg_lzm5z/priv-app/com.android.appsearch.apk@BP4A.251205.006/com.android.appsearch.apk.apk in apex /tmp/original-apex-jkgopzve.apex.  Use "-e <apkname>=" to specify a key
19:15:53
@cyclopentane:aidoskyneen.eupentaneare you trying to sign a lineageos build perchance?20:50:48
@chrillefkr:matrix.orgchrillefkrYeahh, for Fairphone 421:06:08
@cyclopentane:aidoskyneen.eupentanehm, are you creating an entirely new build, or updating an existing one?21:10:51
@cyclopentane:aidoskyneen.eupentane Because if you're creating a new one, I'd recommend setting stateVersion = "3" 21:11:19
@cyclopentane:aidoskyneen.eupentane(signing is known to be somewhat brittle with the earlier state versions)21:11:34
@chrillefkr:matrix.orgchrillefkrUpdating existing one, from back in february. I've set stateVersion to 1, as it seemed to fit the instructions given, after I had updated flake inputs. What is stateVersion really?21:12:35
@cyclopentane:aidoskyneen.eupentane Ah okay, then you should keep your stateVersion fixed to "1" 21:13:10
@cyclopentane:aidoskyneen.eupentaneI'm a bit surprised though that the signing seems to have worked back then, I thought LOS signing was pretty much consistently broken until ~march21:13:43
@chrillefkr:matrix.orgchrillefkrI also regenerated avb key sizes to 4096. I guess that will cause OTA update to fail though :/21:14:18
@chrillefkr:matrix.orgchrillefkrLol, lucky me I guess21:14:43
@cyclopentane:aidoskyneen.eupentane

What is stateVersion really?

I made backwards-incompatible changes to how exactly the APKs and APEXes are being signed in robotnix, and I introduced stateVersion to prevent these breaking changes from occuring

21:14:48
@cyclopentane:aidoskyneen.eupentane if it's really just the avb keys that you regenerated (which you shouldn't do btw - you should set avbKeySize to your old value instead ;) ), the OTA upgrade will only fail if you relocked your bootloader 21:15:29

Show newer messages


Back to Room ListRoom Version: 6