Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Is it possible to obtain the unlock code from an unlocked Android device via the Android API or the developer command line tools?
I have an Android 10 device where the OS is unlocked but the bootloader is not. I can't obtain the unlock code through the normal channels because of bureaucratic incompetence.
Given that the device is already unlocked, it possible to obtain the unlock code via the Android API or the developer command line tools?
In case there's any confusion on what I'm talking about, there are three steps to fully unlocking an Android device:
- Unlocking the OS. This allows the device to be ported to another carrier. This also enables the next step. The original carrier did this remotely.
- Turning on the "OEM unlocking" option in the device settings under Developer options. This enables the next step. I have done this.
- Unlocking the bootloader with
fastboot. This requires the unlock code. This is the step I cannot complete.