yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A1 Guides, News, & Discussion] gerson073:
yes, first downgrade see you these link, then use automated tool, ok

to do the downgrade:

Downloads:

1. XDA thread for Stock ROM

2. Mi Flash Tool from xiaomi MiFlash2017-7-20-0 need register on xiaomi.
[Xiaomi Mi A1 Guides, News, & Discussion] jimsalter9:
Immensely helpful, thanks. :rolleyes:
[Xiaomi Mi A1 Guides, News, & Discussion] taurnilf:
Hey, it's not my fault it didn't work for you. The instructions were very clear ;)
[Xiaomi Mi A1 Guides, News, & Discussion] jimsalter9:
Never said it was 'your fault'. I simply stated that your post was unhelpful - as it was.

Having followed the instructions it has not worked, I requested further assistance, which you have not provided and assumed I have done something wrong.

If you want to be helpful - great, if not, why not refrain from responding to my posts?
[Xiaomi Mi A1 Guides, News, & Discussion] taurnilf:
Firstly, you didnt simply stated that my post was unhelpful. You were sarcastic about it. Big difference.

Secondly, i suggested you try again. Did you even?

It's easy to say we follow instructions but didn't work. But did we really follow instructions? Could it be possible that we might have missed something?
[Xiaomi Mi A1 Guides, News, & Discussion] sidmcnur:
Greetings,

I am on 8.1 with oct security patch and my bootloader is unlocked(not rooted).

Will this method work on my device without wiping my data?

Or it will again unlock my bootloader and wipe my whole data?
[Xiaomi Mi A1 Guides, News, & Discussion] jglass071:
Latest BSG from GCam download page is working with video and night mode on stock Oreo 8.1. https://www.celsoazevedo.com/files/android/google-camera/f/MGC_6.1.013_MiMAX2_V1b_A8.1+.apk

Edit - green tint on front cam and "hexagon failed" message on portrait and night shots, night mode still works
[Xiaomi Mi A1 Guides, News, & Discussion] ajudi46:
It is showing hexagon failed on clicking night and portrait shots
[Xiaomi Mi A1 Guides, News, & Discussion] bals:
Yes. I am also getting this msg. Any suggestions?
[Xiaomi Mi A1 Guides, News, & Discussion] jglass071:
Yes I found that. But with night mode at least it doesn't seem to break anything. Frontcam is still green however and there might be a problem where taking a photo, deleting in Google photos and opening camera again restores the deleted photo.
[Xiaomi Mi A1 Guides, News, & Discussion] ponemania82:
can it be used also for Mi5?
[Xiaomi Mi A1 Guides, News, & Discussion] jglass071:
Is there a way to enable these without deleting data? Stable Pie update apparently removes HAL3. Unlock/relock bootloader should be ok with holding volume down, but booting twrp causes a factory reset. Is there a workaround or alternative? Stock camera works but really isn't good enough
[Xiaomi Mi A1 Guides, News, & Discussion] polykiwi316:
Have you flashed a zip or installed the OTA?
[Xiaomi Mi A1 Guides, News, & Discussion] jglass071:
No, still on Oreo November patch. It hasn't been rolled out to me yet
[Xiaomi Mi A1 Guides, News, & Discussion] Xinxeta:
I installed the pie ota after a factory reset and now I can't install gcam. I tried installing camera2api and eis with the manual mode and everything seems ok, no factory reset, but gcam just doesn't work. I can install the apk, but I can't use it, it force close inmediatley when I try to open it.
[Xiaomi Mi A1 Guides, News, & Discussion] rsahani:
Gcam

Does this tool will work for mi a2
[Xiaomi Mi A1 Guides, News, & Discussion] Susan Dahal:
i am on november update. can i use this tool? it wont be a problem if i lost my data
[Xiaomi Mi A1 Guides, News, & Discussion] denisval:
Has anyone tried to enable this with stable Android Pie (official)? Does unlocking the bootloader still result in a loss of data?
[Xiaomi Mi A1 Guides, News, & Discussion] Xinxeta:
If you use this tool you will loose your data when you unlock your bootloader, and again when you relock it, i think. Then you won't have gcam at the end of the process.

You can make the installation manually with success with fastboot commands, there's a way to avoid the loss of data. The only tutorial i found is in spanish language:

https://www.javinator9889.com/blog/amp/install-gcam-xiaomi-mi-a1/

Enviat des del meu Mi A1 usant Tapatalk
[Xiaomi Mi A1 Guides, News, & Discussion] nuttel:
hey, i used this and i do have magisk and root and now my phone is a brick, i press power and the screen blinks only to die after half a second, what can i do? this was an horrible idea :c
[Xiaomi Mi A1 Guides, News, & Discussion] Xinxeta:
You did aridane method or the tutorial in spanish I shared?

The tutorial worked fine for me, and other people had not issues with that. I think you did something wrong. Is something easy but there are some delicate steps.

I don't know how to help you, I suppose I'd try to flash ota again somehow.

Enviat des del meu Mi A1 usant Tapatalk
[Xiaomi Mi A1 Guides, News, & Discussion] uTukan:
Hey, how much is this compatible with P? I updated earlier today, already had bootloader unlocked, but after following the manual method, gcam did appear in my apps, but when trying to launch it, it keeps crashing, any idea?
[Xiaomi Mi A1 Guides, News, & Discussion] shaman_:
don't worked on OTA pie. HAL3 eis not enabling
[Xiaomi Mi A1 Guides, News, & Discussion] Rudr875:
My device is having problem focusing pictures while using the Google camera, though in the device camera app, it is working perfectly. The problem has appeared after the Android Pie update.

I've tried many different mods. The result is same in all the mods.

Before the pie update it worked perfectly.

Someone please help.
[Xiaomi Mi A1 Guides, News, & Discussion] taurelio:
You have to use this mod:

GCam_5.1.018_by_SerJo87_1.6RC3_test1_pre-Release_ewg.apk

It does not have autofocus bug. Developer SerJo87 has an mi a1 and this mod is almost specific for our device. Maybe thats why the autofocus bug is not present

Enviado do meu Mi A1 através do Tapatalk
[Xiaomi Mi A1 Guides, News, & Discussion] Rudr875:
Ok. I have checked it and it's still not working. Rather, it works on the first try, but as soon as I change even a single setting, such as camera sounds, the problem again starts.
[Xiaomi Mi A1 Guides, News, & Discussion] taurelio:
You have to unnistall first the one you already have installed. Reboot phone, install the mod i mencoined and you are good to go. I did not change setyings in app. Photo taken with this mod in very low light

Enviado do meu Mi A1 através do Tapatalk
[Xiaomi Mi A1 Guides, News, & Discussion] Rudr875:
Ok. I'll check again in the morning and then tell you. Thanks for the help. :)
[Xiaomi Mi A1 Guides, News, & Discussion] macelaru:
Change picture format from 4:3 to 16:9.
[Xiaomi Mi A1 Guides, News, & Discussion] taurelio:
Even in 16:9 the autofocus is bugged in most mods. I only use 16:9 resolution and autofocus bug is there

Enviado do meu Mi A1 através do Tapatalk
[Xiaomi Mi A1 Guides, News, & Discussion] shaman_:
Enabling camera2 api on OTA android pie

this method worked for me, so i live it here

standart method didn't worked for me on pie, so i combined it with this method

You will need to download TWRP and Magisk Manager, Magisk

implied that you have installed ADB and Driver

Unloking bootloader:

Developer Option

Go to your Settings -> About -> Software Information -> More -> Now Tap on the Build Number 7-8 Times until you see a toast message “Developer option enabled”.

Settings -> Developer Option and Enable OEM Unlock and USB Debugging.

Reboot to fastboot

adb reboot bootloader

Unlocking bootloader

fastboot oem unlock

device wil reboot and wipe. after setup repeat step 1-2

Rooting

Booting Recovery

this will boot twrp. be patient this is not instantly

fastboot boot twrp.img

Copy Magisk.zip to device

adb push Magisk-v18.0.zip /sdcard

output will be something like that

Magisk-v18.0.zip: 1 file pushed. 20.0 MB/s (4188255 bytes in 0.200s)

Flash Magisk

go to Install -> Select Magisk-v18.0.zip

Rebooting

adb reboot

Enabling Camera2 API

After device boot

Install Magisk Manager.apk

adb shell

su

Confirm superuser rights on device

setprop persist.camera.HAL3.enabled 1

setprop persist.vendor.camera.HAL3.enabled 1

setprop persist.camera.stats.test 5

setprop persist.vendor.camera.stats.test 5

setprop persist.camera.eis.enable 1

exit

exit

reboot device and check if all ok -> run Camera2 probe and check results

Model:Mi A1

Manufacturer:Xiaomi

Build:9

SDK:28

SupportLevel:3

SupportLevel HR:Level_3

Manual exposure:1

Auto exposure:1

Auto exposure, always flash:1

Auto exposure, auto flash:1

Auto exposure, auto flash redeye:1

AF Lock:1

Manual focus:1

Auto focus:1

Auto focus macro:1

Auto focus continuous picture:1

Auto focus continuous video:1

Auto focus EDOF:0

Whitebalance off:1

Automatic whitebalance:1

WB: cloudy day:1

WB: day:1

WB: fluorescent:1

WB: incandescent:1

WB: shade:1

WB: twilight:1

WB: warm fluorescent:1

AWB Lock:1

RawCapture:1

Unroot device

Run Magisk Manager and press Uninstall -> Complete Uninstall

Lock bootloader

adb reboot bootloader

Hold volume buttom -

it is very important to avoid wipe

fastboot oem lock

divice will reboot to bootloader

fastboot reboot
[Xiaomi Mi A1 Guides, News, & Discussion] theashishnayak:
how it use in after android pie update in mi a1 ?

how it use in after android pie update in mi a1 ?

is it possible -to enable cam2 api and eis in after pie update - and no lose ota update - please rply sir ?
[Xiaomi Mi A1 Guides, News, & Discussion] shaman_:
https://xdaforums.com/showthread.php?p=78510905#post78510905
[Xiaomi Mi A1 Guides, News, & Discussion] N3XoD:
Android Pie 9 stock rom
[Xiaomi Mi A1 Guides, News, & Discussion] Rudr875:
Has anyone discovered a fix for focus bug while using Google camera in Android pie update?
[Xiaomi Mi A1 Guides, News, & Discussion] macelaru:
Try to change picture format from 4:3 to 16:9.
[Xiaomi Mi A1 Guides, News, & Discussion] ag008:
What is best Gcam (and what is diff) from Gcam version in this tutorial?

(I have Android 8.1)
[Xiaomi Mi A1 Guides, News, & Discussion] Nestorhugo:
Dear good day, try to install the camera but with Android P and the phone is restarted from factory, I tried several times and the same thing always happens.

My query is to know if it is possible that having updated to Android P I need another program to install the Gcam
[Xiaomi Mi A1 Guides, News, & Discussion] Xinxeta:
If you change format to 16:9 camera is not trying to focus all the time, but it doesn't focus ok to something that is near. It is not okay, at least in my phone.

Enviat des del meu Mi A1 usant Tapatalk
[Xiaomi Mi A1 Guides, News, & Discussion] taurelio:
Use this mod: https://f.celsoazevedo.com/file/gcamera/GCam_5.1.018_by_SerJo87_1.6RC3_test1_pre-Release_ewg.apk

Does not have any bugs on Pie, at least on my phoe. Developer has an mi a1.

Prior to install this mod unninstal any gcam you have on your phone, reboot phone, than install tis mod

Enviado do meu Mi A1 através do Tapatalk
[Xiaomi Mi A1 Guides, News, & Discussion] Xinxeta:
Doesn't work that good for me.

Issues:

-autofocus doesnt work (for me)

-Front cam photo with hdr/hdr enhanced are weird, there is some issue with the colours (not green tint, something more subtile) - maybe it's because of low light conditions?

A good thing (for me) about this version is that there is a manual focus mode that works.

I will test this front camera tomorrow with good light.

By the way, thanks for your recommendation, it seems a good option by now (waiting to see the front camera performance).

Enviat des del meu Mi A1 usant Tapatalk
[Xiaomi Mi A1 Guides, News, & Discussion] kachimasu:
For me, this mod is a mess...
[Xiaomi Mi A1 Guides, News, & Discussion] taurelio:
Use this mod:

https://f.celsoazevedo.com/file/gcamera/GCam_5.1.018_by_SerJo87_1.6RC3_test1_pre-Release_ewg.apk

Dev has an mi a1. It works fine on pie ( at least on my phone)

Enviado do meu Mi A1 através do Tapatalk
[Xiaomi Mi A1 Guides, News, & Discussion] Nestorhugo:
Gcam Android P

Dear, good afternoon, my phone has already installed Android P, then try to install the Gcam with the method without root and when executing the process all the data is deleted and it is restarted from the factory, I could be informed if this happens because the installation program was developed for Oreo since when I used the version...
[Xiaomi Mi A1 Guides, News, & Discussion] Rocketbunny07:
Unable to install gcam with the tool

Hi guys, my mi a1 underwent an unprecedent factory reset by service centre team and got everything reset. so, i tried this method (the tool method) on my mia1 after installing nov 2018 patch and my phone is getting factory reset everytime but not getting the HAL3 or EIS enabled nor getting the Gcam installed. Can anyone kindly help me.
[Xiaomi Mi A1 Guides, News, & Discussion] egowest06:
I need boot.img for android 9. accidentally installed a2.in boot.img. where can I find it ? get this error "the system has been destroyed". Can someone upload it for me ?

I solved the problem. I got boot.img from Tissot beta 9. I've installed and solved the problem.
[Xiaomi Mi A1 Guides, News, & Discussion] janchaman:
Does anyone knows if do factory reset is enabled camera2api is gone?

Disabled?
[Xiaomi Mi A1 Guides, News, & Discussion] Xinxeta:
Yes, it will be disabled.

Enviat des del meu MI PAD usant Tapatalk
[Xiaomi Mi A1 Guides, News, & Discussion] N3XoD:
Camera 2api gone if u do factory reset

I do factory reset and now on pie trying to enable it without root
[Xiaomi Mi A1 Guides, News, & Discussion] SauravKar:
i already have this installed last year during march, now how to enable EIS and 2Api? only installing new apk mentioned abv will work?
[Xiaomi Mi A1 Guides, News, & Discussion] Rudr875:
Has anyone tried this mod yet?

I think that this mod, BSG- 8.1, is better than the others.

Though I think the only problem it has is with HDR and front portraits. Normal front camera works fine and the focusing bug is not there.

It worked for me at least.

Here's the link -

https://f.celsoazevedo.com/file/gcam...g-test-8.1.apk
[Xiaomi Mi A1 Guides, News, & Discussion] Fibra Man:
Hi, friends!

How to Enable Camera2Api, EIS in Android 9.0 (Pie) via TWRP(external)?

In Android 8.0.0 and 8.1.0 I type these commands in TWRP console and works, but in Android 9.0 (Pie) doesn't. Am I making a mistake?

I want GCam in my Mi-A1.

May you help me?

thank you in advance.
[Xiaomi Mi A1 Guides, News, & Discussion] shaman_:
https://xdaforums.com/mi-a1/how-to/guide-enable-camera2-api-eis-stock-t3883017
[Xiaomi Mi A1 Guides, News, & Discussion] mhorvat:
So, still no GCam version that would get rid of the autofocus problems?

Cheers,
[Xiaomi Mi A1 Guides, News, & Discussion] _jis_:
Try this (only a few posts back...): https://xdaforums.com/showpost.php?p=78547415&postcount=1853

It works for me.
[Xiaomi Mi A1 Guides, News, & Discussion] Bzaina:
In the app Camera2 Probe i've got this:

Focus Modes

X Auto focus EDOF

Could this be the source of gcam autofocus problem?
[Xiaomi Mi A1 Guides, News, & Discussion] mhorvat:
Not likely, even Nexus phones have this disabled.

The only solution so far is to reduce the back camera resolution to 9 MP (16:9) which fixes the autofocus issue, at least for me (currently using the MGC 6.1 v2b plus version) .

Not a permanent solution though...
[Xiaomi Mi A1 Guides, News, & Discussion] _jis_:
Did you try this (only a few posts back...)?

https://xdaforums.com/showpost.php?p=78547415&postcount=1853

It works for me.
[Xiaomi Mi A1 Guides, News, & Discussion] mhorvat:
Sorry, the link to the apk seems to be broken, can you please check again?
[Xiaomi Mi A1 Guides, News, & Discussion] _jis_:
But that original post/link wasn't mine.

So I just used my brain 10 days ago :)

I shortened the original URL to functional link: https://www.celsoazevedo.com/files/android/

Here I opened https://www.celsoazevedo.com/files/android/google-camera/

And searched for "BSG-" from BSG, bingo: https://f.celsoazevedo.com/file/gcamera/bsg-test-8.1.apk
[Xiaomi Mi A1 Guides, News, & Discussion] vedjo:
I tried this one and autofocus is working fine but I noticed that when I'm taking a photo in the dark with flash, it flashes for focusing but doesn't flash when capturing the photo so the photo comes out dark. Does anyone else have this problem?
[Xiaomi Mi A1 Guides, News, & Discussion] Rudr875:
I don't think I tried with flash. Will check and then tell.
[Xiaomi Mi A1 Guides, News, & Discussion] _jis_:
We cannot have all GC features from Pixels for free, I am glad that at least auto focus is working fine with this port.

I try to avoid using flash anyway, because it only spoils the fidelity of photography.

But I have another problem - with double-tap to power camera gesture:

It doesn't work with bsg-test-8.1.apk camera for me when the screen is off after phone reboot.

I must clear defaults for this camera app after every reboot and then double-tap to power button and choose it again as default camera to work correctly but only till the next restart.

I hope I have described this problem in a clear way.
[Xiaomi Mi A1 Guides, News, & Discussion] Fredoslaw:
No HDR+ in this version, makes photos like xiaomi cam.
[Xiaomi Mi A1 Guides, News, & Discussion] Eshwar123:
Thanks for sharing this, Auto focus issue is not present in normal photo mode

But I'm facing the issue in portrait mode and night sight...

Is anyone facing the same?? and any solutions?
[Xiaomi Mi A1 Guides, News, & Discussion] Lappariaja:
theres any totorial or guide for me, i want enable camera2 api and install gcam like u guys and keep getting OTA update for next. Iam on january patch now. Thx
[Xiaomi Mi A1 Guides, News, & Discussion] vedjo:
I followed this tutorial when I was on 8.1 November version and I didn't had any problems updating to Pie. Camera2api remains enabled after the update.

Here is the same tutorial but for Pie.
[Xiaomi Mi A1 Guides, News, & Discussion] SM-03:
In this Google Camera Port download page https://www.celsoazevedo.com/files/android/google-camera/ all the apks are listed as MGC_6.1.021 in common so I presume MGC=Modded Google Cam (correct me if I am wrong) & is the v6.1.021 from Pixel2 gcam or latest picel3? Asking this because earlier there used to be a pixel2/pixel3 tag with the naming & nowdays it's gone & can't be seen anywhere in latest releasing modded apk's so presuming all the MGC_6.1.021 are from pixel3 gcam?

Someone kindly clarifiy this to me, & also suggest me what is the best pixel3 based gcam mod apk to use in Mia1 stock pie Rom with least issue/problems? Arnova or BSG or any other dev?
[Xiaomi Mi A1 Guides, News, & Discussion] Rohitkalla:
It automatically hard resets whenever I run the program. PLEASE HELP!

I initially had GCam but then after a while I did a factory reset on my phone. Now I tried to install GCam again. I used magisk, but after booting through patched boot image, magisk didn't show any options, so I thought I did wrong somewhere and so I wanted to start from first. There was no uninstall option inside magisk so I removed it manually from outside. After that, whenever I try to install, it just erases the data and automatically hard resets the phone. I have no clue what to do and I am stuck. Please help me. I would love to have GCam on my A1 again.
[Xiaomi Mi A1 Guides, News, & Discussion] Rohitkalla:
Phone factory resets itself whenever I run the tool

I am facing a problem and I hope you can help me. I initially had GCam installed, but then later I did a factory reset in my phone. Now that I want to install it again, I followed to root it through magisk, but somewhere I think I went wrong and after booting through image file, Magisk did not show any option to "install" or "update". So I thought I did somewhere wrong and wanted to redo the whole process but then an uninstall option did not appear inside magisk, so I deleted from outside. After this I restarted the phone and it performed a factory reset. I tried this method again but still magisk does not show anything. I even used the google automated tool but whenever I run it, my phone again factory resets itself. I request you to kindly help me. I would really regret it if I don't have GCam installed in my Mi A1.
[Xiaomi Mi A1 Guides, News, & Discussion] Datt patel:
Bhai mera mobile karibn 20 min. Se fastboot me he.....or laptop me unlocking bootloader dikha raha he.....to ye puri process khatam hone me kitana time lagega??? Please fast reply
[Xiaomi Mi A1 Guides, News, & Discussion] Vonsmalhausen:
Hi, it was very helpful tool with android 8, but doesn't work with android 9. Will be any update please? Thank you so much.
[Xiaomi Mi A1 Guides, News, & Discussion] myke0:
on the first page it says the smartphone has to be on april 2018 2019 ? or before that, in order to install. how do i ( revert or update - manually ) to a specific month ? i am on february 2019
[Xiaomi Mi A1 Guides, News, & Discussion] aravind3y:
Does this method work only with mi a1. Can I apply it for note 5 pro?
[Xiaomi Mi A1 Guides, News, & Discussion] pee-wee:
Use steps from mi a2's thread, several strings must be change too for pie
[Xiaomi Mi A1 Guides, News, & Discussion] Tokobo:
I was wondering, I have done this previously on android 8 but I updated to Android 9 Jun 2019 patch via the OTA, what changes do I need to do for my phone now?
[Xiaomi Mi A1 Guides, News, & Discussion] knitinfk:
not able to see google camera

i have follwed your link and the mobile got formatted, but i am not able to find the google camera, can you please help
[Xiaomi Mi A1 Guides, News, & Discussion] :
Can you read the OP?
[Xiaomi Mi A1 Guides, News, & Discussion] knitinfk:
what do you mean by OP? can you please explain, didn't understand
[Xiaomi Mi A1 Guides, News, & Discussion] freekarol:
OP: original poster.

https://www.dictionary.com/e/slang/op/
[Xiaomi Mi A1 Guides, News, & Discussion] pawelczakk:
If I did this method to install gcam before, can I just install another .apk (newer version) without doing anything again?
[Xiaomi Mi A1 Guides, News, & Discussion] _jis_:
Sure. If it has the same signature, you can just update the app, if not, uninstall first old one and then install the new one (with different signature).
[Xiaomi Mi A1 Guides, News, & Discussion] Peter_Ralte:
Stuck at bootloader

I've downgrade it to Oreo and Installed this It was working fine. and then i got OTA update for December after installing it, it stuck at bootloop.

I cant turn in OEM Unlock nor access to Developer option. Now What should I do? Please Help asap
[Xiaomi Mi A1 Guides, News, & Discussion] sipollo:
Try changing your active slot in fastboot mode.

Can't remember the exact sintax, should be "fastboot --set-active=a" (or b). You should be able to boot correctly. If it works first enable oem unlock, then try flashing Oreo 8.0 ROM.
[Xiaomi Mi A1 Guides, News, & Discussion] Peter_Ralte:
C:\Windows\system32>fastboot devices

ba789ac30404 fastboot

C:\Windows\system32>fastboot getvar current-slot

current-slot: b

finished. total time: 0.009s

C:\Windows\system32>fastboot --set-active=a

fastboot: unknown option -- set-active=a

C:\Windows\system32>
[Xiaomi Mi A1 Guides, News, & Discussion] sipollo:
Try fastboot set_active a
[Xiaomi Mi A1 Guides, News, & Discussion] Marmik0:
Is this tool work with pie update ???
[Xiaomi Mi A1 Guides, News, & Discussion] Dakile:
Nope.
[Xiaomi Mi A1 Guides, News, & Discussion] cahyo_diegol:
Can you reboot without having to lock the bootloader ???
[Xiaomi Mi A1 Guides, News, & Discussion] abhishek jadav:
Can anyone tell me the way to install the latest gcam on nov security patch without root?
[Xiaomi Mi A1 Guides, News, & Discussion] abhishek jadav:
Is this method working for android 9 pie running December 2019 patch ?
[Xiaomi Mi A1 Guides, News, & Discussion] josemiliano:
Does this method also lose data?

Con este método también se pierden los datos?
[Xiaomi Mi A1 Guides, News, & Discussion] AhmadKamal2020:
does it still working in 2020 ?