Repository navigation
fix(unlock): recognise the passcode field on non-Chinese iOS - #176
Merged
Merged
Conversation
English, French, German and Spanish read the lock screen's passcode field
as "0 of 6 values entered" and the like: entered first, total second.
- ictl-ax: promote the native TextField to SecureTextField by its label
("密码栏", "Passcode field", "Champ de code") or value words in more
languages, and, with no known words, by a 4- or 6-digit total.
- ictl-wda: parse_passcode_value takes the larger number as the total,
since entered never exceeds it, so the order no longer matters.
Fixes #174
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Derrors
added a commit
that referenced
this pull request
Nov 24, 2026
Version 0.2.13 in Cargo.toml and Cargo.lock (this workspace's crates only), and the changelogs' 0.2.13 section with the fix from #176. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #174
Problem
On English (and French/German/Spanish) iOS 27 the lock screen's passcode field reads as
"0 of 6 values entered". Two things broke auto-unlock:crates/ictl-ax/src/xml.rs): the field arrives asTextFieldand was only promoted toSecureTextFieldwhen its value contained位/passcode/digit, sopasscode_fieldreturnedNoneand every unlock round gave up.crates/ictl-wda/src/elements.rs):parse_passcode_valueassumed[total, entered]. That order is Chinese (共6位数,已输入2位); the other languages put entered first, so"0 of 6"parsed as total = 0 →LengthMismatch.Fix
is_passcode_field(replacespasscode_value): the value must hold exactly two numbers with a non-zero larger one. On top of that, any of these is enough:密码,passcode,champ de code),位,passcode,digit,entered,saisie,eingegeben,introducido),parse_passcode_valuereturns(max, min). Entered never exceeds total, so this works whatever the order.Tests
2 / 8without a label,0 0, three numbers).cargo fmt --check,cargo clippy --workspace --all-targets --all-features -- -D warningsandcargo test --workspace --all-featurespass locally.🤖 Generated with Claude Code