Hello!
I was trying to apply the Stagefright OTA on my XT1058, but I soft bricked it. Whenever a new update comes out, I prefer to flash stock image to avoid any unecessary issues that may arise from dirty flashing and not having the system requirements to apply the update without having problems. So that's what I did:
- I flashed the 5.1 stock image for my carrier (Vivo) using RSD and it worked fine, phone booted normally and etc.;
- I skipped the Google account setup and got the Stagefright OTA notification. Since I had already downloaded it before, I wanted to test it by sideloading it from Recovery. So I did it, I entered recovery mode and sideloaded the OTA. All went fine, no errors in the log. Rebooted phone. New bootanimation. Apps optimized;
- But I was getting 'gapps process has stopped' error and couldn't log into my Google Account, so I decided to reflash the stock image (I guess this was my error) using RSD;
- gpt partition flash fails;
- Phone stops booting, it just gets to the recovery menu or to the 'No command' screen;
- I tried flashing everything manually, doesn't work;
- I tried flashing gpt.bin from a Brazilian Retail firmware. It flashes without errors, but phone doesn't boot either;
Is there a way to recover from that? I have a TWRP backup from before I started all this process, but it looks like I can't restore it because my PC doesn't seem to recognize the sdcard when mounted.
Thanks in advance!
EDIT: managed to restore it using the steps from option 5 in Mark Venture's guide here. It was the only one that worked. BUT I had to flash gpt.bin and fsg.mbn from the OTA zip. Only then the phone booted. Then I took OTA normally and it installed without any hassle. So it looks like hash mismatches do not happen in this version of the firmware.
Related
The more I read the more confused I get. Could someone sort me out?
<complain>I got the moto x because of the quick OTA updates. Now it seems that because I installed TWRP and froze a few apps with TB that this feature is totally borked!</complain> is that correct? I cannot update without stock recovery and all the original apps installed / unfrozen?
In my predicament would the easiest thing to do be
1. Unfreeze any system apps I've frozen.
2. Use msfastboot to reflash stock recovery?
3. Accept the OTA or somehow flash it manually (I'm not sure about this last one see below)
I accidentally accepted the OTA download and now it bugs me to install. I won't install because it just reboots into TWRP. But it does keep prompting me to set at time to install. If I simply flash stock recovery I think i will still get this prompt. Would that be the easiest way to go?
Thanks for any advice.
pairustwo said:
The more I read the more confused I get. Could someone sort me out?
<complain>I got the moto x because of the quick OTA updates. Now it seems that because I installed TWRP and froze a few apps with TB that this feature is totally borked!</complain> is that correct? I cannot update without stock recovery and all the original apps installed / unfrozen?
In my predicament would the easiest thing to do be
1. Unfreeze any system apps I've frozen.
2. Use msfastboot to reflash stock recovery?
3. Accept the OTA or somehow flash it manually (I'm not sure about this last one see below)
I accidentally accepted the OTA download and now it bugs me to install. I won't install because it just reboots into TWRP. But it does keep prompting me to set at time to install. If I simply flash stock recovery I think i will still get this prompt. Would that be the easiest way to go?
Thanks for any advice.
Click to expand...
Click to collapse
1. - You do not need to unfreeze apps. The apps are still there untouched in the file system, and in recovery the OS hasn't booted enough to know that the apps are "frozen". By the way, frozen apps are basically just tagged in the OS as not available....so with the OS not running (just recovery is), they aren't "frozen" in recovery.
2. - Yes, fastboot to flash stock recovery. Boot to bootloader mode, fastboot flash recovery recovery.img (you don't need mfastboot for recovery, though you can still use it.)
3. - Accept the OTA. Since yours is trying to install, you should be able to boot to bootloader, flash stock recovery and on reboot it will start the install of the OTA. When done and booted.....reflash TWRP if you like.
That would be the way to go, yes.
Flash stock recovery and try to upgrade. If you cannot, try to unfreeze all sys apps. That should do it. ?
OK. So maybe not such a huge PIA as I had thought. I will track down the recovery file and read the instructions for flashing.
Thanks
@pairustwo
Every time another OTA comes out, people who modify their phones ask the same question. I've written up a FAQ based on the past OTA's.. -> http://mark.cdmaforums.com/MotoX-OTA.html if you want to read it to get more info.
Part of the issues you are talking about when taking an OTA is that the OTAs want to patch and replace only SOME files on your phone, so it checks to make sure the update is for your phone and its android version by evaluating certain files on the phone, that they exist and that their check sums match what the update expects.
i.e. change/modify/delete files the OTA update checks before installing, and the OTA will refuse to install.
If it didn't do this, the wrong update could possibly flash to your phone, replacing files with incompatible versions and making a big mess.
So yeah, "getting back to stock" (or as close to it as you can) is always recommended before taking an OTA so the "check" doesn't fail and prevent the OTA from applying.
In the past, freezing apps with Ti Backup was enough of a modification to cause the OTA's to fail. So often it is still suggested to un-freeze those done with TiBackup.
The OTA zip file (as downloaded) will only flash from Stock Recovery. TWRP and CWM for example don't properly process and flash them, so if you try to install when stock recovery is NOT on your phone, you get stuck in a bootloop. Using mFastboot to flash stock recovery back on is fine for those with unlocked bootloaders. Locked Bootloader users, is another matter.
There is a way "side load" the OTA, IF you have stock recovery, your phone hasn't received the push from Moto or your Carrier yet, and the OTA Zip file has leaked. But it still requires you get back to stock, etc. just as if you were getting it OTA.
So I've tried to flash back to stock but am having an issue. Does anyone have a link to a stock recovery image? Maybe the one I have is corrupt.
pairustwo said:
So I've tried to flash back to stock but am having an issue. Does anyone have a link to a stock recovery image? Maybe the one I have is corrupt.
Click to expand...
Click to collapse
Answered here -> http://forum.xda-developers.com/moto-x/moto-x-qa/dead-android-red-exclamation-t2778189
and I made this -> http://mark.cdmaforums.com/MotoX-EnterStockRecovery.htm
It's been a while since I meddled with my phone and I fear some of the adb basics are failing me. I had rooted my XT1092 a while ago and changed the DPI via a build.prop edit. Now since my device was rooted, I could not update to the subsequent 5.0.2 and later 5.1 via an OTA. As the damned "Update device" message keeps popping up and annoying the bejeezus outta me, I decided to take the 5.0.2 update via a zip (which again failed, since it needed stock unrooted 5.0 (Status 7 error, if I remember correctly).
I managed to unroot my phone, but the edited build.prop still stops me from an OTA/zipped stock update. I'd rather not do a full wipe of my device to get back to stock 5.0 (LXE22.46-19). So my question is this: can I get back to complete stock unrooted 5.0 by merely flashing the system.img files via mfastboot? Or would that cause an issue? Or flash all the files from logo.bin to fsg.mbn and stop there without wiping data? Or any other suggestion to get to 5.1 on a once-rooted phone with an edited build.prop? TIA!
You can always flash the same version of Android without a data wipe. Just download a stock firmware for same or higher Android version, follow all steps for flashing in the flashfile.xml, just don't use the command fastboot erase userdata at last. And you must flash from system image, the OTA won't work.
My phone is rooted running a stock 5.1 ROM.
I just got a prompt to install a system update with a security patch, etc so I clicked to install but it gets stuck in TWRP recovery instead of installing the update.
So now every time my phone boots up it restarts trying to install that update.
EDIT: Ok, after a couple reboots the update cancelled on its own. Now I'm wondering if there's any way I can still install this update without it getting stuck in TWRP.
kloan said:
My phone is rooted running a stock 5.1 ROM.
I just got a prompt to install a system update with a security patch, etc so I clicked to install but it gets stuck in TWRP recovery instead of installing the update.
So now every time my phone boots up it restarts trying to install that update.
EDIT: Ok, after a couple reboots the update cancelled on its own. Now I'm wondering if there's any way I can still install this update without it getting stuck in TWRP.
Click to expand...
Click to collapse
In twrp erase cache. That will erase the update file that downloaded.
Sent from my XT1095 using Tapatalk
Thanks yep that's what I did so it boots fine again. I read in another thread some issues people are having with installing this update if their phone is rooted so I'm just gonna skip it. I've grown tired of all the hoop jumping Android requires.
kloan said:
Thanks yep that's what I did so it boots fine again. I read in another thread some issues people are having with installing this update if their phone is rooted so I'm just gonna skip it. I've grown tired of all the hoop jumping Android requires.
Click to expand...
Click to collapse
If you have a custom recovery, you can flash this rom:
http://forum.xda-developers.com/moto-x-2014/development/rom-xt1095-flashable-stock-rom-t3185945
It has the latest stagefright patch now, and it has OTA disabled to prevent bricking issues for people that have downgraded systems or systems that are modified with root/xposed/busybox/etc.
Before I do that, will I have to reinstall my apps or change all of the system settings again? Sorry, it's been a while since I flashed a ROM, I can't remember what's affected.
You shouldn't need to factory reset considering this is a stock rom and you are coming from the same android version. 5.1 to 5.1. But the fact that your phone had issues before may be an issue. You can try it without factory reset since it won't cause any damage to see if it works.
As far as what is modified, it should only be system apps. Anything you installed or configured should remain the same as long as you don't factory reset.
Sent from my XT1095 using Tapatalk
You have to go back to stock rom first to ensure you have system partition 100% stock. You can just flash the system.img and recovery.img, then apply the OTA. If you want to do it from twrp, you dont need flash the recovery.img and apply the zip file from romracer.
Sent from my XT1095 using Tapatalk
I had the same problem. I cleaned cache and was able boot properly. But now my phone asks me to update every 2 minutes and it is annoying the crap out of me. If I unroot and remove TWRP, will I be able to update to this OTA.
Okay, I haven't been able to update since LMY48I. Back then I was on stock recovery. Re-locking bootloader and all but still was not able to take OTA (always came up with dead android guy with "Error"). I'll skip the (probably) irrelevant stuff since then and give you the current situation:
Currently unlocked, rooted, with custom recovery. Still on LMY48I. I can't take OTAs obviously, and have tried flashing OTA updates manually with no luck and have tried flashing the entire Marshmallow image and that will not work either (sideload or flashing from internal storage in recovery). Sideload comes up with Closed error (device DOES show up in device list and I can do other things). Flashing from within recovery just says "Failed".
Please help me get to Marshamallow!
Edit: On Project Fi by the way.
Edit 2: Also, I've tried the flash-all script.
Now it says the device is corrupted when I boot up. I can still access recovery. Any help walking me through getting all of the correct firmware and latest build on would be much appreciated.
Thank you.
Edit: Looks like i'm good. I flashed each .img individually. I'm super curious why flash-all, sideload, and flashing from device wouldn't work though.
altvisionx said:
......./I flashed each .img individually. I'm super curious why flash-all, sideload, and flashing from device wouldn't work though.
Click to expand...
Click to collapse
Flashall.bat stops; only m-bootloader and m-radio are flash. Google's fault. You did the right thing by extracting the images and fasbiot flash them.
You cannot sideload the full factory image or flash from storage. Only fastboot
And just to clarify, you can't take an OTA (sideloading or otherwise) if your phone is rooted, have a custom recovery or a custom kernel (or any other modification to the system). The state of the bootloader (locked or unlocked) does not affect the ability to take an OTA update.
Greetings,
in a last month or so, im trying to revive this tablet, mostly because of the dual boot posibilities, but that can be done only with lollipop uefi bios.
My device is currently running 4.4 .201 OTA and im unable to update to 5.0 with whatever step i do.
First of all, i hard bricked my first device of this model myself completely, so i decided to replace my motherboard, somehow i lost the side buttons aswell, so i did order a "non-working" device from e-bay. I made it working by just flashing the .182 firmware.
I wasnt able to apply OTAs to the device, always got Status 7 Error in recovery, i did fix that by using a modified update script that i had to apply to every single OTA i flashed.
Finally got to 201, now its time to go to Lollipop.
I tried
- flashing LP firmware through temporary recovery (CWM/TWRP)
- flashing every single firmware thats available - .17; .24; .33; .36 - every single one with the KK "prefix"
- flashing every single firmware with the official firmware update method aswell (putting the update file to root of internal/sd memory and applying it within the tablets system
- flashing the official OTA updates that arrived as dlpkgfile
- flashing the firmware with the command file (putting renamed firmware to update.zip, to /data/ + command file to /cache/recovery/
- flashing service firmware with Intel Phone Flash Tool (KK/LP)
- reseting data/factory reset before and after the update, with cache included
- restoring both backups of KK/LP
- flashing boot.img extracted from the ROM after applying the update
Maybe im missing something, but in every single case, the update went through (some maybe had error in TWRP, but were fine in CWM/stock), but the system doesnt upgrade itself.
The update completes, then after a system reboot the device just goes to the ASUS logo (first one), gets stuck for roughly 30 seconds and bootloops. The droidboot/bootloader is not changing after update.
Any ideas on how to proceed now? I believe i tried every single method of updating, could not suceed unfortunately.
Thanks!
FIXED
The original system update process (putting update file in the root of sdcard,blablabla) always ended up on like 70% and rebooted, with no bootloader upgrade.
So the system didnt boot up, had to revert back to kitkat.
I found OTA Verifier app, that verifies the update script and selects the error in it.
I saw, its saying my device model number is K013_1, but thats not true! For some reason i had 2 build.props in my system files, so i rooted, deleted build.prop_K013_1 (or some name like this) and kept the original one.
! The update itself didnt give any kind of error, it went through without saying anything, thats why i didnt think the updater script would be the problem!
I believe, just deleting the first 2 lines in the update script would help aswell.
After that, i applied the update and waited for it to finish, at 70% once again it rebooted, but this time it started upgrading the bootloader. Lollipop installation finished and im finally at 5.0