yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] minnuss:
On what android version were you ? :confused:
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] idriff:
pie, i just flashed back the modified boot and it worked but now im rooted
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] marlontravagli:
What version google camera you guys using?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] destruktah:
For me it worked, but in stock camera cant see any diferences, can someone link me a gcam apk to install?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Jamesismo:
The post has some errors but I'm here to report you guys how I made it work.

adb devices

adb reboot bootloader

(I had the bootloader unlocked already so I didn't do those steps)

fastboot boot patched_boot.img

(Notice I didn't flash the patched image, you don't need to do that, my current partition was b, but that doesn't matter since I'm not flashing anything, I am just booting into the patched/rooted image)

(Installed magisk manager and rootchecker)

(magisk said it was rooted, so did root checker)

adb shell

su

(I gave the permission on my phone)

setprop persist.camera.HAL3.enabled 1

(If you check the post carefully, this line above is not the same one the OP has, that one is wrong, mine is right)

setprop persist.vendor.camera.HAL3.enabled 1

ctrl+c

adb reboot

(Notice I don't flash anything here as well, since I didn't flash the patched image, so if I reboot, it will boot into my stock boot image)

aaaaaaand it's done.

Thanks to the OP for his work, and please correct the line that is wrong. Cheers. :angel:

Google Camera working fine.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] hugomoya:
Hello, thanks a lot!

It's works perfect!

Best regards!!!
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Neel@1234:
Please don't quote OP for a single line of comment.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] minnuss:
[MENTION=7257073]Jamesismo[/MENTION], thanx, I fixed the typo mistake, did not have the DOT in command line, it was not an error, just a typo, but thanx.

And yes, please guys, do not quote the first post.

In a guide, a neewbie can learn how to unlock bootloader, root the phone, enable cam2, and unroot the phone.

So he can choose, whether he wants to stay with rooted phone or not, or to unroot later if he wants...

I think that with this method, OTA will work even if he has Magisk installed, because nothing is changed in system, but that needs to be confirmed.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] kishd:
I noticed that many people want to lock the bootloader to recieve OTA. It is unnecessary you still receive OTA with an unlocked bootloader provided you have not changed the system folder etc.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] AsItLies:
Hey [MENTION=3382541]minnuss[/MENTION] good job! glad to see this.

I would change one thing i noticed: "Press ctrl+c to exit adb shell."

That's a Windows thing, doesn't work with Linux or Mac. Most people 'should' know how to exit a command prompt, but if not, safer to just say type 'exit' and hit enter. That works on all of the systems.

Cheers
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] afajri:
This is it guys, you have enabled lvl3 (camera2), and unrooted phone, ready for next OTA updates.

Install camera2 probe from gplay to confirm.

https://play.google.com/store/apps/details?id=de.weis.camera2probe&hl=en

Phone needs to stay with unlocked bootloader, because if you lock the phone, you will lose camera2, but do not worry, the future OTA updates will work.

If this guide helped you, please click the thanks button, that's all, cheers. :highfive:[/QUOTE]

If may i ask what version of Gcam you recommend? I've tried

Arnova's v8.3b1 and the front facing camera doesn't work on photo mode, but work on video.

Thanks
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Jamesismo:
[MENTION=3382541]minnuss[/MENTION] Hey bro, the post does still have a typo, after "setprop" there must be a space, not a dot. (First line)

---------- Post added at 06:09 PM ---------- Previous post was at 05:57 PM ----------

If may i ask what version of Gcam you recommend? I've tried

Arnova's v8.3b1 and the front facing camera doesn't work on photo mode, but work on video.

Thanks[/QUOTE]

It does work in protrait mode 5mpx, and if you change it from 5mpx to 3mpx, normal selfie works as well.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] minnuss:
[MENTION=9013501]Neel@1234[/MENTION]

[MENTION=2129545]AsItLies[/MENTION]

[MENTION=4313092]kishd[/MENTION]

[MENTION=7257073]Jamesismo[/MENTION]

[MENTION=6752710]afajri[/MENTION]

Fix for front cam on Arnova 8.3b1 > go to settings > developer settings > camera.enable_micro UNCHECK (all the way down in developer settings)

Back, back, exit, remove cam from memory, restart the cam...done ! :fingers-crossed::good::laugh:
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] hugopg:
The google camera APK that I've used in oreo does not work in Pie. Any new suggestions? With night sight preferably! Thanks
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] minnuss:
[MENTION=3463503]hugopg[/MENTION]

There is no version 6 gcam mod that works for our PIE, but you can use this, it works nice, and do the fix for front cam, just a post up from this.

Arnova's v8.3b1: GCam-5.1.018-Pixel2Mod-Arnova8G2-V8.3b1.apk
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Neel@1234:
Works perfectly!
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] mma_1494:
setprop persist.camera.stats.test 5

According to a newly added thread this command makes the gcam 6 version work on pie.What specifically does this command do? The OP of the said thread didnt know.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Akash More:
Please suggest me a demo video of this process.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] prophet057:
will this Reset my phone??
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] InsaneWitness:
This tutorial helped me to fix the bootloop on my A2, thanks! But I use this guide below to enable Camera2 API:

https://xdaforums.com/mi-a2/themes/magisk-pixel3-gcam-enabler-t3870770

Now I have the bootloader unlocked, phone rooted and GCam working, but I have one question, if I remove the root and sometime in the future I made a full reset of the phone (via Android), will I lost all these configurations?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] hadke:
this method works for me but

i did all steps according too ur post but after restart of device mi a2

gcam stop working.:rolleyes:
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] mma_1494:
If your bootloader is already unlocked then the quoted procedure itself doesnt wipe any data. Unlocking the bootloader, which is a prerequisite for the procedure, will definetly wipe data.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] deepr702:
February update is here but it is showing installation problem as i am on patched boot image and magisk is installed.

Please suggest any workaround
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Zihadul alam:
February patchboot of 10.0.4.0

Please add the February patchboot
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] minnuss:
Added :good::fingers-crossed:

Stock boot added also for previous version, flash it and then try to update.

I just updated my phone to v10.0.4.0 and everything is fine like always...have my camera2 enabled.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] deepr702:
Yeah already got it nd updated to feb .it worked fine.thank you for ur support?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] S Advance User:
Hi..I recently installed Gcam on Mi A2 (6/128)..and flashed the 10.0.3 boot image...however not able to Install the Feb 2019 security update (getting an error "installation failed"). Can you please advice how I can keep Gcam and still get the Feb security update? I don't want my phone rooted...note that my bootloader is unlocked..

---------- Post added at 07:48 PM ---------- Previous post was at 07:42 PM ----------

How did you manage to do this? Did you loose Gcam (if you have it installed that is)? I am getting OTA failed when I try to update from 10.9.3 to Feb security patch 10.0.4.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] deepr702:
No i didnt loose gcam.

Firstly if you are on January patch with magisk installed, you will have to get rid of magisk by full uninstall.

Then u have to flash stock boot file of v10.0.3, by doing so u ll loose root access but gcam will be intact but dont lock bootloader. Then update your phone u ll get feb security patch nd 10.0.4
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] S Advance User:
Thanks for your reply...that's exactly what I did..however I get "installation failed" error when I download the Feb OTA and try to install it....don't know why that happens...any solution which you might have?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] deepr702:
For me this worked so i dont know any other workarounds, u may try again by patched file and repeat the process.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] 5AKIB:
I was on December update. I flashed the boot.img file of December update. But still getting error while installing February update. Any work around?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Olmaik:
Hello there, so i follow up guide from first page all went well. but then i instal camera prob and i still have only legacy cam on lvl3 i have X and when i try to instal some gcam app it not even open app. any advice what should i do?

EDIT: okey i done it again and it works but i skip last step to keep my phone rooted. ill still get OTA updates?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] sas.mar:
[MENTION=3382541]minnuss[/MENTION]

I apologize in advance for my questions if they were already totally discussed on XDA. Badly need your advice on the following points:

After flashing patched boot.img and enabling camera2api I want to switch to HEX (due to kernel bugs on stock February update) by using Franco's kernel Updater so to not to install TWRP and thus keep OTA (maybe) which this guide is about.

Will I be able to flash back the original boot.img and keep OTA alive once I get an update notification if I have HEX and Magisk installed? Or will it end in a bootloop?

One more question: does enabling camera2api break stock Xiaomi's camera?

Sincerely,

Alex
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] minnuss:
You did something to your system and you got error trying to update the phone, you need to download the whole stock ROM, extract system.img and boot.img, and flash it, if you manage to find version of images of the android version that you currently use.

If not, download latest stock ROM and flash the whole phone with it, like this

https://xdaforums.com/mi-a2/how-to/ota-v9-6-5-0-odimife-t3823445

[MENTION=6572291]5AKIB[/MENTION]

You too, try to find system.img for your android version and flash it, then try update.

If that doesn't work, flash the whole phone with stock ROM.

1. I do not know what will happen if you switch to HEX, I did not try it, ask in HEX topic.

2. No, everything is fine, stock cam is working fine, but you will forget that stock even exist when you try gcam, trust me. :laugh::good:

To all, sorry for delayed answers, I have a life beyond this forum, of course, I will try to help every time if I know the answers. :highfive:

So once again to all, if you get error trying to OTA update, you messed with system in the phone, and this doesn't have anything with the guide here, OTA works if you only followed the guide, for "reseting OTA" you will need to find ROM of the android version that you currently use, download and extract system.img and boot.img, flash those two files, and then try to update OTA, it will probable work.

If not, download latest stock ROM, and flash the whole rom, OTA will work.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] rufy23:
Thanks for this guide. I have a question about it, I ask sorry if it has already been proposed.

I'd like to relock the bootloader but I do not find the way to do it. I tried to execute the command boot instead of flash as already explained in the Mi A2 lite guide, but it does not load the patched boot and I cannot run commands in the terminal to unlock Camera2 APIs.

Is there a solution to my problem?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] bojan1974:
I have 10.02 doing nice, but when I want to update, this throws out
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] iRiKi:
Many thanks for the guide, just got my mini-Pixel aka Mi A2 that came with PIe, downgraded to Oreo and with the new GCam it pwns ! It«s just like a mini-Pixel now ahah
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] G1g3:
Followed this guide about 10 days ago, on february security patch. Everything went smooth, gcam is amazing and just received OTA march update. Thanks a lot for this guide, just commenting to let people know it works like charm.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Qyfaruxx:
Yap same here...works great since December patch
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] fir1996:
[MENTION=3382541]minnuss[/MENTION] could you please update the thread to latest march update i mean latest boot.img 10.0.5.0

Thanks ?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Olmaik:
u can find it here
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] javap2:
will it work for V10.0.5.0 ?

will it work for V10.0.5.0 ?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Firexxe69:
Of course, the patched boot image for 10.0.5.0 is already available
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] gzzimcikkaj:
Any gcam that works with March update ?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Firexxe69:
I recommend using Tolyan's 1.4a, it's pretty stable and I'm using it as my daily driver, but slow motion recording isn't working. Arnova's 1.3 has slow motion working but night sight is not good.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Maharram:
i have followed all steps and now i cant get security patch updates :/
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] ki69:
You have to made some mistake. I falowed the guide and i have OTA, after that ( february and March patchs)
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] minnuss:
[MENTION=8388111]Maharram[/MENTION], please, edit your previous post, and delete the quote, it is too big.

If you want to address me, or "call" me, just type [MENTION=3382541]minnuss[/MENTION]

You do not receive update or you cannot install newest update ?

If you do not receive March update, I did not receive it either, and that's not because of camera2 enabling, Xiaomi must pulled the update already.

I have a user in my PM messaging me and complaining about 10.0.5.0, he wants to go back to previous version, don't know why.

Anyways, first page updated, links for 10.0.5.0 added.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Maharram:
[MENTION=3382541]minnuss[/MENTION]

i have received updates january February also march but i cant install updates it says "couldn't install system updates"
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] minnuss:
[MENTION=8388111]Maharram[/MENTION], there is no March update anymore, they pulled it.

There are some stock users that are complaining about how they cannot install March update, so it must be a problem with update itself.

https://xdaforums.com/mi-a2/help/update-installation-problem-t3908753

https://xdaforums.com/mi-a2/how-to/march-security-update-t3910574/page2

If you want the update bad enough, follow this link and flash the phone with the version that you want.

https://xdaforums.com/mi-a2/how-to/ota-v9-6-5-0-odimife-t3823445
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Maharram:
[MENTION=3382541]minnuss[/MENTION]

bro i cant update February too :/
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] kadu20es:
Hint:

Dowload the same rom you have installed in your device and on Fastboot, just flash "system" and "boot.img".

This worked to me.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Maharram:
i will loose data and CameraApi2?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] kadu20es:
No, you won't lose , however, I don't take responsability in case of data loss.

This process worked to me and I am pretty sure it can work to you.

Here's the process:

After downloading the rom, extract system.img and boot.img and place them in adb folder, then, restart your phone in fastboot mode (power button + volume down until you see Fastboot bunny) and type the commands below:

Here's the commands:

fastboot flash boot_a boot.img

fastboot flash boot_b boot.img

fastboot flash system system.img
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Maharram:
bro can you give me detailed instructions or any link for that?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] kadu20es:
What's your System version?

If V10.0.1.0.PDIMIFJ, click here to download OTA package.

If V10.0.2.0.PDIMIFJ, click here to download Fastboot rom.

V10.0.3.0.PDIMIFJ and V10.0.4.0.PDIMIFJ are not available.

After downloading, follow the steps provided above.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Maharram:
V10.0.2.0 thanks a lot
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Enrique25:
Hi is this methode safe to do ? Also what about warranty if i have any problems . Thanks for your guide :good:
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Maharram:
i did it bro but still can't install system update still says "installation problem"
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] kadu20es:
Try boot with TWRP (boot, not flash) and wipe "Cache/DALVIK". If this doesn't work, look for an exclusive indian Android version for your A2.

Can't help anymore.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Maharram:
okay dude ı will try with TWRP too

but in from Azerbaijan im using global version :/
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Maharram:
dude can you send me untouched build.prop file from your system?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] kadu20es:
Hey Pal. I switched to MI 6X/Wayne/MIUI 10 (best choice I've made).
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Qyfaruxx:
Hey man, how was it? How did you that? Did you do it with pie? Which version?

Is gcam works? Which port?

Can Miui have dark mode?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] kadu20es:
Man, I'm in love with MIUI. I'm a Pokemón Go player and I have two accounts. MIUI allow me to use both accounts.

I converted my MI A2 with this guide.

Pie in MIUI is still on Beta, so, it will take a while.

GCAM works great and I don't have the stock cam related issues (can't connect).

MIUI 10 still hasn't dark mode.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Maharram:
when i try to boot in to twrp i get black screeen :/
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] ond96:
[MENTION=3382541]minnuss[/MENTION]

why dont you update the guide with with command "boot" instead of "flash"? temporary boot image, make it more simple
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] id2square:
is there any solution [MENTION=3382541]minnuss[/MENTION]

my phone is on february patch 10.0.4.0
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Qyfaruxx:
Hey [MENTION=3382541]minnuss[/MENTION]

Just dropping by to say thank you for the work

Works well with me..manage to enable API2 since december patch till february
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] minnuss:
Because when a newbie learns how to do it properly with flashing, he will know how to do it with boot also, it is easier yes, but people need to learn something here, not just copy paste or simply push the button, just my opinion here.

And then, allot of people like to have rooted phone and leave it rooted after the "procedure".

But hey, when I have time, I will add in the first page explained a way with "boot" only. :good:

I'am not sure why is that happening, did you downloaded adb from first page, and unlocked critical ?

Try with boot only way from #8

https://xdaforums.com/showpost.php?p=78200075&postcount=8
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] id2square:
Yes, I've following the procedure and use the adb from the first page. Now I'm stuck on this condition.

It's already unlocked, but can't flash the patched boot image.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] minnuss:
OK guys, I added to first page explained another option of enabling camera2 with only booting patched boot image.

There are two buttons with hidden tutorials, you can choose which one you prefer more.

[MENTION=7458562]id2square[/MENTION], try this one.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] id2square:
Thanks [MENTION=3382541]minnuss[/MENTION], but still failed here.

i've tried twice. the first , i've got failed message. and the 2nd attempt, it just stucked on downloading boot.img and nothing happen. Is it take very long time wait to boot?

QUOTE=minnuss;79162112]OK guys, I added to first page explained another option of enabling camera2 with only booting patched boot image.

There are two buttons with hidden tutorials, you can choose which one you prefer more.

[MENTION=7458562]id2square[/MENTION], try this one.[/QUOTE]
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Qyfaruxx:
[/QUOTE]

[MENTION=7458562]id2square[/MENTION]

Is the patched boot image in the ADB folder?

Make sure you "run CMD bat here". Do not run it outside the adb folder
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] id2square:
[MENTION=7458562]id2square[/MENTION]

Is the patched boot image in the ADB folder?

Make sure you "run CMD bat here". Do not run it outside the adb folder[/QUOTE]

Yes. Image in the adb folder.

Also run cmd bat here
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] minnuss:
[MENTION=7458562]id2square[/MENTION], hey, maybe you need to change the USB port, you must use USB 2.0, try another port.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Danny17va:
I want to add something respectfully. It is better when we root using "boot" instead of "flash" due to with "boot" magisk can back up our stock boot and this will be useful to updates keeping magisk, but with "flash" magisk doesn't know our stock boot and we lost updates.

Of course there is a way to update if we use "flash" but is harder. So I agree, is better if tutorials mention boot instead of flash?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Nomaan Asim:
[MENTION=3382541]minnuss[/MENTION]

hi

im trying to start this whole process, im on latest 10.0.5.0PDIMIXM version and when i give the command

adb reboot bootloader

it stays at the fastboot logo ,,,what should i do? i connected with 2.0 usb have all the drivers. and when i tried giving

fastboot oem unlock

command cmd says waiting for device and it doesnt go beyond this. any advice?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] id2square:
already tried to all usb 2.0 sir.

and still the same
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] emmanuelcassar:
If keeping phone rooted do you still receive OTA updates?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Nomaan Asim:
Successfully performed everything turned on Cam2Api but :( i couldnt restore my data that hurts...now if i factory reset i will lose the privilege of enabling Cam2Api [MENTION=3382541]minnuss[/MENTION] advice?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] jorgimello:
The procedure worked just fine, thank you!

But I have a question: that "your bootloader is unlocked" warning when turning the phone on was annoying me, so I locked the bootloader back. Then I tried to install several gcam apks and none was working (they were all crashing), so I installed the Camera2 Probe just to check and the cam2 config was disabled again. Is it because I locked the bootloader? Do I have to keep it unlocked?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] :
yes! you need to keep it unlocked.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] freepost:
do somebody know how to backup data safely before unlocking bootloader?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] m1kh41l:
Can I can still get ota update if I'm using patched boot?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] arms12:
success on first try, using boot method. Thx [MENTION=3382541]minnuss[/MENTION] :good:

Using GCam_6.1.021_Advanced_V1.4.032219.1950
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] jorgimello:
Yeah, thanks for helping me. I just read on the post that I must keep it unlocked.