yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A1 Guides, News, & Discussion] pipapaule:
You can lock the bootloader again after you have successfully activated the CameraAPI needed for gcam. Then simply restore your personal data. But you can also leave the bootloader permanently unlocked, but i don't think OTA will work then.
[Xiaomi Mi A1 Guides, News, & Discussion] Sonic_AFB:
But with may update when lock or unlock bootloader It will do a factory reset, if i activate CameraAPI and got another factory reset at bootloader lock, ln that case i lost the CameraAPI activation right? Is for that i asking about leave unlocked bootloader
[Xiaomi Mi A1 Guides, News, & Discussion] pipapaule:
it only wipes your data on the unlock, not when your are locking it, afaik.
[Xiaomi Mi A1 Guides, News, & Discussion] Sonic_AFB:
When you locking it wipes too, i checked 2 times yesterday, or i do something wrong or i have no idea u.u
[Xiaomi Mi A1 Guides, News, & Discussion] taurnilf:
How were you able to tell it wiped data again during lock? It's more likely you did something wrong. Try the manual method.
[Xiaomi Mi A1 Guides, News, & Discussion] Sonic_AFB:
I try the app and manual method, when lock and reboot it says something like "cannot check integrity bla bla bla" and do the wipe

Ver 8.0.0 may 5 update
[Xiaomi Mi A1 Guides, News, & Discussion] taurnilf:
Are you on stock os? How did you get the may update? By ota?
[Xiaomi Mi A1 Guides, News, & Discussion] JorgeC37:
I recently found out that they fixed the dot issue on the One Plus 5/5T https://xdaforums.com/showpost.php?p=76455144&postcount=4757

Can it be implemented on the Mi A1? Could it be added to the tool? I'm just curious. [MENTION=8676627]AridaneAM[/MENTION]
[Xiaomi Mi A1 Guides, News, & Discussion] Sonic_AFB:
Stock OS yes, received phone yesterday on 7.2.2 and update by ota to 8.0.0 may 5
[Xiaomi Mi A1 Guides, News, & Discussion] taurnilf:
:)

Could you factory reset and see if the integrity message comes up.
[Xiaomi Mi A1 Guides, News, & Discussion] jerieshg:
Quick question, I received my phone yesterday and updated to Oreo as per May 5th update. I tried following the tool's way as well as the manual way and it went successful (in theory), it restarted correctly, BUT whenever I try and install any GCam APK, it throws an error: "Camera has stopped working"... Do anyone here know why this happened?
[Xiaomi Mi A1 Guides, News, & Discussion] Geoldoc:
I used the tool last week to get Gcam. I never did anything else to the system, but now May OTA shows "update could not be installed". Does anyone have an idea, how to fix it?

Would a factory reset help? I would not really mind, but don´t like to do it if it´s fruitless.
[Xiaomi Mi A1 Guides, News, & Discussion] ragiasidhu:
guys can someone please tell me how to install google cam.. after the may ota update its erase everything.. thnx!
[Xiaomi Mi A1 Guides, News, & Discussion] unixbrain:
I confirm that it wipes the userdata on both lock and unlock.
[Xiaomi Mi A1 Guides, News, & Discussion] Sonic_AFB:
No, doing a normal factory reset not comes up, only when lock or unlock the bootloader, i see only solution, left bootloader unlock to avoid the reset when lock the bootloader again, unfortunately i can't try today
[Xiaomi Mi A1 Guides, News, & Discussion] jack_21:
You can just use "flash_all_exept_storage.bat", it won't delete anything from your phone.

Just download April firmware from http://bigota.d.miui.com/V.9.5.10.0...0.ODHMIFA_20180405.0000.00_8.0_b9e697ed56.tgz

Then search for updates and install the may patch

My GCAM works perfectly also without HAL3 enabled.

Maybe Xiaomi enabled it by default from May patch

Also EIS seems to work... Can anyone confirm?
[Xiaomi Mi A1 Guides, News, & Discussion] Geoldoc:
I used Mi A1 Tools and it did a "re"flash of January patchlevel. Then it did an upgrade on May, 5th patch. So it seems fine. Thanks.

I like my A1 way to mutch, to finally brick it. So for me it`s an all stop on experimenting (for now).
[Xiaomi Mi A1 Guides, News, & Discussion] Jooshe Danhi:
Right! If you have not installed the GCAM before, your data will be deleted and the GCAM will not be installed. Return to the March / April patch
[Xiaomi Mi A1 Guides, News, & Discussion] ag008:
Is video stabilization better after this process (EIS). I have already May update, and I don't want to lose stuff just to get slightly better photos in dark.

Comparing to my previous Redmi 2, this phone has a really shaky video.
[Xiaomi Mi A1 Guides, News, & Discussion] :
I think that if you browse the tool folders you should be able to find the apk that it sideloads into the device.
[Xiaomi Mi A1 Guides, News, & Discussion] Pyr0x_:
Hello guys, I ordered a Mi A1 that should arrive tomorrow and I wanted to enable camera2api, EIS etc through this tool, but I read that since may update unlocking/locking the fastboot will result in a complete wipe. Does this mean that it will wipe changes made to enable camera2api and EIS as well, so this method doesn't work anymore?

Thanks
[Xiaomi Mi A1 Guides, News, & Discussion] taurnilf:
If that's the case, then this tool isn't applicable anymore.

But user jack_21 reported that he can use the gcam even without enabling the camera2api. He thinks the camera2api may have been enabled by default by the May update. Maybe you can try that, ie, install any gcam apk, and confirm his findings.
[Xiaomi Mi A1 Guides, News, & Discussion] unixbrain:
No, it is not enabled by default with the May patch. I've tried that already.
[Xiaomi Mi A1 Guides, News, & Discussion] brunoosti:
This may be a definitive solution if you are facing the problem of the mi a1 not showing the usb debugging popup when installing google camera, try searching for "adb driver installer" on google. The application will show a list of what could be wrong with your drivers installation (in my case ADB interface showed with an exclamation mark on widows Device Manager), select it and click install. After that, try using the tool again to automatically install google camera. It will work! : ) It was hard to find the solution, but I hope everyone can benefit from this as i've seen many with the same problem with no answer to it. Best luck!
[Xiaomi Mi A1 Guides, News, & Discussion] taurnilf:
The problem is, as reported with the May update, data is wiped during bootloader lock. So, the apis and the camera get disabled and uninstalled respectively.
[Xiaomi Mi A1 Guides, News, & Discussion] jack_21:
Well I have it enabled by default

Please if you're on stock download Camera2 Probe app from play store and check if it has HAL3 enabled
[Xiaomi Mi A1 Guides, News, & Discussion] taurnilf:
Thanks jack.

Could anyone do a factory reset to confirm this?
[Xiaomi Mi A1 Guides, News, & Discussion] unixbrain:
As I already said camera2api is not enabled by default. No version of ported Google Camera works (all are crashing)

Did you have previously camera2api enabled? If so, then this is persistent during the upgrades (without data wipe).
[Xiaomi Mi A1 Guides, News, & Discussion] unixbrain:
And the proves:
[Xiaomi Mi A1 Guides, News, & Discussion] jack_21:
Yes, i did

But i also had full reflashed the phone (without wiping of course), it is strange that the mod is persistent. However that's cool, so the one that wants only EIS and HAL3 can just use the mod once and than reflash full stock
[Xiaomi Mi A1 Guides, News, & Discussion] unixbrain:
This is why you still have HAL3 and EIS enabled. If you don't wipe the data then it is persistent across multiple updates.
[Xiaomi Mi A1 Guides, News, & Discussion] Sonic_AFB:
Same here
[Xiaomi Mi A1 Guides, News, & Discussion] unixbrain:
A workaround is to move back to April image, using the fastboot image (tissot_images_V.9.5.10.0.ODHMIFA_8.0), afterwards enable HAL3 and EIS and then proceed with the May update.

Or for those that are on May already, and willing to wipe everything once more, a solution would be to flash the `aboot` from April fastboot image (emmc_appsboot.mbn). The only drawback with this option is that further OTAs won't work anymore as the CRC of `aboot` is different from the one of May. But if a May fastboot image will be published then the May `aboot` can be flashed back and everything will be back to normal.

I personally prefer the first approach because is more straight forward and both will end-up with a full wipe :)
[Xiaomi Mi A1 Guides, News, & Discussion] taurnilf:
That s*cks. So this tool will not work for people with May 2018 update. Hopefully, Xiaomi fixes this in the June update.
[Xiaomi Mi A1 Guides, News, & Discussion] unixbrain:
[MENTION=9034982]taurnilf[/MENTION], this is not an error but a feature, a security feature. I doubt it will be reversed.

This way Google can guarantee that everything installed is certified and trusted (more or less) :)

But still, you can use the unlocked bootloader and install whatever you want on the phone but without a Google certification.
[Xiaomi Mi A1 Guides, News, & Discussion] Yogi kukreja:
Not working gcam tool after 5th May security patch

After 5th May security patch , when the tool give cmd of fastboot oem unlock, it format the phone and does process can't continued then it show booting TWRP in pc and mobile show mi unlocked at start and mobile start as fresh or first startup.

I have used it and I'm loving google camera

In advance thank you , pls help fast
[Xiaomi Mi A1 Guides, News, & Discussion] taurnilf:
That doesn't make sense as apks can still be installed. Oh well, looks like I'll be getting a Nokia sooner than I thought :)
[Xiaomi Mi A1 Guides, News, & Discussion] met67:
The two methods are almost identical, the main difference being that Aridane created a tool to automate the process.

From a technical point of view, Aridane sets the required properties while the phone is temporary booted in TWRP, while flex sets the properties while the phone is temporary booted with a rooted image. None of them requires permanent root (in flex method you can skip Magisk installation and removal, since it is already installed in the temporary boot image).
[Xiaomi Mi A1 Guides, News, & Discussion] Muhmeh:
I have a problem with the Portrait Mode.

If i use it nothing happen, there is no blur effect.
[Xiaomi Mi A1 Guides, News, & Discussion] mhanbury:
[MENTION=8676627]AridaneAM[/MENTION] thanks for adding the disable options. Can you please add the manual fastboot commands you're using to disable like you did in post #98?
[Xiaomi Mi A1 Guides, News, & Discussion] amarbajpai:
Video: [youtube]oe_TVVs_uGc[/youtube]
[Xiaomi Mi A1 Guides, News, & Discussion] Haizum74:
It should continue to work as the phone isn't rooted and bootloader is locked at the end, so will pass safetynet checks. (I use another banking app (im in England)).
[Xiaomi Mi A1 Guides, News, & Discussion] vinaypugal:
Regarding OS

I m using windows 7 so will it work for me
[Xiaomi Mi A1 Guides, News, & Discussion] AridaneAM:
It's the same but "0" instead of "1".

Enviado desde mi Mi A1 mediante Tapatalk
[Xiaomi Mi A1 Guides, News, & Discussion] antonioli84:
It happened first time I tried portrait mode. After that I tried again and just see the picture and worked.
[Xiaomi Mi A1 Guides, News, & Discussion] Muhmeh:
Thx for answer! But the problem is still there, i took 10 pictures and no ons has the blur effect.

It zooms in like in the Stock app. Maybe i have to reinstall it..?
[Xiaomi Mi A1 Guides, News, & Discussion] taurelio:
Portrait mode here woks. The only bummer is the creation of a extra folder with the blur photo and the same without the blur effect

Enviado do meu Mi A1 através do Tapatalk
[Xiaomi Mi A1 Guides, News, & Discussion] antonioli84:
Here when the portrait mode is selected nothing chances. When you took picture nothing appears to happen, but when you click to see the picture it will take some seconds and the picture with the effect you be there. Take a look if you set the configuration after installing the Gcam app exactely as the creator of the windows program showed in the picture file.
[Xiaomi Mi A1 Guides, News, & Discussion] Muhmeh:
It makes a extra folder but there is only one photo in it and thats without blur effect.

Its the same configuration like in the picture file. If i take a photo and open it, its immediately open and didn´t take any seconds^^ and there is no portrait icon like on the photo from stock app
[Xiaomi Mi A1 Guides, News, & Discussion] NITRO_100:
Did you try on humans ?
[Xiaomi Mi A1 Guides, News, & Discussion] Muhmeh:
No only a bottle.. ^^
[Xiaomi Mi A1 Guides, News, & Discussion] NITRO_100:
Well, then it's normal, portrait works only on humans.
[Xiaomi Mi A1 Guides, News, & Discussion] antonioli84:
I've only tried in humans mate :D
[Xiaomi Mi A1 Guides, News, & Discussion] Vel-San:
Thankyou so much ! worked perfectly, took barely 1-2 minutes :)

EDIT 1: Is there anyone to check for updates of GCam app ? how do we know if this is the best version ? or when they release a newer version ?
[Xiaomi Mi A1 Guides, News, & Discussion] macelaru:
You have here a gazzillion of Gcam ports.

Have fun finding the best version for you.:D
[Xiaomi Mi A1 Guides, News, & Discussion] ashu.mkb:
That was helpful. Thanks for explaining. :)
[Xiaomi Mi A1 Guides, News, & Discussion] Wei Jiat:
Newbie here , needs help.

I didnt see it clearly the thing pop up from the task bar, if not mistaken , it is something like unsuccessfully. After follow the video press the "keep read only" button then get to this the page as the photo attached .I

I think is the main screen of TWRP.
[Xiaomi Mi A1 Guides, News, & Discussion] ag008:
How to move back to April image, will we lost data?

What tool/image to download?
[Xiaomi Mi A1 Guides, News, & Discussion] Cr3sc3nt:
Nokia doesn't even allow users to unlock the bootloader.
[Xiaomi Mi A1 Guides, News, & Discussion] taurnilf:
Not at the moment, but the Camera2Api is already enabled. Which is what's important to me anyways.
[Xiaomi Mi A1 Guides, News, & Discussion] unixbrain:
You can use MiFlash tool to flash this image: http://bigota.d.miui.com/V.9.5.10.0...0.ODHMIFA_20180405.0000.00_8.0_b9e697ed56.tgz or directly via the scripts (if you know how to do it),

but your data will be wiped, only once, when you first unlock the bootloader.
[Xiaomi Mi A1 Guides, News, & Discussion] Cr3sc3nt:
That's cool for a great out of the box experience and for general users but for enthusiast and people who like to tinker the phone just becomes a phone and no longer a tool to learn. Most XDA members are here to take control of their device.
[Xiaomi Mi A1 Guides, News, & Discussion] taurnilf:
Well the control you're referring to has already been taken away from you. Because everytime you unlock or lock the bootloader, it's bye bye data.
[Xiaomi Mi A1 Guides, News, & Discussion] Cr3sc3nt:
But I can flash a custom ROM and kernel ? and just keep my bootloader unlocked ?
[Xiaomi Mi A1 Guides, News, & Discussion] brunoosti:
OH sorry! I was referring to the "no USB debugging popup on the phone" problem when using the tool to install Gcam, what seamed to be a computer issue (in my case), not the phone. Researched a lot on the internet with no similar solution to mine (or no solution at all).

Lucky i didn't install the last update. Thanks for the heads up. I'll take a look on the forum to see how to deal with this.
[Xiaomi Mi A1 Guides, News, & Discussion] crj3012:
I'm in the same boat as you. Since our phones don't arrive updated, I think we should be able to use the tool first thing and then update. Does anyone see a reason why we wouldn't be able to do this?

---------- Post added at 05:51 PM ---------- Previous post was at 05:41 PM ----------

Did you ever figure out why the May OTA wouldn't install?
[Xiaomi Mi A1 Guides, News, & Discussion] Rudr875:
No. It will work. By data it means your apps, pictures, etc.
[Xiaomi Mi A1 Guides, News, & Discussion] jack_21:
But the true point here is why didn't Xiaomi enable Camera2 API by default?
[Xiaomi Mi A1 Guides, News, & Discussion] 5amar31:
You can get OTA with an unlocked bootloader. This has always been the case even on Pixel & previously Nexus. I unlocked my bootloader a few days back because there was this announcement in MIUI forums that this change (data wipe with bootloader status change) will happen with the next update. I got May security patch without any issues with an unlocked bootloader.
[Xiaomi Mi A1 Guides, News, & Discussion] Pyr0x_:
I installed only december and april security patches, but not may yet, so I should be able to use the tool without wipes.

Are you sure? As far as I understand the wipe resets also changes made to enable camera2api, so the only way to make it work with the may update is leave the bootloader unlocked

I am asking myself the same thing... the only answer I can think about is because the gcam doesn't support dual camera, but that sucks anyway
[Xiaomi Mi A1 Guides, News, & Discussion] bojan1974:
J7 2017 vs gcam on high 1.6 -A1 much much better

A1

IMG_20180523_214414

J7 2017

20180523_214359
[Xiaomi Mi A1 Guides, News, & Discussion] taurnilf:
See, why bother with security updates when one is keeping his device at risk with an unlocked bootloader?
[Xiaomi Mi A1 Guides, News, & Discussion] abenvenuto:
Does anyone can apply this method on a new device with may patch ?

I tried with the app and manual mode and I can't get it working.

When i lock the bootloader both HAL3 and eis loses their properties.
[Xiaomi Mi A1 Guides, News, & Discussion] taurnilf:
Data gets wiped when you unlock/lock the bootloader. Workaround is to not lock the bootloader.
[Xiaomi Mi A1 Guides, News, & Discussion] 980rohan:
I had already installed the gcam previously when i was on the April update. I received the may update but during installation it shows an error ' couldn't install system update' . Anyone facing this issue? :3
[Xiaomi Mi A1 Guides, News, & Discussion] unixbrain:
Did you flashed something different than stock images when you activated HAL3?

Normally this occurs when a core partition was modified.

You can find out more details about the error with logcat via adb.
[Xiaomi Mi A1 Guides, News, & Discussion] dbten:
ota does not work

while i run the ota update, i stops due to some installation problem. pls help
[Xiaomi Mi A1 Guides, News, & Discussion] crj3012:
Did you ever get Gcams installed and running?
[Xiaomi Mi A1 Guides, News, & Discussion] dbten:
same here

i have the same problem. please tell me if you have a fix
[Xiaomi Mi A1 Guides, News, & Discussion] shoobirdy:
This isn't really related to anything anyone has spoken about previously (I've searched and have been keeping up to date with the thread for a couple of months, and haven't seen anything ).

I have 2 issues that appear regardless of which .apk I use (I'm currently using Arnova 1.6);

• When using EIS in video...it's basically terrible. I can't really explain the effect other than a distortion. It's so bad I have to turn EIS off. Does anyone else have experience of this or any advice?

• When recording video and tapping on the screen (to manually refocus or change the exposure) there's a 'flash' on the screen which is visible in the recording itself. I assume it's something to do with the exposure but it's rather annoying and again, tends to ruin the video experience. Again, does anyone else have experience of this or any advice?

Another thing I've noticed in the last couple of days is that sometimes it's refusing to actually take the photos - I'm definitely pressing the button and it's flashing like it's been taken but the gallery icon doesn't update. I suspect this is related to the May update in some way (which I installed a couple of days ago) - I'll be installing a different version in a few hours and testing with that but thought I'd say it out loud here in case anyone has any experience of it?
[Xiaomi Mi A1 Guides, News, & Discussion] Pyr0x_:
I haven't tried yet because I am a bit busy in these days, plus I see people having problems with may update after enabling gcam, so I am not sure if doing it
[Xiaomi Mi A1 Guides, News, & Discussion] Payam121:
I have same problem.

flash your phone via miflashtools and stock rom.
[Xiaomi Mi A1 Guides, News, & Discussion] Dimdiam13:
I had the may security patch and I flashed the april patch in order to install the gcam. But it still appears to have may security patch in my settings. What happened? here is the version that I flashed:

http://bigota.d.miui.com/V.9.5.10.0...0.ODHMIFA_20180405.0000.00_8.0_b9e697ed56.tgz
[Xiaomi Mi A1 Guides, News, & Discussion] randomeffect9:
how to downgrade security patch level.
[Xiaomi Mi A1 Guides, News, & Discussion] ROGGGER3G:
Someone could post the link for latest fastboot rom compatible with tool? Thanks

Edit

This works: xiaomifirmware.com/download/8065/
[Xiaomi Mi A1 Guides, News, & Discussion] JonasSavimbi:
If I have already installed the Gcam and HAL enabled with the tool previously can I update to the May 2018 security update? Will I lose anything?
[Xiaomi Mi A1 Guides, News, & Discussion] Nikola_zr:
go ahead, i have installed it with the tool few months ago, and updated normally since then including May few days ago
[Xiaomi Mi A1 Guides, News, & Discussion] 980rohan:
yes i'll post it in the forum if i get any fix.

---------- Post added at 08:44 PM ---------- Previous post was at 08:41 PM ----------

this will eventually mean that I'll be losing on all data as well as the gcam app right?
[Xiaomi Mi A1 Guides, News, & Discussion] 5amar31:
These security patches contains patches for remote exploits, WiFi exploits & whatnot. At least my device is safe from those & even my data is encrypted. It *can* only be attacked if they have physical access to the device. I'm careful with my phone & don't lose it.
[Xiaomi Mi A1 Guides, News, & Discussion] MiaThere:
I tried flashing to older rom (the one posted there) with miflash. Got same wipe and restart and still having May update installed.

Dont know what to do. Just want the gcam, not something where i need a bachelor for :(
[Xiaomi Mi A1 Guides, News, & Discussion] brunoosti:
hum... my phone won't install the may update. It says there was a problem during installation.
[Xiaomi Mi A1 Guides, News, & Discussion] ROGGGER3G:
This fastboot rom works with gcam tool

xiaomifirmware.com/download/8065/

Just flash rom, install gcam tool, and be happy!
[Xiaomi Mi A1 Guides, News, & Discussion] MiaThere:
Oh this one Worked. Thank you very much. <3

Mhh dont know if i should install the May Update after :S
[Xiaomi Mi A1 Guides, News, & Discussion] ROGGGER3G:
if works, edit the post and delete "No... it just wipes phone in the flash Process and im still back at May Update. Thats the Problem :("
[Xiaomi Mi A1 Guides, News, & Discussion] Fibra Man:
The May Update = bad news! :(
[Xiaomi Mi A1 Guides, News, & Discussion] Saixol:
Please make a new tool that works with may update.. today my mi a1 arrived from china and i have discovered now that i can t install gcam...
[Xiaomi Mi A1 Guides, News, & Discussion] ag008:
With May update this tool is not useful because phones erases all data on unlock and then again on lock bootloader.

So you won't get anything but you will lose all your data/get factory reset (apps, pics).

I put April update http://bigota.d.miui.com/V.9.5.10.0...0.ODHMIFA_20180405.0000.00_8.0_b9e697ed56.tgz

with MiFlash2017-7-20-0.zip

Then I could do by this tutorial.

There is a lot of difference, video is much better with Google camera

[YOUTUBE]aYGXVfWapcU[/YOUTUBE]
[Xiaomi Mi A1 Guides, News, & Discussion] ROGGGER3G:
install any other firmware before may update, and gcam will works fine.
[Xiaomi Mi A1 Guides, News, & Discussion] Fibra Man:
Now, after May Update, we are not able to update Xiaomi Mi A1 anymore?
[Xiaomi Mi A1 Guides, News, & Discussion] ROGGGER3G:
I think it solves with future fixes and new updates...
[Xiaomi Mi A1 Guides, News, & Discussion] Fibra Man:
Só se os caminhoneiros fizerem greve reivindicando isso. :)
[Xiaomi Mi A1 Guides, News, & Discussion] ROGGGER3G:
Meu mouse wireless ta na estrada... Sofrimento...
[Xiaomi Mi A1 Guides, News, & Discussion] ricardohnn:
Any updates for the tele lens?
[Xiaomi Mi A1 Guides, News, & Discussion] ROGGGER3G:
xdaforums.com/redmi-note-3/themes/mod-updated-6-11-17-google-camera-hdr-t3701190

list of all gcam mods

always updated

check this