Skip to content

grapheneos: bump to 2026-02-14#360

Open
cyclic-pentane wants to merge 5 commits intomasterfrom
grapheneos_2026-02-14
Open

grapheneos: bump to 2026-02-14#360
cyclic-pentane wants to merge 5 commits intomasterfrom
grapheneos_2026-02-14

Conversation

@cyclic-pentane
Copy link
Collaborator

The build is still failing, debugging rn.

@cyclic-pentane
Copy link
Collaborator Author

GrapheneOS 2026021200 release notes:

migrate otatools.zip changes to Android's modern build system (soong)

The issue is that GrapheneOS/platform_build@6029682 causes otatools.zip to be absent from $ANDROID_PRODUCT_OUT. Currently trying to figure out how to convince Soong to give it to me anyway without any ugly hacks.

@cyclic-pentane
Copy link
Collaborator Author

cyclic-pentane commented Feb 15, 2026

Funnily enough, the hacky fix I pushed yesterday is exactly how GrapheneOS used to do it too: GrapheneOS/script@248f737

In the meanwhile, they've started doing GrapheneOS/script@c780c1d, so we'll do it like that.

@cyclic-pentane cyclic-pentane marked this pull request as ready for review February 15, 2026 08:44
@mio-19

This comment was marked as outdated.

@mio-19
Copy link
Contributor

mio-19 commented Feb 15, 2026

maybe caused by 9231c51


       > 2026-02-15 18:38:25 - common.py - INFO    :   Running: "ln -sf /build/out/target/product/akita/obj/PACKAGING/target_files_intermediates/akita-target_files/IMAGES/system_ext.img /build/out/soong/.temp/tmppsbr9a3b/system_ext.img"
       > 2026-02-15 18:38:25 - common.py - INFO    :
       > 2026-02-15 18:38:25 - common.py - INFO    :   Running: "ln -sf /build/out/target/product/akita/obj/PACKAGING/target_files_intermediates/akita-target_files/IMAGES/userdata.img /build/out/soong/.temp/tmppsbr9a3b/userdata.img"
       > 2026-02-15 18:38:25 - common.py - INFO    :
       > 2026-02-15 18:38:25 - common.py - INFO    :   Running: "ln -sf /build/out/target/product/akita/obj/PACKAGING/target_files_intermediates/akita-target_files/IMAGES/pvmfw.img /build/out/soong/.temp/tmppsbr9a3b/pvmfw.img"
       > 2026-02-15 18:38:25 - common.py - INFO    :
       > 2026-02-15 18:38:25 - common.py - INFO    :   Running: "/build/out/host/linux-x86/bin/avbtool calculate_vbmeta_digest --image /build/out/soong/.temp/tmppsbr9a3b/vbmeta.img"
       > 2026-02-15 18:38:25 - common.py - INFO    : 786411e640da2c9f7c2374e584cd0339bec82c63fde47c3b3bc27e05742cdc10
       > 2026-02-15 18:38:25 - add_img_to_target_files.py - INFO    : done.
       > [100% 152324/152324] Packaging target files: out/target/product/akita/obj/PACKAGING/target_files_intermediates/akita-target_files.zip (priority: 2)
       >
       > #### build completed successfully (02:54:28 (hh:mm:ss)) ####
       >
       > buildPhase completed in 3 hours 2 minutes 48 seconds
       > Running phase: installPhase
       > /nix/store/9v92708qmblip01dc60vnilzbcii5zad-stdenv-linux/setup: line 1765: ANDROID_HOST_OUT: unbound variable
       For full logs, run 'nix log /nix/store/3nj89xbhp0s8n4iqkq7w4csbdbxm5508-robotnix-akita-2026021200.drv'.
error: 1 dependencies of derivation '/nix/store/z4n7ai8k5xviqi15hsifjqzhfhciza99-ota-tools.drv' failed to build
error: 1 dependencies of derivation '/nix/store/pnw9q67icdlxsnll0q2vknyrzbnkyyxv-release.sh.drv' failed to build

@cyclic-pentane
Copy link
Collaborator Author

Huh, is ANDROID_HOST_OUT being unset thorough the build process? I'm gonna have to do some digging on this.

@cyclic-pentane
Copy link
Collaborator Author

urgh, my bad, I completely forgor that the huge chunk of Bash in buildPhase is a nested Bash script executed in the robotnix-build invocation:

${pkgs.toybox}/bin/cat << 'EOF2' | fakeuser $SAVED_UID $SAVED_GID robotnix-build

@mio-19
Copy link
Contributor

mio-19 commented Feb 17, 2026


error: builder for '/nix/store/42c6xrw32vp746vyk9jwq8hygvwp5jh0-ota-tools.drv' failed with exit code 1;
       last 4 log lines:
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/xvvlqcry3n47c39pdphm4xdx7nzkyj5q-robotnix-akita-2026021200/otatools.zip
       > unzip:  cannot find or open /nix/store/xvvlqcry3n47c39pdphm4xdx7nzkyj5q-robotnix-akita-2026021200/otatools.zip, /nix/store/xvvlqcry3n47c39pdphm4xdx7nzkyj5q-robotnix-akita-2026021200/otatools.zip.zip or /nix/store/xvvlqcry3n47c39pdphm4xdx7nzkyj5q-robotnix-akita-2026021200/otatools.zip.ZIP.
       > do not know how to unpack source archive /nix/store/xvvlqcry3n47c39pdphm4xdx7nzkyj5q-robotnix-akita-2026021200/otatools.zip
       For full logs, run 'nix log /nix/store/42c6xrw32vp746vyk9jwq8hygvwp5jh0-ota-tools.drv'.
error: 1 dependencies of derivation '/nix/store/yp14nbw4hnd28d8fjya5phhr8jm3xv7n-release.sh.drv' failed to build

@mio-19
Copy link
Contributor

mio-19 commented Feb 17, 2026


user in razer in repo on  main 
❯ ls /nix/store/xvvlqcry3n47c39pdphm4xdx7nzkyj5q-robotnix-akita-2026021200  
akita-target_files.zip  otatools-packagelinux_glibc_x86_64
user in razer in repo on  main 
❯ file /nix/store/xvvlqcry3n47c39pdphm4xdx7nzkyj5q-robotnix-akita-2026021200/otatools-packagelinux_glibc_x86_64      
/nix/store/xvvlqcry3n47c39pdphm4xdx7nzkyj5q-robotnix-akita-2026021200/otatools-packagelinux_glibc_x86_64: Zip archive data, at least v2.0 to extract, compression method=deflate
user in razer in repo on  main 
❯ 

@mio-19
Copy link
Contributor

mio-19 commented Feb 17, 2026

releaseScript did build on dab7f26 but that commit lack new keys

@mio-19
Copy link
Contributor

mio-19 commented Feb 17, 2026

instead of cp --reflink=auto ${config.otatoolsOutPath} $out/ maybe cp --reflink=auto ${config.otatoolsOutPath} $out/cp --reflink=auto ${config.otatoolsOutPath} $out/otatools.zip

@cyclic-pentane
Copy link
Collaborator Author

Okay, next attempt.

@cyclic-pentane
Copy link
Collaborator Author

There still are issues with the com.android.bluetooth package by the way:

type: crash
osVersion: google/tegu/tegu:16/BP4A.260205.001/2026021200:user/release-keys
flags: dev options enabled
package: com.android.bluetooth:36, targetSdk 36
sharedUid: android.uid.bluetooth
process: com.android.bluetooth

signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
Abort message: 'JNI FatalError called: (com.android.bluetooth) frameworks/base/core/jni/com_android_internal_os_Zygote.cpp:2104: selinux_android_setcontext(1002, 0, "default:privapp:targetSdkVersion=36:partition=system:complete", "com.android.bluetooth", selinux_flags: "1ff") failed'

backtrace:
      #00 pc 000000000007d9c0  /apex/com.android.runtime/lib64/bionic/libc.so (abort+160) (BuildId: b2e2593ea9af5cb426017f2c32a8fcf5)
      #01 pc 0000000000933488  /apex/com.android.art/lib64/libart.so (art::Runtime::Abort(char const*)+1016) (BuildId: beb7fbd1d32b8638db451308cec29e5b)
      #02 pc 0000000000016f04  /apex/com.android.art/lib64/libbase.so (android::base::SetAborter(std::__1::function<void (char const*)>&&)::$_0::__invoke(char const*)+84) (BuildId: eba44ef0784e7c9bd49d2eb775454587)
      #03 pc 0000000000016374  /apex/com.android.art/lib64/libbase.so (android::base::LogMessage::~LogMessage()+548) (BuildId: eba44ef0784e7c9bd49d2eb775454587)
      #04 pc 00000000008869dc  /apex/com.android.art/lib64/libart.so (art::JNI<true>::FatalError(_JNIEnv*, char const*)+220) (BuildId: beb7fbd1d32b8638db451308cec29e5b)
      #05 pc 0000000000266088  /system/lib64/libandroid_runtime.so (android::zygote::ZygoteFailure(_JNIEnv*, char const*, _jstring*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)+200) (BuildId: d6512e1c411d82cd89d6fa2d55e8da81)
      #06 pc 0000000000272630  /system/lib64/libandroid_runtime.so ((anonymous namespace)::SpecializeCommon(_JNIEnv*, unsigned int, unsigned int, _jintArray*, int, _jobjectArray*, long, long, long, int, _jstring*, _jstring*, bool, bool, _jstring*, _jstring*, bool, _jobjectArray*, _jobjectArray*, bool, bool, bool, (anonymous namespace)::ExtraArgs&)+25072) (BuildId: d6512e1c411d82cd89d6fa2d55e8da81)
      #07 pc 0000000000269d9c  /system/lib64/libandroid_runtime.so (android::com_android_internal_os_Zygote_nativeForkAndSpecialize(_JNIEnv*, _jclass*, int, int, _jintArray*, int, _jobjectArray*, int, _jstring*, _jstring*, _jintArray*, _jintArray*, unsigned char, _jstring*, _jstring*, unsigned char, unsigned char, _jobjectArray*, _jobjectArray*, unsigned char, unsigned char, unsigned char, _jlongArray*)+1996) (BuildId: d6512e1c411d82cd89d6fa2d55e8da81)
      #08 pc 0000000000857360  /system/framework/arm64/boot-framework.oat (art_jni_trampoline+384) (BuildId: 0affb8234eb47f7533b0854893127928c3f3a6c0)
      #09 pc 00000000006885b8  /apex/com.android.art/lib64/libart.so (nterp_helper+2152) (BuildId: beb7fbd1d32b8638db451308cec29e5b)
      #10 pc 0000000000334b9a  /system/framework/framework.jar (offset 0x2404000) (com.android.internal.os.Zygote.forkAndSpecialize+138)
      #11 pc 00000000007e1748  /system/framework/arm64/boot-framework.oat (com.android.internal.os.ZygoteConnection.processCommand+1576) (BuildId: 0affb8234eb47f7533b0854893127928c3f3a6c0)
      #12 pc 00000000007e2e04  /system/framework/arm64/boot-framework.oat (com.android.internal.os.ZygoteServer.runSelectLoop+2100) (BuildId: 0affb8234eb47f7533b0854893127928c3f3a6c0)
      #13 pc 00000000007f35dc  /system/framework/arm64/boot-framework.oat (com.android.internal.os.ZygoteInit.main+3020) (BuildId: 0affb8234eb47f7533b0854893127928c3f3a6c0)
      #14 pc 00000000002ff860  /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+640) (BuildId: beb7fbd1d32b8638db451308cec29e5b)
      #15 pc 00000000002fe504  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+996) (BuildId: beb7fbd1d32b8638db451308cec29e5b)
      #16 pc 000000000062e730  /apex/com.android.art/lib64/libart.so (art::JNI<true>::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+176) (BuildId: beb7fbd1d32b8638db451308cec29e5b)
      #17 pc 000000000010fb4c  /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+108) (BuildId: d6512e1c411d82cd89d6fa2d55e8da81)
      #18 pc 0000000000139b3c  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+924) (BuildId: d6512e1c411d82cd89d6fa2d55e8da81)
      #19 pc 00000000000045f0  /system/bin/app_process64 (main+1296) (BuildId: 1f5dcac27b5eeb4d87d2ca933b422055)
      #20 pc 000000000006fcac  /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+124) (BuildId: b2e2593ea9af5cb426017f2c32a8fcf5)

I hope that's gonna go away if we create a new key called bluetooth and use that to sign Bluetooth.apk, like upstream Graphene does - testing rn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants