Skip to content

[Bug] An update, from guardianproject.info/fdroid/repo/Signal-Android-website-prod-universal-release-7.66.5.apk, silently fails to download, with "DownloadWorker: Worker failure by validation error: INTEGRITY". #828

Closed

Description

@0009-0009-1013-986X

Guidelines

  • I have searched the issue tracker for open and closed issues that are similar to the feature request I want to file, without success. 1

  • I'm on the latest version.

  • I'm not using a test build (alpha/beta/release-candidate).

  • This issue contains only one bug.

Description Of The Bug

https://guardianproject.info/fdroid/repo/Signal-Android-website-prod-universal-release-7.66.5.apk silently fails to download:

screen-20251204-145942.mp4

…despite being available:

  1. #!/usr/bin/env sh
    wget --spider 'https://guardianproject.info/fdroid/repo/Signal-Android-website-prod-universal-release-7.66.5.apk'

    2

  2. [0] Checking 'https://guardianproject.info/fdroid/repo/Signal-Android-website-prod-universal-release-7.66.5.apk' ...
    HTTP response 200 OK [https://guardianproject.info/fdroid/repo/Signal-Android-website-prod-universal-release-7.66.5.apk]
    (null) 100% [=========================================================================================================================================================================================================================================================================>]    1.41K    --.-KB/s
                              [Headers: 1 (0 redirects & 0 errors) Bytes: 0  [0 B/s] Todo: 0

adb logcat appears to demonstrate that it considers the URI to 404, and/or that integrity verification fails:

12-04 15:49:37.592 16759 16759 D AppPage : onClickAction: class com.machiav3lli.fdroid.data.entity.ActionState$Update
12-04 15:49:37.626 16759 16759 D WM-WorkerWrapper: Starting work for com.machiav3lli.fdroid.manager.work.DownloadWorker
12-04 15:49:37.626 16759 16773 D WM-GreedyScheduler: Constraints met: Scheduling work ID WorkGenerationalId(workSpecId=07550bf7-fe7f-40be-984e-2974cbfde630, generation=0)
12-04 15:49:37.628  1659  2529 D OemPaidWifiNetworkFactory: got request NetworkRequest [ REQUEST id=25898, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED&NOT_BANDWIDTH_CONSTRAINED Uid: 11027 RequestorUid: 11027 RequestorPkg: com.machiav3lli.fdroid UnderlyingNetworks: Null] ]
12-04 15:49:37.629  1659  2529 D MultiInternetWifiNetworkFactory: got request NetworkRequest [ REQUEST id=25898, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED&NOT_BANDWIDTH_CONSTRAINED Uid: 11027 RequestorUid: 11027 RequestorPkg: com.machiav3lli.fdroid UnderlyingNetworks: Null] ]
12-04 15:49:37.629  1659  2529 D WifiNetworkFactory: got request NetworkRequest [ REQUEST id=25898, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED&NOT_BANDWIDTH_CONSTRAINED Uid: 11027 RequestorUid: 11027 RequestorPkg: com.machiav3lli.fdroid UnderlyingNetworks: Null] ]
12-04 15:49:37.629  1659  2529 V WifiNetworkFactory: Accepted network request NetworkRequest [ REQUEST id=25898, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED&NOT_BANDWIDTH_CONSTRAINED Uid: 11027 RequestorUid: 11027 RequestorPkg: com.machiav3lli.fdroid UnderlyingNetworks: Null] ]
12-04 15:49:37.630  1659  2529 D UntrustedWifiNetworkFactory: got request NetworkRequest [ REQUEST id=25898, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED&NOT_BANDWIDTH_CONSTRAINED Uid: 11027 RequestorUid: 11027 RequestorPkg: com.machiav3lli.fdroid UnderlyingNetworks: Null] ]
12-04 15:49:37.898  1659  2574 I ActivityManager: Background started FGS: Allowed [callingPackage: com.machiav3lli.fdroid; callingUid: 11027; uidState: TOP ; uidBFSL: [BFSL]; intent: Intent { act=ACTION_START_FOREGROUND cmp=com.machiav3lli.fdroid/androidx.work.impl.foreground.SystemForegroundService (has extras) }; code:PROC_STATE_TOP; tempAllowListReason:<,reasonCode:SYSTEM_ALLOW_LISTED,duration:9223372036854775807,callingUid:-1>; targetSdkVersion:36; callerTargetSdkVersion:36; startForegroundCount:0; bindFromPackage:null: isBindService:false]
12-04 15:49:37.899 19826 19840 D DownloadManager: [432] Starting
12-04 15:49:37.902  1056 18687 I btaudio_offload_qti: audio_get_a2dp_sink_latency_qti: Sink Latency = 200
12-04 15:49:37.906 16759 16759 I WM-SystemFgDispatcher: Started foreground service Intent { act=ACTION_START_FOREGROUND cmp=com.machiav3lli.fdroid/androidx.work.impl.foreground.SystemForegroundService (has extras) }
12-04 15:49:37.907 16759 16759 D WM-SystemFgDispatcher: Notifying with (id:1656259156, workSpecId: 07550bf7-fe7f-40be-984e-2974cbfde630, notificationType :1)
12-04 15:49:37.910  1659  2495 I ActivityManager: Background started FGS: Allowed [callingPackage: com.machiav3lli.fdroid; callingUid: 11027; uidState: TOP ; uidBFSL: [BFSL]; intent: Intent { act=ACTION_START_FOREGROUND cmp=com.machiav3lli.fdroid/androidx.work.impl.foreground.SystemForegroundService }; code:PROC_STATE_TOP; tempAllowListReason:<,reasonCode:SYSTEM_ALLOW_LISTED,duration:9223372036854775807,callingUid:-1>; targetSdkVersion:36; callerTargetSdkVersion:36; startForegroundCount:0; bindFromPackage:null: isBindService:false]
12-04 15:49:37.911  1659  2495 W ForegroundServiceTypeLoggerModule: Foreground service start for UID: 11027 does not have any types
12-04 15:49:37.916 16759 16759 D WM-SystemFgDispatcher: Notifying with (id:1656259156, workSpecId: 07550bf7-fe7f-40be-984e-2974cbfde630, notificationType :1)
12-04 15:49:37.919  1659  2574 I ActivityManager: Background started FGS: Allowed [callingPackage: com.machiav3lli.fdroid; callingUid: 11027; uidState: TOP ; uidBFSL: [BFSL]; intent: Intent { act=ACTION_START_FOREGROUND cmp=com.machiav3lli.fdroid/androidx.work.impl.foreground.SystemForegroundService }; code:PROC_STATE_TOP; tempAllowListReason:<,reasonCode:SYSTEM_ALLOW_LISTED,duration:9223372036854775807,callingUid:-1>; targetSdkVersion:36; callerTargetSdkVersion:36; startForegroundCount:1; bindFromPackage:null: isBindService:false]
12-04 15:49:38.441 16759 19847 I DownloadWorker: Worker failure by validation error: INTEGRITY
12-04 15:49:38.444 16759 16778 I WM-WorkerWrapper: Worker result FAILURE for Work [ id=07550bf7-fe7f-40be-984e-2974cbfde630, tags={ com.machiav3lli.fdroid.manager.work.DownloadWorker,download_org.thoughtcrime.securesms } ]
12-04 15:49:38.459  1659  2574 D ActivityManager: Stop FGS timeout: ServiceRecord{d8c2203 u0 com.machiav3lli.fdroid/androidx.work.impl.foreground.SystemForegroundService c:com.machiav3lli.fdroid}
12-04 15:49:38.473  1659  2495 W JobScheduler: Job didn't exist in JobStore: c2b7cab {androidx.work.systemjobscheduler} #u0a1027/5820 @androidx.work.systemjobscheduler@com.machiav3lli.fdroid/androidx.work.impl.background.systemjob.SystemJobService
12-04 15:49:38.481 16759 19847 E DownloadState: Download failed: org.thoughtcrime.securesms
12-04 15:49:38.481 16759 19847 E DownloadState: java.lang.Exception: INTEGRITY
12-04 15:49:38.481 16759 19847 E DownloadState:         at com.machiav3lli.fdroid.manager.work.DownloadStateHandler$1$1.emit(r8-map-id-80f93e1cf638672721ff600ef711fc3ee840847b208038067cb91297fa388e8e:1041)
12-04 15:49:38.481 16759 19847 E DownloadState:         at kotlinx.coroutines.flow.StateFlowImpl.collect(r8-map-id-80f93e1cf638672721ff600ef711fc3ee840847b208038067cb91297fa388e8e:174)
12-04 15:49:38.481 16759 19847 E DownloadState:         at androidx.compose.material3.ThumbNode$onAttach$1.invokeSuspend(r8-map-id-80f93e1cf638672721ff600ef711fc3ee840847b208038067cb91297fa388e8e:476)
12-04 15:49:38.481 16759 19847 E DownloadState:         at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(r8-map-id-80f93e1cf638672721ff600ef711fc3ee840847b208038067cb91297fa388e8e:9)
12-04 15:49:38.481 16759 19847 E DownloadState:         at kotlinx.coroutines.DispatchedTask.run(r8-map-id-80f93e1cf638672721ff600ef711fc3ee840847b208038067cb91297fa388e8e:115)
12-04 15:49:38.481 16759 19847 E DownloadState:         at androidx.core.app.ActivityRecreator$1.run(r8-map-id-80f93e1cf638672721ff600ef711fc3ee840847b208038067cb91297fa388e8e:11)
12-04 15:49:38.481 16759 19847 E DownloadState:         at kotlinx.coroutines.scheduling.TaskImpl.run(r8-map-id-80f93e1cf638672721ff600ef711fc3ee840847b208038067cb91297fa388e8e:3)
12-04 15:49:38.481 16759 19847 E DownloadState:         at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(r8-map-id-80f93e1cf638672721ff600ef711fc3ee840847b208038067cb91297fa388e8e:88)
12-04 15:49:38.484  1659  2495 W ParceledListSlice: Element #10 is 16984 bytes.

I am able to provide a PCAP, if desired.

Expected Behavior

It should display a comprehensible error, and explain how to remediate this, if org.thoughtcrime.securesms's installerPackageName being com.android.vending is the cause. Otherwise, it should display a comprehensible error modal, and provide a way to report the failed download.

Neo Store's Version

versionCode=1110

Its Installation Source

IzzyOnDroid's repo

The Last Known Working Version

No response

Relevant information

  • Affected Hardware

    [ro.product.brand]: [Fairphone]
    [ro.build.product]: [FP5]
  • Affected OSes

    [ro.build.version.release]: [15]
    [ro.build.display.id]: [FP5.VT2F.C.065.20251016]
  • Whether Battery Optimisation Is Disabled

    1. #!/system/bin/sh
      adb shell dumpsys deviceidle whitelist | mlr --csv --implicit-csv-header filter '$2=="com.machiav3lli.fdroid"'
    2. user,com.machiav3lli.fdroid,11027
  • The Selected Installer

    1. #!/usr/bin/env sh
      adb exec-out uiautomator dump /dev/tty \
      	| sed -n '/^<?xml/,/^<\/hierarchy>/p'
      	| xmllint --xpath '//node[@text="Default session installer" and @package="com.machiav3lli.fdroid"]//*[@checked="true"]' -
    2. true

Footnotes

  1. codeberg.org/NeoApplications/Neo-Store/issues/23 ↩

  2. unix.stackexchange.com/revisions/591798/1 ↩

Activity

  1. machiav3lli commented on Dec 12, 2025

    @machiav3lli
    Member

    I still can't explain it, cause I recall reading the notification of the issue one day later and wasn't able to reproduce the issue neither on my replacement device (1.1.5/1110), main device's non-debug build (somewhere between 1.1.5/1110-1.2.0/1200) nor on my debuggable test builds. Did the issue disappear the day later? If so, maybe Guardian had a false signature earlier or mismatched build and signature (in the repo meta-data) and was fixed a day later?

  2. 0009-0009-1013-986X commented on Dec 12, 2025

    @0009-0009-1013-986X
    Author

    @machiav3lli, indeed, I can't reproduce it anymore. I have no idea how to ask them what the cause was, though, since I haven't even been able to ascertain where to report gitlab.com/guardianproject/wind/fdroid-metadata/-/issues/8. I can't say that they appear to maintain their repository well.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions