Samsung Keyboard: Galaxy AI stickers are sent as regular images since 7.41.0
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
Start at KeyboardUtil.isForSticker() and inspect how committed Samsung Keyboard content URIs are classified, using the supplied URI example and suggested folder scope. Update the classification so Galaxy AI sticker URIs are recognized without also matching unrelated clipboard content, then verify that the sticker bypasses the media editor and is sent borderless.
Written by the indexing model from the issue text.
Description
Guidelines
- I have searched open and closed issues for duplicates
- I am submitting a bug report for existing functionality that does not work as intended
- This isn't a feature request or a discussion topic
Bug description
Stickers created with Galaxy AI in the Samsung Keyboard sticker tray (emoji key > AI stickers > "Create sticker", One UI 7 and later) open the media editor and are sent as a normal image with a bubble. On earlier Signal versions (over a year ago) the same stickers were sent borderless.
Steps to reproduce
- Samsung Galaxy with Samsung Keyboard 5.9.40.74 as the active keyboard and at least one Galaxy AI sticker in the tray.
- Open a conversation, tap into the compose field.
- Samsung Keyboard > emoji key > AI stickers > tap a sticker.
Actual result: the media editor opens; after sending, the sticker is a regular image attachment with a bubble.
Expected result: the sticker is sent immediately and borderless, like it was before 7.41.0.
Cause
Up to 7.40.x Signal decided by the alpha of the image's top-left pixel, so keyboard stickers with a transparent corner were sent borderless regardless of keyboard. Since 2e50699a2d (7.41.0) KeyboardUtil.isForSticker() instead matches the keyboard URI against "sticker" or the SwiftKey provider path. Samsung Keyboard commits these stickers with URIs that contain neither:
content://com.samsung.android.honeyboard.provider/root/storage/emulated/0/Android/data/com.samsung.android.honeyboard/cache/temp_content/ai_expression/1790377273682.png
720 x 720 PNG (Signal's own log: MediaUtil: Dimensions for [...] are 720 x 720), sourcePkg com.samsung.android.honeyboard, grant owner InputContentUriTokenHandler, i.e. a regular commitContent() with INPUT_CONTENT_GRANT_READ_URI_PERMISSION. Captured with adb shell dumpsys activity -p org.thoughtcrime.securesms permissions while the media editor was open.
Suggested fix
return string.contains("sticker") ||
string.contains("com.touchtype.swiftkey.fileprovider/share_images") ||
string.contains("com.samsung.android.honeyboard/cache/temp_content/ai_expression/")
The pattern targets the folder rather than the authority, because the same FileProvider (com.samsung.android.honeyboard.provider) also serves other keyboard content such as clipboard images. temp_content/ is the keyboard's generic temp folder for expression-board content (sticker and GIF search results), so com.samsung.android.honeyboard/cache/temp_content/ would cover more sticker sources at the cost of also sending keyboard GIF search results borderless.
Versions: Samsung Keyboard 5.9.40.74, Sticker Center 2.7.04.13, One UI 9.0 on Android 17.
Unrelated comment: This Issue bugs me for quite a while i hope someone takes this serious a lot of friends of mine suffer from this.
Screenshots
No response
Device
Samsung Galaxy S26 Ultra (SM-S948B)
Android version
17
Signal version
8.29.0
Link to debug log
- Dominant language
- Kotlin
- Stars
- 29.7k
- Forks
- 7k
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from signalapp/Signal-Android
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
signalapp/Signal-Android#15148 ·
Maintainers usually reply within 1 day
-
PNI-only contacts synced from Storage Service are left with RegisteredState.UNKNOWN and never appear in New ChatPossibly taken @ArviFoxy claimed this 4 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
signalapp/Signal-Android#15142 · 1 comment ·
Maintainers usually reply within 1 day
-
Accessibility: Reaction emoji in the long-press menu are not accessible with TalkBackPossibly taken @vlad-emelyanov claimed this 7 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
signalapp/Signal-Android#15134 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
signalapp/Signal-Android#15071 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
signalapp/Signal-Android#15050 · 3 comments · 1 reaction ·
Maintainers usually reply within 1 day
All issues in signalapp/Signal-Android
Similar issues
-
0. Needs triage enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
accessibility agent-ready area:android bug fleet
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
level-98/mailcrane#412 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 2 days
-
help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
DojoCodingLabs/hermit#23 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day