yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Pratham.p3:
I have an August update and my bootloader is already unlocked would it br okay if i flash this patched image to gain magisk access?

Thanks in advance.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] sclip:
Which version of GCam are you using?

Does GCam work

perfectly

with all its features, new and old?

I am on stock (and locked BL), but I am willing to install LineageOS (first choice) or Havoc if GCam works perfectly and the eMMC slowness issue is resolved.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] robchan1love:
Hi, I am on the latest stock rom with unlocked BL with Magisk installed through TWRP. I am happy with this until a stable mod rom is available. I did not install any extra GCam modules, I just used an android command-line app (Termux) and typed in the commands mentioned, then rebooted and then GCam worked without fault.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] amnher:
Is there no way to relock bootloader while keeping cam2api enabled?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Fblanco4559:
Y para la V 10.0.13.0?????
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] p4cm4n:
Same question here, will it work with last version? Thanks!
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Olmaik:
No.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] amnher:
I was wondering the reason behind

Cause the guide here from MI A1:

https://xdaforums.com/redmi-note-4/how-to/enabling-camera-2-api-stock-recovery-mi-t3782330

Can relock and keep cam2api
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Olmaik:
I wondering.. I follow this guide and have cam2 and i recieve every OTA update but since Android Q si coming i wonder if update to Q will work with open bootloader or i must close it?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] boyturnot:
stack :(

hi anyone can help me? i already finish but i am stuck in "andriodone" LOGO by doing the part "fastboot flash boot_b patched_boot.img and fastboot reboot" then im stuck! any one can help me pls :(
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] loutci:
hello guys after the first reboot i check usb debugging and then typed adb reboot bootloader then i downloaded the latest images 10.0.9.0 extracted the zip file and put the patched_boot.img and boot.img on adb folder typed the command fastboot boot patched_boot.img and the phone is stuck on android one,i was on android 9 and september patch so if you have something to reccomend that would be nice :P the commands i typed https://imgur.com/g0Khn5a

---------- Post added at 10:54 AM ---------- Previous post was at 10:11 AM ----------

i pressed volume down+powerbutton and used fastboot oem lock and my phone booted,my build number is PKQ1.180904.001.V10.0.14.0.PDIMIXM does anyone has the images that i suppose to use?i used the first method if that helps
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Arceus99:
I am unlocking boot loader first time on my device. I am on 10.0.14.0.

I followed all the steps in the procedure, unlocked bootloader by command "fastboot oem unlock" it rebooted and reset then "fastboot flashing unlock_critical" same happened.

But now when i flash the patched boot image, i gives error (image attached). I am using the correct patched boot.img from an xda forum.

If i try to refresh in xiaomi flash, the phone screen turns black and says press any key to shutdown.

The phone is not in a bootloop, boots fine and works fine but i cant root.

Please help me to root or to revert to locked bootloader.

EDIT:

Using a computer with usb 2.0 port fixes the issues.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] simoesjose:
Still work? Any new method? Thinking about trying to enable camera2api but im kinda noob yet.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Arceus99:
The method works flawlessly. You just need a computer with usb 2.0 and the aapropriate patched boot.img for your current software version. Which can be downloaded from:

https://www. the custom droid .com/root-xiaomi-mi-a2-a2-lite-android-pie-magisk/

Remove spaces in link

And follow all steps mentioned in main post
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Prithwis:
How do I confirm that nothing has changed in the system?

Mi A2 camera2 API enabled with first method i.e. without flashing. Gcam working fine. But seeing the warning "bootloader unlocked and software integrity not guaranteed" , wanted to fix the same. In adb shell window I ran a command " fastboot OEM lock" ( in phone developer option wasn't enabled). Resultant phone locked by miui. Panicked more.

Then again in adb shell window I typed " fastboot OEM unlock", " fastboot flashing unlock" , followed by " fastboot flashing unlock_critical" : resultant bootloader got unlocked. Then I typed " fastboot boot stock 10.0.15.0.img" (Enter) phone was in fastboot mode.

Everytime it tries to boot, it can't . Went to boot loop. Got tensed what a mistake I did.

In the evening I did a custom recovery by factory Data reset , option I got by pressing the power and volume up button together for few seconds and it booted into OS again. Set up the phone.

"Bootloader is unlocked Software integrity is not guaranteed" state.

Again I enabled camera 2Api as I did before through Termux app giving superuser permission to Magisk. Installed Gcam, working fine now. Sometimes some app showing the phone is rooted. Through Magisk hide option banking app is now running. Jio security app showing results " system image corrupted and phone rooted" Thought I never flashed any image in the process. Migisk is uninstalled but an icon is still there in the app drawer.

So do I confirm that nothing has changed in the system?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] thearorahimanshu:
anyone have patch boot.img of December update V10.0.18.0 ?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Aerobatic:
I was uploaded in appropriate thread: https://xdaforums.com/showpost.php?p=81220283&postcount=50 . Note I have not checked these uploads as I am pulling stock boot after OTA and then patching it myself.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] rbritton:
Does anyone know why booting the V10.0.18.0 patched imaged used to work for me, but now fails to boot whether I flash or use

fastboot boot patched_image.img

? The normal boot.img still works, and I tried patching that with the Magisk app, but that has the same result.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] minnuss:
I updated the guide for enabling v6 Gcam ports, but they are still unstable to use, latest Arnova v6 in test right now, heavy focus dots...
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] rasputine:
AFAIK, if you keep your bootloader unlocked, your phone will detected not certified and can't pass the SafetyNet. Right?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] minnuss:
[MENTION=5804269]rasputine[/MENTION], yes.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] kishd:
If you keep your bootloader unlocked you can pass safety net using magisk. Magisk also has a built-in superuser hide to hide superuser from apps that don't want root.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Chaedong Lee:
Thanks very much. It worked perfectly.

For someone who wants to recover from google backup, it would be better to recover right before installing magisk since camera 2 api will be disabled by factory reset.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] rasputine:
ahh okay, thanks for the info. :D

but i'm still find a way to bypass the wiping when relock the bootloader :(
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] kishd:
I tried this version and everything seems to be working very well.

https://www.apkmirror.com/apk/arnova8g2/

I used the latest for Android pie.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] minnuss:
[MENTION=4313092]kishd[/MENTION], I tried last night 5 of them, and 3 of 5 were unstable, everything works, if you don't mess with settings, but they will just exit from app at random times.

And other two had washed out pictures, and I did not want to even try to test them, because quality was not ok.

One had a problem with hdr+ applying render after the shot was taken...the circle of hdr+ apply would stuck.

Oh, and latest Arnova had focus dots problem.

So, result for now is, they work, but they are not stable or I'm not satisfied with end picture results.

I'm sticking with Arnova's v8.3b1: GCam-5.1.018-Pixel2Mod-Arnova8G2-V8.3b1.apk, until some other good v6 comes along.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] chudm:
This seems to be working ok:

GCam_Pixel3Mod_1.2beta_build.6.1.013.apk
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] amitschu:
OTA keep confirmed?

Did someone checked if is this method keeps OTA?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] chudm:
probably nobody knows until next month patch right? but it should work without problems if you disable the root and magisk
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] amitschu:
Theoretically, you can do the drill with old version, and check if OTA works. Am I wrong?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] minnuss:
I can confirm for OREO that OTA was working.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] ki69:
i read this in other topic

Is this line really not necessary?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] minnuss:
[MENTION=5910760]ki69[/MENTION], I don't know, didn't try without it.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] albinjorjj:
After installing magisik, what are things to do.

Please explain..
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Shifat Islam:
How to install twrp temporary in pie?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] hodolitsmate:
Can somebody help with a link to v9.6.17 Stock boot.img?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] minnuss:
Read the guide from Title 3. Enabling Camera2 api (lvl3)

You cannot install it, you can boot to twrp.

fastboot getvar current-slot

if it is slot a, then type

fastboot boot twrp.img

if your slot is b, then you must switch to a first.

fastboot set_active a

fastboot boot twrp.img

when you finish doing what you were doing in twrp, reboot into fastboot and then

fastboot set_active b

fastboot reboot

https://drive.google.com/drive/folders/1D9RlDZRupdriCyJM4p0ixvntPE2QPP9w?usp=sharing
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] albinjorjj:
I download magisk from apkmirror and open it then download a zip file having 17mb , I skip it's installation.

But phone is not getting reboot ?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] G1g3:
Do you guys think it's smart to uninstall already installed gcam using this method, and/or doing factory reset before the OTA Android 10 update?

Probably going to install it again after the update is done, just being careful not to let the update f*ck up my phone.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Dzives:
Android 10

Is it safe to update to Android 10 with unlocked bootloader and camera2api enabled?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Brabouk:
Yes I did it. Everything works, except stock camera app and camera2api isn't enable.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Nandeh:
Same here, stock camera doesn't work but camera2api still enabled after the OTA update, and Gcam working perfectly.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Brabouk:
yes still enabled but my optical stabilization doesn't work after update. That's the reason why I said it didn't work for me.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Syncsilent:
Hi my situation is the same, although I have not applied the update yet. I have unlocked bootloader and camera2api enabled.

In my case, would you recommend me to update or should I wait for another patched boot img for Android 10? Because that might be an issue because stock camera is not working.

AND Also may I know if, Is it worth it? To Update from Android 9 to Android 10 now? Like how tolerable the bugs right now?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] TonyTerry99:
After the update I no longer have the camera 2 api unlocked, is there a way to unlock them on android 10?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] SlickersX:
What Magisk Patched Boot Image for Mi A2 should I get for Temporary Root and enable the camera API2 if I have Android 10 and the Build Number is V11.0.4.0.QDIMIXM ? :)
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] francom21:
someone could enabled camera2api for android 10???
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Qyfaruxx:
Hi guys,

The interesting part is, i am now in android 10 with camera2api enabled. Im updating it dirrectly through OTA.

Gcam works but not the stock camera.

Currently only noticeable bug in android 10 is the stock camera crash but other than that all seems to work flawlessly(at least it is to me).

Navigation gesture is awesome for my preference. Seems to be smoother than before.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Mena404:
Is there any app that use MIA2 Front Flash, other than stock ?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Qyfaruxx:
Sorry i dont know any.

Gcam has this function on make the screen bright to give a bit of light on selfies
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] pero_ptica:
please..
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] NahuelMS:
I have a big doubt! Does having unlocked bootloader with no root the way it is needed for using gcam got safetynet not pass. Because i would like to use my bank app, etc, without any problem and still get OTAs
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] ki69:
I used this metod to activate camera2api in Android 9, and always get OTA updates. Now i upgrade to Android 10 and Stock Camera always crash.

If i make a reset i will loose Camera2APi, so i need again a patched january 2020 android 10 boot image.

My question is:

Does it worth factory reset? for sure it fix the stock cam, but if i enable camera2api again will crash again right? Or can we expect to a update of the stock camera that don´t crash? Or simple, can any one mod the stock camera that made it work with camera2 api enable?

Is really stupid that Xiaomi don´t activated camera2api from stock in Android10.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] NahuelMS:
Are you able to pass safetynet this way??
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] BlackMarine:
Guys I have updated my phone to Android 10. I have never unlocked bootloader. Considering me a noob in this context, can someone guide/link me how to install GCam?:confused:
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Pallab501:
Just updated today and did a factory reset now phone is buttery smooth but Camera2Api disable. Now how to re enable CameraApi2 with previous non root method?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Sivakumar$:
enabling camera 2 api crashes stock cam you can't use stock cam after that
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Nomaan Asim:
assuming you had cam2api enabled before...my question is : IS YOUR STOCK CAMERA WORKING??
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Pallab501:
No after update stock camera doesn't work.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Nomaan Asim:
[MENTION=3382541]minnuss[/MENTION]

is there anyway to make stock cam working? if not could you please post how to relock bootloader again ?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] erikaram:
Hey, I'm interested in enabling camera2api on Android 10 but I'm not pretty sure if this tutorial will work. Anyone with a Xiaomi Mi A2 running Android 10 have had success?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Nomaan Asim:
you have to wait untill someone posts recovery file for android 10.. this wont work for you!!

IT WILL DAMAGE YOUR PHONE IM AFRAID
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Tianhe:
I am running Android 10 on Mi A2 with Cam2Api enabled. I used Magisk Module and Gcam works ok but stock camera will not work

---------- Post added at 07:10 PM ---------- Previous post was at 06:51 PM ----------

I can extract the original recovery file (Magisk backs up the original) but it is in boot.img.gz format. Not sure whether I will be able to unpack and repack it properly for fastboot compatibility. Or somebody could extract it from Android 10 payload.bin
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] paulozullu:
I extracted and uploaded both boot.img and patched boot image to my Drive @ https://drive.google.com/open?id=1kSQaYP-E5gQFsoSNrHErSlFWOkWZBW4z
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Tianhe:
Patched with Magisk 20.3 ?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] paulozullu:
Yeap
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Kolci:
Hi, I have Android 10 and I would like to install gcam, can I use the tutorial as with Android 9?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] DJBhardwaj:
Yes, just make sure that you use the patched boot image for the Android 10 firmware that you have installed on your phone.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] PsK2010:
Unfortunately, the camera doesn't work with Android 10 : everything was fine with other versions but when I upgraded to Android 10 I can no longer use the front cam : the screen is dark and the phone seems to be frozen, I have to force shut it down by keeping the power button pushed for like 10s.

I'll try to patch again the system
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Nomaan Asim:
DUDES.... i used this method to unlock and enable cam2api now i want to disable cam2api can anyone guide me? [MENTION=2594770] DJBhardwaj[/MENTION]

---------- Post added at 11:08 PM ---------- Previous post was at 11:08 PM ----------

DUDES.... i used this method to unlock and enable cam2api now i want to disable cam2api can anyone guide me? [MENTION=2594770] DJBhardwaj[/MENTION]
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] KevMetal:
just do the instructions but you change the "1" value to "0"to disable it
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] albyzor:
Patched image v10.0.18.0.PDIMIXM

Greetings,

I need the stock boot and patched boot for PKQ1.180904.001.v10.0.18.0.PDIMIXM. I've searched everywere but it seems this version had some problems and no one have the files for it. I dont have any problems with it and i dont want to go to Android 10 cause i've heard there are multiple problems like fast charging not working. I hope someone can help me. Have a great day.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] DJBhardwaj:
Here are the boot images:

Stock: https://drive.google.com/file/d/1r4LSs75iv4pW8v4j3UHaafz0bYnT0XdA/view

Patched: https://drive.google.com/file/d/1CFFcMWZQry7cqLVMcvAIslVb7xaxhST0/view

As far as Android 10 is concerned, I haven't heard/read anything about fast charging not working. Since I don't own the phone anymore, I can't confirm as well. May be someone else here could have an advise for you.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] alibr:
I tried to update after rooting. I did as the instructions on the first post but I lost the root. Is it needed to root again after each OTA? Now I am on August patch 10.0.13 and I can't find the boot image
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Exxdeea:
Download this and extract it yourself:

http://bigota.d.miui.com/V11.0.13.0....QDIMIXM_20200819.0000.00_10.0_8702a6f736.tgz
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] salmonthefish:
anyone got 11.0.22.0 patched?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Aerobatic:
Suggestion: download https://xdaforums.com/t/fastboot-jasmine-xiaomi-mi-a2-fastboot-images.3824849/post-84672049 , unpack boot.img, patch it with Magisk.

Was also suggested in the post above yours.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] salmonthefish:
Had no idea how to patch boot images. haven't really done any rooting and flashing since the old oneplus one days. Welp, it worked. Got everything working. thanks. I just hope i don't have to be doing this on a monthly
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Absolute19:
Hi! i just received a MI A2, but is up to the day with Android 10 (V11.0.26.0.QDIMIXM) and i cannot find the patched_boot.img that suit it, do any of you have it? or a link to download it?

And i would like to know what G cam could you guys recommend me?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] RocketKing:
I need this image too. Stock boot at least. I can patch it. I can´t find it. Help!
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Absolute19:
Hey! i´m downloading the rom from the MI page, and i plan to extract the stock boot.img

I feverything goes fine, i will give it to to you

(I will post the LINK of Google drive)
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] RocketKing:
What do u meant when you say extract? Ive downloaded a fastboot v11.0.26 rom but its a 1.7gb folder. I can see an image folder inside containing a "boot.img" archive. But idk if that is the stock image or what.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Absolute19:
To this

I´m under the assumption is that, and i will patch it with magisk.

If a senior member could clarify, thanks you very much
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] RocketKing:
Yeah I have the same archive. If you can root patching this "boot.img" Please confirm me! Thanks!
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Absolute19:
Okaaay! I will see, i don't want to root i just want too enable camera 2 api
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] RocketKing:
Yeah I know, me too. But u need to temporarily root to do that anyway. Ill waiting ur results ;)
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] RocketKing:
Report: I tried to patch that image and didnt work for me. Hope someone can upload the v11.0.26... Stock or patched.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Absolute19:
Same here. What error do give you?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] RocketKing:
Finally I have Gcam working. Patching that boot.img image dude. With Magisk
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Herteria:
After reached the step "fastboot boot patched_boot.img " the device still reboot to fastboot mode do you have any advice
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] juanito9988:
hi I could have enabled the camera2 but I have some doubts. I installed the magisk reboot the phone and the root was left and camera 2 is still activated but when I want to do the unroot part I could not because the magisk is not installed and when I want to install it again in the case of get var it stays in waiting divice and it does not show me neither a nor b
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] kaiwanted:
You say that's enough to run following command: fastboot boot patched_boot.img

Do we need to specify slot A or B for this command as in command for flashing system: fastboot flash boot_a patched_boot.img?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Jamesismo:
No need to specify which one, cheers.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Herteria:
So I assume the patched_boot.img was not suitable for latest Nov patched
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Stavrosfil:
Hello everyone, does anybody know how i could patch my boot.img and create my own boot image from my firmware?

Thank you in advance!
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Herteria:
Hi, Guys thank you for your guide today I success to enable camera2.api without root yesterday I boot the wrong patched boot the correct one for me is 9.6.17 not 10. I'm here to confirm everything worked for this thred
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Neel@1234:
Use Magisk.
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] Kingmilindu:
Hello Everyone.Is there a Gcam with night Sight for Oreo?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] spevil07:
How can we disable it?

What commands do we need?
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] AsItLies:
You mean cam2api? I don't think anyone has ever asked that before...

Why would u want to do that? It *shouldn't* hurt anything to have it enabled, even if u don't use it.

One way to disable it would be a factory reset. Pretty harsh but that would definitely do it.

Cheers
[Xiaomi Mi A2 / 6X Guides, News, & Discussion] minnuss:
Same commands, just at the end of command value should be 0 (zero), instead of 1 and 5.