ERROR - Update Failed , stuck in boot loop - Xperia Z3 Q&A, Help & Troubleshooting

So, I think the only thing I've done to my phone was root it using this thread:
http://forum.xda-developers.com/z3/general/d6603-5-0-2-flashable-stock-23-1-0-690-t3056361
I've been getting the prompt for the Sony upgrade software OTA thing for a while and just ignored it since I didn't want to accidentally break things.
Today, I decided to try to install it (Maybe it was the marshmallow update). My phone rebooted and is now stuck with an error that looks like this:
ERROR - Update Failed
Anyone have any idea how I can fix this?
Also, how would I go about getting updates either to Android or Sony software without breaking anything?

Related

OTA Update failed

Hi,
I've got a magic from TIM but i'm leaving in belgium. I'm running MyHero 2.0.5
By two times, my handset requested me to reboot my phone for a 'system update'. Both attempt failed.
The phone reboots then an icon representing a package update then a a failure sign. The only way to get back the phone was to remove the battery.
My question:
Where can i find the package that android tries to install....is there a log somewhere where the failure is reported ?
Thanks
Ced
If you're running a custom rom and trying to install an OTA it isn't going to work. The OTA is only compatible with the stock OS. If you have root and manage to get an OTA to install then you will lose it. I'd say to just ignore the updates. If your phone is working the way you want it then I would leave it as is. If you want anything different then you'll need to flash something!

[Q] Root/Unroot complete failure

So I recieved a G1 last night and decided to root it cuz I heard about it. Well initially I thought something was wrong because after loading the original dreaimg.nbh and the update was successful, I would press the trackball and get a serial0 code, i was able to reboot and everything, after having a lot of issues. I am now stuck at trying to unroot. I curently have the original dreaimg installed and still get the same serial0 error after the update is complete and am not able to login or even create a new gmail account. Please help Im dying here

[Q] OTA to 4.1.2 keeps failing

A friend of mine is getting the update OTA but it keeps failing with a red error triangle and an android. So every day it asks her to install the update and each time it fails. Everything is stock, never unlocked, never rooted. Do you think she should try to install it manually? Anyone else had this problem?
Best way to update a nexus is via fastboot. But it requires an unlocked bootloader
Sent from my TH3M3D NEXUS S

Failed OTA managed to still update

Was sideloading my Pixel 4a to the december update, was getting the common failed to read command (closest I got was 94%) and decided to reboot. I expected to get stuck booting or reboot into bootloader, but surprisingly I booted into the new update. Never saw this before so just wanted to ask if this is something I should be warry of (e.g potential crashes and bootloops because I haven't re-rooted yet).
Thanks!

Question "Your device is corrupt" error before successful boot (Android 13 May update rooted with Magisk)

Hey all, I'm not new to this, but I'm looking for some guidance and explanation of the root cause so I don't break my phone worse than it is.
I bought a Pixel 6a last fall, and I have been using it non-rooted since. I have accepted each OTA update since Android 13 was released and as of today I am running on TQ2A.230505.002.
I took the OTA update for May 2023 as soon as it was released before rooting. After it successfully installed, I downloaded the matching factory image zip and extracted the boot.img from the ROM, patched it with Magisk, and then flashed by doing fastboot flash boot magiskboot.img.
It was working fine for a few days, until today when my phone reboot and I was greeted with the "Your device is corrupt" message. If I continue, the phone boots successfully and it works like normal. Magisk says it is loaded and modules are active.
I have reboot my phone several times since I rooted it, and I never received this error. However, the last time I reboot before I received this error was Sunday night. I have not installed any apps since then.
Looking around on this forum and others, I have seen posts from other users who got this error, but their situations are different. In those cases, they received the message only after accepting an OTA on a rooted device or got stuck in a boot loop, but neither of those scenarios apply to me. The solutions in other threads also seem to be a mixed bag of results, so I'm hesitant to do anything until I understand the root cause and ask for guidance.
Since I am unlocked and booting, my hope is that it should be easily recoverable. However, what could cause it to suddenly become "corrupt", and how would I diagnose or remediate the issue with minimal disruption or risk to data? My main concerns at this point are not knowing how it got into this state, and how to quickly recover from it if it happens again.
---- Edit below with more info ----
I found another user with a very similar issue from a month ago. While the issue seems to have been inflicted differently, their symptoms are very similar. The suggested solution is linked here: https://forum.xda-developers.com/t/your-device-is-corrupted-message-on-bootup.4578141/#post-88446647
The other post states the issue is caused by "the bootloader is looking for a new/updated OS without corruption errors so it will go back to restart mode rather than being stuck in the RED eio mode which displays that message."
Since my phone was working, what corruption could I have experienced over the past two days of regular usage? I did not install any updates or make any changes that failed.
Also, what would be the recommended solution in my case? Should I try flashing an older boot.img and then reflash the newest? Or should I do "fastboot --disable verity flash vbmeta vbmeta.img"? Are there any risks with either approach?
Your bootloader is unlocked, hence the message.
dexlemaffo said:
Your bootloader is unlocked, hence the message.
Click to expand...
Click to collapse
This is not the "your bootloader is unlocked" warning. This is the eio message saying the system is corrupt and requires manual intervention to boot.
After doing a bit more research and learning more about the "eio" mode that it was stuck in, I decided to take a stab at it.
Since I have the May update installed, I downloaded the April factory image. I also downloaded platform-tools r33.0.3 because I read there was mixed results with the latest version.
I extracted the boot.img from the bluejay-tq2a.230405.003.e1 April image and flashed it to my phone with fastboot. I then reboot the device. It failed to boot, as expected. However, I immediately noticed the error was gone and I only had the regular unlocked bootloader warning.
I boot into fastboot again and flashed the boot.img from the bluejay-tq2a.230505.002 May image matching my system version. After it flashed successfully, I reboot and the error did not return.
Edit:
I proceeded with rooting again. This time, I did "fastboot boot boot-magisk.img" and flashed from Magisk instead of from fastboot, though I doubt there is any difference.
It reboot successfully. I am back to being rooted without any error message and without any factory reset.
I still don't know what would have caused the bootloader to think there was corruption after it was working for several days. Can anyone reading this can provide some insight?
This whole issue has me very uneasy. I'm worried something else could be wrong - whether it's a bug with Android, or a hardware fault, or a bug in Magisk.
I'm wondering if I should be concerned.
Today, when my phone reboot, it was sudden. I did not initiate the reboot. I thought it was a benign crash as I have experienced many times before. However that was when I saw the "your device is corrupt" message.
I'm reading up on dm-verity and the dm-verity driver here: https://source.android.com/docs/security/features/verifiedboot/dm-verity
I suspect the dm-verity driver is used to hash and verify the system partitions on the fly? If so, could it be that when I was using my phone, it was trying to access some data and the hash failed, the signature mismatched, and it triggered the bootloader to mark the system as corrupt?
If that is what happened, is that cause for concern? Would that be the result of actual system file corruption or bad NAND? Or is it some bizarre Android glitch when running rooted?
Youll likely need to do a factory reset to get rid of that message.
That is incorrect. Based on the other reports of users with the same issue, this is a bootloader message and a factory reset has nothing to do with it. Additionally installing a factory image and wiping the phone would not get rid of the image either. Only an upgrade can supposedly remove the message, unless it is caused by something else.
He said it's the device is corrupt message, not the normal unlocked bootloader one.
afaik thats a bug in Android Verified Boot.
what you did is exactly the "normal" method to solve it, e.g. flash boot.img of the prior version, try to reboot and then flash the correct version again.

Categories

Resources