Hello.
How can I please reinstall the stock rom via TWRP recovery without data loss, or how can I reinstall it via the Miflash tool?
I have a bootloop and would like to try reinstalling rom. Thanks
basically what u can do is flash stock rom using mi flash tool. ensure that down to the bottom u click save user data. and i think u should be fine flashing the stock rom and preserving your data in that sense. after flashing wait and let the device reboot for itself it usually takes a couple mins
TormentedHeart said:
basically what u can do is flash stock rom using mi flash tool. ensure that down to the bottom u click save user data. and i think u should be fine flashing the stock rom and preserving your data in that sense. after flashing wait and let the device reboot for itself it usually takes a couple mins
Click to expand...
Click to collapse
I have already managed to boot into the system, in TWRP Recovery I wipe dalvik.
But I need root and I must to patch the boot.img again via Magisk. And then I must flash patched boot.img via ADB back to the mobile, but I'm afraid I'll go back to the bootloop.
Any other options to do root or avoid bootloop?
Thanks
jkmaxfli said:
I have already managed to boot into the system, in TWRP Recovery I wipe dalvik.
But I need root and I must to patch the boot.img again via Magisk. And then I must flash patched boot.img via ADB back to the mobile, but I'm afraid I'll go back to the bootloop.
Any other options to do root or avoid bootloop?
Thanks
Click to expand...
Click to collapse
Stupid question but did you extracted boot.img before or after update? Maybe you flashed patched boot.img from previous update to last update? That would cause bootloop
Greenspoof said:
Stupid question but did you extracted boot.img before or after update? Maybe you flashed patched boot.img from previous update to last update? That would cause bootloop
Click to expand...
Click to collapse
It's not a stupid question.
The update was displayed on my phone, downloaded, installed, restarted and booted into the system, everything is fine.
Then I had to download the update manually from the Internet and extract the boot.img. and I then patched it via Magisk and flashed it back to the mobile via ADB, and then a bootloop occurred.
jkmaxfli said:
I have already managed to boot into the system, in TWRP Recovery I wipe dalvik.
But I need root and I must to patch the boot.img again via Magisk. And then I must flash patched boot.img via ADB back to the mobile, but I'm afraid I'll go back to the bootloop.
Any other options to do root or avoid bootloop?
Thanks
Click to expand...
Click to collapse
basically to root its just best to flash the official magisk zip via twrp. it patches the boot img during the process. and u wont get bootloop
Related
Hi, yestarday I flashed CM 14 with TWRP to try it, and today I have tried to return to stock rom & recovery but I can't do it. At the beginning I have tried to flash stock recovery that I have downloaded from op.net with fastboot and I couldn't do it and after I have tried to do the same process but this time flash it with TWRP and also this time I couldn't able to fix it. In fine I have installed the stock ROM via TWRP and I managed to install it but now the problem is that I still can not install the stock recovery and accordingly I can't install op3 update.
An another problem is that I have tried to re-lock OEM from fastboot and when I try to turn on the phone, is asks me a pin to enable it and I don't know that pin because I haven't set no one
ICosmin said:
Hi, yestarday I flashed CM 14 with TWRP to try it, and today I have tried to return to stock rom & recovery but I can't do it. At the beginning I have tried to flash stock recovery that I have downloaded from op.net with fastboot and I couldn't do it and after I have tried to do the same process but this time flash it with TWRP and also this time I couldn't able to fix it. In fine I have installed the stock ROM via TWRP and I managed to install it but now the problem is that I still can not install the stock recovery and accordingly I can't install op3 update.
An another problem is that I have tried to re-lock OEM from fastboot and when I try to turn on the phone, is asks me a pin to enable it and I don't know that pin because I haven't set no one
Click to expand...
Click to collapse
Need to download custom twrp http://forum.xda-developers.com/devdb/project/dl/?id=21065&task=get
Then use flashify to flash recovery
cbendixe84 said:
Need to download custom twrp http://forum.xda-developers.com/devdb/project/dl/?id=21065&task=get
Then use flashify to flash recovery
Click to expand...
Click to collapse
i have already flashed twrp 3.0.2.2 but now I would flash stock recovery but when I try to install it and turn into it op3 show me only op logo and after a few seconds the screen become black.
your phone is bricked I'm assuming. there is a thread for that. that should work for you!
sahed01 said:
your phone is bricked I'm assuming. there is a thread for that. that should work for you!
Click to expand...
Click to collapse
No it isn't. Because I managed to put stock ROM into it via adb with push command and after I have installed it from twrp that works. My only problem is that i can't flash stock recovery.
i have the same issue. Tried many times but i'm getting a black screen after one plus logo for both stck recovery and unmodified twrp. only moidified twrp is working. please let me know if u find a way to resolve this.
thanks in advance
varmasagiraju said:
i have the same issue. Tried many times but i'm getting a black screen after one plus logo for both stck recovery and unmodified twrp. only moidified twrp is working. please let me know if u find a way to resolve this.
thanks in advance
Click to expand...
Click to collapse
I downloaded the stock rom and inside it(stock rom.zip) i put the stock recovery after I reflashed the stock rom via adb from twrp and in fine I locked bootloader.
ICosmin said:
I downloaded the stock rom and inside it(stock rom.zip) i put the stock recovery after I reflashed the stock rom via adb from twrp and in fine I locked bootloader.
Click to expand...
Click to collapse
you can reboot in to stock recovery without any issues?? I think I should give it a try. And you are saying the bootloader is locked again ?
varmasagiraju said:
you can reboot in to stock recovery without any issues?? I think I should give it a try. And you are saying the bootloader is locked again ?
Click to expand...
Click to collapse
Yes, I manage to reboot into stock recovery and i relocked bootloader(you needn't relock bootloader if you do not want)
ICosmin said:
Yes, I manage to reboot into stock recovery and i relocked bootloader(you needn't relock bootloader if you do not want)
Click to expand...
Click to collapse
Great. Can I place the file in beta8 rom .zip file and flash it using adb ??
If this procedure doesn't you can download an older version of oxygen os and update it via ota. At the first attempt when you will try it will give you an error and at the second attempt It will download all the ROM again and it will reflash by itself
varmasagiraju said:
Great. Can I place the file in beta8 rom .zip file and flash it using adb ??
Click to expand...
Click to collapse
I suggest you to try at the beginning with the beta 7 because if that procedure not work for you, you can't downgrade to beta 7.
ICosmin said:
I suggest you to try at the beginning with the beta 7 because if that procedure not work for you, you can't downgrade to beta 7.
Click to expand...
Click to collapse
Thank you.
Will let you know if it worked.
I had that problem.
Solution as follows, worked everytime for me: (I have not tried this method with the newest beta 8)
1. Flash OOS 3.2.6 firmware in twrp.
2. Reboot to fastboot and flash official oxygen os recovery downloaded from the OnePlus website. (This is still the old version for some reason, thus why it won't work)
3. Side load community build with oxygen os recovery, this will flash the new firmware back and update the recovery to be community build compatible.
4. Before rebooting erase everything (factory restore)
5. Reboot to OOS, finish setting up.
6. Turn on advance reboot in developer settings.
7. Reboot to recovery via the reboot menu. First time boot into the recovery may take sometime, but it has always worked for me.
8. After everything looks good, go ahead and OEM lock in fastboot, recovery should work as usual this time and format your phone
OP did you find a solution to this?? Im on the same boat as you
Hey guys. I am still on marshmallow on my op3. I am rooted and have twrp recovery. My question is what firmware/modem do I need to flash before I update to latest Nougat update and if my steps below are correct.
I would prefer not to do a clean install.
My steps would be:
Download full rom
Flash any firmware if required - this is what I need to know
Flash Magisk as I need root
Profit?
cd69 said:
Hey guys. I am still on marshmallow on my op3. I am rooted and have twrp recovery. My question is what firmware/modem do I need to flash before I update to latest Nougat update and if my steps below are correct.
I would prefer not to do a clean install.
My steps would be:
Download full rom
Flash any firmware if required - this is what I need to know
Flash Magisk as I need root
Profit?
Click to expand...
Click to collapse
this is stock rom, you don't need to flash any firmware...
if you're coming from MM, i would recommend sideloading the rom, wipe everything, then go back to stock recovery then sideload then before 1st boot fastboot TWRP again, then reboot to TWRP and flash Magisk...Profit.
if you want to flash from TWRP without going through this (which i don't recommend), make sure in TWRP to format data as f2fs, wipe everything then flash the rom, and then form TWRP flash TWRP again, then reboot to recovery (not system), then flash Magisk.
theduke7 said:
this is stock rom, you don't need to flash any firmware...
if you're coming from MM, i would recommend sideloading the rom, wipe everything, then go back to stock recovery then sideload then before 1st boot fastboot TWRP again, then reboot to TWRP and flash Magisk...Profit.
if you want to flash from TWRP without going through this (which i don't recommend), make sure in TWRP to format data as f2fs, wipe everything then flash the rom, and then form TWRP flash TWRP again, then reboot to recovery (not system), then flash Magisk.
Click to expand...
Click to collapse
Thanks a ton for replying. Another question for you. I get the OTA notification. I could just let that run and flash twrp after the installation right.
cd69 said:
Thanks a ton for replying. Another question for you. I get the OTA notification. I could just let that run and flash twrp after the installation right.
Click to expand...
Click to collapse
if you're already rooted it wont install..and you can't flash the small ota file from TWRP, you have to flash the Full rom (1.4 GB)...
how you download is up to you, but why download from the update when there's many links available around !
Thanks for all the help. I flashed the new update successfully.
cd69 said:
Thanks for all the help. I flashed the new update successfully.
Click to expand...
Click to collapse
what steps did you follow ? did you have to wipe internal memory fully ?
netcitizen said:
what steps did you follow ? did you have to wipe internal memory fully ?
Click to expand...
Click to collapse
I just flashed the full Rom with Magisk. Wiped dalvick cache and nothing else. So far so goos.
cd69 said:
I just flashed the full Rom with Magisk. Wiped dalvick cache and nothing else. So far so goos.
Click to expand...
Click to collapse
Oh ok. I just flashed full rom via twrp after wiping cache and Dalvik cache.it updated fine. I wasn't sure of magisk.
my flashing history:
i was on audax (oos based nougat rom) with blu spark kernel before, then went to official ob1, then back to audax, then back to stock oos nougat and now i flashed audax and after clean flashing it, it just wont boot up.
when i try to boot up i see the 1+ logo but then it reboots to recovery. i also tried flashing stock nougat again and also flashed stock kernel manually but it also doesnt work.
i always do:
1. wipe system/dalvic/cache/data
2. install ROM
3. wipe dalvik/cache
4. flash magisk (also tried without flashing magisk)
5. reboot
i've been looking on the interwebs all day but nothing worked.. help pls :/
EDIT: problem was blu spark twrp. Maybe installing Oreo ****ed it up. I flashed codeworkx newest twrp universal build and now Im able to boot again!! Btw: I also found that magisk 15.0 prohibits a proper boot up and results in a boot loop. version 15.2, however, does the trick!
when it auto reboot to recovery, formate data
When s**t happens, it is wise to start everything from scratch:
-boot in fastboot mode and flash stock recovery with "fastboot flash recovery recovery.img" (rename recovery.img with your recovery filename), then reboot recovery and select english, advanced, adb sideload;
-flash stock OS with "adb sideload rom.zip" (rename rom.zip with your Oxygen OS filename).
Procedure will require some minute because of the large file size. Remember to save all your data on internal storage first!
I advice you to flash original recovery because often sideloading in TWRP leads to some error.
Your phone will boot again... after that you may reflash TWRP, Magisk etc
I had the same issue. Bootloop and jumb into recovery by itself. You have to flash magisk 15.2 via recovery and will be boot.
redatak said:
I had the same issue. Bootloop and jumb into recovery by itself. You have to flash magisk 15.2 via recovery and will be boot.
Click to expand...
Click to collapse
He says that it occurs even without Magisk... I had a similar trouble once, and the only way to solve it was the procedure I wrote above...
I dont know if you can boot it w/o root
redatak said:
I dont know if you can boot it w/o root
Click to expand...
Click to collapse
Why not? Stock OS is not rooted.
jonsat said:
Why not? Stock OS is not rooted.
Click to expand...
Click to collapse
He said audrax not stock oos
SOLVED! TWRP was the only variable left that I didn't think of. See initial post for solution. thx for help!
Is there any way to install twrp recovery and keep receiving OTAs on stock Pie ROM?
saedkebbeh said:
Is there any way to install twrp recovery and keep receiving OTAs on stock Pie ROM?
Click to expand...
Click to collapse
No.
marstonpear said:
No.
Click to expand...
Click to collapse
How to install OTAs after installing twrp?
You need to flash stock boot.img, as TWRP gets installed to the boot.img on your phone. But you need to do it on the right partition otherwise you won't get the updates. Also if you've tampered with system or any other partition of the device, you need to remove them. To get rid of all the steps, just flash the stock rom via MiFlash (you'll lose your data so take a backup).
marstonpear said:
You need to flash stock boot.img, as TWRP gets installed to the boot.img on your phone. But you need to do it on the right partition otherwise you won't get the updates. Also if you've tampered with system or any other partition of the device, you need to remove them. To get rid of all the steps, just flash the stock rom via MiFlash (you'll lose your data so take a backup).
Click to expand...
Click to collapse
You don't neccesary lose your data with MiFlash, just choose the option without relock/wipe.
thorin0815 said:
You don't neccesary lose your data with MiFlash, just choose the option without relock/wipe.
Click to expand...
Click to collapse
Don't forget to flash the same version!
marstonpear said:
Don't forget to flash the same version!
Click to expand...
Click to collapse
I need to know where to flash the twrp and where to flash stock boot.img when installing OTA
Yesterday I flashed patched boot img using the command: fastboot flash boot patched boot img, without choosing a partition
I made a guide for doing OTA with TWRP and Magisk. You should be able to follow it and just ignore the Magisk bits. The start covers restoring the boot partition.
https://forum.xda-developers.com/mi-a2-lite/how-to/10-0-4-0-to-10-0-7-0-ota-keeping-magisk-t3916863/
Note that I normally get a boot loop after installing TWRP and reinstall magisk as a fix. I'll assume you have your own way to install TWRP.
Hello
I have big problem.
After patching img over Magisk and flash this new patched img, can not start system / boot loop to POCO logo, or boot loop to MIUI logo - here system starting, but every restart and boot loop
Help please
Thanks
Hi!
Which boot-img did you patch and where did it come from?
How did you flash it?
So:
I received an update 12.5.8.0.RKHEUXM
After the update, I always have to root the phone again.
So I took boot.img from the original 12.5.8.0.RKHEUXM and patched it via Magisk.
I flashed the patched boot.img via ADB.
Well, after the restart, my phone will boot only after the MIUI logo and a bit of a melody, and the phone will restart again. This restart is performed about 4 times and remains/stops in fastboot mode,or it will return to TWRP after clearing dalvik and cache and restarting.
He does what he wants
I've had a problem with that before, but it was enough to delete Dalvik and the cache via temporary TWRP.
Then the system booted up normally, but now it doesn't work even after deleting Dalvik and the cache.
Here is a link to the thread where I solved it. Nobody actually advised me there, I just tried to clear dalvik and cache via TWRP and it was after the problem. Unfortunately, now the problem persists.
Poco F3 - Boot Loop to POCO logo / Please help
Hello. I have a big problem after updating the firmware. Poco F3 root over magisk. After updating from 12.5.6.0 RKHEUXM, I updated to 12.5.7.0 RKHEUXM. After the restart, both the phone and the system booted up. I patched the original boot.img...
forum.xda-developers.com
Thats what I did also with 12.5.8.0.RKHEUXM and everything is working fine.
Updated to 12.5.8.0 via the MIUI updater, but downloading the full rom, as the updater told me that the incremental update (~58MB) wouldn't work.
Then downloaded the the recovery file here: https://xiaomifirmwareupdater.com/miui/alioth/stable/V12.5.8.0.RKHEUXM/
Unzipped it and extracted the boot.img with payload-dumper-go on my Mac: https://github.com/ssut/payload-dumper-go
Patched the boot.img with Magisk on the phone.
Copied the patched_boot.img file back to the Mac.
Flashed the patched_boot.img from the mac with fastboot to both partitions:
Code:
fastboot flash boot_a patched_boot.img
fastboot flash boot_b patched_boot.img
Friend, I did exactly what you were writing, and unfortunately my system won't start
The only thing I did differently was to download the big rom 6gb update so I didn't have to extract boot.img. I didn't have to use a payload dumper.
Any other solution?
But I don't want to lose data and applications!
Did you try wiping data partition?
takichiman said:
Did you try wiping data partition?
Click to expand...
Click to collapse
Where should I do it?
But I don't want to lose data and applications!!!!!
I have bootloop to MIUI logo 4times - 5times and then stop in fastboot mode , It stops in fastboot mode and after pressing and holding the power button, the mobile starts only in fastboot mode, it no longer starts booting to the MIUI log
You can do it from recovery.
If you have twrp recovery you can backup your data before wiping.
But I'd only recommend backuping pictures(files) not the apps which you can reinstall.
takichiman said:
You can do it from recovery.
If you have twrp recovery you can backup your data before wiping.
But I'd only recommend backuping pictures(files) not the apps which you can reinstall.
Click to expand...
Click to collapse
You didn't give me much advice, my friend
I don't want to lose any data, or applications, pictures, just anything.
If it went after deleting the dalvik / cache last time, then why shouldn't it go now?
The system boots only to the miui logo, then the boot loop.
I don't understand why this is so.
And can't you somehow refresh the whole rom without losing data, applications and files?
Boot temp recovery, backup boot, patch backed boot and flash patched boot ... Just rename the boot backed image of twrp in boot.img, patch and flash ...
Try reflashing the official boot.img, you won't have root but at least you will be able to boot your phone. Also if you have TWRP why aren't just rooting your phone with the Magisk.zip instead of patching the boot.img yourself ?
Dark-Yox said:
Try reflashing the official boot.img, you won't have root but at least you will be able to boot your phone. Also if you have TWRP why aren't just rooting your phone with the Magisk.zip instead of patching the boot.img yourself ?
Click to expand...
Click to collapse
I tryed flashing official boot image, but still dont work.
Reboot back to recovery or booting only to miui logo and bootloop
Do you have module in magisk? Remove them ...
Frequently Asked Questions
The Magic Mask for Android
topjohnwu.github.io
snx413 said:
Do you have module in magisk? Remove them ...
Frequently Asked Questions
The Magic Mask for Android
topjohnwu.github.io
Click to expand...
Click to collapse
Yes, I have modules in Magisk.
How do I remove modules in Magisk if I don't get into the system — I don't boot
jkmaxfli said:
Yes, I have modules in Magisk.
How do I remove modules in Magisk if I don't get into the system — I don't boot
Click to expand...
Click to collapse
When you boot, you have access normally
snx413 said:
When you boot, you have access normally
Click to expand...
Click to collapse
And how do I remove them? instructions please
jkmaxfli said:
Yes, I have modules in Magisk.
How do I remove modules in Magisk if I don't get into the system — I don't boot
Click to expand...
Click to collapse
You can remove them in TWRP
jkmaxfli said:
I tryed flashing official boot image, but still dont work.
Reboot back to recovery or booting only to miui logo and bootloop
Click to expand...
Click to collapse
Dirty flash the whole ROM then
Adb shell
then
magisk --remove-modules
Dark-Yox said:
You can remove them in TWRP
Dirty flash the whole ROM then
Click to expand...
Click to collapse
How it dirty flash ?
I used it over TWRP recovery ROM zip file, and not work flashing