Skip to content

identify: have the dialer running before *#06# goes in its intent - #55

Merged
abrignoni merged 2 commits into
abrignoni:mainfrom
Maxitelmo:dialer-running-before-code
Nov 20, 2026
Merged

abrignoni merged 2 commits into
abrignoni:mainfrom
Maxitelmo:dialer-running-before-code

Conversation

@Maxitelmo

Copy link
Copy Markdown
Contributor

The fix from #53: with the Google dialer, *#06# in the intent runs only when the dialer is already running. Started cold it only fills the field, which is why identify read no IMEI on the Xiaomi.

  • Before the code, imei_by_dial_intent opens the dialer with tel:0 (opened, not dialled), brings HOME to the front, then passes tel:*%2306%23 as before.
  • The dial_imei_code row says so in dialer_opened_first.
  • New test: a fake Google dialer that fills the field when cold and opens the dialog when running. It fails without the change.

Checked on phones

Phone Result
Xiaomi 22101316G, HyperOS 2.0, Android 14, input refused Dialer force-stopped before each run. Two runs: both IMEIs and the serial read from the dialog, dialog kept cut to its bounds, call log unchanged, verify passes (8 rows, 4 of 4). 23 s.
Samsung SM-G990E, Android 16, takes input As before: IMEI from About phone, this code is not reached. 4 screenshots, model, IMEI, phone number and serial, verify passes (20 rows, 8 of 8).

python -m unittest discover -s tests: 111 tests, OK (1 skipped).

Tested by @Maxitelmo with help from Claude Opus 5.5 (Anthropic).

🤖 Generated with Claude Code

Maxitelmo and others added 2 commits November 18, 2026 19:40
…tent

The Google dialer runs a code passed in its intent only when it is
already running. Started cold by the intent it only fills the field,
which is why identify read no IMEI on the Xiaomi (abrignoni#53).
Same on the Nubia. The dialer is now opened with tel:0 (opened, not
dialled), HOME brought to the front, and then the code is passed. The
dial_imei_code row says so in dialer_opened_first.

Checked on the Xiaomi 22101316G (input refused): both IMEIs and the
serial read from the dialog, in two runs from a cold dialer, call log
unchanged, verify passes. The Samsung SM-G990E, which takes input,
runs as before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ntent

The Google dialer runs the code from the intent only when it is already
running. The Samsung dialer does not run it either way.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@abrignoni
abrignoni merged commit 3cf7b2f into abrignoni:main Nov 20, 2026
@abrignoni

Copy link
Copy Markdown
Owner

Thank you, Maxi. The cold versus running dialer table in #53 made this one easy to follow, and the fake dialer test fails without the change, which is exactly what I want from a test.

Merged. I added one small commit before merging: the user manual and the docstring still said the code in the intent only fills the field, so they now say why (cold dialer) and that the Samsung dialer does not run it either way.

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.

2 participants