yashsingh1/xdaforums huggingface dataset:
[ZTE Axon 7 Questions & Answers] trevor68:
I tried to format data but it fails with an error message. I also tried another version of twrp linked here with the same result. I think your right and I will have to flash magisk or SuperSU after flashing twrp, which is a shame, as I wasn't actually intending to root it, I simply wanted to have unlocked BL and TWRP installed.

I have a working phone again by doing full EDL restore, so currently Unlocked BL with stock recovery.
[ZTE Axon 7 Questions & Answers] trevor68:
I installed SuperSU using trwp and it all works now. :)
[Mi 3 Q&A, Help & Troubleshooting] rohittalwar17:
1. Error 7 while flashing aosp 8.1 from TWRP 3.1.0

2. I also flashed latest stable global rom from TWRP for repartition but still error 7 ...(i was on the old build of AOSP extended).

3. I also tried flashing fastboot rom but it just says success in just 2 seconds I just does nothing.

please help guys
[8525, TyTN, MDA Vario II, JasJam ROM Development] in_nujerz:
i am sorry to be asking repetative questions but i need an answer my phone has tcpmp and the ie streamer but when browsing with opera mini it does not open streaming video links, it just seems to do nothing, have i installed something in the wrong place or something? how can this resolved? i have schaps 4.31 rom installed if that helps
[Xiaomi Mi A1 Questions & Answers] nicobelic:
Hello everyone.

I got this problem today. My Mi A1 doesn't want to unlock the bootloader, and I follow all the instructions. In the cmd, when I type "fastboot oem unlock", this error appears "remote: unlock is not allowed".

Besides, the smartphone is frozen on the screen of initialization of Mi, making it impossible for me to go in the administrator options of the device.
[Xiaomi Mi A1 Questions & Answers] _mysiak_:
Please describe what you did to the phone before it got to this state.
[Xiaomi Mi A1 Questions & Answers] nicobelic:
I tried to install the gcam on the device and had to unlock the bootloader. At first work, I unlock it, and went to install gcam but it did not work so well. After that my device had some performance problems and I decided to reinstall the ROM using MiFlash.

As I was giving errors and I could not install by MiFlash, I searched for tutorials on Youtube, trying to install without MiFlash, I found some but did not work again. So, I decided to type in the cmd "flashboot oem lock" because I thought this would be the problem that I could not install the ROM by MiFlash and again, it worked, I managed to block it.

However, after searching again, I discovered that I had to unlock it, so I typed the "flashboot oem unlock" command and gave this error, and when I turn on the phone, just appear a white screen with Mi logo.
[Xiaomi Mi A1 Questions & Answers] _mysiak_:
Are you sure that you have Mi A1 phone? What was the system version before you tried to install Gcam?
[Xiaomi Mi A1 Questions & Answers] nicobelic:
I sure, the system was Android 8.0. Android One.
[Xiaomi Mi A1 Questions & Answers] Chiggie14899:
Did you enable OEM unlocking from the Developer Options? Probably not. Enable it first and try again.
[Xiaomi Mi A1 Questions & Answers] nicobelic:
Like I said, I can't. My smartphone is in mode bootloop.
[Xiaomi Mi A1 Questions & Answers] _mysiak_:
Connect your phone in fastboot mode and type in "fastboot getvar all" and share the output please.
[Xiaomi Mi A1 Questions & Answers] mardrest:
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.
[Xiaomi Mi A1 Questions & Answers] nicobelic:
fastboot getvar all

(bootloader) version:0.5

(bootloader) battery-soc-ok:yes

(bootloader) battery-voltage:3828000

(bootloader) variant:QRD eMMC

(bootloader) secure:yes

(bootloader) version-baseband:

(bootloader) version-bootloader:MSM8953_TISSOT2.0_20180504180424

(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:_a

(bootloader) slot-retry-count:_b:7

(bootloader) slot-success:_b:No

(bootloader) slot-active:_b:No

(bootloader) slot-unbootable:_b:No

(bootloader) slot-retry-count:_a:7

(bootloader) slot-success:_a:Yes

(bootloader) slot-active:_a:Yes

(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:cache:ext4

(bootloader) partition-size:cache:

(bootloader) partition-type:userdata:ext4

(bootloader) partition-size:userdata: 0xcd3779e00

(bootloader) partition-type:system:ext4

(bootloader) partition-size:system: 0xc0000000

(bootloader) crc:1

(bootloader) serialno:349794d29805

(bootloader) kernel:lk

(bootloader) product:tissot

all:

finished. total time: 0.776s
[Xiaomi Mi A1 Questions & Answers] nicobelic:
This shows up:

>fastboot oem edl

...

OKAY [ 0.016s]

finished. total time: 0.016s
[Xiaomi Mi A1 Questions & Answers] nicobelic:
This shows up:

>fastboot oem edl
...
OKAY [ 0.016s]
finished. total time: 0.016s
[Xiaomi Mi A1 Questions & Answers] mardrest:
If you have a black screen and the led blinks, then you are on edl mode, you can install the rom with MiFlash
[Xiaomi Mi A1 Questions & Answers] nicobelic:
To be honest, nothing happened to the device, it still continues in "fastboot" mode after typing the command and no led blinks.
[Xiaomi Mi A1 Questions & Answers] mardrest:
Try updating the driver, you can get from this sit: https://www.androidbrick.com/download/qualcomm_diag_qd_loader_2016_qfil_driver/
[Xiaomi Mi A1 Questions & Answers] Custom rom 243:
Is "allow OEM unlcking" enabled ?? If not you can enable from developer options .
[Xiaomi Mi A1 Questions & Answers] ProchyGaming:
As he said he can't get into the rom
[Xiaomi Mi A1 Questions & Answers] Custom rom 243:
Oh that's why I thought such a obvious reason was not told by anyone . ;)

---------- Post added at 06:37 PM ---------- Previous post was at 06:35 PM ----------

Could you follow that same procedure of locking OEM and then booting into the ROM ? (,Just asking,not giving a solution)
[Xiaomi Mi A1 Questions & Answers] nicobelic:
I install the driver, write "fastboot oem edl" command, nothing changes.

I think I screwed up realy bad.
[Xiaomi Mi A1 Questions & Answers] nicobelic:
This is happening

I found a video that shows the SAME PROBLEM I'm having with my Mi A1.

Why can not I fix the problem? I can not unlock the bootloader.

https://www.youtube.com/watch?v=51LnEOrM3nQ

This shows up when I tried: https://imgur.com/uAVuFle
[Xiaomi Mi A1 Questions & Answers] mardrest:
Try with a new version of fastboot, try with this:

https://androidfilehost.com/?fid=746010030569952951
[Xiaomi Mi A1 Questions & Answers] nicobelic:
I instaled, do what u asked but not work, again. :(

This is happening

I found a video that shows the SAME PROBLEM I'm having with my Mi A1.

Why can not I fix the problem? I can not unlock the bootloader.

https://www.youtube.com/watch?v=51LnEOrM3nQ

This shows up when I tried: https://imgur.com/uAVuFle
[Xiaomi Mi A1 Questions & Answers] derbi0o6:
remote: oem unlock not allowed

stuck with exact same problem...did u find a solution.....
[Xiaomi Mi A1 Questions & Answers] nicobelic:
No, I could't fix it. I took it to the assistance in my city. Isn't a legitimate assistance of Xiaomi, but the guy repaired countless smartphones and cellphones for over 16 years, so I hope he can fix.
[Xiaomi Mi A1 Questions & Answers] suresh001:
I have same problem,but I solved it,enable developer option and enable OEM unlock,now it will work
[Xiaomi Mi A1 Questions & Answers] nicobelic:
Unfortunately my smartphone can not access this option. When I call him, he gets frozen in the Mi logo. I can not access recovery, I can only turn it on and enter fastboot.
[Xiaomi Mi A1 Questions & Answers] derbi0o6:
I reached the customer service. They told that mi a1 works under android one so it doesn't come under mi quote(rooting will not destroy warranty) so we have to pay to service the device
[Xiaomi Mi A1 Questions & Answers] LoVeRice:
No way?
[Xiaomi Mi A1 Questions & Answers] JoKeRLeE:
I remember that one user ask in the mi forum , but the solution is erase through EDL mode . maybe try fastboot oem edl ?
[Xiaomi Mi A1 Questions & Answers] laticsforlife:
Have you not read the thread, Fastboot OEM EDL does nothing, no change to the phone screen, still onrabbit fastboot screen and no flashing led, so cannot get into EDL mode.

Any progress on the repair.
[Xiaomi Mi A1 Questions & Answers] purplefixed:
I have the same problem and I don’t know what to do :( someone help me
[Xiaomi Mi A1 Questions & Answers] imPazhani:
Enable OEM unlock in developer options
[Xiaomi Mi A1 Questions & Answers] ichzenk:
I have same problem, any another suggest ?
[Xiaomi Mi A1 Questions & Answers] daveve:
Only solution is buying a EDL cable to get your device in EDL mode. Other solution is opening your device and short circuit your device to go in EDL mode.
[Xiaomi Mi A1 Questions & Answers] majomajzlan:
in edl mode also does not know flash with locked bootloader! hopeless
[Xiaomi Mi A1 Questions & Answers] krpstar:
Does anybody found the solution yet?
[Xiaomi Mi A1 Questions & Answers] sipollo:
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.
[Xiaomi Mi A1 Questions & Answers] daryl_dixon:
If "fastboot oem edl" is not working then you gotta remove back cover and use test point method to boot in edl mode and flash ROM via Mi Flash Tool............

In my case fastboot oem edl worked........
[Xiaomi Mi A1 Questions & Answers] majomajzlan:
I used the test point method to boot in edl mode but edl does not work with locked bootloader
[Xiaomi Mi A1 Questions & Answers] krpstar:
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?
[Xiaomi Mi A1 Questions & Answers] SChem:
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!
[Xiaomi Mi A1 Questions & Answers] ondoin:
Maybe this is the reason

https://c.mi.com/thread-1095941-1-0.html
[Xiaomi Mi A1 Questions & Answers] arjunbalan1994:
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
[Xiaomi Mi A1 Questions & Answers] Muhammed Aqib:
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
[Xiaomi Mi A1 Questions & Answers] krpstar:
Try my method quoted below. You may have to factory reset your device.
[Xiaomi Mi A1 Questions & Answers] simebru63:
Did you manage to find a solution to this problem? I have same issue, trying to get persist.img onto device.:crying:
[Xiaomi Mi A1 Questions & Answers] nnexuss:
Mi A2 with the same problem....

Any news guys?
[Xiaomi Mi A1 Questions & Answers] andrexp31:
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.
[Xiaomi Mi A1 Questions & Answers] Xaviers101:
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://xdaforums.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://xdaforums.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 : [MENTION=9442754]Kurtinaitis[/MENTION] (for the slot switch idea)

[MENTION=3964603]majamee[/MENTION]

[MENTION=9299667]romantissm[/MENTION](for pushing me forward, not to give up on my beloved mi a1)

[MENTION=8676627]AridaneAM[/MENTION]

ps- mi a1 is a great phone , treat it nicely. go easy with the 'flashing'
[Xiaomi Mi A1 Questions & Answers] omu13jan:
Any solution?

Have you got any solution for this issue. I am facing the exact same issue. :rolleyes:
[Xiaomi Mi A1 Questions & Answers] Userbaban:
guys i can't change the slot from a to be .. it's always says " unrecognised option " after applying the comand ... please help !!
[Xiaomi Mi A1 Questions & Answers] rexendz:
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.
[Xiaomi Mi A1 Questions & Answers] Userbaban:
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 !!
[Xiaomi Mi A1 Questions & Answers] Xaviers101:
fastboot --set-active=b
[Xiaomi Mi A1 Questions & Answers] Userbaban:
still showing unknown option :crying::crying: ... i am just hopeless
[Xiaomi Mi A1 Questions & Answers] rexendz:
fastboot --set-active=_b
[Xiaomi Mi A1 Questions & Answers] Userbaban:
samething ... :( what the f**** is wrong with my phone ?!!
[Xiaomi Mi A1 Questions & Answers] rexendz:
Are you sure you typed the exact command? Double check the spacing and hyphens it is easily overlooked. It should recognize the command as it is an instruction. Try redownloading minimal adb&fastboot see if that helps.
[Xiaomi Mi A1 Questions & Answers] Mirdeusz:
Can you please give me a link to the sideload rom? I can't find it, some roms i tried failed to flash with error 1.
[Xiaomi Mi A1 Questions & Answers] jesus111221:
Tengo el mismo problema
[Xiaomi Mi A1 Questions & Answers] Hittas:
MiA1

C:\Android>fastboot oem unlock

...

FAILED (remote: oem unlock is not allowed)

finished. total time: 0.016s

I was on nightly version and by mistake before locking oem from command prompt i mistakenly turned off oem unlocking from developers options.

now i neither can go to recovery nor can boot, only stuck on bootloader,

and when i give oem unlock command, this message is show(above).

plz help,

support said they will give some kinda link n might remotly do the flashing somehow, can anybdy tell, what to do now ?
[Xiaomi Mi A1 Questions & Answers] TerQQ:
I also have same problem cant go to edl mode and also bootloader is locked oem and of course bootloop :X
[Xiaomi Mi A1 Questions & Answers] eliveltoncotrim:
Hat immen it probleem oplosse litten?
[Xiaomi Mi A1 Questions & Answers] Canic:
So no i need help from the xda community.

I tried today to install trebleized rom with repartition but this dosen't fit my needs so i went back to stock.

After flashing in edl mode (because i need back the stock partition size) i missed to set oem lock still open.

Now my oem ist locked, and i get every time when the device boots an encryption unsuccessfull and a freeze after a few seconds.

I am on aosp recovery and all stock. Slot b does only bootloops.

fastboot oem edl does nothing.

Has anyone any ideas how i could continue to fix my problem?

Edit:

I don't know why but after removing sd card and sim card encryption has end successfull. Now i am back in business :)

Edit2:

Now the encryption ends but after normaly the setup wizard should shows, the screen freeze and the device reboots :(

Any hints ?
[Xiaomi Mi A1 Questions & Answers] tiago tg:
boa tarde estou com mesmo problema do rapaz ai, alguem pode me ajudar?
[Xiaomi Mi A1 Questions & Answers] gaurav363670:
sir my mi a1 imei no lost and when I flash android 7 software after that fastboot mode is not recognised and restart own it own

I downgrade my pie to oreo
[Xiaomi Mi A1 Questions & Answers] satishbmsce:
I was recently facing same issue, I solved it by flashing older ROM Android 7.1.2 Nougat (N2G47H.7.8.23) using Qualcomm EDL mode. After flashing Android 7.1.2 you can unlock boot loader even without enabling OEM unlocking in developer options. After unlocking you can flash ROM of your choice.

1) Download Qualcomm EDL drivers .

2) Place phone in EDL mode by shorting test points on PCB. Search in youtube for the video.

3) Flash Android 7.1.2 Nougat (N2G47H.7.8.23) using MiFlash tool.

4) Go to fastboot mode and unlock boot-loader.

5) Now after unlocking bootloader you can flash any ROM.
[Xiaomi Mi A1 Questions & Answers] avighosh55:
i am also facing this problem plz help
[Xiaomi Mi A1 Questions & Answers] himanshu219s:
I'm also facing the exact same issue as OP.

fastboot oem edl doesn't work. Is Test point method the only option left?
[Xiaomi Mi A1 Questions & Answers] marcusmilhomem:
I was able to recover my cell phone in EDL mode

I had the same problem, but I was able to recover my phone in EDL mode. It was the only way. But I had to install an alternative rom. Pixel Expirience, ROM Stock, even the most current one did not work, it was still in bootloop.[Google Translator]
[Xiaomi Mi A1 Questions & Answers] k1w3l:
Problem solved! Thanks!