13

Question - Device corrupted after OTA | XDA Forums

 2 years ago
source link: https://forum.xda-developers.com/t/device-corrupted-after-ota.4529669/#post-87853315
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Question Device corrupted after OTA

SleinBuyt

New member

Dec 28, 2017

Hi,

I tried to update my P6 using the magisk OTA update method:

-Unistall / Restore image
-Install OTA, no reboot
-Install magisk on inactive slot
-Reboot

My phone was on the SQ3A.220705.001.B2 update, few months old.

When I rebooted, I was prompted with the "device corrupted" message. I pressed the power key to continue, and was stuck at the Google logo boot loop.

I forced turned off the phone (hold power + vol up a few sec), and the phone rebooted, no corruption message to my surprise, and booted correctly. However, my system did not update (still on SQ3A.220705.001.B2).

I'm a rookie on device rooting, but my understanding is that my inactive slot (partition b) as the update installed but is corrupted and goes in boot loop, while partition a is not updated but not corrupted either.

The thing is, I only did "install on inactive slot", so magisk was uninstalled on partition a, and rebooting made me lost root on that partition.

Is there any way to de-corrupt partition b without losing data ? Because without root on partition a, it seems like I'll need to reinstall it, meaning a factory reset...

I've searched a bit on here, saw that it was probably an avb bug (but rookie me doesn't know what avb is), and that OTA update using magisk inactive partition was not recommended for P6 and P7.

Any help would be greatly appreciated, thanks !

Is there any way to de-corrupt partition b without losing data ? Because without root on partition a, it seems like I'll need to reinstall it, meaning a factory reset...

I've searched a bit on here, saw that it was probably an avb bug (but rookie me doesn't know what avb is), and that OTA update using magisk inactive partition was not recommended for P6 and P7.

Any help would be greatly appreciated, thanks !

Be certain you're running the latest version of ADB. Google provides a link to the package you can download and extract. Then download a factory image from Google, extract the files from the zip to the same folder ADB was wxtracted to, and edit "flash-all.bat" in a text editor. You're looking for a snippet of text, "-w". Delete that text and save the file. From there, connect the unit to your PC and flash the ROM.

This will restore both partitions to working condition without removing data, but you will lose root in the process and will need to root again.

Reactions: SleinBuyt

SleinBuyt

New member

Dec 28, 2017

Be certain you're running the latest version of ADB. Google provides a link to the package you can download and extract. Then download a factory image from Google, extract the files from the zip to the same folder ADB was wxtracted to, and edit "flash-all.bat" in a text editor. You're looking for a snippet of text, "-w". Delete that text and save the file. From there, connect the unit to your PC and flash the ROM.

This will restore both partitions to working condition without removing data, but you will lose root in the process and will need to root again.
Be certain you're running the latest version of ADB. Google provides a link to the package you can download and extract. Then download a factory image from Google, extract the files from the zip to the same folder ADB was wxtracted to, and edit "flash-all.bat" in a text editor. You're looking for a snippet of text, "-w". Delete that text and save the file. From there, connect the unit to your PC and flash the ROM.

This will restore both partitions to working condition without removing data, but you will lose root in the process and will need to root again.

Ok I'll find out how to flash ROM using adb beacause I don't remember, and I'll do what you said.

After that, I should be able to force boot to partition b (the updated one) using adb, right? And will I be able to root without losing data ?

SleinBuyt

New member

Dec 28, 2017

Ok I'll find out how to flash ROM using adb beacause I don't remember, and I'll do what you said.

After that, I should be able to force boot to partition b (the updated one) using adb, right? And will I be able to root without losing data ?

Ok so I've searched a bit, since my bootloader is unlocked I'll be able to root without losing data. The only question that remains :

You told me to download a factory image and to flash it with adb. Can I download the lasted version, for example the one that I failed to update to? If so, after flashing, will my de va ice be updated to the lasted version ?

Because that means that it's a way to update my phone, if I don't want to get the corruption error :

-download lasted update
-flash using adb, with the edited .bat
-Reboot and re-flash magisk
-done

Ok so I've searched a bit, since my bootloader is unlocked I'll be able to root without losing data. The only question that remains :

You told me to download a factory image and to flash it with adb. Can I download the lasted version, for example the one that I failed to update to? If so, after flashing, will my de va ice be updated to the lasted version ?

Because that means that it's a way to update my phone, if I don't want to get the corruption error :

-download lasted update
-flash using adb, with the edited .bat
-Reboot and re-flash magisk
-done

I think that the easiest way is with Pixel Flasher, it makes everything automatically with data preserve.

Ok so I've searched a bit, since my bootloader is unlocked I'll be able to root without losing data. The only question that remains :

You told me to download a factory image and to flash it with adb. Can I download the lasted version, for example the one that I failed to update to? If so, after flashing, will my de va ice be updated to the lasted version ?

Because that means that it's a way to update my phone, if I don't want to get the corruption error :

-download lasted update
-flash using adb, with the edited .bat
-Reboot and re-flash magisk
-done
I think that the easiest way is with Pixel Flasher, it makes everything automatically with data preserve.

@SleinBuyt : Yes

@m_pastuszek : While he could do that he should learn how to do it without a tool first. That way he can understand what is going on when the tool is working.

</div


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK