Error signing TrichromeChrome.apk when building OTA package

This page summarizes the projects mentioned and recommended in the original post on /r/CalyxOS

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • robotnix

    Build Android (AOSP) using Nix [maintainer=@danielfullmer,@Atemu]

  • commit 660b23fb152874b6d237065045c78ceeb6ebdbf9 Author: Chirayu Desai Date: Fri Jun 24 01:41:28 2022 +0530 releasetools: Replace Trichrome fingerprint * Trichrome APKs depend on TrichromeLibrary, and they specify both package name and a certificate digest * We sign TrichromeLibrary and both dependent APKs with the same key, so we can simply make sure that the fingerprint matches the key the APK is being (re)signed with Based on: https://github.com/danielfullmer/robotnix/blob/master/modules/apps/chromium-trichrome-patcher.py Change-Id: I79f8c69787decd5abbb5d5513dee9bc357eb8814

  • repo init --manifest-url "https://gitlab.com/CalyxOS/platform_manifest" \ --manifest-branch refs/tags/4.3.1 \ --partial-clone repo sync -j16 -c source build/envsetup.sh lunch calyx_panther-user m target-files-package m otatools-package KEYDIR=$HOME/.android-certs/panther sign_target_files_apks \ --verbose \ --replace_ota_keys \ --default_key_mappings "${KEYDIR}" \ --key_mapping=prebuilts/calyx/microg/certs/microg=${KEYDIR}/releasekey \ --avb_vbmeta_key "${KEYDIR}/avb.pem" \ --avb_vbmeta_algorithm SHA256_RSA4096 \ --avb_system_key "${KEYDIR}/avb.pem" \ --avb_system_algorithm SHA256_RSA4096 \ out/target/product/panther/obj/PACKAGING/target_files_intermediates/calyx_panther-target_files-2022.12.06.1530.zip \ out/signed-target_files.zip signing: Ripple.apk (/home/android/.android-certs/panther/releasekey) 2022-12-07 10:18:28 - common.py - INFO : Running: "/ext/android/calyxos/out/host/linux-x86/bin/aapt2 dump badging /tmp/tmp1epd98v2_Ripple.apk" 2022-12-07 10:18:28 - common.py - INFO : Running: "java -Xmx2048m -Djava.library.path=/ext/android/calyxos/out/host/linux-x86/lib64 -jar /ext/android/calyxos/out/host/linux-x86/framework/signapk.jar --min-sdk-version 33 /home/android/.android-certs/panther/releasekey.x509.pem /home/android/.android-certs/panther/releasekey.pk8 /tmp/tmp1epd98v2_Ripple.apk /tmp/tmp7uy67_p__Ripple.apk" signing: TrichromeChrome.apk (external/calyx/chromium/certs/chromium) 2022-12-07 10:18:29 - common.py - INFO : Running: "/ext/android/calyxos/out/host/linux-x86/bin/aapt2 dump badging /tmp/tmpk2f40k5d_TrichromeChrome.apk" Traceback (most recent call last): File "/ext/android/calyxos/out/host/linux-x86/bin/sign_target_files_apks/internal/stdlib/runpy.py", line 196, in _run_module_as_main File "/ext/android/calyxos/out/host/linux-x86/bin/sign_target_files_apks/internal/stdlib/runpy.py", line 86, in _run_code File "/ext/android/calyxos/out/host/linux-x86/bin/sign_target_files_apks/__main__.py", line 12, in File "/ext/android/calyxos/out/host/linux-x86/bin/sign_target_files_apks/internal/stdlib/runpy.py", line 196, in _run_module_as_main File "/ext/android/calyxos/out/host/linux-x86/bin/sign_target_files_apks/internal/stdlib/runpy.py", line 86, in _run_code File "/ext/android/calyxos/out/host/linux-x86/bin/sign_target_files_apks/sign_target_files_apks.py", line 1727, in File "/ext/android/calyxos/out/host/linux-x86/bin/sign_target_files_apks/sign_target_files_apks.py", line 1702, in main File "/ext/android/calyxos/out/host/linux-x86/bin/sign_target_files_apks/sign_target_files_apks.py", line 579, in ProcessTargetFiles File "/ext/android/calyxos/out/host/linux-x86/bin/sign_target_files_apks/sign_target_files_apks.py", line 490, in SignApk File "/ext/android/calyxos/out/host/linux-x86/bin/sign_target_files_apks/common.py", line 2359, in SignFile File "/ext/android/calyxos/out/host/linux-x86/bin/sign_target_files_apks/common.py", line 2308, in GetMinSdkVersionInt File "/ext/android/calyxos/out/host/linux-x86/bin/sign_target_files_apks/common.py", line 2281, in GetMinSdkVersion common.ExternalError: Failed to obtain minSdkVersion for /tmp/tmpk2f40k5d_TrichromeChrome.apk: aapt2 return code 1: /tmp/tmpk2f40k5d_TrichromeChrome.apk: error: failed opening zip: Invalid file.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts