Hi,
just had a bad experience with the updater today. Due to a bad connection the downloaded zip files were corrupt causing the updater to try and abort every time.
Why not let the OTA Upgrade also download a associated MD5 file for each Upgrade ZIP? TWRP's default action if a .md5 file present is to check the file CRC before trying to apply a upgrade. If md5 is wrong it will be skipped.
a little change for a better upgrade process.
Thanks
Best person to answer this one is @Chainfire
solarizde said:
Hi,
just had a bad experience with the updater today. Due to a bad connection the downloaded zip files were corrupt causing the updater to try and abort every time.
Why not let the OTA Upgrade also download a associated MD5 file for each Upgrade ZIP? TWRP's default action if a .md5 file present is to check the file CRC before trying to apply a upgrade. If md5 is wrong it will be skipped.
a little change for a better upgrade process.
Thanks
Click to expand...
Click to collapse
MD5 is already checked I think. Are you sure it aborts because of that? Have you tried turning off secure flashing thing?
XpLoDWilD said:
MD5 is already checked I think. Are you sure it aborts because of that? Have you tried turning off secure flashing thing?
Click to expand...
Click to collapse
What I mean is placing the MD5 file on download to the zip file. Currenty TWRP is lcearly stating "No md5 file" so the CRC check is skipped. The problem was that one of my downloaded zip files was corrupt but it still startet to unpack it unfortunately it broke at 80% and left my device in a unfinished update state. This should never happen. Luckily I was able to recover by installing the latest full omni download which was still on the SD Card.
So my post here is just a suggestion to also add a .md5 file for each automatically downloaded zip update. There is not much more to do then this because twrp will do the remaining work and check CRC before starting extraction.
solarizde said:
What I mean is placing the MD5 file on download to the zip file. Currenty TWRP is lcearly stating "No md5 file" so the CRC check is skipped. The problem was that one of my downloaded zip files was corrupt but it still startet to unpack it unfortunately it broke at 80% and left my device in a unfinished update state. This should never happen. Luckily I was able to recover by installing the latest full omni download which was still on the SD Card.
So my post here is just a suggestion to also add a .md5 file for each automatically downloaded zip update. There is not much more to do then this because twrp will do the remaining work and check CRC before starting extraction.
Click to expand...
Click to collapse
Hmm, did you disable secure mode?
That should NOT have happened in secure mode because ZIP signature verification would have failed.
Entropy512 said:
Hmm, did you disable secure mode?
That should NOT have happened in secure mode because ZIP signature verification would have failed.
Click to expand...
Click to collapse
Nope no playing with the secure mode here. TWRP 2.6.3.0
Afe redownloading it and rebooting the recovery it was installed fine.
Related
Hello,
maybe this is a feature request or bug report, I don't really know:
Can you ditch the full path inside the md5sum files found at: dl.omnirom.org?
eg, from:
Code:
c9ac67ba61c7e654c5891c693a50d931 /home/build/omni/out/target/product/flo/omni-4.4.2-20131225-flo-NIGHTLY.zip
to leaving only the filename:
Code:
c9ac67ba61c7e654c5891c693a50d931 omni-4.4.2-20131225-flo-NIGHTLY.zip
Since I always check the md5 sum before I flash a new ROM I'll have to edit the .md5sum files manually after each download.
Otherwise the commandline utility md5sum -c failes because the file could not be found.
Additionally, can you place the appropriate md5sum file along with the ROM Zip in the opendelta folder? TWRP would check the file if a md5sum file is found.
Happy Holidays!
seXneo said:
Hello,
maybe this is a feature request or bug report, I don't really know:
Can you ditch the full path inside the md5sum files found at: dl.omnirom.org?
eg, from:
Code:
c9ac67ba61c7e654c5891c693a50d931 /home/build/omni/out/target/product/flo/omni-4.4.2-20131225-flo-NIGHTLY.zip
to leaving only the filename:
Code:
c9ac67ba61c7e654c5891c693a50d931 omni-4.4.2-20131225-flo-NIGHTLY.zip
Since I always check the md5 sum before I flash a new ROM I'll have to edit the .md5sum files manually after each download.
Otherwise the commandline utility md5sum -c failes because the file could not be found.
Additionally, can you place the appropriate md5sum file along with the ROM Zip in the opendelta folder? TWRP would check the file if a md5sum file is found.
Happy Holidays!
Click to expand...
Click to collapse
OpenDelta already checks the MD5 when download/patching - if the MD5's don't match nothing will be flashed. Doing it again inside recovery would just be a waste of CPU. If secure mode is enabled, whole-file signature verification is also done inside recovery, which also guarantees the file to be correct.
In other words, it would not be any use.
However, if I download the rom zip, and am planing on hacking it before installing the updated image, having the edit the md5sum file before I can verify the download using it is still an issue, not to mention the simple case of initial install, and I like having a few installable zips around in case I need to reinstall.
Fastboot flash system ...
(bootloader) Data size exceeds download buffer
FAILED (Remote Failure)
What is going on?
Need the new fastboot
papi92 said:
Need the new fastboot
Click to expand...
Click to collapse
I have tried that with no success
Unlocked bootloader? Stock USB cable.
papi92 said:
Unlocked bootloader? Stock USB cable.
Click to expand...
Click to collapse
Yeah stock cable, bootloader is unlocked and everything besides the system image flashes without a hitch
Weird.
Maybe a corrupt download? Try downloading it again and/or check the MD5. (af4520213c1a3e2b3dd811aef030b87b)
same here
i'm stuck...
jamesadalpiaz said:
Maybe a corrupt download? Try downloading it again and/or check the MD5. (af4520213c1a3e2b3dd811aef030b87b)
Click to expand...
Click to collapse
Thanks man didn't even think to check, 'twas a bad download!
still doesnt work for me.
my download is okay.
when trying to flash system img -- still getting the same message as above.
when trying to use flash all bat file --getting these quoets:
target reported max download size of 536870912 bytes
archive does not contain 'boot.sig'
archive does not contain recovery.sig'
failed to allocate 1679592636 bytes
error: update package missing system.img
Click to expand...
Click to collapse
Please help me
itamarbh said:
still doesnt work for me.
my download is okay.
when trying to flash system img -- still getting the same message as above.
when trying to use flash all bat file --getting these quoets:
Please help me
Click to expand...
Click to collapse
what error do you get when you try to unzip and flash the individual img files?
jj14 said:
what error do you get when you try to unzip and flash the individual img files?
Click to expand...
Click to collapse
this...
(bootloader) Data size exceeds download buffer
FAILED (Remote Failure)
Thanks !
itamarbh said:
still doesnt work for me.
my download is okay.
when trying to flash system img -- still getting the same message as above.
when trying to use flash all bat file --getting these quoets:
Please help me
Click to expand...
Click to collapse
When you downloaded the .tgz file and extracted it, it contained a .tar file. When you extract the .tar file you get the shamu-lrx21o folder. Within that folder you have the flash-all.bat, but you also have the image-shamu-lrx21o.zip file. Extract the contents of that zip file and try again. The system.img file is in that zip file.
Astraeus85 said:
When you downloaded the .tgz file and extracted it, it contained a .tar file. When you extract the .tar file you get the shamu-lrx21o folder. Within that folder you have the flash-all.bat, but you also have the image-shamu-lrx21o.zip file. Extract the contents of that zip file and try again. The system.img file is in that zip file.
Click to expand...
Click to collapse
I know, tried that as well, didn't work...
i'm stuck.
itamarbh said:
still doesnt work for me.
my download is okay.
when trying to flash system img -- still getting the same message as above.
when trying to use flash all bat file --getting these quoets:
Please help me
Click to expand...
Click to collapse
Here's your help. I had the same exact problem. Follow the instructions to this link and you'll be back on track.
http://www.ibtimes.co.uk/how-fix-er...roid-5-0-factory-images-nexus-devices-1474865
glensta said:
Here's your help. I had the same exact problem. Follow the instructions to this link and you'll be back on track.
http://www.ibtimes.co.uk/how-fix-er...roid-5-0-factory-images-nexus-devices-1474865
Click to expand...
Click to collapse
Thanks for reponding,
But this didn't help, like I said before -- I'm getting an error while flashing the system img alone as well...
Thanks anyway...
Anyone else?
itamarbh said:
Thanks for reponding,
But this didn't help, like I said before -- I'm getting an error while flashing the system img alone as well...
Thanks anyway...
Anyone else?
Click to expand...
Click to collapse
Did u even try this method above I posted? How could it not help. It works perfectly. Seems u didn't try it is my guess. If your stuck don't try just flashing the system.img only, start over with a complete factory image reflash. It'll wipe ur data but so what, u'll be back in business
itamarbh said:
this...
(bootloader) Data size exceeds download buffer
FAILED (Remote Failure)
Thanks !
Click to expand...
Click to collapse
I ran into this yesterday, do this:
Download the Android SDK: https://developer.android.com/sdk
Grab fastboot from the platforms-tools folder.
Flash System again
This will fix it, you just need the newest Fastboot.
Sent from my Nexus 6 using XDA Free mobile app
I'm also stuck.
I keep getting the error 'cannot load system.img'. Everything else flashes fine. The bootloader and the radio. I received the OTA and that didn't install either. I was left with the android guy on his back and it said error. I'm not sure if it has to do with the encryption on the phone or not but it's frustrating. I did root with CFauto root method but my recovery is still stock. I'll try the new fastboot and see what happens.
This might not apply in this situation, but coming from several years of previous Motorola phones, sometimes I had to download and use mfastboot (Motorola's version of fastboot) for large images to flash. It's worth a shot and won't hurt to try it
Edit: here is the link. If you decide to try it, make sure to read the first section on renaming the file http://mark.cdmaforums.com/ADB.htm
My HTC One M7 (UK O2) was prompting me to update to the latest operating system.
Eventually I succumbed and installed the update. The phone is stock although I had unlocked the bootloader in preparation for experimenting with new operating systems (I'm a noob but curious about experimenting).
After installing, the phone rebooted and wound up on a screen with a red exclamation mark in a picture of a phone.
Sometimes it boots into the white Android startup screen, then shuts down and goes throught the whole startup cycle in a loop
I can get it into bootloader mode but none of the options presented there such as factory reset seem to do anything.
I don't think it's a hardwear problem as it seems to be a direct result of trying to install the update.
I would send it in for a warranty repair but I think that as I have unlocked then relocked the bootloader and it shows a 'relocked' flag then that voids the warranty, is that right?
Any help to sort this mess out would be appreciated.
Thanks
jimbobly
During unlocking bootloader some files deleted and during update ota checks file integrity so file found missing and update stops
So basically you have to restore that files
Or RUU update can be found here
But it will delete your all data photo songs contact apps so backup them
http://forum.xda-developers.com/showthread.php?t=3053944
Thanks Yatindroid,
I don't think I can restore the files so I need to use the RUU. Can you tell me how to identify the correct file?
Thanks
jimbobly said:
Thanks Yatindroid,
I don't think I can restore the files so I need to use the RUU. Can you tell me how to identify the correct file?
Thanks
Click to expand...
Click to collapse
this file: https://www.androidfilehost.com/?fid=95916177934541097
instructions on how to flash it are at the top of the page in Yatindroid's link.
RUU
Seanie280672 said:
this file androidfilehost.com/?fid=95916177934541097
instructions on how to flash it are at the top of the page in Yatindroid's link.
Click to expand...
Click to collapse
This file seems to be corrupt/ can't be opened, downloaded it 3 times, can you link an alternative or explain the things that I need to consider in order to be able to choose an RUU myself.
Thanks
jimbobly said:
This file seems to be corrupt/ can't be opened, downloaded it 3 times, can you link an alternative or explain the things that I need to consider in order to be able to choose an RUU myself.
Thanks
Click to expand...
Click to collapse
This file is not corrupted, its encrypted, you can't open it. Want to know if its corrupted? MD5 value is what you want to check.
If the MD5 is ok then flash the zip.
md5: 399fa4bc8e841cc993a358e7c09fc4ca
alray said:
This file is not corrupted, its encrypted, you can't open it. Want to know if its corrupted? MD5 value is what you want to check.
If the MD5 is ok then flash the zip.
md5: 399fa4bc8e841cc993a358e7c09fc4ca
Click to expand...
Click to collapse
Can you explain what is happening when I try to flash it over to the phone.
I go through all the steps and when I execute the flash command for this zip file it says 'Preprocess_file : Cannot open file RUU.zip' This lead me to believe it was defective in some way. What am I missing?
jimbobly said:
Can you explain what is happening when I try to flash it over to the phone.
I go through all the steps and when I execute the flash command for this zip file it says 'Preprocess_file : Cannot open file RUU.zip' This lead me to believe it was defective in some way. What am I missing?
Click to expand...
Click to collapse
First is the Md5 good?
RUU
jimbobly said:
Can you explain what is happening when I try to flash it over to the phone.
I go through all the steps and when I execute the flash command for this zip file it says 'Preprocess_file : Cannot open file RUU.zip' This lead me to believe it was defective in some way. What am I missing?
Click to expand...
Click to collapse
Also, when I try to unpack the zip file I get the message that the compressed file is empty!
jimbobly said:
Also, when I try to unpack the zip file I get the message that the compressed file is empty!
Click to expand...
Click to collapse
To eliminate any doubt about corrupted file, the only thing you have to do is to check the md5 value. ANd like we already said, the file is encrypted you can't open an encrypted zip. Just check the md5 to confirm the file is good.
alray said:
To eliminate any doubt about corrupted file, the only thing you have to do is to check the md5 value. ANd like we already said, the file is encrypted you can't open an encrypted zip. Just check the md5 to confirm the file is good.
Click to expand...
Click to collapse
Unfortunately, this is a bit advanced for me. How can I do this?
jimbobly said:
Unfortunately, this is a bit advanced for me. How can I do this?
Click to expand...
Click to collapse
http://www.winmd5.com/
alray said:
http://www.winmd5.com/
Click to expand...
Click to collapse
OK, I checked the md5 with the tool and they match. But I still get the message 'preprocess file cannot open zip'.
How should I be handling the file, with the fastboot commands?
jimbobly said:
OK, I checked the md5 with the tool and they match. But I still get the message 'preprocess file cannot open zip'.
How should I be handling the file, with the fastboot commands?
Click to expand...
Click to collapse
you need learn flashing RUU zip
reboot your phone to fastboot mode (same as you posted pic )
setup adb folder find miniSDK HERE and Here
Download htc fastboot HERE copy it adb folder rename it fastboot.exe (rename old fastboot to other name)
open adb folder put your RUU zip there rename it RUU.zip
connect your phone with PC
your phone should be locked/relocked
at adb folder open CMD (shift + right click)
type command below
Code:
fastboot devices
(will show attached phone to PC match serial no)
Code:
fastboot oem rebootRUU
(reboot phone to flashing ruu mode)
Code:
fastboot flash zip RUU.zip
(wait it will take time 8-10 minutes it will show successfully at last if not repeat same command immediately)
Code:
fastboot reboot-bootloader
( it is last and important step of flashing)
now see new version showing at phone details
reboot to system
RUU
Thanks for taking the time to look at this Yatindroid.
I followed your instructions but there seems to be a problem with the RUU file.
When I execute the 'flash zip' command I get an 'unable to read zip message!
The file I have has been recommended by several people.
Am I handling this file incorrectly?
This is the file I am using. https://www.androidfilehost.com/?fid=95916177934541097
All I did was rename the file RUU.zip and move it to the ADB folder.
Thanks for the help.
jimbobly said:
Thanks for taking the time to look at this Yatindroid.
I followed your instructions but there seems to be a problem with the RUU file.
When I execute the 'flash zip' command I get an 'unable to read zip message!
The file I have has been recommended by several people.
Am I handling this file incorrectly?
This is the file I am using. https://www.androidfilehost.com/?fid=95916177934541097
All I did was rename the file RUU.zip and move it to the ADB folder.
Thanks for the help.
Click to expand...
Click to collapse
put RUU.zip in fastboot/adb folder
name should be RUU.zip not RUU.zip.zip
use htc fastboot rename that to fastboot
RUU
I changed the name to just RUU, I thought the filename had to include the .zip term.
Now it tells me that it cannot open RUU.zip.
yatindroid said:
put RUU.zip in fastboot/adb folder
name should be RUU.zip not RUU.zip.zip
use htc fastboot rename that to fastboot
Click to expand...
Click to collapse
RUU
I changed the name to just RUU, I thought the filename had to include the .zip term.
Now it tells me that it cannot open RUU.zip.
jimbobly said:
RUU
I changed the name to just RUU, I thought the filename had to include the .zip term.
Now it tells me that it cannot open RUU.zip.
Click to expand...
Click to collapse
check md5
fastboot flash zip ( pressing tab will show files in fastboot folder press tab until you got ruu.zip )
Already checked the md5 and it's ok.
What is the best thing to do? Just try a new RUU?
I received an update on my P9, stock non rooted. When I try to apply the update I receive
"Package checksum error"
I deleted the HuOUC folder and tried again but with no luck.
Rebooting and wiping cache did not help either.
What could be the problem?
Up...
Try with HiSuite, while donwloading files, you can find them in "Documents/HiSuite/ROM/".
When the donwload reach the 100%, copy rapidly the files to another location, you can verify the MD5 checksum in each file included in filelist.xml (file sizes too).
Anyway, if no luck, try with another internet connection.
Hello to all. Sorry for my English, I do not speak it very well. I have a p8 lite 2017 and I'm trying to flash a stock firmware downloaded from firmware finder. My problem is this: when I try to flash 2 of the 3 files (update.zip, full.zip), the twrp gives me an error and in particular
Updating partition details ....
........ done
Full SELinux support is present.
MTP Enabled
Installing zip file '/external_sd/update.zip'
Cheking for MD5 file found .....
Skipping MD5 check: no MD5 file found
mountencrypt: failed to mount / data: No such file or directory
Removing unneeded files ...
Removing empty directorys ....
add link type file ...
write radio image ...
check_write_data_to_partition, write data error
E: UNKNOWN COMMAND (ERRNO) (in red)
update_huawei_pkg_from_ota_zip: update package from zip failed
UPDATER PROCESS ENDED WITH ERROR: 7
ERROR INSTALLING ZIP FILE '/EXTERNAL_SD/UPDATE.ZIP' (in red)
Updating partition details ....
..... done
I can not solve the problem. I also changed twrp, but nothing has changed.
At the moment I can not turn on the phone because it is stopped on the screen "your device is booting ..."
I hope you can help me, I'm going crazy.
thank you so much
alex'82 said:
Hello to all. Sorry for my English, I do not speak it very well. I have a p8 lite 2017 and I'm trying to flash a stock firmware downloaded from firmware finder. My problem is this: when I try to flash 2 of the 3 files (update.zip, full.zip), the twrp gives me an error and in particular
Updating partition details ....
........ done
Full SELinux support is present.
MTP Enabled
Installing zip file '/external_sd/update.zip'
Cheking for MD5 file found .....
Skipping MD5 check: no MD5 file found
mountencrypt: failed to mount / data: No such file or directory
Removing unneeded files ...
Removing empty directorys ....
add link type file ...
write radio image ...
check_write_data_to_partition, write data error
E: UNKNOWN COMMAND (ERRNO) (in red)
update_huawei_pkg_from_ota_zip: update package from zip failed
UPDATER PROCESS ENDED WITH ERROR: 7
ERROR INSTALLING ZIP FILE '/EXTERNAL_SD/UPDATE.ZIP' (in red)
Updating partition details ....
..... done
I can not solve the problem. I also changed twrp, but nothing has changed.
At the moment I can not turn on the phone because it is stopped on the screen "your device is booting ..."
I hope you can help me, I'm going crazy.
thank you so much
Click to expand...
Click to collapse
After having a soft-brick I followed this instructions:
https://forum.xda-developers.com/p8...ck-rom-huawei-prague-pra-xxxc432b182-t3727816
My phone is running without problems