yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A1 Guides, News, & Discussion] nahuelvvn:
I updated to 8.1 yesterday. Everything working fine.

I did everyhting WRONG. I did a dirty flash, I forgot to disable magisk, then I got some weird bugs: 2 bootloops until I restarted the thirs time, FC in settings, Camera and Gcam dead, apps crashing.

But after I disabled all magisk modules, uninstalled magisk and rebooted phone, everything went better.

Just to be sure, I performed a factory reset.

Bootloader kept unlocked. I installed Magisk with img patching method. Gcam modules work as expected. Bootloops seem to be gone.

It looks like Mi A1 is retarded-proof. Doing everything I could the wrong way and still working like a charm.
[Xiaomi Mi A1 Guides, News, & Discussion] v:
I lost all data, which was no big deal as I just bought the phone.
[Xiaomi Mi A1 Guides, News, & Discussion] emiljano539:
has anyone tried this in 8.1 stock rom? Does it wipe the data?

PS. just tried now and it's not working i was stucked in unlocking bootloader. Any solution? (v 8.1 june security patch)
[Xiaomi Mi A1 Guides, News, & Discussion] Amanpreetsingh:
What's the correct method for June update on android 8.1 ??

---------- Post added at 07:09 PM ---------- Previous post was at 07:08 PM ----------

You tried installing mi suite ??
[Xiaomi Mi A1 Guides, News, & Discussion] emiljano539:
No I didn't when should I install it before or when it's in the fastboot mode?

Thanks
[Xiaomi Mi A1 Guides, News, & Discussion] emiljano539:
LAST UPDATE: So ye i followed all the steps to make it manually but i can't lock the bootloader. I didn't installed the twrp just booted into it. Now everytime i want to lock the bootloader via adb my phone starts to encrypt and then wipes the data. Any solution?
[Xiaomi Mi A1 Guides, News, & Discussion] AdamBenson:
Thanks for the reply! By the way, you got the official 8.1 update or are you on a Beta.

For the A1, there is an app for Windows that does it all automatically, there is not such a thing for the Mix 2 :(
[Xiaomi Mi A1 Guides, News, & Discussion] akhilcherukuri:
Same Problem but there's a way....

Same problem, relocking bootloader is erasing the two enabling edits we did on build prop( For EIS n Camera2 API). Right now the only way is we have to flash April Patch 8.0 ROM again, edit the build prop, then update it to 8.1. Since from May Patch OEM lock n unlock wipes out user data.
[Xiaomi Mi A1 Guides, News, & Discussion] AdamBenson:
i still didn't got update, running 8.0 MIUI 9.6.1 it would be the right time to enable the Camera2Api before getting 8.1?
[Xiaomi Mi A1 Guides, News, & Discussion] nahuelvvn:
Official june 5 patch. Now looks like they cancelled the OTA but they say they didn't... weird :P

Sorry for the stupid question, but, why you guys need to keep the BL locked? Its a headache.

I just unlocked mine once and had no problem in months: OTAs arrive on time, updating will not wipe my data, and manual installation of GCam is super easy.
[Xiaomi Mi A1 Guides, News, & Discussion] Amanpreetsingh:
How did you manually installed the gcam ??

For eg : if I unlocked the bootloader and boot the twrp and flash magisk in it and then enable Google camera from magisk (it will enable eis, hal) and when ota comes just boot the twrp again and flash the magisk uninstaller then install the ota and repeat the process for gcam again.

This will work on June update I think.we don't need to go back to April update and I don't care about locking bootloader coz it won't affect on ota ?

Pls correct me if this will affect on ota or this will not work. Thanks for you answers.
[Xiaomi Mi A1 Guides, News, & Discussion] Rithik™:
Does it work with June patch ??

Or same as like that of may patch ?
[Xiaomi Mi A1 Guides, News, & Discussion] emiljano539:
Will i be able to get OTA updates even if my bootloader is locked? Or do i have to flash it everytime via pc?
[Xiaomi Mi A1 Guides, News, & Discussion] taurnilf:
Gcam working well with 8.1.
[Xiaomi Mi A1 Guides, News, & Discussion] mnu01:
gcam after 8.1 please help me i want to install it june security patch
[Xiaomi Mi A1 Guides, News, & Discussion] taurnilf:
Do it manually as the tool won't work anymore. Read the first post, understand what the tool does. Then backread a few pages from here for the updated steps. Good luck.

Edit.

Here you go.

https://xdaforums.com/showpost.php?p=76850364&postcount=1591
[Xiaomi Mi A1 Guides, News, & Discussion] mnu01:
will this wipe my whole data
[Xiaomi Mi A1 Guides, News, & Discussion] taurnilf:
Yes, after step 4.
[Xiaomi Mi A1 Guides, News, & Discussion] Amanpreetsingh:
This process will wipe all user data when unlocking bootloader or if we press the volume down button. It will bypass the erasing process and I want to know y we need to boot twrp from adb ?
[Xiaomi Mi A1 Guides, News, & Discussion] 21vm:
The hold down vol button should do the trick WITHOUT erasing data as far as i've understood.

But don't we need the patched file image of the june 8.1 version ??

My bootloader is now unlocked, i deadly want to have my gcam back... but i'm lost !!
[Xiaomi Mi A1 Guides, News, & Discussion] taurnilf:
Yes, after step 4. It says very clearly, "Phone will be wiped here". Lol

Do you guys even read what you're quoting?
[Xiaomi Mi A1 Guides, News, & Discussion] Amanpreetsingh:
Thanks a lot for your answer.
[Xiaomi Mi A1 Guides, News, & Discussion] 21vm:
Seriously : do you even read the link we posted ??? can't you see that original post was modded with the "press vol down button" ? Be nice and intelligent is not incompatible.
[Xiaomi Mi A1 Guides, News, & Discussion] taurnilf:
Oh please. Have you tried the steps already? And your phone didn't reset after booting to twrp?

In case you ask, i not only read it, i did it.
[Xiaomi Mi A1 Guides, News, & Discussion] 21vm:
"Oh please", as u said :
[Xiaomi Mi A1 Guides, News, & Discussion] taurnilf:
So you really haven't tried it yet, have you?
[Xiaomi Mi A1 Guides, News, & Discussion] 21vm:
As i said since the beginning, NO, that's why im' asking for help here. Read my posts and links as you suggested.

I'm not omniscient but at least i'm trying adding and compiling people knowledge to go forward : together we stand, divided we fall.

I do not want to argue more with you, u're right, i'm wrong ! :)
[Xiaomi Mi A1 Guides, News, & Discussion] taurnilf:
I suggest you try it first.

Here's something to add to your list of questions. Why, after booting in twrp, the phone reseted? Could a fastboot reboot after the bootloader unlock have prevented the reset? Good luck.
[Xiaomi Mi A1 Guides, News, & Discussion] Amanpreetsingh:
So you mean volume down will not work when we boot to twrp . It will wipe the data. As far as I read your posts you said you have tried. That's y you are saying it will wiped. Then what's the benefit of volume down
[Xiaomi Mi A1 Guides, News, & Discussion] taurnilf:
The volume down prevents the data from being wiped out when you relock the bootloader.
[Xiaomi Mi A1 Guides, News, & Discussion] nahuelvvn:
You can try mine for june 5th 8.1. hope it works with you

https://drive.google.com/open?id=1CvR3LSoS8Zb21fbquxLSCzpnCtNPAuSm

---------- Post added at 04:34 AM ---------- Previous post was at 04:24 AM ----------

I mean, instead of messing with autoinstallers, just install magisk / root / download GCam module for magisk / install any apk

Installing magisk from TWRP works fine in june 8.1 (I did just to extract a boot.img), but i didn't want to fastboot from a PC each time I download an OTA, so I patched the img with magisk and installed it with the other method.

Edit: [DO THIS AFTER YOUR BOOTLOADER IS UNLOCKED]

If you are locked, unlock following previous post advice using vol key to prevent data wipe.

Get a patched boot.img (Mine for 5th june if you want to try luck)

-Install magisk installer APK

-reboot fastboot

-type in cmd: "fastboot boot patched_image_name.img" (image placed in fastboot folder, the same as TWRP method)

It will boot being root

- open magisk app and install with direct install (it will say safetynet is broken, dont worry)

- Reboot. Magisk should be installed, root working, and safetynet chek passed.

- Install any GCam module in magisk (I m using an all-in-one version from Addicted that enables EIs/HAL/Cam2 API/SlowMo and Telephoto) and the FPS fix for video (search in XDA). Reboot.

- Install any GCam APK you like (I love Serjo87 ver edited by this guy to include a switch to telephoto: - LINK -)

- If Slow Mo lags, open stock cam, press video, then switch back to Gcam.

When OTA arrives, use the method described in magisk site for pixels:

- uninstall magisk from app interface

- download and install OTA. DON'T REBOOT

- install magisk from app to second slot

- Reboot now
[Xiaomi Mi A1 Guides, News, & Discussion] AndroGeek911:
What's the status after june update. does still data get wiped?
[Xiaomi Mi A1 Guides, News, & Discussion] Bishal_ad0:
I am on latest 8.1 update with security update.

Talking about this method it's not asking me the permission about the keys and all that's show before it boots to fast boot .please help ...
[Xiaomi Mi A1 Guides, News, & Discussion] polykiwi316:
Can someone tell me why is it that they say the tool is useless now?? I mean when the phone turns on it's data is wiped but you get Camera 2 API enabled and can install any gcam apk with no problem, am I right??
[Xiaomi Mi A1 Guides, News, & Discussion] Amanpreetsingh:
[MENTION=7557490]nahuelvvn[/MENTION] I am rooted with twrp recovery with latest June build.I want to make a video tutorial for this as I did before with this tool. So if I flash the stock rom without installing twrp recovery installer . I will be on stock recovery which is necessary for ota.

I am a bit confused with patch boot.img things. Do I need to be on patch boot img or should i patch ?? How to do that I have never done this before. After patching boot img is there any method to install that.

The next steps you already told me with magisk and for ota also. I have understood those. With this method with unlocked bootloader you tested the ota ????

Thanks for your answers and time. :)
[Xiaomi Mi A1 Guides, News, & Discussion] nahuelvvn:
Im not a dev... Im just sharing my experience. Follow at your onw risk lol :P

If you have installed a custom recovery, you shouldn'tn be able to download OTAs and system is marked as changed. Then yes, you need to restore the whole ROM.

Once you are in stock again, then follow the steps I wrote.

The patched boot.img is just used to boot the phone one time, but not installed (same as twrp booting method), so the first time you fastboot that image, your phone will be rooted but system detected as changed and safetynet broken. Then you use this temporary root to properly install magisk zip from the magisk apk interface. When you reboot, boot.img is restored to stock so the system will not detect as changed, and OTAs can arrive. This would be the logics behind it, as far as I understand (again, Im not a dev, just user)

So the full steps will be:

- Start from scratch (flash stock rom and unlock bootloader if locked)

- Install magisk apk

- Download a "patched boot.img" from june 5th patch (or the current patch, when it's updated again)

- Place that image in same folder as fastboot.exe (I assume you have used it before, if not, google XDA to get it)

- Reboot phone in fastboot (turn off, turn on holding power+vol -)

- Open cmd, go to folder containing fastboot.exe, and type "fastboot boot your-image-file-name.img" (example fastboot boot patched_june_boot.img)

- Phone will reboot rooted.

- Open magisk and tap install button, then "direct install" option.

- Reboot Phone.

--- There is a risk of soft-bootloops. I don't know if just happens to me, but half the times i have to reboot again by holding power button, then phone starts normally.

Thats what I've done, and it works for me. Hope it does for you.
[Xiaomi Mi A1 Guides, News, & Discussion] Amanpreetsingh:
Thnks this is very clear now. Also need to format data when going to stock or saving User data is just fine ??

You tried ota with this method ??
[Xiaomi Mi A1 Guides, News, & Discussion] ahmed dzico:
I have successfully unlock bootloader without wipe data .. how can i enable google cam without wipe ?
[Xiaomi Mi A1 Guides, News, & Discussion] 21vm:
Thanks a lot for useful post !! I'm stuck installing the magisk module : i've downloaded the one from here as you recommend the addicted module but in Magisk, when i try to flash it, it says "not a magisk module" !! Any idea ? another link ?

EDIT : just found this one
[Xiaomi Mi A1 Guides, News, & Discussion] solis_f:
Does the stock camera app work after enabling EIS and Camera2 api? Cause I thought it wouldn't but it seems to still be working on stock rom 8.1
[Xiaomi Mi A1 Guides, News, & Discussion] gabricco:
yes, of course
[Xiaomi Mi A1 Guides, News, & Discussion] goreprasad:
Which version of gcam works best in any condition with minimal setting and stable?
[Xiaomi Mi A1 Guides, News, & Discussion] nahuelvvn:
[

I think you can save user data, I dirty flashed the june update and it worked fine after disabling magisk modules. I did a factory reset after but just for fun and the "new phone" feeling :p

For obvious reasons I didnt try OTA after june update, but since I bought the phone last year I updated at least 6/7 times several security patches via OTA with the method described in the other post (uninstall magisk/download ota/install magisk to second slot). I also updated from 8 to 8.1 and worked after a 1-time bootloop.
[Xiaomi Mi A1 Guides, News, & Discussion] maniacscorpio:
GCAM installed and working well.. Kindly let me know if I format my mobile through settings than I will face bootloop problem or not???
[Xiaomi Mi A1 Guides, News, & Discussion] Amanpreetsingh:
Thnks for responding :)
[Xiaomi Mi A1 Guides, News, & Discussion] 5amar31:
Those modules touch system partition though. You won't get OTA even if you uninstall Magisk.
[Xiaomi Mi A1 Guides, News, & Discussion] 21vm:
hmmmm... i've received all OTA with gcam mod installed for 3 months. Not he magisk mode, the other way, and evrything's ok. I've flashed the magisk mod yesterday (without losing data), i will see if i'll get the next ota. But i can assure you that gcam installed doesn't avoid receiving ota.
[Xiaomi Mi A1 Guides, News, & Discussion] 5amar31:
Even I have GCam installed since February & have received every OTA without a problem. The Module that person mentioned modifies system partition. The basic Magisk module (with Camera2API & EIS) doesn't. You can't get GCam on Telephoto lens without modifying system partition as of now.
[Xiaomi Mi A1 Guides, News, & Discussion] __BJ__:
Installed Arnova8G2 v8 today, coming from v5. At first glance everything worked fine but then I realised by making photos from another app, where no HDR+ or enhanced is available (in other words normal photos no HDR) sometimes really weird colours are shown on the pictures. I have attached one of these images...

Has anyone an idea how to fix that? Tried a lot with the settings in the app, like the low light fix or disabling hexagon but neither worked. That happens also very often when disabling HDR in the app itself for me.
[Xiaomi Mi A1 Guides, News, & Discussion] lostmangr:
hi guys i try to instal google camera but when start the booting my phone close and say that(your device cant the checket for corruption plz load the bootlocker)i am not the best man for phones but really i want one good camera in my xiaomi m1 a1
[Xiaomi Mi A1 Guides, News, & Discussion] lostmangr:
anyone can help me??
[Xiaomi Mi A1 Guides, News, & Discussion] nahuelvvn:
I meant this magisk mod.

Only thing different to other modules is the line " vendor.camera.aux.packagelist=com.google.android.GoogleCameraWide,com.android.camera,com.google.android.GoogleCamerb "

As I said Im not a dev and could be wrong, but I had no issues with that one.

SafetyNet passed. Search for updates throw no errors. Telephoto works like a charm.

Anyway, any magisk modification to system should be not permanent.

---------- Post added at 04:47 AM ---------- Previous post was at 04:35 AM ----------

It happened me a lot with some GCam versions with hdr disabled (and also a green overlay covering 3/4 of image), found no fix neither, just switched to a different version. (Seems to happen less in serjo, arthur and urikill at least to me)
[Xiaomi Mi A1 Guides, News, & Discussion] Amanpreetsingh:
Uninstalling magisk modules will give you stock tiles back. As you said this method is also working for pixel devices. I don't think ota will effect. Cox this tool dose the same.
[Xiaomi Mi A1 Guides, News, & Discussion] Rithik™:
Does anyone care to answer

?
[Xiaomi Mi A1 Guides, News, & Discussion] taurnilf:
The tool? No, it won't work with the june update. You can do it manually though.
[Xiaomi Mi A1 Guides, News, & Discussion] vijaymk:
Give me link of working Gcam on my RM note 5 plus on 8.1 based miui 10 beta rom. Tnx

Sent from my Redmi Note 5
[Xiaomi Mi A1 Guides, News, & Discussion] Rithik™:
Without data wipe?
[Xiaomi Mi A1 Guides, News, & Discussion] nahuelvvn:
Search previous pages of this thread. There is a method to unlock bootloader without wipe by pressing some keys (vol- iirc?? I didnt tried yet)

All the following steps have no risk to wipe anything. Only difference Is that your BL will stay unlocked
[Xiaomi Mi A1 Guides, News, & Discussion] IvanHephaestus:
Thanks for this guide,bro
[Xiaomi Mi A1 Guides, News, & Discussion] taurnilf:
Data wipes only when booting into twrp after oem unlock.
[Xiaomi Mi A1 Guides, News, & Discussion] bdakiraz:
lol just go download stock android with april patch n install it using miflashtool n use this tool,,,u are good to go,,,,but if u di this will wipe all the data,,,just copy yr data to latop n transfer it again,,,,lol
[Xiaomi Mi A1 Guides, News, & Discussion] ruipalmeira:
tool doesn't work with latest build (8.1 june security patch). you should add disclaimer on the 1st page and pin instructions on how to get the mod without the tool (which with properly written instructions isn't really needed anyway).
[Xiaomi Mi A1 Guides, News, & Discussion] taurnilf:
It was written in big, bold, red letters.

IMPORTANT: SINCE MAY OTA UPDATE, DATA IS WIPED IN THE BOOTLOADER UNLOCKING PROCESS. TO USE THE TOOL YOU HAVE DOWNGRADE APRIL OR BEFORE, INSTALL THE CAMERA AND THEN UPDATE.
[Xiaomi Mi A1 Guides, News, & Discussion] nahuelvvn:
This is a thread about the tool...

There are two post refered by OP - both with links to do it manually. (If people just read the whole post before blaming world woulkd be a better place :P)

There are several posts in this thread also (one by myself), with the steps to get the gcam working without the tool.
[Xiaomi Mi A1 Guides, News, & Discussion] ruipalmeira:
Well, I didn't notice the information on the thread (wouldn't make a difference since I had may OTA anyway :/)

Can you link to a thread on how to do this, please (I'd rather use a proven method than browsing and testing by myself)? Can it be done on 8.1 (even if all the data is wiped again. I'm ready for that xD)

?

BL is already unlocked for now, I would like to keep the phone as vanilla as it can be, meaning I don't want to keep magisk or twrp installed after the mod, just have the needed camera API enabled and installing the needed APK.
[Xiaomi Mi A1 Guides, News, & Discussion] taurnilf:
Here. https://xdaforums.com/showpost.php?p=76850364&postcount=1591

Since your bootloader is unlocked, you can skip some steps. Good luck. Works with 8.1.
[Xiaomi Mi A1 Guides, News, & Discussion] ruipalmeira:
ty very much! already done. and I'll probably leave root on :p
[Xiaomi Mi A1 Guides, News, & Discussion] DJSUB:
Zenfone Max Pro M1

Is this method will work with zenfone max pro m1?

Thanks in advance
[Xiaomi Mi A1 Guides, News, & Discussion] Rithik™:
Nope
[Xiaomi Mi A1 Guides, News, & Discussion] Rithik™:
July patch is out

Any1 trying this method ??
[Xiaomi Mi A1 Guides, News, & Discussion] 25vikasp:
Telephoto lense worked?? Could you please share some pics
[Xiaomi Mi A1 Guides, News, & Discussion] JonasSavimbi:
Hi guys. Having the gcam mod done using the tool before May update, a1 being unrooted and with a locked bootloader, is it safe to update to 8.1 when the update shows OTA? Will everything work OK?

This mod is so freaking awesome that I'm not even willing to have 8.1 update if it messes the ability to use it!
[Xiaomi Mi A1 Guides, News, & Discussion] giusepperss89:
Update gcam

Hi guys I installed gcam by tool, if I wanted to change gcam I just uninstall and install a new version?

Which version do you recommend?
[Xiaomi Mi A1 Guides, News, & Discussion] gabricco:
yes you can.

try yourself, i'm now using arnova 5.2.025 gcam
[Xiaomi Mi A1 Guides, News, & Discussion] mnu01:
thanks
[Xiaomi Mi A1 Guides, News, & Discussion] cantras:
I could not read the whole thread, but I truly tried my best. If I offended the rules, please accept my apology.

My problem: I accidentally wiped my phone yesterday by rooting it (not for the gcam app) and now I am back to a restored 8.1 (rooted).

I can't be bothered to install Magisk as it seems to have issues.

Is there any faster way to install gcam again? The phone's stock camera is a catastrophe. ;)

I appreciate your help
[Xiaomi Mi A1 Guides, News, & Discussion] taurnilf:
https://xdaforums.com/showpost.php?p=76850364&postcount=1591
[Xiaomi Mi A1 Guides, News, & Discussion] mnu01:
i got a video on YouTube to install gcam by tool on june patch 8.1 please anyone tell it is safe or i do it manually and tell the manual way please

https://youtu.be/GBhG23Pjlfc
[Xiaomi Mi A1 Guides, News, & Discussion] goran60:
Can I install Gcam on July update?
[Xiaomi Mi A1 Guides, News, & Discussion] mayurwable93@gmail.com:
I'M trying to install gcam using this tool since march 2018.. but every time the process keeps running at "unlocking bootloader". Nothing happens after that..It cannot go to next step.. it keeps running at" unlocking bootloader"..

Anyone can help me?? plz..
[Xiaomi Mi A1 Guides, News, & Discussion] taurelio:
For the 11000000000000000000000000000000000000000000000000000 time... Install the windows driver for fastboot. On fastboot go the windows device manager, you will find an exclamation point on the missing driver. Right click and select update driver from Windows update

Sent from Mi A1 with Tapatalk Pro
[Xiaomi Mi A1 Guides, News, & Discussion] goreprasad:
There are new versions of gcam on the gcam port site from "fu24" developer in which user can switch lenses (telephoto to wide-angle vice versa) any one used it on Mi A1 ? I tried to but it gives error Camera stopped working.
[Xiaomi Mi A1 Guides, News, & Discussion] Rithik™:
Try opening with Run as administrator

---------- Post added at 05:19 PM ---------- Previous post was at 05:06 PM ----------

ANy1 Tried this method

if any1 is intrested to get gcam in the latest security patch you can try this method

https://www.youtube.com/watch?v=KmkFu_TCNM0&t=1s
[Xiaomi Mi A1 Guides, News, & Discussion] mayurwable93@gmail.com:
Thanks Brothers For Reply..

I've tried with updating driver and running as administrator..but everytime previous problem continues.. what can i do now?

_______________________________

Method shown in above video definitely cannot affect the OTA??
[Xiaomi Mi A1 Guides, News, & Discussion] Rithik™:
I however personally hasn't tried that method but by reading the comments it looks like it works well
[Xiaomi Mi A1 Guides, News, & Discussion] RivaLCF:
I didn't pay attention and bricked my phone. I deserve all of this. I am a terrible human being.
[Xiaomi Mi A1 Guides, News, & Discussion] Rithik™:
Bricked??
[Xiaomi Mi A1 Guides, News, & Discussion] RivaLCF:
I used the tool but didn't downgrade first. All data wiped when the tool tried to relock the bootloader I think. I thought everything stopped working but I was able to get into fastboot mode, and oem unlock the phone f room there aswell as flash TWRP. Everything is fine and I'm happy I didn't end with a brick phone just once more in short term.
[Xiaomi Mi A1 Guides, News, & Discussion] 25vikasp:
Which version is stable for slow motion video and in all the prospects