Skip to content

Sync/upstream 8.31.1 - #15064

Closed
ajk0x00 wants to merge 92 commits into
signalapp:mainfrom
ajk0x00:sync/upstream-8.31.1
Closed

ajk0x00 wants to merge 92 commits into
signalapp:mainfrom
ajk0x00:sync/upstream-8.31.1

Conversation

@ajk0x00

@ajk0x00 ajk0x00 commented Oct 13, 2026 •

Copy link
Copy Markdown

Baseline Overview

  • Your current sync base: 441ba42c3f (v8.24.2, Aug 21, 2026)
  • Upstream main latest commit: 92f5ccd3a5 (v8.31.1, Oct 8, 2026)
  • Volume: 538 commits across 7 version bumps (v8.25.0 → v8.31.1), touching 4,318 files (+192,968 / -151,957 lines).

Major Highlights & New Features

1. Phoneless / Numberless Accounts ("Signal Login")

The biggest new initiative upstream is account creation and management without needing a phone number:

  • Numberless registration & login: Ability to register or log into an existing account using ACI (Account ID) credentials.
  • Passkey & TOTP 2FA: Added two-factor authentication support via Passkeys (WebAuthn/FIDO2) and standard TOTP authenticator apps.
  • Password Manager Integration: Integrated Android Credential Manager / autofill to save and auto-fill Signal Login credentials, plus manual verification and PDF backup export.
  • Account Deletion & KT: Dedicated numberless account deletion flow, biometric screen lock protection for login credentials, and Key Transparency (KT) self-checks for numberless accounts.

2. Media Keyboard Redesign & Expressive Features

  • New Media Keyboard: Completely revamped media keyboard (Introduce and integrate new media keyboard) with overhauled drag/inset handling, category bar scrolling, and refreshed iconography.
  • Stickers & GIFs:
    • Toggle added for GIF and sticker autoplay.
    • Double-tap/click to quick-send stickers.
    • Internal favoriting of stickers and caching for animated stickers.
    • Sticker pack link previews in chat.
  • Voice Notes & Audio Waveforms:
    • Added direct support for generating and sending voice note waveforms (Add support for sending voice note waveforms).
    • Upgraded waveform generation algorithm.
    • Voice recording UI improvements: slide-to-lock, pause/resume, and screen-kept-on during recording.
  • Video & Camera:
    • New video trim bar.
    • Replaced projection-based inline video playback with texture sharing.
    • Added rotation snapping to the media editor.

3. Core Architecture & Refactoring Milestones

  • Complete Removal of TextSecurePreferences:
    • The monolithic legacy class TextSecurePreferences was completely deleted (d57b928c6f) and replaced by SettingsValues / KeyValueStore.
  • AndroidX Navigation 3:
    • Main navigation flow was migrated to AndroidX Navigation 3 (2627ff1b95).
  • Jetpack Compose Expansion:
    • Wrapped the conversation screen in BottomSheetScaffold.
    • Migrated the Avatar Picker, Group Permissions, Group Links, and Custom Notification Settings to Compose.
    • Updated Compose BOM to 2026.09.00.
  • Modularization & Tooling Upgrades:
    • Extracted settings into a new :feature:chat-settings module.
    • Upgraded Android Gradle Plugin (AGP) to 9.4.0.
    • Introduced Kotlinx Serialization (kotlinx-serialization-json) and converted libsignal-service JSON models to Kotlin data classes.
    • Enabled R8 full optimizations.
    • Upgraded core libraries: libsignal (0.100 → v0.105.0) and RingRTC (v2.72.1).

4. Notifications & Calling

  • "Replied to you" Notifications: Added explicit reply attribution to push notifications.
  • Unread Reminders: Added an unread reminders notification system (disabled by default for existing users).
  • Notification Reliability: Notifications are automatically reposted following device reboots or app upgrades.
  • Calling & Telecom: Outgoing Telecom calls now use the user display name as the SIP address, fixed Picture-in-Picture aspect ratio bugs, and added background access warnings during active calls.

5. Security & Networking

  • Post-Quantum Cryptography (PQXDH / Kyber): Detection of reused last-resort Kyber key sets during decryption rather than deferred flush time.
  • Sender Certificates: Hardened validation and rejection for stale or invalid sender certificates.
  • Network Layer: Added timeouts to gRPC calls, chunked CDN uploads, and refactored network proxy management.

Considerations for Your Fork (When Syncing)

If you plan to merge or rebase upstream main:

  1. TextSecurePreferences Removal: Any custom settings or preferences in your fork accessing TextSecurePreferences will need to switch to SettingsValues or LabsValues.
  2. Conversation UI & Navigation: The conversation view was wrapped with BottomSheetScaffold and main navigation moved to Navigation 3; any modifications to conversation layout or dialog overlays will need to align with this hierarchy.
  3. Media Keyboard: The keyboard architecture for media/emoji was significantly overhauled, which may affect custom input actions or attach sheet customizations.

ajk0x00 and others added 30 commits May 23, 2026 11:42
Google Drive API dependencies pull in httpclient and httpcore,
both of which ship META-INF/DEPENDENCIES, causing a build failure
during Java resource merging.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Google Drive doesn't support file uploads via service account for personal
accounts, so switch to GCS buckets which work natively with service accounts.

Key changes:
- Replace google-api-services-drive with google-cloud-storage dependency
- New cloudstorage package replaces drive package (CloudStorageCredentialsProvider,
  CloudStorageServiceHelper, CloudStorageObjectInfo)
- SaveStoryToCloudJob replaces SaveStoryToDriveJob (uploads to GCS bucket)
- CloudStorageSyncJob replaces DriveSyncJob (syncs DB JSON to GCS)
- CloudStorageThumbnailLoader replaces DriveThumbnailLoader (reads from GCS)
- CloudStorageValues replaces DriveValues in SignalStore
- User-facing strings changed from "Save to Drive" to "Save to Cloud"
- Bucket name read from cloud_storage_config.json asset file
- Old Drive job keys registered as dead jobs for graceful migration

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Exclude conscrypt-openjdk-uber, io.opentelemetry, io.grpc from
  google-cloud-storage to avoid duplicate class conflicts with Android
- Add missing verification-metadata.xml entries for new transitive deps

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…nflicts

google-cloud-storage transitively brings protobuf-java which conflicts
with the project's protobuf-javalite, and api-common which may conflict
with other Google API dependencies.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
GCS transitive dependencies (google-cloud-storage, google-cloud-core,
gax, etc.) all ship META-INF/INDEX.LIST, which conflicts during
Java resource merging.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- SaveStoryToCloudJob: hydrate attachments via withAttachments() and resolve
  part:// URIs through PartAuthority; add diagnostic logs at every early-exit
  so silent failures are observable.
- Remove the api-common exclusion that broke StorageOptions instantiation.
- Saved stories grid is now a square layout, uses DynamicNoActionBarTheme so
  the toolbar doesn't collide with a window-decor action bar, and supports
  long-press multi-select with a confirm-and-delete action mode (deletes the
  GCS blob, updates the local json db, and re-uploads it).
- Add SavedStoryViewerActivity: PhotoView via Glide for images/text,
  ExoPlayer for videos (downloads to cacheDir then plays).
- Reorder the stories landing so the "Saved stories" row sits after regular
  stories and before the hidden expander.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Firebase Installations rejects the debug-signed cert on this build, so
FCM never works regardless of whether Play Services is present. Hardcode
the getter to false so every gate site (foreground service, AlarmSleepTimer,
RefreshAttributesJob.fetchesMessages) treats this device as non-FCM and
falls back to the always-on WebSocket path. The setter is kept as a no-op
so existing call sites compile.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Previously the local saved_stories_db.json was created blank on first
use; the first save would then overwrite the cloud DB with just the new
record, clobbering any history (reinstall, new device, second account).

Three layers ensure the cloud copy is pulled regardless of which path
runs first:

- ApplicationContext: enqueue CloudStorageSyncJob postRender so the
  existing restore/merge logic runs on launch (the factory was already
  registered but nothing scheduled it).
- SavedStoriesRepository.getSavedStories: if the local DB doesn't
  exist, pull the cloud JSON inline (already called on Dispatchers.IO).
- SaveStoryToCloudJob: belt-and-suspenders pre-pull guard before
  db.add, in case the user saves before the startup sync finishes.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…ls, save-all

Extends the Save-to-Cloud feature with four capabilities:

- Video thumbnails: SavedStoryRecord gains thumbnailObjectName, stored in a
  separate <profileName>/thumbnails/ folder. Generated at upload time and
  backfilled lazily for legacy videos on first grid view (deduped + throttled).
- Swipeable saved viewer: SavedStoryViewerActivity is now a ViewPager2 over the
  full sorted list (SavedStoryPagerAdapter + SavedStoryPageFragment); ExoPlayer
  plays only the resumed page.
- Save to cloud from chat media preview: SaveStoryToCloudJob takes an optional
  attachmentId (album-aware) with backward-compatible serialization; wired into
  the media preview overflow menu.
- Save all stories (story viewer only): enqueues a job per post in the current
  user/group story.

Also fixes batch saves: jobs share one queue so the JSON DB read-modify-write
no longer races, and object names include the message/attachment id so stories
posted in the same second no longer overwrite each other in the bucket.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sticker sends went through sendMessageWithoutComposeInput, which
defaulted quote to null, so a pending swipe-to-reply was dropped and
the sticker posted as a standalone message. Capture inputPanel.quote
and pass it through, then clear it afterward so the reply doesn't
carry over to subsequent stickers (the keyboard path uses
clearCompose=false and otherwise leaves the quote attached).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The sync job was enqueued at app startup regardless of login state, so
it ran before an account existed and crashed fatally when doRun() called
Recipient.self() ("Tried to call getSelf() before local data was set!").

Skip enqueue and abort doRun() when not registered, and enqueue the sync
right after registration completes so it runs as soon as the user logs in.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Reuse the existing typing-indicator pipeline: while a voice note is being
recorded, periodically re-broadcast the typing-started signal so the recipient
sees the animated dots in both the conversation and the chat list, same as
text typing. A 2.5s self-rescheduling refresh defeats the sender's 3s pause
timeout; started/stopped from the InputPanel recorder callbacks and torn down
in onPause.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The CloudStorageSyncJob ran at startup before the account/profile existed,
crashing on Recipient.self() and pre-creating an empty local DB that
permanently disabled restore. Remove the job and its scheduler entirely
(old key mapped to FailingJob so persisted instances fail gracefully) and
let the saved-stories page own DB creation/restore:

- SavedStoriesRepository restores from cloud on first visit when no local DB
  exists, guarded by a non-empty profile name so it never queries an empty
  prefix. This path never persists an empty DB, so it self-heals on each
  visit until cloud data is available.
- The Stories landing count now goes through the same restore path
  (getSavedStoryCount), off the main thread, so a fresh device reflects
  cloud data without opening the grid.

Also add helper scripts: update_saved_stories_db.py rebuilds a profile's
saved_stories_db.json index from the objects present in the GCS bucket;
upload_apk.py uploads a built APK. Ignore venv/, __pycache__/, and
keystore.release.properties.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Merge remote-tracking branch 'upstream/main' into sync/upstream-v8.23.2
ci: trigger release build on main and clean up unused workflows
ci: fix gh release create invalid clobber flag
abhi0x00 and others added 26 commits August 19, 2026 23:00
fix(upload): resolve compile errors in AttachmentUploadJob
…oted text and subsequent conversation context
feat(ai): configure /topic to suggest exactly one topic and avoid alr…
- Sync fork with upstream v8.31.1 (538 commits)
- Drop superseded features (sticker reply quotes, stories ordering fix, audio waveform fix, digesting request body fix, view-once captions)
- Migrate custom SettingsValues to Kotlin (mirror recorded videos, AI model selector)
- Wire front camera video mirroring and AI model settings into feature/app-settings Compose architecture
- Maintain Groq AI slash commands (/ask, /topic, /rapabout, /judge) and double-tap reactions
@ajk0x00 ajk0x00 closed this Oct 13, 2026
@ajk0x00
ajk0x00 deleted the sync/upstream-8.31.1 branch October 13, 2026 04:32
@ajk0x00
ajk0x00 restored the sync/upstream-8.31.1 branch October 13, 2026 04:39
@0009-0009-1013-986X

Copy link
Copy Markdown

Passkey & TOTP 2FA: Added two-factor authentication support via Passkeys (WebAuthn/FIDO2) and standard TOTP authenticator apps.

@ajk0x00, although support.signal.org/hc/en-us/articles/11228705649690 now exists, does any release include this? 1

Footnotes

  1. community.signalusers.org/t/53543/45 ↩

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.

3 participants