android: qr scanner: add emoji to clipboard string
What changed, and why it matters
This commit simply adds a clipboard emoji (📋) to an on-screen button label in the Android QR scanner and updates the project's Unicode whitelist to allow that emoji. There is no security relevance.
No action needed; this is a benign UI-only change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change modifies scanner_layout.xml to change the button text from ‘Paste from clipboard’ to ‘Paste from clipboard 📋’, and adds the 📋 character to UNICODE_WHITELIST in contrib/ban_unicode.py so the project’s lint-style script permits it. It is a UI accessibility/aesthetic change with no code behavior change.
Changed components
electrum/gui/qml/android_res/layout/scanner_layout.xmlcontrib/ban_unicode.pyInspect captured patch +2 / −2
diff --git a/contrib/ban_unicode.py b/contrib/ban_unicode.py
index 9dabcc2..f4dd4f5 100755
--- a/contrib/ban_unicode.py
+++ b/contrib/ban_unicode.py
@@ -29,7 +29,7 @@ EXCLUDE_EXTENSIONS = {
UNICODE_WHITELIST = {
"💬", "🗯", "⚠", chr(0xfe0f), "✓", "▷", "▽", "…", "•", "█", "™", "≈",
"á", "é", "’",
- "│", "─", "└", "├",
+ "│", "─", "└", "├", "📋",
}
exit_code = 0
diff --git a/electrum/gui/qml/android_res/layout/scanner_layout.xml b/electrum/gui/qml/android_res/layout/scanner_layout.xml
index 948e9e9..4b20235 100644
--- a/electrum/gui/qml/android_res/layout/scanner_layout.xml
+++ b/electrum/gui/qml/android_res/layout/scanner_layout.xml
@@ -31,6 +31,6 @@
android:layout_gravity="center|bottom"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="Paste from clipboard" />
+ android:text="Paste from clipboard 📋" />
</FrameLayout>
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.