Hi, i came from mi A1 to A2, so i am facing problems with installing gcam with the same procedure as i followed on mi a1. But i looks like in MI A2 xiaomi has changed something.
Steps i did:
//for unlocking
1. unable oem unlock in developer options.
2. adb devices
3. adb reboot bootloader
4. fastboot oem unlock
//Again in fastboot we are unlocking critical partitions, and once again it will erase verything from the phone, so be sure to do the backup as needed.
5. fastboot flashing unlock_critical
//for enabling cam api2
1. In fastboot mode.
2. fastboot devices
3. fastboot getvar current-slot
4. fastboot boot twrp.img(official twrp for mi a2 for temp booting twrp)
also in twrp internal sdcard folder shows encrypted type folders why? and can't paste anything in sdcard folder?why?
5. installed magisk.zip from usb otg in twrp
6. fastboot reboot
7.adb shell
8.su
9.setprop persist.camera.HAL3.enabled 1
10.setprop persist.vendor.camera.HAL3.enabled 1
11.setprop persist.camera.stats.test 5
12.setprop persist.vendor.camera.stats.test 5
13.exit
14.reboot
15.unistalled magisk completely
everything till here works perfectly,, but when in fastboot i lock bootloader again by typing this command
#fastboot oem lock
also holding power down button while typing command
but still it again asks for factory reset, what i am doing here ? so that it doesn't factory reset again after locking bootloader? In mi A1 this works fine.
On mi a2, this trick does not work. It will wipe all data.
Yeah oem unlock or lock no matters you need to do factory reset
Maharram said:
Yeah oem unlock or lock no matters you need to do factory reset
Click to expand...
Click to collapse
so that means i can't install gcam with bootloader locked? or after reset camera 2 api remains enable?
Tashfin Shakeer Rhythm said:
On mi a2, this trick does not work. It will wipe all data.
Click to expand...
Click to collapse
so that means i can't install gcam with bootloader locked? or after reset camera 2 api remains enable?
vasu1 said:
so that means i can't install gcam with bootloader locked? or after reset camera 2 api remains enable?
Click to expand...
Click to collapse
I think yeah you can't install and also enabling gcam is modifying your system and u can't install any system updates with gcam enabled. So why u want to relock bootloader?
Related
Hello everyone ... I have a xiaomi mi5 in bootloop.
- Initial ROM fake seller (learned later)
- I tried to update with MiPcSuite and is now in bootloop.
- I DO NOT unlocked bootloader
- I did NOT access Xiaomi account on mi5 (so I can not unlock it now even if I have permission from Xiomi)
- First of all, I activated the "developer mode" and "USB debugging".
- I can only enter Fastboot mode
-I Can not use the recovery mode
- I can not get into EDL in any way: no adb, no tool here (with the tool says restarting EDL success but restarts and reappears MIUI logo, does not turn on the red light and nothing appears in the device manager)
Thank you
Try to wipe system and install
1. Go to fast boot.
2. Wipe all partitions
Code:
> fastboot erase boot
> fastboot erase recovery
> fastboot erase system -w
flash fresh fastboot image from Mi
Code:
>fastboot flash system <image name>
It works? It has already been tested? I could not find any other guide that told you to do this ... I will not say that I do not trust this, but I want to do other s-h-i-t! I remember that I have the bootloader locked, and I can not go to EDL mode ... thank's
Not sure you are allowed to run the flash command when you're on locked bootloader. I'd try it without erasing, since flashing overwrites the partition in question anyway.
I have experience like you... Get bootloop.
But when I wipe/erase all of internal memory through Mi PCSuite China version, it's boot normally and MiUI8 started.
I tried the same method to apply the official china stable rom on my friend Mi5, it's bootloop... Then when I wipe all, it's boot normally.
Hope this will help you...
vmancer said:
I have experience like you... Get bootloop.
But when I wipe/erase all of internal memory through Mi PCSuite China version, it's boot normally and MiUI8 started.
I tried the same method to apply the official china stable rom on my friend Mi5, it's bootloop... Then when I wipe all, it's boot normally.
Hope this will help you...
Click to expand...
Click to collapse
how do you wipe using mi pcsuite? which button did you used?
Limerade said:
how do you wipe using mi pcsuite? which button did you used?
Click to expand...
Click to collapse
I think 3rd button..
You can get help from Google translate app.
Take photo from Google Translate then translate to your language.
Use the Chinese mi pcsuite if the English one doesn't recognize the phone. I am not sure if you cannot enter in any form of recovery you have luck with that though.
Fastboot and miflash that was suggested will not work with locked bootloader.
Your best and last bet is to use EDL mode. The issue with Mi5 is that it doesn't go easily in EDL mode. not with key combo at least. Have you tried this? https://forum.xda-developers.com/an.../guide-how-to-reboot-to-edl-fastboot-t3394292. Otherwise, check for deep flash cable or make one yourself.
in lineage's Usermanual it says after a few steps:
Hold Volume Up and Power buttons simultaneously. Continue to hold both buttons until the “MI” logo appears on the screen, then release.
I get only fastboot-image nothing else.
i did the following comands:
> fastboot erase boot
> fastboot erase recovery
> fastboot erase system -w
>fastboot flash recovery recovery twrp-3.1.1-0-gemini.img
Both Power and + or Power and - : Same result: Fastboot.
I had unlocked the phone and usb-debugging was enabled.
I do use Linux by the way
Hey, did you solve it? I have same problem and I'm desperate
No I didn't solve the problem. I realized that I completely was wrong. I had an Xiaomi Mi 5c in stead of Xiaomi Mi 5.
I finally was able to flash it because I choses the wrong Recovery and Rom.
Then I sold it and bought a Xiaomi Mi 5 which I wanted because it is supported by lineageos...
?
whatadan said:
No I didn't solve the problem. I realized that I completely was wrong. I had an Xiaomi Mi 5c in stead of Xiaomi Mi 5.
I finally was able to flash it because I choses the wrong Recovery and Rom.
Then I sold it and bought a Xiaomi Mi 5 which I wanted because it is supported by lineageos...
?
Click to expand...
Click to collapse
Hahahah what a story man, I fear I didn't choose the wrong Rom and I have a good brick :') Lineageos is just amazing, have fun!
.....And anyway, in the end I had solved it with a home-made EDL cable 3 years ago ???...and my Mi5 is still alive in my hands 3 years after ?
I had forgotten this thread
I hope you can now sleep well again at night now that you know that everything went well ?
Goodbye
My mi a2 last updated to 19/04/05 pie version, then i install the Google camera using below steps..
1. Turn on debugging mode/oem & turn off the phone
2. Then power button+vol dwn Fastboot mode & connect to pc (Pc already have the adb)
3. In pc>adb>folder>Cmd> type "fastboot oem unlock"
4. Then factory reset the phone and reboot again to fastboot mode
5. Then boot the patched image for phone
6. Then install the magisk and gcam work perfectly.
Simply i used these methods
the***********.com/enable-camera2-api-xiaomi-mi-a2-lite-guide/
But then I tried to relock the bootloader, using below commands on cmd
1. "adb reboot-bootloader"
2."fastboot oem lock"
I tried these 2 commands 4 or 5 times
But phone is not power on with locked bootloader. Then I unlock again oem and try again,, But not working,
Then i unlock bootloader again and try these commands to lock it again,
1. "adb reboot-bootloader"
2."fastboot flashing lock"
3. "fastboot oem lock"
Unfortunately it is not work, also i can't give command "fastboot oem unlock", also i can't turn on my phone, Please help me... I want to restore my phone to working mode... Please help me, Quick, urgent :crying::crying::crying::crying:
No one is replying, I asked two questions about root and custom rom but these d!cks are so enormous that they don't want to help anyone else:
shailendra1993 said:
No one is replying, I asked two questions about root and custom rom but these d!cks are so enormous that they don't want to help anyone else:
Click to expand...
Click to collapse
Bro, you have to flash non patched boot.img before relocking bootloader.
After you did all of above for enabling gcam, you have to flash stock/ non patched boot img.
Btw, if you relock bootloader gcam wont work any more.
And you have to be patiente for solution.
shailendra1993 said:
No one is replying, I asked two questions about root and custom rom but these d!cks are so enormous that they don't want to help anyone else:
Click to expand...
Click to collapse
Yeah, i need a solution for it, but no one answering, My phone load fastboot mode only,:crying::crying:
Androidman12345 said:
Yeah, i need a solution for it, but no one answering, My phone load fastboot mode only,:crying::crying:
Click to expand...
Click to collapse
Flash a full fastboot image. Relock the bootloader and enjoy android one.
The lack of camera2 api is better than a paper weight?
Hi All, as this device is fairly new and there is not much clarity on things so, I decided to create a master guide as you see below. I am also attaching a PDF version of this guide as I have not formatted this XDA post to what I feel it should be like. You may download and follow that, I will keep updating things as I find.
Lets start
1. Unlock Bootloader1.1 Apply for Bootloader Unlock
Enable developer settings
Go to Settings>About phone/My device> All specs> Hit MIUI Version 8 times
Access Developer Settings from Settings>Additional Settings
Enable OEM Unlocking option
Now login to your desired Mi Account that you wish it to be associated with your device (Mi account should have a mobile number registered for OTP and verification sometime asked by MI flash unlock tool)
Your unlock bootloader wait time starts now. Wait for 7 days (168 hours from the time you added MI account) to unlock bootloader
1.2 Unlocking BootloaderSo you have crossed the wait period…. Now follow below to unlock assuming you have all the USB drivers for Mi devices (usually auto installed when you connect mobile)
Warning: All your userdata (including pictures and files) will be wiped out
Download official Mi flash unlock tool from this link: https://miuirom.xiaomi.com/rom/u1106245679/5.5.224.24/miflash_unlock-en-5.5.224.24.zip
Boot into Booloader: Power off your mobile then hold Volume Down + Power Button till fastboot bunny pops up
Open Mi Flash unlock tool downloaded in step 1
Sign in with same account that you used to sign in in Developer Settings in step 1.1.d. It may ask to verify your account with OTP. do it.
Click Unlock on the tool.
Your device will be unlocked and rebooted. Wait till reboot.
Congrats… you have an unlocked mobile device now
Now let’s go to Rooting your device for which we will have to flash TWRP to Mobile
2 TWRP Flash and Rooting2.1 TWRP Flash
Download and Install Minimal ADB and Fastboot for windows for this link: https://androiddatahost.com/wp-content/uploads/Minimal_ADB_Fastboot_v1.4.3.zip
Download unofficial TWRP (only one available as of writing this guide) from here: https://sourceforge.net/projects/xi....6.0_11-0_LOCAL-20220203-01-vili.img/download and rename it to twrp.img
Also download Magisk from below link: https://github.com/topjohnwu/Magisk/releases/download/v24.0/Magisk-v24.0.apk we will use it next section for rooting.
Rename the downloaded magisk file from magisk.apk to magisk.zip and copy it to your device’s storage
Copy the above twrp.img file to Minimal ADB and Fastboot folder (not necessary if you know some directory navigation using command prompt)
Boot mobile into bootloader (follow 1.2.b)
From your Minimal ADB and Fastboot folder open Cmd here.exe file to access the ADB tool
Connect your device to PC
Verify if device has connected successfully using the command below
Fastboot devices
This should return your device id
Now boot into TWRP using below commands
Fastboot boot “twrp.img” if you pasted twrp.img in minimal adb and fastboot folder
Fastboot boot “path to twrp.img” if you did not move it to the minimal adb and fastboot folder
Let the device boot to TWRP
In above step we just booted by TWRP which is temporary. Now let’s flash it to make it permanent:
Go to Advanced settings in TWRP and click Flash Current TWRP
Reboot to TWRP
2.2 TWRP Backup of Current Rom
You should have a working TWRP
Boot to TWRP and navigate to Backup section
Select all partitions and swipe to confirm
If you see error in backing up, uncheck Data and EFS partition backup
The backup should complete successfully
Have this backup copied to a PC for emergency wipout of your mobile
2.3 Rooting/Flashing Magisk
Go to Install in TWRP and select magisk.zip you copied in step 2.1.d
This will flash magisk and root your device. Now reboot to system from recovery
Once you have the device booted, rename the magisk.zip to magisk.apk again and install the magisk app on device
You may update if you see any updates to magisk or app
2.4 Passing Safetynet
Download this magisk module zip from here: https://drive.google.com/file/d/1QJHPpL4R8fcxjB35XbcpaCOipKzpvL2I/view?usp=sharing
Go to magisk app settings and enable Zygisk (beta) also enable Enforce Deny List
Select Hide the Magisk app and give any desired name for Magisk to hide its identity
Now go to modules page in Magisk app.
Select Install from source/storage option and chose the downloaded safteynet zip
Reboot
This will pass safetynet but still Indian bank apps won’t work. Keep following below for clear
Go to magisk settings and enter Configure DenyList
Add all the apps you want to hide magisk and root from (such as phonepe, Gpay)
Don’t leave any service from the selected apps unchecked
3. Flash EU RomWarning: All your userdata (including pictures and files) will be wiped out
A TWRP backup of current rom is recommended before following the next steps
You can see section 2.2 for the instruction on backup
Download Fastboot EU rom from here: https://androidfilehost.com/?fid=17825722713688263895
Extract all the contents in zip file to any normal folder
We will be using Bootloader/Fastboot mode. Boot into Bootloader: Power off your mobile then hold Volume Down + Power Button till Fastboot bunny pops up
Connect your device to PC
From the extracted folder Open windows_fastboot_first_install_with_data_format.bat(for windows).
You may execute appropriate similar named file if you are running Linux or MacOS
The EU rom flashing process will start. Hit “Y” on keyboard to accept Formatting
Wait patiently while the PC does its Job.
You may see a long pause post “writing Cust” command depending on PC configuration. You should wait for 5 minutes at least, then try hitting any letter key on your keyboard, the process continues this way.
You may hit letter key whenever you see unusual pauses during pushing of super partition file sparse sending 1 of 9 to 9 of 9
Wait till process finishes and reboots
For TWRP and Rooting you can follow the same guide in section 2.
Updating to Miui13/Android 12 EU Rom
Check out this guide to Update to Android 12
Happy Rooting… Njoy your device.
Lastly.. All the credit goes to respective owners, I have just compiled everything together and in an easy manner. PM me for credits.
Do let me know if you have any suggestions and corrections.
Thanks & Regards,
Abdus Saboor Asad
Reserved
Reserved
Much appreciated, good overview.
Will try when I get my bootloader unlocked.
Rammetje.b said:
Much appreciated, good overview.
Will try when I get my bootloader unlocked.
Click to expand...
Click to collapse
You are welcome.
sasaboor64 said:
You are welcome.
Click to expand...
Click to collapse
Quick question if you allow me.
The unlock boot loader timer starts ticking even without hooking the phone up to the mi unlock tool? Just the dev options, OEM unlock and login to mi account is sufficient?
I remember I messed around with this when I tried to unlock my Poco F1 at the time.
Thanks
Bram
Rammetje.b said:
Quick question if you allow me.
The unlock boot loader timer starts ticking even without hooking the phone up to the mi unlock tool? Just the dev options, OEM unlock and login to mi account is sufficient?
I remember I messed around with this when I tried to unlock my Poco F1 at the time.
Thanks
Bram
Click to expand...
Click to collapse
Good question... I think we should hook once, that's how I unlocked. But I feel it should work without hooking as well.
Anyone should test it and update for us the other way.
When i download the TWRP and boot into TWRP (through fastboot boot "twrp.img"), my touch screen will not work anymore. How could i fix this?
working on miui 13 android 12?
paulboqs said:
working on miui 13 android 12?
Click to expand...
Click to collapse
you may go through the last thread in my post for miui 13 related rooting. this guide is for miui12 rooting and there is no TWRP yet for miui13 for our device
at what point exactly will all my data be wiped?
yuukiw said:
at what point exactly will all my data be wiped?
Click to expand...
Click to collapse
the moment u hit unlock after your waiting period...
sasaboor64 said:
the moment u hit unlock after your waiting period...
Click to expand...
Click to collapse
is there a way to back upp all apps + data?
MIUI13 Android12 How to enter bootloader?
I'm try but FASTBOOT "orange" Showing?
how to enter bootloader? any driver or any solution?
m38d1 said:
MIUI13 Android12 How to enter bootloader?
I'm try but FASTBOOT "orange" Showing?
how to enter bootloader? any driver or any solution?
Click to expand...
Click to collapse
Please make sure you are having latest ADB installed on your machine. The best option is to install Android Studio . Secondly make sure to enable USB debugging .
You can reboot to fastboot through adb commands.
Once you are connected to ADB enter the command below.
ADB reboot Bootloader.
This will reboot to fastboot mode.
Fastboot devices
The above command shows whether you are on fastboot or not.
Now open the unlock tool and unlock your bootloader. Else if you are confident in recovering your device. use the command below
Fastboot flashing unlock
Hope the above helps.
AwkwarddWhale said:
When i download the TWRP and boot into TWRP (through fastboot boot "twrp.img"), my touch screen will not work anymore. How could i fix this?
Click to expand...
Click to collapse
did you found a solution?
this is the first time this happen to me since mi3, RHnote5,7, pocox3nfc, mi11tpro.
tactil isn't working as soon i ented the twrp.. and theres no orange fox for this devices.. shame.
Jctatis said:
did you found a solution?
this is the first time this happen to me since mi3, RHnote5,7, pocox3nfc, mi11tpro.
tactil isn't working as soon i ented the twrp.. and theres no orange fox for this devices.. shame.
Click to expand...
Click to collapse
There is no solution, there is no twrp for Android 12 / MIUI13 yet.
Well I did manage to make it work using a mouse otg. But it useless since theres no storage to flash
mm_rajesh said:
Please make sure you are having latest ADB installed on your machine. The best option is to install Android Studio . Secondly make sure to enable USB debugging .
You can reboot to fastboot through adb commands.
Once you are connected to ADB enter the command below.
ADB reboot Bootloader.
This will reboot to fastboot mode.
Fastboot devices
The above command shows whether you are on fastboot or not.
Now open the unlock tool and unlock your bootloader. Else if you are confident in recovering your device. use the command below
Fastboot flashing unlock
Hope the above helps.
Click to expand...
Click to collapse
thanks
The problem was the phone cable
This TWRP from the first post is Android 12 too?
I was trying to install Pixel Experience rom for my device.But when I flash the recovery image of pixel experience it was not installed and I was stuck in fastboot mode.Then I tried to somehow the Pixel Experience recovery load and phone go in a loop show logo poco and restart again and again. The fastboot mode did not coming after that i tried to install a rom using sp flash tool and it was not worked but fastboot mode now coming and I now tried to flash using miflash tool it shows boot in lock state.My bootloader was locked again somehow. Then to bypass this I used some python commands and unlock the bootloader and using flash I flashed my original rom but after that, another problem occurred like google and mi account not being connected google services not working, and mi account also another thing was ok. How can I solve this.?please help. I can't use google services and can't log in mi account also. My OEM unlocking status permanently on it doesn't have an edit option. I used these files to unlock the bootloader.I follow this article
Load the MTKClient: https://github.com/bkerler/mtkclient
After the install (drivers are needed for windows / using linux is preferred) type:
"python mtk da seccfg unlock"
and connect the device (off) with vol- and vol+ buttons pushed.
You may have to use the command "fastboot flashing unlock" or "fastboot oem unlock" in fastboot afterwards.
Hi all,
I have a Xiaomi Mi 11 (Global) that is currently stuck on Fastboot screen. I have installed drivers and MiFlashPro on my PC and Xiaomi is recognised by MiFlash but when I try to flash a global fastboot rom, it comes back with
remote: Erase is not allowed in Lock State
I can even see the phone listed with fastboot devices command. It just refuses to boot into system or allow me to reset/wipe. Also, I am unable to boot into recovery.
Help would be appreciated.
Thanks in advance.
masteriori said:
Hi all,
I have a Xiaomi Mi 11 (Global) that is currently stuck on Fastboot screen. I have installed drivers and MiFlashPro on my PC and Xiaomi is recognised by MiFlash but when I try to flash a global fastboot rom, it comes back with
remote: Erase is not allowed in Lock State
I can even see the phone listed with fastboot devices command. It just refuses to boot into system or allow me to reset/wipe. Also, I am unable to boot into recovery.
Help would be appreciated.
Thanks in advance.
Click to expand...
Click to collapse
It is necessary unlock bootloader first.
crusaderrs said:
It is necessary unlock bootloader first.
Click to expand...
Click to collapse
I can't unlock the bootloader the normal way because I can't get into system and enable OEM unlocking/USB debugging in Settings.
masteriori said:
I can't unlock the bootloader the normal way because I can't get into system and enable OEM unlocking/USB debugging in Settings.
Click to expand...
Click to collapse
Follow this steps to unlock the bootloader
crusaderrs said:
Follow this steps to unlock the bootloader
Click to expand...
Click to collapse
Thank you for the link but I have already tried that and since I wasn't signed into the phone, it's not letting me unlock the bootloader.
The process fails at the second stage and tells me add account on the phone in Settings but I can't go into system to do that.
Thanks
Also, do I need to unlock the bootloader even if to install firmware from the same region as the phone? My phone's model is M2011K2G which I believe is for a Global version and I've tried flashing Global fastboot rom but no luck.