[GUIDE] Google Camera + Locked bootloader WITHOUT losing data AFTER OREO 8.1 - Xiaomi Mi A1 Guides, News, & Discussion

Hi all!
You have just upgraded to Oreo 8.1, you want to use Google Camera but you need locked bootloader and you want to preserve your data?
This IS possible, but you MUST follow all steps otherwise you may lose your data, so do it at your own risk. (you have been warned)
WARNING !!!
After May update unlocking/relocking bootloader will wipe your data. This can be avoided if you hold Vol- when running these scripts.
Let's start:
-Read carefully all steps twice
-Download support tool HERE
-Install ADB drivers (option 0 from support tool)
-Enable USB debug and OEM unlock on Mi a1
-Connect Mi a1 to PC with USB cable
-Select option 1 on support tool. Phone will be rebooted in fastboot mode.
-Confirm pressing Y
BEFORE PRESSING ENTER ON PC YOU MUST PRESS AND HOLD VOL- ON MI A1
-Press ENTER
Bootloader should be unlocked and phone should be in fastboot mode without losing data.
Press any key on PC running support tool and phone will be booted with temporary root access.
-Install Magisk Manager (OPTION 2 support Tool)
-Open command prompt in adb folder on PC and type:
Code:
adb shell
then
Code:
su
Shell should ask Superuser access: from Magisk Manager allow root access.
In the same Command prompt type:
Code:
setprop persist.camera.HAL3.enabled 1
-Reboot phone and test if API2 are enabled (Google Camera port shouldn't crash anymore)
-Uninstall Magisk Manager (optional)
(Optional) If you have an unmodified system you can relock bootloader.
-Select option 3 in support tool
-Confirm
BEFORE PRESSING ENTER ON PC YOU MUST PRESS AND HOLD VOL- ON MI A1
-Press Enter
Bootloader will be relocked without losing data
Hold power button until phone reboots
OTA should work fine.
Camera2 Api should remain active until factory reset.
Credits:
@flex1911
@IjazCI

Have you tried this trick?

yes it worked.. !!! thanks @sipollo

Worked for me , thanks

So trick is pressing vol- when executing "fastboot oem unlock" & that will skip wipe.
Thank ?

.:Addicted:. said:
So trick is pressing vol- when executing "fastboot oem unlock" & that will skip wipe.
Thank ?
Click to expand...
Click to collapse
Yes, but after that if you boot TWRP data will be wiped anyway. (For security purposes)

Anyway in this guide TWRP is not booted, only Magisk-patched boot is used. So no wipes

I used this method to bypass wipe. If i reboot after the unlock/lock command, it does not perform a wipe. And I booted to twrp and executed some adb commands also without wiping.

solis_f said:
I used this method to bypass wipe. If i reboot after the unlock/lock command, it does not perform a wipe. And I booted to twrp and executed some adb commands also without wiping.
Click to expand...
Click to collapse
If I understood correctly wipe is performed only the first time you boot TWRP after changing bootloader status. Then you can boot TWRP without problems, i've done it several times.

I'm stuck on the su command nothing happens on the magisk manager... And in the cmd it shows "su: nothing found"... can anyone help?

haftzes said:
I'm stuck on the su command nothing happens on the magisk manager... And in the cmd it shows "su: nothing found"... can anyone help?
Click to expand...
Click to collapse
If you open Magisk Manager says that Magisk is installed or not?

sipollo said:
If you open Magisk Manager says that Magisk is installed or not?
Click to expand...
Click to collapse
Not installed...

haftzes said:
Not installed...
Click to expand...
Click to collapse
Go where did you extract tool, open prompt and type FILES\adb reboot bootloader, then when in fastboot mode type FILES\fastboot boot bootmagisk.img. Phone should boot with temporary root. Continue following the guide.

sipollo said:
Go where did you extract tool, open prompt and type FILES\adb reboot bootloader, then when in fastboot mode type FILES\fastboot boot bootmagisk.img. Phone should boot with temporary root. Continue following the guide.
Click to expand...
Click to collapse
followed the instractions but phone stuck on android one screen ... what should i do know ?

haftzes said:
followed the instractions but phone stuck on android one screen ... what should i do know ?
Click to expand...
Click to collapse
Press power button and vol- until phone reboots to fastboot and retry with fastboot boot FILES\bootmagisk.img Sometimes Magisk makes this jokes...

sipollo said:
Press power button and vol- until phone reboots to fastboot and retry with fastboot boot FILES\bootmagisk.img Sometimes Magisk makes this jokes...
Click to expand...
Click to collapse
done !!! thanks !! also i can enable EIS now ??

haftzes said:
done !!! thanks !! also i can enable EIS now ??
Click to expand...
Click to collapse
Some users say you have to type setprop persist.camera.eis.enable 1 but for me it is not necessary, you can enable eis in Google camera video options. Reboot and try yourself.

sipollo said:
Some users say you have to type setprop persist.camera.eis.enable 1 but for me it is not necessary, you can enable eis in Google camera video options. Reboot and try yourself.
Click to expand...
Click to collapse
No data will be wiped ???

Amanpreetsingh said:
No data will be wiped ???
Click to expand...
Click to collapse
If you follow carefully all steps your data will be safe.

sipollo said:
If you follow carefully all steps your data will be safe.
Click to expand...
Click to collapse
With this method ota will work or not ??

Related

Honor 6 C [DIG-L21HN] How to root ?

Hi I've unlocked the bootloader of my phone but I can't find any recoveries to push through ADB, therefore I can't flash SU. Does someone have a solution ?
Allright, for the newcomers, I've found a solution for this : (it is very important that you don't update your rom if you've rooted your phone, unless you want a 150$ brick I guess !)
Don't forget to install adb before anything
1. Enable USB debugging in developers option.
2. Connect your phone to a computer and then launch cmd. Type «adb reboot fasboot».
3. Once in fastboot mode we will flash TWRP by typing this : «fastboot flash recovery 1streco.img».
4. Unplug and reboot your device, on the nag screen keep pressing the up volume button to enter recovery. If it doesn't work then choose shutdown and hit all three buttons while it's booting.
5. Once you are in TWRP, backup everything to extsdcard.
6. Go to wipe and format /data and wipe it under advanced wipe. DO NOT TOUCH ANY OTHER PARTITION !!! ONLY DATA.
7. Once it's done reboot the device. You should have a message telling you that the encryption failed, click reset phone.
8. It should launch TWRP choose reboot to bootloader.
9. Once in fastboot mode type this : «fastboot flash recovery 2ndreco.img» then type : «fastboot reboot».
10. Your phone should now display : «Factory reset low level» when you click reset phone. Once it's done it will automatically reboot but don't let it finish his boot sequence yet. On the nag screen keep pressing the up volume to enter recovery and then choose shutdown.
11. Boot in fastboot mode again and type : «fastboot flash recovery 1streco.img», then : «fastboot reboot».
Hold the vol.up button while on nag screen to enter TWRP.
If you don't enter TWRP after you typed fastboot reboot and hit the vol.up button but you enter erecovery that's ok, in this case what you need to do is to choose shutdown. Then hold vol.up, vol.down and power buttons to enter TWRP ! Go to install and flash magiskv13.3.zip and voilà your phone is now rooted !
I've not tried but I think you could restore the data partition with TWRP once you've done all those steps but I can't guarantee you anything so this is why I've told you to backup your data.
1streco.img file link here
2ndreco.img file link here
Magisk v13.3 link here
Si I've been able to install twrp but when I try to flash SuperSu.zip it doesn't work. It's crazy !
For those who wants to know, I've tried everything and the only way to go is to format and wipe data in order to disable dm-verity. But if you do that you won't be able to go further because the rom asks you to crypt your datas before continuing....
Ilovelife76 said:
For those who wants to know, I've tried everything and the only way to go is to format and wipe data in order to disable dm-verity. But if you do that you won't be able to go further because the rom asks you to crypt your datas before continuing....
Click to expand...
Click to collapse
hi, please you can explain me how to obtain root? I have unlocked the bootloader of my phone. Sorry my english. thanks
I'll explain it when I'll be back home and I'll upload files here. You will lose everything tho so backup all your data now
Ilovelife76 said:
I'll explain it when I'll be back home and I'll upload files here. You will lose everything tho so backup all your data now
Click to expand...
Click to collapse
So, Ilovelife76, have you managed to root your Honor 6C successfully? (And how, if so? )
Ilovelife76 said:
I'll explain it when I'll be back home and I'll upload files here. You will lose everything tho so backup all your data now
Click to expand...
Click to collapse
Long-time away from home
I Need to root my Honor 6C... Can anyone help me ?
sub7even12 said:
I Need to root my Honor 6C... Can anyone help me ?
Click to expand...
Click to collapse
He is away from home it seems and no confirmation on rooting. More wait.
Ilovelife76 said:
I'll explain it when I'll be back home and I'll upload files here. You will lose everything tho so backup all your data now
Click to expand...
Click to collapse
Still away from home.
Here's the solution
Hi guys ! Sorry for the wait but here it is, my tutorial to the graal, root on this device :
1. Enable USB debugging in developers option.
2. Connect your phone to a computer and then launch cmd. Type «adb reboot fasboot».
3. Once in fastboot mode we will flash TWRP by typing this : «fastboot flash recovery 1streco.img».
4. Unplug and reboot your device, on the nag screen keep pressing the up volume button to enter recovery. If it doesn't work then choose shutdown and hit all three buttons while it's booting.
5. Once you are in TWRP, backup everything to extsdcard.
6. Go to wipe and format /data and wipe it under advanced wipe. DO NOT TOUCH ANY OTHER PARTITION !!! ONLY DATA.
7. Once it's done reboot the device. You should have a message telling you that the encryption failed, click reset phone.
8. It should launch TWRP choose reboot to bootloader.
9. Once in fastboot mode type this : «fastboot flash recovery 2ndreco.img» then type : «fastboot reboot».
10. Your phone should now display : «Factory reset low level» when you click reset phone. Once it's done it will automatically reboot but don't let it finish his boot sequence yet. On the nag screen keep pressing the up volume to enter recovery and then choose shutdown.
11. Boot in fastboot mode again and type : «fastboot flash recovery 1streco.img», then : «fastboot reboot».
Hold the vol.up button while on nag screen to enter TWRP.
If you don't enter TWRP after you typed fastboot reboot and hit the vol.up button but you enter erecovery that's ok, in this case what you need to do is to choose shutdown. Then hold vol.up, vol.down and power buttons to enter TWRP ! Go to install and flash magiskv13.3.zip and voilà your phone is now rooted !
I've not tried but I think you could restore the data partition with TWRP once you've done all those steps but I can't guarantee you anything so this is why I've told you to backup your data.
1streco.img file link here
2ndreco.img file link here
Magisk v13.3 link
Hey, great that you found your way home.
Ilovelife76 said:
1streco.img
2ndreco.img
Click to expand...
Click to collapse
Can you tell us a little more about these two files? Where have you found them? (Not wanting to sound too paranoid but you know...)
I've found 1streco.img on a Chinese board. It's the work of a guy who managed to make TWRP available to us, users of honor 6c. The second one is the standard recovery image of Honor 6c. Those files are good, don't worry. Once your phone is rooted and everything works good, you can of course update magisk through TWRP to the lastest version.
OK, I have been trying around now for an hour or so... I have one real problem and one possible problem:
1. (the real one) Using Win7 64 bit, each time I send the the phone into fastboot mode, the system tries to install "MTP USB device" drivers... without any success so far. That's why the phone boots normally again. I haven't been able to solve that so far (installed HiSuite for example, didn't help).
2. (the possible one) Should the bootloader be unlocked? If yes, I have to admit I haven't found a way to do that so far. :-/
Of course the bootloader must be unlocked before doing anything, you can request a code here on Huawei website : http://en.ui.vmall.com/plugin.php?id=unlock
bravo there is machine back or full backup with recovery
Did you manage to root your phone ?
beautiful, can you install a module on magisk? if yes how because when installing the modules I get a failure when editing magisk.img thanks ?
No, you can't because of dm-verity, you.can manually install via recovery tho.
For the Russian version 6s failed to implant. ADB reboot fastboot this command does not put the phone in fastboot mode.

[GUIDE] How to unlock bootloader on Nokia 3

*Unlocking bootloader will remove all your data!*
I'm using Windows 7, and that's the steps i did. (it should be simmilar for other systems too)
Getting code:
Code will look simmilar to this: DB1ED223C5537BA756FB0671E425D650
Method 1 (no root):
Go to
https://passwordsgenerator.net/md5-hash-generator/ copy paste serial number and click generate. Then you should see code in "MD5 Hash of your string". You can also go to simmilar md5 hash generator sites, but this site automatically converts small letters to big letters.
Method 2 (root):
Okay, this is new method that is much easier and you don't need to send IMEI and wait for @the_laser to give you code. Go to terminal emulator, type su and execute it. Then type this and execute it:
redweaver said:
Actually the command is
echo -n NE1GAM4770133666 |md5sum |tr [:lower:] [:upper:]
If you don't use the -n flag, the newline character is also passed and you get a different result
Click to expand...
Click to collapse
Unlocking bootloader:
Download platform-tools which activates adb and fastboot commands (first you need Nokia 3 driver installed if you didn't)
Nokia 3 driver: http://www.devfiles.co/download/3iK0k7Sv/Nokia_3_USB_Drivers.zip
platform-tools Windows: http://www.devfiles.co/download/KtLsN6fX/platform-tools-latest-windows.zip
platform-tools Mac: http://www.devfiles.co/download/OkrfluP0/platform-tools-latest-darwin.zip
platform-tools Linux: http://www.devfiles.co/download/vk5DudZX/platform-tools-latest-linux.zip
Enable usb debugging in Developer options before running adb. To get Developer options, go to settings, about phone and press build number 7 times. Also enable OEM unlock.
Now Connect phone to computer via usb and enable usb file transfer, run cmd as administrator, then type this command which runs adb:
chdir C:/Users/John/Desktop/platform-tools (this is just a example, you need to type your own location of platform-tools)
then type this command to check is your device connected to adb, it will show serial number of your device, if it hangs at waiting device, then you need to reinstall drivers (if you're doing this first time, then it will ask to allow usb debugging on your computer, just tick always allow from this computer and click OK)
adb devices
then type this command to reboot to recovery (you can boot to recovery by holding power on + volume up (only with usb connected) if this command doesn't works)
adb reboot recovery
when booted to recovery, choose reboot to bootloader option with volume sliders (this will boot to fastboot)
when booted to fastboot, it will show text 'FASTBOOT MODE' in down-left corner
now type this command to check is your device connected properly to fastboot.
fastboot devices
if it show characters like 0123456789ABCDEF or simmilar then it is connected properly, if it hangs on waiting device, then you need to reinstall drivers like mentioned above.
Android Nougat (7.0 & 7.1.1):
Now type these commands to unlock bootloader
fastboot.exe -i 0x2e04 oem key (type your key after oem key)
fastboot.exe -i 0x2e04 oem unlock
then press volume up, when asked
Android Oreo (8.0 & 8.1):
First download NE1-0-215H.lk.bin:
https://my.pcloud.com/publink/show?code=XZaLMs7ZclQ2wvKwSb0ofUraMmrsiHh6uk1X
Now type these commands to unlock bootloader
fastboot oem dm-verity <your_unlock_key>
fastboot flash lk NE1-0-215H.lk.bin
fastboot reboot-bootloader
Proceed your unlock procedure.
If you have problem on flashing the lk partition, you can use MTK Smart Phone Flash Tool to flash lk partition manually.
After lk partition flashed, you may encounter "Red State" when booting the phone. Ignore that and boot your phone to Fastboot mode directly with OST LA.
That is it, i tried to explain for you to understand everything i did to unlock bootloader.
Credits:
@the_laser for codes, some additional steps and corrections. Also thanks for new method. @redweaver for new method.
@Hikari_kalyx for Android Oreo method. @bigrammy for NE1-0-215H.lk.bin link.
way to enter recovery without adb -
power off phone
press and hold volume up + power on buttons, insert cable immediately
countdown will start on phone, hold both keys until countdown ends, then IMMEDIATELY release power on key, still holding volume up
you will enter recovery shortly
after installing TWRP it is very important - DO NOT allow /system modification until supersu package installation ! ( or you will require reflashing phone with OST )
another note - can't enter recovery by combination volume-up + power button, if phone not connected to computer
one man reported, that even he successfully flashed TWRP image with "fastboot flash recovery <twrp image>", he still got original recovery.
workaround is to use "fastboot boot <twrp image>" - as we need to have USB cable connected to enter TWRP recovery anyway, not big problem.
the_laser said:
way to enter recovery without adb -
power off phone
press and hold volume up + power on buttons, insert cable immediately
countdown will start on phone, hold both keys until countdown ends, then IMMEDIATELY release power on key, still holding volume up
you will enter recovery shortly
after installing TWRP it is very important - DO NOT allow /system modification until supersu package installation ! ( or you will require reflashing phone with OST )
another note - can't enter recovery by combination volume-up + power button, if phone not connected to computer
one man reported, that even he successfully flashed TWRP image with "fastboot flash recovery <twrp image>", he still got original recovery.
workaround is to use "fastboot boot <twrp image>" - as we need to have USB cable connected to enter TWRP recovery anyway, not big problem.
Click to expand...
Click to collapse
Someone told me that if you flashed twrp, that it automatically removes data encryption. Is that true?
EDIT: i find out that is not true, it asks for some password to decrypt data, but the problem is that idk what is the password
DON'T install xposed! It bootlops.
EDIT: My fault, it actually work but you need to wait more than usual to boot.
That is great guys.
Do we have a working recovery yet?
nafnist said:
That is great guys.
Do we have a working recovery yet?
Click to expand...
Click to collapse
I use this twrp https://1drv.ms/u/s!AsmTb5aqoY12mDZqDZbPOp47QVMV
I have stock recovery, but I use fastboot command 'fastboot boot recoveryname.img' when I need TWRP, and that's awesome because I don't lose stock recovery which is useful to flash OTAs and Nokia zips. I flashed SuperSu 2.79 just fine, but expect some crashes like software update, device monitor crash, but actually everything works, software update works just fine.
SkaboXD said:
Someone told me that if you flashed twrp, that it automatically removes data encryption. Is that true?
EDIT: i find out that is not true, it asks for some password to decrypt data, but the problem is that idk what is the password
Click to expand...
Click to collapse
TWRP can't handle Android 7.x default disk encryption, just press "cancel" and we need to use sdcard as storage for backups and packages because of this
Can I return the bootstrapper lock?
Where are you getting the codes from @the_laser?
abetterlie said:
Where are you getting the codes from @the_laser?
Click to expand...
Click to collapse
Yes
shokohiw said:
Yes
Click to expand...
Click to collapse
you mean to get bootloader locked again?
yes you can just instead of oem unlock type oem lock
I mean where are you getting the OEM unlock keys from?
SkaboXD said:
you mean to get bootloader locked again?
yes you can just instead of oem unlock type oem lock
Click to expand...
Click to collapse
abetterlie said:
I mean where are you getting the OEM unlock keys from?
Click to expand...
Click to collapse
idk, ask @the_laser
the bootloader I unlocked how to install root and twrp
shokohiw said:
the bootloader I unlocked how to install root and twrp
Click to expand...
Click to collapse
link for twrp
https://1drv.ms/u/s!AsmTb5aqoY12mDZqDZbPOp47QVMV
when downloaded, copy twrp to folder platform-tools and rename it to recovery.img
reboot to fastboot, then type this command:
fastboot flash recovery recovery.img
then reboot, fastboot reboot
if it didn't worked, use this command just to boot to twrp (you need to do this everytime when you are connected to PC)
fastboot boot recovery.img
To install root, first disable system modification on twrp then flash this zip for root.
This is not the latest version of SuperSU, but newest releases have some problems and crashes. (at least for me). This is last version that works for me.
That is it.
Thank you!
Is it possible after unlocking, installing twrp and root, to return the device to factory settings for ota updates? If so, how?
shokohiw said:
Is it possible after unlocking, installing twrp and root, to return the device to factory settings for ota updates? If so, how?
Click to expand...
Click to collapse
on twrp, there is a option wipe, click on it, then you will see option swipe to factory reset. then wait and reboot.
And you can now enable system modification if you want (it is recommended to enable it because some zips fails to flash because this option is disabled)
After installing TWRP and rebooting, does not want to boot Android, weighs in on the initial splash screen what to do
Your device has failed verification and may not work properly
shokohiw said:
After installing TWRP and rebooting, does not want to boot Android, weighs in on the initial splash screen what to do
Your device has failed verification and may not work properly
Click to expand...
Click to collapse
Weird, when it says your device has failed verification?
For me reboot works fine

[Guide] Google Camera without root/magisk (Enable Camera2Api, EIS)

First of all, credit to AridaneAM for the original thread (April 2018 patch and earlier) and to prannoytambe for the updated manual steps (May 2018 patch and onwards).
Steps:
0) To avoid problems in storage mounting, disable pattern/password. When the process is finished you can enable pin/pattern again.
1) You have to enable developer options, OEM unlock and USB debugging before use the app:
2) Install adb/fastboot drivers (if you don't have it)
3) Enable HAL3, EIS. Steps below:
https://forum.xda-developers.com/showpost.php?p=76850364&postcount=1591
prannoytambe said:
Start adb
1.To see if the phone is detected.
Code:
adb devices
2.Reboot in fastboot mode
Code:
adb reboot bootloader
3.To see if the phone in fastboot is detected.
Code:
fastboot devices
4.Imp Step - Bootloader unlock - Hold the volume down button.
Code:
fastboot oem unlock
Boot into twrp. (don't touch the phone in twrp).
Code:
fastboot boot twrp.img
Phone will be wiped here !
Setup the phone and enable oem unlock and usb debug and start from step 1 .
5.To see if the phone is detected(phone will be twrp now).
Code:
adb devices
6.Adb Shell for adding camera functionality in build,prop
Code:
adb shell
7.Enable HAL3
Code:
setprop persist.camera.HAL3.enabled 1
8.Enable EIS
Code:
setprop persist.camera.eis.enable 1
9.Exit of adb shell
Code:
exit
10.Reboot in fastboot mode.
Code:
adb reboot bootloader
11.To see if the phone in fastboot is detected.
Code:
fastboot devices
12.Imp Step - Bootloader lock - Hold the volume down button.
Code:
fastboot oem lock
13.Reboot into system.
Code:
fastboot reboot
Hold the volume down button before the code is run till the phone restarts to fastboot again. This bypasses the userdata wipe trigger. Please see if anything can be done to preserve data of old system.
Thx to @AridaneAM and @IjazCI
https://forum.xda-developers.com/showpost.php?p=75541654&postcount=98
https://forum.xda-developers.com/mi-a1/how-to/discussion-bypass-wipe-oem-unlock-t3804406
Click to expand...
Click to collapse
4) Install GCam. Get builds from the link below.
https://www.celsoazevedo.com/files/android/google-camera/
taurnilf said:
First of all, credit to AridaneAM for the original thread (April 2018 patch and earlier) and to prannoytambe for the updated manual steps (May 2018 patch and onwards).
Steps:
0) To avoid problems in storage mounting, disable pattern/password. When the process is finished you can enable pin/pattern again.
1) You have to enable developer options, OEM unlock and USB debugging before use the app:
2) Install adb/fastboot drivers (if you don't have it)
3) Enable HAL3, EIS. Steps below:
https://forum.xda-developers.com/showpost.php?p=76850364&postcount=1591
Start adb
1.To see if the phone is detected.
2.Reboot in fastboot mode
3.To see if the phone in fastboot is detected.
4.Imp Step - Bootloader unlock - Hold the volume down button.
Boot into twrp. (don't touch the phone in twrp).
Phone will be wiped here !
Setup the phone and enable oem unlock and usb debug and start from step 1 .
5.To see if the phone is detected(phone will be twrp now).
6.Adb Shell for adding camera functionality in build,prop
7.Enable HAL3
8.Enable EIS
9.Exit of adb shell
10.Reboot in fastboot mode.
11.To see if the phone in fastboot is detected.
12.Imp Step - Bootloader lock - Hold the volume down button.
13.Reboot into system.
4) Install GCam. Get builds from the link below.
https://www.celsoazevedo.com/files/android/google-camera/
Click to expand...
Click to collapse
Much helpful,
1) please provide me twrp link for this method ?
2) what after booting into twrp ? Will it boot itself to system after booting to twrp so i can setup and enable oem unlock etc ? Because no one has mentioned that do we need to reboot or what after booting to twrp and also booting twrp is triggering factory reset , so what to do as you have mentioned that start from step 1, it will reset the phone again before step 5. Little confused in this stage
All the files you need are bundled together with the original tool. After unlocking, the phone will reset when you boot into twrp. This means setting up the phone again then going back to step 1 of the manual steps but this time, no need to unlock because it is already unlocked. You can go directly to booting into twrp. Hope that helps.
taurnilf said:
All the files you need are bundled together with the original tool. After unlocking, the phone will reset when you boot into twrp. This means setting up the phone again then going back to step 1 of the manual steps but this time, no need to unlock because it is already unlocked. You can go directly to booting into twrp. Hope that helps.
Click to expand...
Click to collapse
Booting twrp gain wont boot into system again ? Will twrp stay there ?
I was wondering if you could make a video tutorial ? It would be helpful for all the confused ppl like me
The phone won't reset when you boot into twrp the second time. You can then enable hal3 and eis.
Mi A2 Google camera without root
Hello sir,
Please make a blog on how to install Google camera without root in Mi A2.
does this lose OTA updates?
The other ones say they keep updates.
I have Mi A1 with Android One 8.1.0 and Sept 5 Security
Will this method work on this version and keep OTA updates going forward?
thanks
^You keep OTA updates.
abhijeet1997 said:
Hello sir,
Please make a blog on how to install Google camera without root in Mi A2.
Click to expand...
Click to collapse
+1
taurnilf said:
^You keep OTA updates.
Click to expand...
Click to collapse
Hi,
Just to make sure I understand this correctly.
1.) The automatic official OTA update is still available, right? eg. the DEC18 OTA will be updated automatically to my phone
2.) And whether the 'next' OTA will reset the camera2 api enable back to default?
Thanks.
1. Yes.
2. It won't reset camera2 api settings, ie, gcam will continue to work, provided you don't factory reset.
taurnilf said:
1. Yes.
2. It won't reset camera2 api settings, ie, gcam will continue to work, provided you don't factory reset.
Click to expand...
Click to collapse
Thanks! I really appreciate your fast reply.
I would need a bit more help from you.
I'm still stuck at step 'fastboot boot twrp.img'.
After the command, the commandline show Finish. The phone reset with the white AndroidOne page (its status oem unlock), after that you can see the running colorful line so that means it is booting. But it stuck there forever​
What can I expect here?
As the boot was not completed (suck at running colorful line), I cannot move further to phone setup to continue with 'adb shell'
I think if I'm able to pass thru the whole process, I will try to make a clip. Seem it will be helpful for everyone.
Try restarting manually, setup the phone, then try fastboot boot twrp again.
Just to confirm, it works with the November update. Volume down button helps a lot to avoid data wipe. Thanks!

[Guide] Flashing TWRP & Granting Root Access (Magisk Systemless) - Red Magic 3

Use this guide to root for now for global rom: https://forum.xda-developers.com/red-magic-3/how-to/red-magic-3-root-guide-t3933148
Requirements:
- Unlocked Bootloader On Nubia Red Magic 3 (NX629J): https://forum.xda-developers.com/red-magic-3/how-to/guide-unlocking-red-magic-3s-bootloader-t3935630
- TWRP HERE: https://forum.xda-developers.com/red-magic-3/development/recovery-unofficial-twrp-nubia-red-t3962482 (CHINESE ROM ONLY)
- Latest Magisk stable zip transferred to your phone's storage (https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445)
- Charge the Nubia Red Magic to at least 50%.
- You need a USB cable to connect your phone to PC.
ADB Drivers for your PC
STEPS TO INSTALL TWRP (READ EVERYTHING CAREFUL BEFORE ATTEMPTING):
1) Enable the Developer Options
- To Enable Developer Options, Go to your Settings -> About -> Software Information -> More -> Now Tap on the Build Number 10 Times until you see a toast message “Developer options enabled“
2) Go back to settings -> Now you need to enable the OEM Unlock by going to Settings -> Developer Options and check the box for OEM Unlock and USB Debugging
3) Connect your phone to Computer using USB Cable to a USB 2.0 port.
4) Open a command prompt window on your computer and type: "adb devices"
5) You will see a pop up window on your phone to allow USB debugging on your phone. Click ok.
6) Now type the commannd "adb reboot bootloader"
7) Once your phone has rebooted into it's bootloader, type in the pc command prompt "fastboot devices". This will list the devices connected, your phone should show up.
8) Then, to flash twrp, enter "fastboot flash recovery recovery-TWRP-3.3.1-0528-NUBIA_REDMAGIC3-CN-wzsx150.img" in the command prompt.
9) Finally reboot into the twrp recovery from the phone menu after twrp is installed. Rebooting your phone will reflash Nubia's recovery if you dont do so after flashing.
10) Once in twrp, go to install, navigate to where you put the magisk zip, and install it.
12) Reboot your phone.
Always welcome bro. Anytime I available for help. If I know anything
Secretcow said:
Requirements:
- Unlocked Bootloader On Nubia Red Magic 3 (NX629J): https://forum.xda-developers.com/red-magic-3/how-to/guide-unlocking-red-magic-3s-bootloader-t3935630
- TWRP: https://drive.google.com/file/d/10CZ...w?usp=drivesdk - Thank you to sandeepkhatri for sharing!
- Latest Magisk stable zip transferred to your phone's storage (https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445)
- Charge the Nubia Red Magic to at least 50%.
- You need a USB cable to connect your phone to PC.
1) Enable the Developer Options
- To Enable Developer Options, Go to your Settings -> About -> Software Information -> More -> Now Tap on the Build Number 10 Times until you see a toast message “Developer options enabled“
2) Go back to settings -> Now you need to enable the OEM Unlock by going to Settings -> Developer Options and check the box for OEM Unlock and USB Debugging
3) Connect your phone to Computer using USB Cable.
4) Open a command prompt window on your computer and type: "adb devices"
5) You will see a pop up window on your phone to allow USB Debugging on your phone. Click ok.
6) Now type the commannd "adb reboot bootloader"
7) Once your phone has rebooted into it's bootloader, type in the command prompt "fastboot devices". This will list the devices connected, your phone should show up.
8) Then, to flash twrp, enter "fastboot flash recovery recovery-TWRP-3.3.1-0528-NUBIA_REDMAGIC3-CN-wzsx150.img" in the command prompt.
9) Finally type "fastboot reboot" into the command prompt.
10) After your phone restarts, select boot into recovery to boot into twrp.
11) Once there, go to install, navigate to where you put the magisk zip, and install it.
12) Reboot your phone.
Click to expand...
Click to collapse
could you please update the TWRP Link,
em90256 said:
could you please update the TWRP Link,
Click to expand...
Click to collapse
Added two mirror links .
Ugh, seems the twrp only works on the Chinese version, not the global version. Will leave the link up with a note.
So, currently it only works with the Chinese version? Waiting on a global twrp
Not workint with the most recent cn version (2.27)
Hope someone can update the twrp file
Got "Lock state" message when trying to flash the img file..whats is wrong? I am was do all the steps correctly.. and then all removed from the phone
Hi need help. I cant download the twrp. Link asking for decryption key. - oh found the correct link.
danielad200 said:
Got "Lock state" message when trying to flash the img file..whats is wrong? I am was do all the steps correctly.. and then all removed from the phone
Click to expand...
Click to collapse
before step flash twrp
you need type "fastboot oem nubia_unlock NUBIA_NX629J" then enter
then type flash twrp command
[/COLOR]
txdvil said:
before step flash twrp
you need type "fastboot oem nubia_unlock NUBIA_NX629J" then enter
then type flash twrp command
Click to expand...
Click to collapse
Its will remove all again? In the fastboot menu bootloader show '1'
danielad200 said:
[/COLOR]
Its will remove all again? In the fastboot menu bootloader show '1'
Click to expand...
Click to collapse
do you mean reset the system?
its just allow you to flashing twrp
txdvil said:
before step flash twrp
you need type "fastboot oem nubia_unlock NUBIA_NX629J" then enter
then type flash twrp command
Click to expand...
Click to collapse
txdvil said:
do you mean reset the system?
its just allow you to flashing twrp
Click to expand...
Click to collapse
Yes i mean if it rrmove all the data..thank you..do you have twrp inatalled allready?..i am worry about data loss
danielad200 said:
Yes i mean if it rrmove all the data..thank you..do you have twrp inatalled allready?..i am worry about data loss
Click to expand...
Click to collapse
the twrp not installed, still using stock recovery,
so I tried root via magisk (see other thread here) and its worked now.
I do this for installing gapps but the gapps not working well. so frustating
txdvil said:
the twrp not installed, still using stock recovery,
so I tried root via magisk (see other thread here) and its worked now.
I do this for installing gapps but the gapps not working well. so frustating
Click to expand...
Click to collapse
Can you link it please? Why you not using the twrp
danielad200 said:
Can you link it please? Why you not using the twrp
Click to expand...
Click to collapse
https://forum.xda-developers.com/red-magic-3/how-to/red-magic-3-root-guide-t3933148
I think its failed to install
txdvil said:
https://forum.xda-developers.com/red-magic-3/how-to/red-magic-3-root-guide-t3933148
I think its failed to install
Click to expand...
Click to collapse
Its working on global rom?
danielad200 said:
Its working on global rom?
Click to expand...
Click to collapse
I don't know
mine is chinese version
txdvil said:
I don't know
mine is chinese version
Click to expand...
Click to collapse
Its working fine? Do you have dts?
danielad200 said:
Its working fine? Do you have dts?
Click to expand...
Click to collapse
what is dts?
I tried some features I think mine is fine. regardless so frustating can not install gapps

[GUIDE] Unlock bootloader without losing user data.

Hi, I am writing this guide because many people followed other guides in the forum and lost their data. This is the proper way of unlocking the bootloader without losing your data.
0 - Read the whole guide before proceeding and proceed at your own risk!
1 - Make sure you have adb and fastboot installed on your device,
For Windows follow this guide (I suggest installing it system-wide, so that you can execute commands from every directory on your PC): https://forum.xda-developers.com/showthread.php?t=2588979
For MacOS and Linux : https://www.xda-developers.com/install-adb-windows-macos-linux/
2 - After the required tools are installed go to Settings -> About Phone on your phone and keep tapping on build number until a toast notification tells you that the developer settings are enabled.
3 - Go to Settings -> System -> Developer Settings and enable OEM unlocking option.
4 - Turn off the phone and when it's fully off, hold power + vol down button to boot into fastboot mode. When you've done this step successfully, you will see a blue FASTBOOT text on the screen with a bunny scrambling the internals of Android.
5 - Connect your phone to your PC and open a CLI/terminal/PowerShell window and type this but do NOT hit enter :
Code:
fastboot oem unlock
when you are ready to execute the command, start pressing only vol down button and then hit enter, HOLD vol down until the phone boots into fastboot mode again. This basically tricks the phone to boot into Fastboot mode instead of erase mode. To make sure the phone doesn't boot into erase mode on the next boot you need to do the following:
6 - While in fastboot mode type this into the CLI/terminal/PowerShell window but do NOT hit enter :
Code:
fastboot reboot
when you are ready to execute the command, start pressing only vol down button and then hit enter, HOLD vol down until the phone boots into fastboot mode again.
7 - Now you are ready to boot into your system. Either boot by holding power button or typing
Code:
fastboot reboot
into the terminal and hitting enter.
By rebooting twice, you make sure the phone doesn't boot into erase mode. If you flash the stock ROM beforehand and setup your device (login to Play Store), your device will still be Play Store certified by this method. But if you unlock the bootloader and the phone erases its storage, you won't be able to download apps like Netflix, because your device will not be certified by Play Store, this is because the Play Store checks for unlocked bootloaders. But by making it check the certification while it's locked and then unlocking the bootloader, you can make this issue go away. Feel free to ask for more proper guides for dummies, if you need. I have bricked my device many times and learnt by trial and error, so I'd be happy to make you avoid those same mistakes. Cheers.
No need double reboot
Os_Herdz said:
No need double reboot
Click to expand...
Click to collapse
It is not necessary, but a preventative measure. I've had instances where I hadn't rebooted twice and the phone booted into erase mode. This is a guide for people who want to make sure they won't lose data.
Another tip:
If you're with stock everything and don't want to loose data, do not boot into recovery mode (power + vol+) as it sometimes try to wipe data without any confirmation. Did happened here once, back in March 2019, but thankfully my pictures and most data are stored in MicroSD card.
RFD80M-75679 said:
Another tip:
If you're with stock everything and don't want to loose data, do not boot into recovery mode (power + vol+) as it sometimes try to wipe data without any confirmation. Did happened here once, back in March 2019, but thankfully my pictures and most data are stored in MicroSD card.
Click to expand...
Click to collapse
Can confirm, if your bootloader is unlocked and you don't have TWRP installed, booting into recovery mode will wipe the device.
marstonpear said:
Hi, I am writing this guide because many people followed other guides in the forum and lost their data. This is the proper way of unlocking the bootloader without losing your data.
0 - Read the whole guide before proceeding and proceed at your own risk!
1 - Make sure you have adb and fastboot installed on your device,
For Windows follow this guide (I suggest installing it system-wide, so that you can execute commands from every directory on your PC): https://forum.xda-developers.com/showthread.php?t=2588979
For MacOS and Linux : https://www.xda-developers.com/install-adb-windows-macos-linux/
2 - After the required tools are installed go to Settings -> About Phone on your phone and keep tapping on build number until a toast notification tells you that the developer settings are enabled.
3 - Go to Settings -> System -> Developer Settings and enable OEM unlocking option.
4 - Turn off the phone and when it's fully off, hold power + vol down button to boot into fastboot mode. When you've done this step successfully, you will see a blue FASTBOOT text on the screen with a bunny scrambling the internals of Android.
5 - Connect your phone to your PC and open a CLI/terminal/PowerShell window and type this but do NOT hit enter :
Code:
fastboot oem unlock
when you are ready to execute the command, start pressing only vol down button and then hit enter, HOLD vol down until the phone boots into fastboot mode again. This basically tricks the phone to boot into Fastboot mode instead of erase mode. To make sure the phone doesn't boot into erase mode on the next boot you need to do the following:
6 - While in fastboot mode type this into the CLI/terminal/PowerShell window but do NOT hit enter :
Code:
fastboot reboot
when you are ready to execute the command, start pressing only vol down button and then hit enter, HOLD vol down until the phone boots into fastboot mode again.
7 - Now you are ready to boot into your system. Either boot by holding power button or typing
Code:
fastboot reboot
into the terminal and hitting enter.
By rebooting twice, you make sure the phone doesn't boot into erase mode. If you flash the stock ROM beforehand and setup your device (login to Play Store), your device will still be Play Store certified by this method. But if you unlock the bootloader and the phone erases its storage, you won't be able to download apps like Netflix, because your device will not be certified by Play Store, this is because the Play Store checks for unlocked bootloaders. But by making it check the certification while it's locked and then unlocking the bootloader, you can make this issue go away. Feel free to ask for more proper guides for dummies, if you need. I have bricked my device many times and learnt by trial and error, so I'd be happy to make you avoid those same mistakes. Cheers.
Click to expand...
Click to collapse
When I type fastboot oem unlock and press enter, a screen shows on the device to select unlock or do not unlock. Then what?
softgadget said:
When I type fastboot oem unlock and press enter, a screen shows on the device to select unlock or do not unlock. Then what?
Click to expand...
Click to collapse
It shouldn't ask you to unlock phone or not in fastboot mode, as what I did unlocked mine for months ago. It should return you to fastboot mode in a flash (a fraction of seconds) and manually restart your phone by holding up power button until you'll see unlocked warning and AndroidOne logo.
If it is, try to select "unlock", but your data may wipe afterwards.
RFD80M-75679 said:
It shouldn't ask you to unlock phone or not in fastboot mode, as what I did unlocked mine for months ago. It should return you to fastboot mode in a flash (a fraction of seconds) and manually restart your phone by holding up power button until you'll see unlocked warning and AndroidOne logo.
If it is, try to select "unlock", but your data may wipe afterwards.
Click to expand...
Click to collapse
I am running Android 10 latest update on my Mi A2 and my phone shows a screen to select Unlock or Not to Unlock options. It is in fastboot mode. What is the problem?
softgadget said:
I am running Android 10 latest update on my Mi A2 and my phone shows a screen to select Unlock or Not to Unlock options. It is in fastboot mode. What is the problem?
Click to expand...
Click to collapse
You have another device. This is for Mi A2 Lite, not Mi A2. And on top of that, it works for Android Pie. I don't know for stock Android 10 since we (Mi A2 Lite users) don't have it yet (as of my writing).
RFD80M-75679 said:
You have another device. This is for Mi A2 Lite, not Mi A2. And on top of that, it works for Android Pie. I don't know for stock Android 10 since we (Mi A2 Lite users) don't have it yet (as of my writing).
Click to expand...
Click to collapse
Oh. OK then.thank you
I downgrade to oreo and now when power om phone show message that is bootloader unlocked, so can lock again bootloader to remove that message without lost data or must live with that? If can do that, how? I forgot to say after flash oreo bootloader was locked, but i must unlock again to fix sim cards.
popadic022 said:
I downgrade to oreo and now when power om phone show message that is bootloader unlocked, so can lock again bootloader to remove that message without lost data or must live with that? If can do that, how? I forgot to say after flash oreo bootloader was locked, but i must unlock again to fix sim cards.
Click to expand...
Click to collapse
You can unlock with the same method. But I believe you will flash a zip from TWRP to fix SIM cards and that will break your phone if you lock the bootloader. So after fixing the SIM cards, you need to leave the phone unlocked, otherwise phone will be bricked. If you want to get rid of the ugly splash screen, you can flash a custom splash you can find in the forum.
marstonpear said:
Can confirm, if your bootloader is unlocked and you don't have TWRP installed, booting into recovery mode will wipe the device.
Click to expand...
Click to collapse
So after unlocked the devices, it's recommended to install TWRP to avoid this right ?
gusbalaa said:
So after unlocked the devices, it's recommended to install TWRP to avoid this right ?
Click to expand...
Click to collapse
You can leave it as is, but don't ever boot into recovery if you value your data from Internal Storage or if haven't backed up data to MicroSD.
RFD80M-75679 said:
You can leave it as is, but don't ever boot into recovery if you value your data from Internal Storage or if haven't backed up data to MicroSD.
Click to expand...
Click to collapse
I think I'm gonna install TWRP for safety, my data is already on MicroSD.
EDIT : Is possible to install TWRP & Root without losing data / need to flash Decrypt ?
gusbalaa said:
I think I'm gonna install TWRP for safety, my data is already on MicroSD.
EDIT : Is possible to install TWRP & Root without losing data / need to flash Decrypt ?
Click to expand...
Click to collapse
You don't need to decrypt. You can install TWRP and flash Magisk through TWRP.
marstonpear said:
You don't need to decrypt. You can install TWRP and flash Magisk through TWRP.
Click to expand...
Click to collapse
Thanks, already done it.
Flashed TWRP & Magisk without losing any data.
marstonpear said:
Hi,
Click to expand...
Click to collapse
will this metode also work on mi10
-fluffy- said:
will this metode also work on mi10
Click to expand...
Click to collapse
I'm not sure but probably not. Because Mi 10 is a MIUI device and this is an Android One. Still you gotta try to make sure, but the risk is all yours. Cheers.
marstonpear said:
Hi, I am writing this guide because many people followed other guides in the forum and lost their data. This is the proper way of unlocking the bootloader without losing your data.
0 - Read the whole guide before proceeding and proceed at your own risk!
1 - Make sure you have adb and fastboot installed on your device,
For Windows follow this guide (I suggest installing it system-wide, so that you can execute commands from every directory on your PC): https://forum.xda-developers.com/showthread.php?t=2588979
For MacOS and Linux : https://www.xda-developers.com/install-adb-windows-macos-linux/
2 - After the required tools are installed go to Settings -> About Phone on your phone and keep tapping on build number until a toast notification tells you that the developer settings are enabled.
3 - Go to Settings -> System -> Developer Settings and enable OEM unlocking option.
4 - Turn off the phone and when it's fully off, hold power + vol down button to boot into fastboot mode. When you've done this step successfully, you will see a blue FASTBOOT text on the screen with a bunny scrambling the internals of Android.
5 - Connect your phone to your PC and open a CLI/terminal/PowerShell window and type this but do NOT hit enter :
Code:
fastboot oem unlock
when you are ready to execute the command, start pressing only vol down button and then hit enter, HOLD vol down until the phone boots into fastboot mode again. This basically tricks the phone to boot into Fastboot mode instead of erase mode. To make sure the phone doesn't boot into erase mode on the next boot you need to do the following:
6 - While in fastboot mode type this into the CLI/terminal/PowerShell window but do NOT hit enter :
Code:
fastboot reboot
when you are ready to execute the command, start pressing only vol down button and then hit enter, HOLD vol down until the phone boots into fastboot mode again.
7 - Now you are ready to boot into your system. Either boot by holding power button or typing
Code:
fastboot reboot
into the terminal and hitting enter.
By rebooting twice, you make sure the phone doesn't boot into erase mode. If you flash the stock ROM beforehand and setup your device (login to Play Store), your device will still be Play Store certified by this method. But if you unlock the bootloader and the phone erases its storage, you won't be able to download apps like Netflix, because your device will not be certified by Play Store, this is because the Play Store checks for unlocked bootloaders. But by making it check the certification while it's locked and then unlocking the bootloader, you can make this issue go away. Feel free to ask for more proper guides for dummies, if you need. I have bricked my device many times and learnt by trial and error, so I'd be happy to make you avoid those same mistakes. Cheers.
Click to expand...
Click to collapse
Wowwww! Thank you very much, time ago I've unlocked the bootloader without losing any data
That's a very good solution

Categories

Resources