Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

com.android.adservices.api.x509.pem (No such file or directory) #221

Open
Gooberpatrol66 opened this issue Dec 11, 2023 · 0 comments
Open

Comments

@Gooberpatrol66
Copy link

Repo version f941a20537384418c22000f6e6487c92441e0a7f
Command nix-build --option extra-sandbox-paths /keys="/home/nathan/guix-configs/robotnix/keys" --arg configuration /home/nathan/guix-configs/robotnix/dre.nix -A ota
dre.nix

{
 device = "dre";
 flavor = "lineageos";
 variant = "user";
 signing.enable = true;
 signing.keyStorePath = "/home/nathan/guix-configs/robotnix/keys";
}

I'm using a directory of keys from android version 11 but I generated a new directory of keys and it didn't seem to create any extra keys
nix-store -l /nix/store/pbf246zasi2xgkisi2jzxzmji8883ylg-dre-signed_target_files-2023100409.zip.drv

2023-12-11 12:45:10 - common.py - WARNING : Failed to read SYSTEM/etc/build.prop
2023-12-11 12:45:10 - common.py - WARNING : Failed to read VENDOR/etc/build.prop
2023-12-11 12:45:10 - common.py - WARNING : Failed to read ODM_DLKM/etc/build.prop
2023-12-11 12:45:10 - common.py - WARNING : Failed to read ODM_DLKM/build.prop
2023-12-11 12:45:10 - common.py - WARNING : Failed to read build.prop for partition odm_dlkm
2023-12-11 12:45:10 - common.py - WARNING : Failed to read SYSTEM_DLKM/etc/build.prop
2023-12-11 12:45:10 - common.py - WARNING : Failed to read SYSTEM_DLKM/build.prop
2023-12-11 12:45:10 - common.py - WARNING : Failed to read build.prop for partition system_dlkm
2023-12-11 12:45:11 - common.py - WARNING : Failed to read IMAGES/init_boot.img
Rewriting BOOT/RAMDISK/system/etc/ramdisk/build.prop:
  replace:  ro.bootimage.build.tags=test-keys
     with:  ro.bootimage.build.tags=release-keys
Rewriting ODM/etc/build.prop:
  replace:  ro.odm.build.tags=test-keys
     with:  ro.odm.build.tags=release-keys
    signing: OPlusFrameworksResTarget.apk                               (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: OPlusSettingsProviderResTarget.apk                         (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: OPlusSettingsResTarget.apk                                 (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: OPlusSystemUIResTarget.apk                                 (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: Aperture.apk                                               (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: ApertureLensLauncher.apk                                   (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: Backgrounds.apk                                            (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: DeskClock.apk                                              (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: Etar.apk                                                   (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: ExactCalculator.apk                                        (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: Gallery2.apk                                               (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: Jelly.apk                                                  (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: LatinIME.apk                                               (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/shared)
    signing: LocalContactsBackup.apk                                    (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: ModuleMetadata.apk                                         (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: PhotoTable.apk                                             (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: PowerOffAlarm.apk                                          (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/platform)
    signing: Recorder.apk                                               (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: Robotnixchromium.apk                                       (/dev/shm/robotnix_keys.XXXXMQTrNi/chromium)
    signing: RobotnixchromiumTrichromeLibrary.apk                       (/dev/shm/robotnix_keys.XXXXMQTrNi/chromium)
    signing: Robotnixchromiumwebview.apk                                (/dev/shm/robotnix_keys.XXXXMQTrNi/chromiumwebview)
    signing: ThemesStub.apk                                             (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: messaging.apk                                              (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
Rewriting PRODUCT/etc/build.prop:
  replace:  ro.product.build.tags=test-keys
     with:  ro.product.build.tags=release-keys
Rewriting PRODUCT/etc/selinux/product_mac_permissions.xml with new keys.
    signing: CarrierConfigResCommon.apk                                 (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: DisplayCutoutEmulationCornerOverlay.apk                    (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: DisplayCutoutEmulationDoubleOverlay.apk                    (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: DisplayCutoutEmulationHoleOverlay.apk                      (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: DisplayCutoutEmulationTallOverlay.apk                      (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: DisplayCutoutEmulationWaterfallOverlay.apk                 (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: DocumentsUIOverlay.apk                                     (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: EmergencyInfo__auto_generated_rro_product.apk              (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: FontLatoOverlay.apk                                        (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: FontNotoSerifSourceOverlay.apk                             (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: FontRubikOverlay.apk                                       (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: FrameworksResCommon.apk                                    (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: IconPackCircularAndroidOverlay.apk                         (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: IconPackCircularLauncherOverlay.apk                        (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: IconPackCircularSettingsOverlay.apk                        (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: IconPackCircularSystemUIOverlay.apk                        (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: IconPackFilledAndroidOverlay.apk                           (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: IconPackFilledLauncherOverlay.apk                          (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: IconPackFilledSettingsOverlay.apk                          (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: IconPackFilledSystemUIOverlay.apk                          (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: IconPackKaiAndroidOverlay.apk                              (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: IconPackKaiLauncherOverlay.apk                             (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: IconPackKaiSettingsOverlay.apk                             (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: IconPackKaiSystemUIOverlay.apk                             (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: IconPackRoundedAndroidOverlay.apk                          (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: IconPackRoundedLauncherOverlay.apk                         (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: IconPackRoundedSettingsOverlay.apk                         (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: IconPackRoundedSystemUIOverlay.apk                         (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: IconPackSamAndroidOverlay.apk                              (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: IconPackSamLauncherOverlay.apk                             (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: IconPackSamSettingsOverlay.apk                             (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: IconPackSamSystemUIOverlay.apk                             (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: IconPackVictorAndroidOverlay.apk                           (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: IconPackVictorLauncherOverlay.apk                          (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: IconPackVictorSettingsOverlay.apk                          (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: IconPackVictorSystemUIOverlay.apk                          (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: IconShapePebbleOverlay.apk                                 (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: IconShapeRoundedRectOverlay.apk                            (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: IconShapeSquareOverlay.apk                                 (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: IconShapeSquircleOverlay.apk                               (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: IconShapeTaperedRectOverlay.apk                            (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: IconShapeTeardropOverlay.apk                               (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: IconShapeVesselOverlay.apk                                 (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: ImsServiceEntitlement__auto_generated_rro_product.apk      (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: LatinIME__auto_generated_rro_product.apk                   (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: LineageBlackTheme.apk                                      (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: LineageNavigationBarNoHint.apk                             (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/platform)
    signing: LineageParts__auto_generated_rro_product.apk               (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: LineageSettingsProvider__auto_generated_rro_product.apk    (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: LineageSetupWizard__auto_generated_rro_product.apk         (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: ManagedProvisioning__auto_generated_rro_product.apk        (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: NavigationBarMode2ButtonOverlay.apk                        (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: NavigationBarMode3ButtonOverlay.apk                        (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: NavigationBarModeGesturalOverlay.apk                       (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: NavigationBarModeGesturalOverlayExtraWideBack.apk          (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: NavigationBarModeGesturalOverlayNarrowBack.apk             (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: NavigationBarModeGesturalOverlayWideBack.apk               (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: NetworkStackOverlay.apk                                    (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: OplusDoze__auto_generated_rro_product.apk                  (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: SettingsProvider__auto_generated_rro_product.apk           (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: Settings__auto_generated_rro_product.apk                   (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: SimpleDeviceConfig__auto_generated_rro_product.apk         (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: StorageManager__auto_generated_rro_product.apk             (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: SystemUIResCommon.apk                                      (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: SystemUI__auto_generated_rro_product.apk                   (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: TelephonyResCommon.apk                                     (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: TrebuchetOverlay.apk                                       (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: TrebuchetQuickStep__auto_generated_rro_product.apk         (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: Updater__auto_generated_rro_product.apk                    (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: WifiResCommon.apk                                          (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: framework-res__auto_generated_rro_product.apk              (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: org.lineageos.platform-res__auto_generated_rro_product.apk (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: Contacts.apk                                               (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/shared)
    signing: Dialer.apk                                                 (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/shared)
    signing: Eleven.apk                                                 (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: HotwordEnrollmentOKGoogleHEXAGON.apk                       (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/platform)
    signing: HotwordEnrollmentXGoogleHEXAGON.apk                        (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/platform)
    signing: ImsServiceEntitlement.apk                                  (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: OneTimeInitializer.apk                                     (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: SettingsIntelligence.apk                                   (/dev/shm/robotnix_keys.XXXXMQTrNi/dre/releasekey)
    signing: SdkSandbox.apk                                             (build/make/target/product/security/sdk_sandbox)
    signing: AdServicesApk.apk                                          (packages/modules/AdServices/adservices/apk/com.android.adservices.api)
Traceback (most recent call last):
  File "/nix/store/mnnjx8ivgx892w5y1p06mrijcrj06a66-ota-tools/bin/sign_target_files_apks/internal/stdlib/runpy.py", line 196, in _run_module_as_main
  File "/nix/store/mnnjx8ivgx892w5y1p06mrijcrj06a66-ota-tools/bin/sign_target_files_apks/internal/stdlib/runpy.py", line 86, in _run_code
  File "/nix/store/mnnjx8ivgx892w5y1p06mrijcrj06a66-ota-tools/bin/sign_target_files_apks/__main__.py", line 12, in <module>
  File "/nix/store/mnnjx8ivgx892w5y1p06mrijcrj06a66-ota-tools/bin/sign_target_files_apks/internal/stdlib/runpy.py", line 196, in _run_module_as_main
  File "/nix/store/mnnjx8ivgx892w5y1p06mrijcrj06a66-ota-tools/bin/sign_target_files_apks/internal/stdlib/runpy.py", line 86, in _run_code
  File "/nix/store/mnnjx8ivgx892w5y1p06mrijcrj06a66-ota-tools/bin/sign_target_files_apks/sign_target_files_apks.py", line 1621, in <module>
  File "/nix/store/mnnjx8ivgx892w5y1p06mrijcrj06a66-ota-tools/bin/sign_target_files_apks/sign_target_files_apks.py", line 1596, in main
  File "/nix/store/mnnjx8ivgx892w5y1p06mrijcrj06a66-ota-tools/bin/sign_target_files_apks/sign_target_files_apks.py", line 566, in ProcessTargetFiles
  File "/nix/store/mnnjx8ivgx892w5y1p06mrijcrj06a66-ota-tools/bin/sign_target_files_apks/sign_target_files_apks.py", line 477, in SignApk
  File "/nix/store/mnnjx8ivgx892w5y1p06mrijcrj06a66-ota-tools/bin/sign_target_files_apks/common.py", line 2395, in SignFile
common.ExternalError: Failed to run signapk.jar: return code 1:
java.io.FileNotFoundException: packages/modules/AdServices/adservices/apk/com.android.adservices.api.x509.pem (No such file or directory)
        at java.base/java.io.FileInputStream.open0(Native Method)
        at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
        at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
        at com.android.signapk.SignApk.readPublicKey(SignApk.java:194)
        at com.android.signapk.SignApk.main(SignApk.java:1185)
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

No branches or pull requests

1 participant