[SOLVED] Redmi A1 (Ice) - Unlock bootloader: Error 0x1002

Search This thread

Eren'X

Member
Jan 28, 2023
6
0
Hello,

I have recently acquired an Xiaomi Mi A1 device to try LineageOS.
I follow the steps of the official installation guide here: https://wiki.lineageos.org/devices/tissot/install

I'm facing problems to unlock the bootloader. Despite many tries, the command "fastboot oem unlock" return the following error code "0x1002"
  • ADB version: 1.0.41
  • fastboot version: 33.0.3-8952118
  • USB debugging: ON
  • OEM unlock: ON
I have access to the fastboot mode, the device is listed with adb command "fastboot devices" and an entry appears on Windows Device Manager.

IMG01.png


Here is the command result:

IMG02.png


I have tried to factory reset the phone but the problem still occurs.
Also Mi Unlock tool seems not be usable because Mi Account APK (com.xiaomi.account) is not installed on the phone.

Yoru2647 seems facing the same issue: https://forum.xda-developers.com/t/urgent-help-xiaomi-mi-a1-unlock-bootloader.4295115/post-87995167

Did i miss something? Any ideas about this 0x1002 error code?

Thanks for your advices.
 

Attachments

  • get-var-all.txt
    7.6 KB · Views: 22
Last edited:

NOSS8

Recognized Contributor
Hello,

I have recently acquired an Xiaomi Mi A1 device to try LineageOS.
I follow the steps of the official installation guide here: https://wiki.lineageos.org/devices/tissot/install

Thanks for your advices.
You must have a Xiaomi account with the associated phone,
If you don't have an account, create one and use the official Xiaomi tool to unlock the bootloader.

Unlocking bootloader:

https://new.c.mi.com/global/post/101245
https://en.miui.com/unlock/index.html
 
  • Like
Reactions: Eren'X

Eren'X

Member
Jan 28, 2023
6
0
Thank you for the answer.

I tried that but I'm unable to finish it, the problem is that I cannot bind the Xiaomi account on the phone.

I'm stuck in this step:

IMG01.png



The phone was delivered with Android 12 (Go edition) without MIUI's layer. The build number indicate: 12 V13.0.8.0SGMEUXM
That means i have not "Mi Unlock status" on developer options or "Mi Account" on phone settings.

Is it possible to install additional components for bind Mi account on the phone? or any workaround to bypass it?

I desperately tried to install Xiaomi Account APK manually with adb: https://www.apkmirror.com/apk/xiaomi-inc/mi-account/mi-account-r-22-12-26-01-release/
But it failed with the error : "Reconcile failed: Package com.xiaomi.account requires unavailable shared library security-device-credential-sdk.jar; failing!]"

Is it possible to put one of the official MIUI ROM on phone even with a locked bootloader? (like these ones: https://xiaomifirmwareupdater.com/miui/tissot/)
 

NOSS8

Recognized Contributor
Thank you for the answer.

I tried that but I'm unable to finish it, the problem is that I cannot bind the Xiaomi account on the phone.

I'm stuck in this step:




The phone was delivered with Android 12 (Go edition) without MIUI's layer. The build number indicate: 12 V13.0.8.0SGMEUXM
That means i have not "Mi Unlock status" on developer options or "Mi Account" on phone settings.

Is it possible to install additional components for bind Mi account on the phone? or any workaround to bypass it?

I desperately tried to install Xiaomi Account APK manually with adb: https://www.apkmirror.com/apk/xiaomi-inc/mi-account/mi-account-r-22-12-26-01-release/
But it failed with the error : "Reconcile failed: Package com.xiaomi.account requires unavailable shared library security-device-credential-sdk.jar; failing!]"

Is it possible to put one of the official MIUI ROM on phone even with a locked bootloader? (like these ones: https://xiaomifirmwareupdater.com/miui/tissot/)
check your model version: My phone/features/version
Example:
220733SG, 220733SH, 220733SI, 220733SL,MDG2, MDI2
 

Eren'X

Member
Jan 28, 2023
6
0
Code name ACE not TISSOT.

Good catch, I should have paid more attention to this point. :confused:
I did not find any LineageOS ROM for it. I assume it is not supported on my phone for now. :cry:

However, i tried "fastboot oem unlock" command on both command promp and powershell with and without admin rights.
The result is the same: FAILED (remote: 'Unlock failed - Err:0x1002)

In the next days, i will continue to try few others things like changing USB cable, USB port, computer, ...
The problem also may be linked to FRP mode? i will check that too.

I will share the solution if i success.

Thanks
 

NOSS8

Recognized Contributor
Good catch, I should have paid more attention to this point. :confused:
I did not find any LineageOS ROM for it. I assume it is not supported on my phone for now. :cry:

However, i tried "fastboot oem unlock" command on both command promp and powershell with and without admin rights.
The result is the same: FAILED (remote: 'Unlock failed - Err:0x1002)

In the next days, i will continue to try few others things like changing USB cable, USB port, computer, ...
The problem also may be linked to FRP mode? i will check that too.

I will share the solution if i success.

Thanks
Have you enabled usb debugging?
And why would you want to unlock the bootloader?

may be try https://forum.xda-developers.com/t/...ck-twrp-factory-image-stock-recovery.3695256/
 

SubwayChamp

Senior Member
Aug 6, 2016
4,487
4
1,733
Hello,

I have recently acquired an Xiaomi Mi A1 device to try LineageOS.
I follow the steps of the official installation guide here: https://wiki.lineageos.org/devices/tissot/install

I'm facing problems to unlock the bootloader. Despite many tries, the command "fastboot oem unlock" return the following error code "0x1002"
  • ADB version: 1.0.41
  • fastboot version: 33.0.3-8952118
  • USB debugging: ON
  • OEM unlock: ON
I have access to the fastboot mode, the device is listed with adb command "fastboot devices" and an entry appears on Windows Device Manager.

View attachment 5821853
Your device has to be listed like Android Bootloader Interface, this image is referential, taken from the net.
waiting-for-device-solved-1.png
Thank you for the answer.

I tried that but I'm unable to finish it, the problem is that I cannot bind the Xiaomi account on the phone.

I'm stuck in this step:

View attachment 5822313


The phone was delivered with Android 12 (Go edition) without MIUI's layer. The build number indicate: 12 V13.0.8.0SGMEUXM
That means i have not "Mi Unlock status" on developer options or "Mi Account" on phone settings.
Your device is not Xiaomi Mi A1 (Tissot) but Redmi A1 (Ice), they're very different devices, even one came with Snapdragon when yours come with MediaTek.
Pay attention specially if you think to root it or install some custom ROM on it.
It runs Android One, not Android Go (Edition).

Is it possible to install additional components for bind Mi account on the phone? or any workaround to bypass it?

I desperately tried to install Xiaomi Account APK manually with adb: https://www.apkmirror.com/apk/xiaomi-inc/mi-account/mi-account-r-22-12-26-01-release/
But it failed with the error : "Reconcile failed: Package com.xiaomi.account requires unavailable shared library security-device-credential-sdk.jar; failing!]"
In Xiaomi devices running Android One, you don't need (nor can't) to bind an account, and the Xiaomi Unlock tool is useless for.
Unlocking bootloader is done through command fastboot oem unlock

The problem also may be linked to FRP mode? i will check that too.
FRP has nothing to do with.
 
  • Like
Reactions: Eren'X

jmnz1315

New member
Jan 10, 2023
2
1
Good catch, I should have paid more attention to this point. :confused:
I did not find any LineageOS ROM for it. I assume it is not supported on my phone for now. :cry:

However, i tried "fastboot oem unlock" command on both command promp and powershell with and without admin rights.
The result is the same: FAILED (remote: 'Unlock failed - Err:0x1002)

In the next days, i will continue to try few others things like changing USB cable, USB port, computer, ...
The problem also may be linked to FRP mode? i will check that too.

I will share the solution if i success.

Thanks
Facing the same issue, FAILED (remote: 'Unlock failed - Err:0x1002) when trying "fastboot oem unlock". I have tried Please share if you find solution thanks
 

SubwayChamp

Senior Member
Aug 6, 2016
4,487
4
1,733
If all the mentioned were met, and the error persists, then try opening the CMD as admin.
 

Eren'X

Member
Jan 28, 2023
6
0
Code name ACE not TISSOT.

Your device is not Xiaomi Mi A1 (Tissot) but Redmi A1 (Ice), they're very different devices, even one came with Snapdragon when yours come with MediaTek.

Helpful answers.


Finally, i did it.

IMG01.png


This article give the soluce: https://www.droidwin.com/unlock-bootloader-on-mediatek-devices-using-mtkclient

"However, there are a few MediaTek devices that don’t accept any of these Fastboot Commands. if your device also falls in this domain, then this guide shall help you out. In this tutorial, we will show you the detailed steps to unlock the bootloader on your MediaTek device using MTKClient."

I followed it step by step and it works!

Pay attention specially if you think to root it or install some custom ROM on it.

Yep, I haven't found a lot of custom ROM who support (ice) codename. :(

Any better place here to post about "Redmi A1/POCO C50/A1+ (ice)"?
I don't seem to be the only one to make this confusion.
 
Last edited:

SubwayChamp

Senior Member
Aug 6, 2016
4,487
4
1,733
Helpful answers.


Finally, i did it.

View attachment 5828629

This article give the soluce: https://www.droidwin.com/unlock-bootloader-on-mediatek-devices-using-mtkclient

"However, there are a few MediaTek devices that don’t accept any of these Fastboot Commands. if your device also falls in this domain, then this guide shall help you out. In this tutorial, we will show you the detailed steps to unlock the bootloader on your MediaTek device using MTKClient."

I followed it step by step and it works!



Yep, I haven't found a lot of custom ROM who support (ice) codename. :(

Any better place here to post about "Redmi A1/POCO C50/A1+ (ice)"?
I don't seem to be the only one to make this confusion.
Well, not, unfortunately, it seems that your device is not popular at all among developers. As a "deposit" of custom ROMs, you should try AFH, SourceForge, PlingOS, apart than from Twitter.

Depending on how many similar are the two linked devices, then you should search for something for them.
 

Eren'X

Member
Jan 28, 2023
6
0
The device is young, it's been released in September 2022. I don't expect to find a custom ROM before long time.

The generic system images may be a good alternative in this case, like this one: https://forum.xda-developers.com/t/gsi-13-lineageos-20-light.4509315/

It's not my daily phone, i get it specifically to experiment. I would be careful, but for 80$ it's not a big loss if i brick it.

I will try it when i have more free time.

Thanks for helping
 

SubwayChamp

Senior Member
Aug 6, 2016
4,487
4
1,733
The device is young, it's been released in September 2022. I don't expect to find a custom ROM before long time.

The generic system images may be a good alternative in this case, like this one: https://forum.xda-developers.com/t/gsi-13-lineageos-20-light.4509315/

It's not my daily phone, i get it specifically to experiment. I would be careful, but for 80$ it's not a big loss if i brick it.

I will try it when i have more free time.

Thanks for helping
Yes, it's not much time since was released, the normal waiting time could be at least 6 months.

Yes, GSIs, are a good alternative.

Don't forget to back up all the partitions available, less userdata, that occupy a really huge size (about 100 GB of storage), and super partition (don't care about). And a last advice, never user format all feature through SPFT, otherwise you'll erase NVRAM partition, fingerprint, LTE signal, IMEI and more.
 

Top Liked Posts