remote: oem unlocked is not allowed [Mi A1]

krpstar

Member
Dec 26, 2017
5
2
0
You can try to wipe data in stock recovery mode and see if it boots.
Or you can change active system partition with fastboot commands to see if it boots.
I was not able to get into recovery mode.

In fastboot mode I tried to change the active system partion
command "fastboot getvar current-slot"(without quotes) to check the system partition and changed the partition using this command "fastboot --set-active=a/b"(without quotes).

Phone booted up and showed some error I can't remember the error exactly but it was some type of system error and was applying factory reset on its own.
I tried to enter recovery mode even in recovery mode you will get only two option "factory reset" and "try again" you have to format phone else it will show the same error.

I format the phone and set it up then I checked the android version it was android oreo 8.0 with May security patch. Finally I updated my phone to android oreo 8.1.

I want to know that what has happened to the partition which was not booting up?, will I be able to use that partition again? or that partition is still corrupted?
 

SChem

New member
Jul 26, 2018
2
0
0
Similar Issue here!!

Hi,
I am stuck in a position where I cannot access my phone settings, because it starts popping up all these force close error alerts and shutting down on its own. I cannot unlock OEM from phone settings and hence I cannot flash anything, not even stock ROM!

My phone got problems all of a sudden. It started with a lot of apps force closing on its own and phone got frozen. So I tried restarting the phone by holding power button. But it showed on the booting screen that I might need to Factory Reset my phone. I thought I had no choice but to reset it, so I chose wipe data and Factory Reset.

The real problems started after that!

The phone got restarted and I had to input the Language settings and all, and suddenly all these app force closing windows started to pop-up. I tried closing one by one but it didn't stop and started to shut down the system on its own.
The same thing repeats whenever I try to factory reset as soon as my phone boots up.

I can access the FastBoot mode, and I have already tried MiFlashTool, MiUnlock etc. Please do help!
 

arjunbalan1994

Senior Member
Nov 9, 2014
135
26
58
Sivakasi
A Small Friendly Advice(My Personal Opinion)

Hello All,
I always say this to everyone, guys please dont try to install Gcam on stock.Stock=only factory settings altering things there will end up in messing up your efs partition also dont try to unlock bootloader and install OTA updates,If you need customization there are many Custom Roms for our device that you can try which comes with Gcam Pre-Installed and even have weekly OTA updates so dont mess up.Thanks for understanding...:D
 

Muhammed Aqib

New member
Jan 4, 2018
1
0
0
FAILED <remote: oem unlock is not allowed

Hello sir i follow your step but my mobile mi a1 does not open when commond fastboot reboot enter and press enter mobile show MI logo and then shutdown and black screen not restart only shutdown and not charging show please help me


first of all i rooted my device and resetart mobile when again in fastboot mod i enter command fastboot oem lock with root and enter after this my mobile not restart and open only show MI logo and shut down please help meee sooon my device shutdown


fastboot oem unlock cammond not working
 

krpstar

Member
Dec 26, 2017
5
2
0
Hello sir i follow your step but my mobile mi a1 does not open when commond fastboot reboot enter and press enter mobile show MI logo and then shutdown and black screen not restart only shutdown and not charging show please help me


first of all i rooted my device and resetart mobile when again in fastboot mod i enter command fastboot oem lock with root and enter after this my mobile not restart and open only show MI logo and shut down please help meee sooon my device shutdown


fastboot oem unlock cammond not working
Try my method quoted below. You may have to factory reset your device.

I was not able to get into recovery mode.

In fastboot mode I tried to change the active system partion
command "fastboot getvar current-slot"(without quotes) to check the system partition and changed the partition using this command "fastboot --set-active=a/b"(without quotes).

Phone booted up and showed some error I can't remember the error exactly but it was some type of system error and was applying factory reset on its own.
I tried to enter recovery mode even in recovery mode you will get only two option "factory reset" and "try again" you have to format phone else it will show the same error.

I format the phone and set it up then I checked the android version it was android oreo 8.0 with May security patch. Finally I updated my phone to android oreo 8.1.

I want to know that what has happened to the partition which was not booting up?, will I be able to use that partition again? or that partition is still corrupted?
 

kapilan2

New member
Aug 2, 2018
1
0
0
Pixel XL with the same problem

Connect your phone in fastboot mode and type in "fastboot getvar all" and share the output please.
I typed in the command you posted. These are all I am getting. Can you help me with it please?

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot getvar all
(bootloader) version:0.5
(bootloader) hw-revision:pVT
(bootloader) mid:G-2PW2100
(bootloader) version-main:0.12.999.1
(bootloader) imei:352693080479195
(bootloader) ramdump-mode:false
(bootloader) boot-mode:FASTBOOT
(bootloader) has-slot:radio:yes
(bootloader) has-slot:bootloader:yes
(bootloader) has-slot:reserve5:no
(bootloader) has-slot:devinfo:no
(bootloader) has-slot:fsg:no
(bootloader) has-slot:mfg:no
(bootloader) has-slot:board_info:no
(bootloader) has-slot:reserve4:no
(bootloader) has-slot:metadata:no
(bootloader) has-slot:pg2fs:no
(bootloader) has-slot:pg1fs:no
(bootloader) has-slot:ramdump:no
(bootloader) has-slot:frp:no
(bootloader) has-slot:reserve3:no
(bootloader) has-slot:cdt:no
(bootloader) has-slot:ddr:no
(bootloader) has-slot:modemst2:no
(bootloader) has-slot:modemst1:no
(bootloader) has-slot:fsc:no
(bootloader) has-slot:dip:no
(bootloader) has-slot:dpo:no
(bootloader) has-slot:devinfobak:no
(bootloader) has-slot:sec:no
(bootloader) has-slot:persist:no
(bootloader) has-slot:ssd:no
(bootloader) has-slot:misc:no
(bootloader) has-slot:xbl:yes
(bootloader) has-slot:reserve0:no
(bootloader) has-slot:userdata:no
(bootloader) has-slot:system:yes
(bootloader) has-slot:vendor:yes
(bootloader) has-slot:apdp:yes
(bootloader) has-slot:msadp:yes
(bootloader) has-slot:modem:yes
(bootloader) has-slot:devcfg:yes
(bootloader) has-slot:hosd:yes
(bootloader) has-slot:boot:yes
(bootloader) has-slot:aboot:yes
(bootloader) has-slot:cmnlib64:yes
(bootloader) has-slot:cmnlib32:yes
(bootloader) has-slot:hyp:yes
(bootloader) has-slot:pmic:yes
(bootloader) has-slot:rpm:yes
(bootloader) has-slot:tz:yes
(bootloader) has-slot:keymaster:yes
(bootloader) has-slot:bootlocker:yes
(bootloader) slot-count:2
(bootloader) current-slot:b
(bootloader) slot-retry-count:b:2
(bootloader) slot-unbootable:b:no
(bootloader) slot-successful:b:yes
(bootloader) slot-retry-count:a:2
(bootloader) slot-unbootable:a:no
(bootloader) slot-successful:a:yes
(bootloader) battery-soc-ok:yes
(bootloader) battery-voltage:3429000
(bootloader) variant:US
(bootloader) secure:yes
(bootloader) unlocked:no
(bootloader) version-baseband:8996-130091-1802061512
(bootloader) version-bootloader:8996-012001-1711291800
(bootloader) off-mode-charge:1
(bootloader) charger-screen-enabled:1
(bootloader) max-download-size: 0x20000000
(bootloader) partition-type:userdata:ext4
(bootloader) partition-size:userdata: 0x1c8d800000
(bootloader) partition-type:system_b:ext4
(bootloader) partition-size:system_b: 0x80000000
(bootloader) partition-type:system_a:ext4
(bootloader) partition-size:system_a: 0x80000000
(bootloader) partition-type:vendor_b:ext4
(bootloader) partition-size:vendor_b: 0x12c00000
(bootloader) partition-type:vendor_a:ext4
(bootloader) partition-size:vendor_a: 0x12c00000
(bootloader) partition-type:boot_b:raw
(bootloader) partition-size:boot_b: 0x2000000
(bootloader) partition-type:boot_a:raw
(bootloader) partition-size:boot_a: 0x2000000
(bootloader) serialno:HT69J0203949
(bootloader) kernel:lk
(bootloader) product:marlin
all:
finished. total time: 2.251s
 

andrexp31

Senior Member
Feb 9, 2012
253
31
0
Minas
The only method to recovery the phone in this situation is flashing by test point.

https://www.youtube.com/watch?v=70hYUCjAsCM

When Qualcomm HS-USB QDLoader 9008 is detected for the PC
you can flash using MiFlashTool.

---------- Post added at 02:31 AM ---------- Previous post was at 02:31 AM ----------

The only method to recovery the phone in this situation is flashing by test point.

https://www.youtube.com/watch?v=70hYUCjAsCM

When Qualcomm HS-USB QDLoader 9008 is detected for the PC
you can flash using MiFlashTool.
 

PieNougat

New member
Sep 4, 2018
2
0
0
is MY MI A1

Try flashing in edl mode, in fastboot type in cmd: fastboot oem edl, it will give you a fail. It's normal, you should have a black screen and the led blinking. Look if the drivers are installed and after install with MiFlash.
(bootloader) version:0.5
(bootloader) battery-soc-ok:yes
(bootloader) battery-voltage:3763000
(bootloader) variant:QRD eMMC
(bootloader) unlocked:no
(bootloader) secure:yes
(bootloader) version-baseband:
(bootloader) version-bootloader:MSM8953_TISSOT2.0_20181015193430
(bootloader) display-panel:
(bootloader) off-mode-charge:0
(bootloader) charger-screen-enabled:0
(bootloader) max-download-size: 0x1fe00000
(bootloader) slot-count:2
(bootloader) current-slot:b
(bootloader) slot-retry-count:b:7
(bootloader) slot-success:b:Yes
(bootloader) slot-active:b:Yes
(bootloader) slot-unbootable:b:No
(bootloader) slot-retry-count:a:7
(bootloader) slot-success:a:Yes
(bootloader) slot-active:a:No
(bootloader) slot-unbootable:a:No
(bootloader) has-slot:userdata: No
(bootloader) has-slot:logdump: No
(bootloader) has-slot:dpo: No
(bootloader) has-slot:msadp: No
(bootloader) has-slot:apdp: No
(bootloader) has-slot:keymasterbak: No
(bootloader) has-slot:keymaster: No
(bootloader) has-slot:cmnlib64bak: No
(bootloader) has-slot:cmnlib64: No
(bootloader) has-slot:cmnlibbak: No
(bootloader) has-slot:cmnlib: No
(bootloader) has-slot:lksecappbak: No
(bootloader) has-slot:lksecapp: No
(bootloader) has-slot:mcfg: No
(bootloader) has-slot:syscfg: No
(bootloader) has-slot:mdtp: No
(bootloader) has-slot:dip: No
(bootloader) has-slot:mota: No
(bootloader) has-slot:limits: No
(bootloader) has-slot:config: No
(bootloader) has-slot:keystore: No
(bootloader) has-slot:misc: No
(bootloader) has-slot:persist: No
(bootloader) has-slot:system: Yes
(bootloader) has-slot:devinfo: No
(bootloader) has-slot:boot: Yes
(bootloader) has-slot:abootbak: No
(bootloader) has-slot:aboot: No
(bootloader) has-slot:splash: No
(bootloader) has-slot:sec: No
(bootloader) has-slot:fsg: No
(bootloader) has-slot:DDR: No
(bootloader) has-slot:modemst2: No
(bootloader) has-slot:modemst1: No
(bootloader) has-slot:dsp: No
(bootloader) has-slot:devcfgbak: No
(bootloader) has-slot:devcfg: No
(bootloader) has-slot:tzbak: No
(bootloader) has-slot:tz: No
(bootloader) has-slot:rpmbak: No
(bootloader) has-slot:rpm: No
(bootloader) has-slot:sbl1bak: No
(bootloader) has-slot:sbl1: No
(bootloader) has-slot:ssd: No
(bootloader) has-slot:fsc: No
(bootloader) has-slot:modem: Yes
(bootloader) partition-type:userdata:ext4
(bootloader) partition-size:userdata: 0xcd3779e00
(bootloader) partition-type:logdump:
(bootloader) partition-size:logdump: 0x4000000
(bootloader) partition-type:dpo:
(bootloader) partition-size:dpo: 0x2000
(bootloader) partition-type:msadp:
(bootloader) partition-size:msadp: 0x40000
(bootloader) partition-type:apdp:
(bootloader) partition-size:apdp: 0x40000
(bootloader) partition-type:keymasterbak:
(bootloader) partition-size:keymasterbak: 0x40000
(bootloader) partition-type:keymaster:
(bootloader) partition-size:keymaster: 0x40000
(bootloader) partition-type:cmnlib64bak:
(bootloader) partition-size:cmnlib64bak: 0x40000
(bootloader) partition-type:cmnlib64:
(bootloader) partition-size:cmnlib64: 0x40000
(bootloader) partition-type:cmnlibbak:
(bootloader) partition-size:cmnlibbak: 0x40000
(bootloader) partition-type:cmnlib:
(bootloader) partition-size:cmnlib: 0x40000
(bootloader) partition-type:lksecappbak:
(bootloader) partition-size:lksecappbak: 0x20000
(bootloader) partition-type:lksecapp:
(bootloader) partition-size:lksecapp: 0x20000
(bootloader) partition-type:mcfg:
(bootloader) partition-size:mcfg: 0x400000
(bootloader) partition-type:syscfg:
(bootloader) partition-size:syscfg: 0x80000
(bootloader) partition-type:mdtp:
(bootloader) partition-size:mdtp: 0x2000000
(bootloader) partition-type:dip:
(bootloader) partition-size:dip: 0x100000
(bootloader) partition-type:mota:
(bootloader) partition-size:mota: 0x80000
(bootloader) partition-type:limits:
(bootloader) partition-size:limits: 0x8000
(bootloader) partition-type:config:
(bootloader) partition-size:config: 0x8000
(bootloader) partition-type:keystore:
(bootloader) partition-size:keystore: 0x80000
(bootloader) partition-type:misc:
(bootloader) partition-size:misc: 0x100000
(bootloader) partition-type:persist:
(bootloader) partition-size:persist: 0x2000000
(bootloader) partition-type:system_b:ext4
(bootloader) partition-size:system_b: 0xc0000000
(bootloader) partition-type:system_a:ext4
(bootloader) partition-size:system_a: 0xc0000000
(bootloader) partition-type:devinfo:
(bootloader) partition-size:devinfo: 0x100000
(bootloader) partition-type:boot_b:
(bootloader) partition-size:boot_b: 0x4000000
(bootloader) partition-type:boot_a:
(bootloader) partition-size:boot_a: 0x4000000
(bootloader) partition-type:abootbak:
(bootloader) partition-size:abootbak: 0x100000
(bootloader) partition-type:aboot:
(bootloader) partition-size:aboot: 0x100000
(bootloader) partition-type:splash:
(bootloader) partition-size:splash: 0xb00000
(bootloader) partition-type:sec:
(bootloader) partition-size:sec: 0x4000
(bootloader) partition-type:fsg:
(bootloader) partition-size:fsg: 0x180000
(bootloader) partition-type:DDR:
(bootloader) partition-size:DDR: 0x8000
(bootloader) partition-type:modemst2:
(bootloader) partition-size:modemst2: 0x180000
(bootloader) partition-type:modemst1:
(bootloader) partition-size:modemst1: 0x180000
(bootloader) partition-type:dsp:
(bootloader) partition-size:dsp: 0x1000000
(bootloader) partition-type:devcfgbak:
(bootloader) partition-size:devcfgbak: 0x40000
(bootloader) partition-type:devcfg:
(bootloader) partition-size:devcfg: 0x40000
(bootloader) partition-type:tzbak:
(bootloader) partition-size:tzbak: 0x200000
(bootloader) partition-type:tz:
(bootloader) partition-size:tz: 0x200000
(bootloader) partition-type:rpmbak:
(bootloader) partition-size:rpmbak: 0x80000
(bootloader) partition-type:rpm:
(bootloader) partition-size:rpm: 0x80000
(bootloader) partition-type:sbl1bak:
(bootloader) partition-size:sbl1bak: 0x80000
(bootloader) partition-type:sbl1:
(bootloader) partition-size:sbl1: 0x80000
(bootloader) partition-type:ssd:
(bootloader) partition-size:ssd: 0x2000
(bootloader) partition-type:fsc:
(bootloader) partition-size:fsc: 0x400
(bootloader) partition-type:modem_b:
(bootloader) partition-size:modem_b: 0x5400000
(bootloader) partition-type:modem_a:
(bootloader) partition-size:modem_a: 0x5400000
(bootloader) crc:1
(bootloader) serialno:60ec6a6c0504
(bootloader) kernel:lk
(bootloader) product:tissot
all:
 

Xaviers101

Senior Member
Oct 12, 2016
1,056
350
0
Thimphu
I want to share with you all my bitter experience just recently. i almost took my device to service centre post which i was planning to throw my device if no other options.

"""currently my phone is bricked while trying to 'clean flash all and lock' via mi flash. The process ended with an error which i never seen before and now i m stuck in bootloop. apparently the bootloader seems locked now so cant perform the following:
cannot fastboot oem unlock
cannot boot into twrp image.
cant use mi flash tool again (same error with all 3 flash modes) """
If all above sounds familiar , u have basically hard bricked the device, i would suggest you try the following(one or the other unti u solve the issue):
1. first of try to get to EDL MODE by command: fastboot oem edl (this should restart your phone to black screen and the notfication should should blink which is an indicator) Then flash via mi flash tool in EDL mode.
Alternative way to reboot to EDL mode ( refer: https://forum.xda-developers.com/redmi-note-3/how-to/guide-reboot-to-edl-mode-fastboot-test-t3398718)
2. adb sidellaod rom zip ( search google for the method, its easy!)
3. flashscripts to flash rom without mi flash tool (refer: https://forum.xda-developers.com/mi-a1/how-to/ota-official-fastboot-image-n2g47h-7-12-t3728929)
4.Slot Switch ( enter fastboot mode and connect to PC, run minimal adb fastboot/cmd/powershell, enter commands: fastboot --set-active=a
fastboot reboot/// try to see which slot works for you : repeat: fastboot--set-active=b) btw this worked in my case. :)
5. Fastboot command line tool refer: https://toolaio.tk/ ( TOOL ALL IN ONE)
6. LAST RESORT: TEST POINT METHOD to enter EDL MODE and then mi flash rom. requires little bit of peeping under the hood) refer: http://en.miui.com/thread-1680467-1-1.html

THANK YOU SO MUCH GUYS : @Kurtinaitis (for the slot switch idea)
@majamee
@romantissm(for pushing me forward, not to give up on my beloved mi a1)
@AridaneAM

ps- mi a1 is a great phone , treat it nicely. go easy with the 'flashing'
 
Last edited:
  • Like
Reactions: romantissm

Userbaban

Senior Member
Mar 28, 2018
116
22
18
guys i can't change the slot from a to be .. it's always says " unrecognised option " after applying the comand ... please help !!
 

rexendz

Member
Sep 13, 2016
35
4
8
ZAM
Hello All,
I always say this to everyone, guys please dont try to install Gcam on stock.Stock=only factory settings altering things there will end up in messing up your efs partition also dont try to unlock bootloader and install OTA updates,If you need customization there are many Custom Roms for our device that you can try which comes with Gcam Pre-Installed and even have weekly OTA updates so dont mess up.Thanks for understanding...:D
I am on stock android 8.1 with unlocked bootloader and gcam arnova installed using magisk module. Magisk is systemless so it does not touch the efs or persist partition. I can safely update my mi a1 through OTA without the use of computer or any external device. I just restore stock boot image, apply OTA, install magisk in the slot where the OTA is installed, all without issue.

Some prefer custom roms, some stock. I'm sticking to stock because it's the reason why I bought the phone, being android one. Yes, it's true that people without proper knowledge of the risks involved in flashing should not engage in risky stuffs like this. My only advice is to just be very careful and understand the risks of doing these stuffs to your device, as it can result in either good or bad outcomes.

As for OP's problem, I once encountered a bootloop and fixed it.
Go to recovery
1.) Hold down power and volume up
2.) When "no command" screen pops up, hold down power button first then press volume up.
At this point, you should be in the recovery menu
3.) Use volume to navigate and select "Run Graphics Test"
4.) Press the power button and it should show a screen similar to when you're updating the device
5.) Reboot the device and hope for the best

This worked for me when I messed up flashing my boot image and got into bootloop. After I did the run graphics test, I was able to get into the rom. I do not know what the "run graphics test" does, but it fixed my problem so I hope it also fixes yours.
 
Last edited:

Userbaban

Senior Member
Mar 28, 2018
116
22
18
I want to share with you all my bitter experience just recently. i almost took my device to service centre post which i was planning to throw my device if no other options.

"""currently my phone is bricked while trying to 'clean flash all and lock' via mi flash. The process ended with an error which i never seen before and now i m stuck in bootloop. apparently the bootloader seems locked now so cant perform the following:
cannot fastboot oem unlock
cannot boot into twrp image.
cant use mi flash tool again (same error with all 3 flash modes) """
If all above sounds familiar , u have basically hard bricked the device, i would suggest you try the following(one or the other unti u solve the issue):
1. first of try to get to EDL MODE by command: fastboot oem edl (this should restart your phone to black screen and the notfication should should blink which is an indicator) Then flash via mi flash tool in EDL mode.
Alternative way to reboot to EDL mode ( refer: https://forum.xda-developers.com/redmi-note-3/how-to/guide-reboot-to-edl-mode-fastboot-test-t3398718)
2. adb sidellaod rom zip ( search google for the method, its easy!)
3. flashscripts to flash rom without mi flash tool (refer: https://forum.xda-developers.com/mi-a1/how-to/ota-official-fastboot-image-n2g47h-7-12-t3728929)
4.Slot Switch ( enter fastboot mode and connect to PC, run minimal adb fastboot/cmd/powershell, enter commands: fastboot --set-active=a
fastboot reboot/// try to see which slot works for you : repeat: fastboot--set-active=b) btw this worked in my case. :)
5. Fastboot command line tool refer: https://toolaio.tk/ ( TOOL ALL IN ONE)
6. LAST RESORT: TEST POINT METHOD to enter EDL MODE and then mi flash rom. requires little bit of peeping under the hood) refer: http://en.miui.com/thread-1680467-1-1.html

THANK YOU SO MUCH GUYS : @Kurtinaitis (for the slot switch idea)
@majamee
@romantissm(for pushing me forward, not to give up on my beloved mi a1)
@AridaneAM

ps- mi a1 is a great phone , treat it nicely. go easy with the 'flashing'

will you please tell the way to change the slots ? i can see the slot in which my phone is by the command " fastboot getvar current-slot " but i can't change the slot to "b" .. i am giving the command as you mentioned but it always shows me " unknown option -- set-active=b " ... please help me !!
 

Xaviers101

Senior Member
Oct 12, 2016
1,056
350
0
Thimphu
will you please tell the way to change the slots ? i can see the slot in which my phone is by the command " fastboot getvar current-slot " but i can't change the slot to "b" .. i am giving the command as you mentioned but it always shows me " unknown option -- set-active=b " ... please help me !!
Code:
 fastboot --set-active=b
Sent from my Mi A1 using Tapatalk