Repository navigation
identify on a phone that refuses input events - #54
Conversation
A Xiaomi (HyperOS, Android 15) refuses every adb input event with an INJECT_EVENTS SecurityException, and identify ended in a traceback. Now the first refusal is noticed and no tap, swipe or key is sent after it. About phone is kept as it first shows, *#6# goes in the dialer's intent, and the launcher is brought back with an intent. screenshots_without_tree stops at the first screen instead of crashing. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Tried #54 (e5865f2) on the Xiaomi 25098RA98G (HyperOS, Android 15), from the source on Windows 11, 17 November 2026. With the screen on, it works. The screen turned off in my first two runs. Same branch, same phone, a few minutes earlier: both ended with "no dialog with an IMEI was read; on most phones the code only fills the field", What it takes from the examiner. On a phone that refuses input, only the examiner can keep the screen on. For Since Smaller things on this phone. The first screen of About phone has no "Modelo" row (it shows "Nombre del dispositivo" with the marketing name), so no model was read. The dialog also shows the MSISDN of the SIM, which Not tried yet. The Nubia, the Samsung and the TCL on this branch. Tested and written by @Maxitelmo with help from Claude Opus 5.5 (Anthropic). |
|
Four more runs of #54 (e5865f2) on the same Xiaomi, and a correction to my last comment: the screen turning off was only part of it. For runs 4 to 7 I turned on "Stay awake" (while charging) on this test phone, and checked
By hand, between runs 4 and 5, the same intent three times in a row (HOME in between, as the branch does), reading the view tree 1 s and 3 s after So the dialog does come up; my guess is that the single reading at 2.5 s sometimes catches it before it is there, or before both IMEIs are filled in (run 5 read one of two). With the screen on, runs 3 to 7 went 2, 0, 1, 0, 2, so it may also have to do with the dialog the previous run left open behind HOME. I have not confirmed either. If it is the timing, reading again for a few seconds until the dialog has its OK button and the IMEIs it shows stop changing would cover it. The screen check from my last comment would still be worth keeping for phones without "Stay awake". The Nubia, the Samsung and the TCL are still to be run on this branch. Tested and written by @Maxitelmo with help from Claude Opus 5.5 (Anthropic). |
|
#54 (e5865f2) on the Samsung SM-G990E (One UI 8, Android 16), same day, from the source on Windows 11. The phone takes input, so there was no Right after, on the same phone, 0.2.0 (1d38b3f): 4 screenshots, the same four values, The Nubia and the TCL are still to be run on this branch. Tested and written by @Maxitelmo with help from Claude Opus 5.5 (Anthropic). |
From the Xiaomi runs on #54: one reading at 2.5 s missed IMEIs the dialog showed, and with the screen off nothing was read. The dialog is now read each second until it shows OK and the same IMEIs twice, and the screen state from dumpsys power is checked before reading. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Thank you, Maxi. The table made it easy to see. 4c5e74d on the same branch does both of your suggestions:
I left the model and the MSISDN alone for now. "Nombre del dispositivo" is the marketing name, not the model, so it should not fill that field. Could you run the Xiaomi a few times with the screen on, once with it off, and the Nubia and the TCL when you get to them? |
identifynow works on phones that refuse adb input events, following Maxitelmo's steps in #53.*#06#goes in the dialer's intent, and HOME is sent as an intent.screenshots_without_treeno longer crashes on a refused swipe.🤖 Generated with Claude Code