When changing the “OEM unlocking” toggle, I get asked for a password. After putting that in, a popup appears asking me to “Input verify code”, as seen in the screenshot. How do I find out what that is? (Edited to add: it’s not my password).
This happens after a factory reset. I have not put a sim card in my phone.
Definitely didn’t encounter this verification as I unlocked my bootloader.
“Device protection” sound like something, that would have to do with a set google recovery or alike. Since you stated you did it after factory reset I’m asuming you didn’t set any google account information either. So maybe check the options under “safety and security” (not sure about the exact term right now) and turn off as many features as possible. Maybe worth a shot.
remove google account from phone and device from google account
thinking about it, I think I did a factory reset once in the past after I connected it to a google account. So if it is really the “device protection feature”, I think I’m lost at this point, unless anyone has a good hint?
from the looks of it this “code entry field” expects a hexadecimal entry (digits 0-9, a-f) between 1 and 8 digits long, so probably a 32bit number in hexadecimal notation.
It is not 0, it is not the “order number” and it is not the 32 least significant bits of the “serial number” (which is an IMEI, which does not fit in 32bit)
(The numbers can be found under “About phone” - “Model & hardware”)
This should print a string with 8 hex chars at the end for the verify code.
You might also check adb logcat when trying this, maybe there is some output from the OemUnlock code …
I cannot test it myself as I have unlocked mine directly after receiving it and before installing any updates.
Looking at Settings.apk which I pulled from my Fairphone 3.
The check was probably added by Fairphone with one of the updates as the "WARNING: Device protection… " is a normal AOSP string but “Input verify code :” does not exist anywhere else.
Funnily I didn’t have to change much from the original code because Perl and PHP seem to provide the same functions and the rest of the syntax is also more or less the same
And now thinking about this, it would have probably been nicer to implement it as client-side JavaScript. Oh well.
nice. I noticed, it’s missing the length/validity checks for imei and serial number’s though, so if you ever do a javascript reimplementation, you might like to implement those, too