Skip to content

Import upstream Android Auto messaging notification support - #2

Closed
michaave wants to merge 2 commits into
android-autofrom
upstream-pr-6012
Closed

Import upstream Android Auto messaging notification support#2
michaave wants to merge 2 commits into
android-autofrom
upstream-pr-6012

Conversation

@michaave

@michaave michaave commented Aug 24, 2026

Copy link
Copy Markdown
Owner

Imported successfully into android-auto via a three-way patch in commit 5af798b96b979640383805dbf941ed344686b6b4. Closing this helper PR because its changes are now present without rolling back newer upstream Talk changes.

anakin78z and others added 2 commits August 21, 2026 12:31
🚀 Features & Improvements
•
Unified Messaging Style: Migrated all chat notifications (including images) to use NotificationCompat.MessagingStyle. This ensures that text and image messages from the same conversation are correctly stacked in the notification shade and work seamlessly with Android Auto.
•
Efficient Avatar Loading: Optimized the notification flow by loading the sender's profile picture once and reusing it for the notification style, the large icon, and the conversation shortcut.
•
Image Previews in Conversations: Implemented a secure mechanism to share image previews in MessagingStyle by saving them to a temporary cache and sharing them via FileProvider.
•
Modern Conversation Shortcuts: Enhanced the pushConversationShortcut logic to include the sender's avatar, improving the "People" integration in Android 11+.
🛡️ Security
•
PendingIntent Hardening: Performed a security audit and updated all PendingIntent flags to FLAG_IMMUTABLE by default. FLAG_MUTABLE is now only used where strictly necessary (e.g., for direct replies from notifications).
🧹 Code Quality
•
Refactoring: Consolidated duplicate styling logic into a single styleConversationNotification function.
•
Cleanup: Removed obsolete styling methods and unused imports.
•
Static Analysis: Verified all changes with ktlint and detekt. Added necessary suppressions for legacy complexity in NotificationWorker.kt to ensure a clean build.
AI-assistant: Gemini 2.0 Flash (plan: Gemini 2.0 Flash, edit: Gemini 2.0 Flash)

Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
@michaave michaave closed this Aug 24, 2026
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