[Q] Flash keeps failing! - Kindle Fire Q&A, Help & Troubleshooting

(Be aware that I am a big newbie at this)
I'm using TWRP v2.1.1
Every time I try to flash a ROM it immediately says Failed! in red.
Right now I'm trying to unroot my kindle to fix the problem, but when I go to flash update.zip it does the same thing, it fails.
Here's the error right when I flash update.zip, There's no hesitation, just instantly failed. No loading bar or anything.
Code:
From top to bottom
* Verifying filesystems...
* Verifying partition sizes...
-- Verify md5 for /sdcard/update.zip
-- md5 file not found
-- aborting install
Error flashing zip '/sdcard/update.zip
Formatting /sdcard...
Using rm -rf on '/dev/block/mmcblk0p12'
-- Verify md5 for /sdcard/update.zip
-- md5 file not found
-- aborting install
Error flashing zip '/sdcard/update.zip'
(Same thing, As it does a factory reset and wipe Dalvik cache,
No need to write all that)
Aborting install
Error flashing zip '/sdcard/update.zip'
I appreciate any help anyone can give me.
Thanks in advance.
Edit: Disabled Force MD5 check on all zips, Flash is still failing.

You need to disable md5 checking
[Edit:] I should have paid more attention to the post. Don't choose "install update.zip from sdcard", only "install...". Unless you're installing an update.

Disabled it in settings, Still failing.
Edit: Don't know what you mean by choosing only install ...

What recovery is this? Why is it trying to delete the /sdcard partition when installing a ROM? That doesn't make any sense.

I'm using TWRP v.2.1.1, if that's what your asking. And I know, this is weird seeing as I've researched the problem and no one has seem to had it.

iKrotos said:
I'm using TWRP v.2.1.1, if that's what your asking. And I know, this is weird seeing as I've researched the problem and no one has seem to had it.
Click to expand...
Click to collapse
I hope you edited that post to include the big bold letters at the top... or my eyes are worse than I thought.
This...
Formatting /sdcard...
Using rm -rf on '/dev/block/mmcblk0p12'​
is what's troubling to me...
What ROM is this? Have you played around with your partition table? Can you use parted to get a look at your partition table?
While booted into TWRP...
Code:
adb shell parted /dev/block/mmcblk0 unit B print

Got the Update.zip (Unroot) to Flash. (All I did was uncheck the 2 boxes, signature one and MD5 one and it worked)
Now I'm going to re-root my kindle and try to install another ROM and if it keeps failing I'll get back to you. Let's hope it works ...

Related

(solved)Status 7 When install Update

Hi
I Installed the sensation rom. But i allways have some wifi issue so i go back to stock. wiped everything included chache dalvic...
After i installed the custom rom i get an update OTA_ENDEAVOR_U_ICS_40_HTC_Europe_1.29.401.7-1.28.401.9_release_259295wbmgoi0p47wgsfl6.zip
I tried to install but get an error status 7
I renamed it to update.zip and tried to install.
this didnt work
i download this file manual from a thread here. but this dindt work
what can i do to get the last update?
Running extendedcommand...
Waiting for SD Card to mount (20s)
SD Card mounted...
Verifying SD Card marker...
bbf1350144b25f6e51499717bf478006
I:Running script:
I:
ui_print("ROM Manager Version 5.0.0.6");
ui_print("5. Mai 2012");
ui_print("Preparing to install ROM...");
run_program("/cache/dowipedalvikcache.sh");
assert(install_zip("/sdcard/Download/OTA_ENDEAVOR_U_ICS_40_HTC_Europe_1.29.401.7-1.28.401.9_release_259295wbmgoi0p47wgsfl6.zip"));
parse returned 0; 0 errors encountered
ROM Manager Version 5.0.0.6
5. Mai 2012
Preparing to install ROM...
about to run program [/cache/dowipedalvikcache.sh] with 1 args
mount: mounting /dev/block/mmcblk0p13 on /cache failed: Device or resource busy
mount: can't find /sd-ext in /etc/fstab
umount: can't umount /sd-ext: No such file or directory
run_program: child exited with status 1
-- Installing: /sdcard/Download/OTA_ENDEAVOR_U_ICS_40_HTC_Europe_1.29.401.7-1.28.401.9_release_259295wbmgoi0p47wgsfl6.zip
Finding update package...
I:Update location: /sdcard/Download/OTA_ENDEAVOR_U_ICS_40_HTC_Europe_1.29.401.7-1.28.401.9_release_259295wbmgoi0p47wgsfl6.zip
Opening update package...
Installing update...
checkmid: device mid = PJ4610000
Copying fotaBoot to /data/system for customize reload...
Verifying current system...
file "/system/app/AppSharing.apk" doesn't have any of expected sha1 sums; checking cache
failed to stat "/cache/saved.file": No such file or directory
failed to load cache file
script aborted: assert failed: apply_patch_check("/system/app/AppSharing.apk", "afdd27bddd2ffffafeac22857e88b0cb49507f3c", "5b34f2af9b66e8c9a99a4b31224f086ebd293592")
assert failed: apply_patch_check("/system/app/AppSharing.apk", "afdd27bddd2ffffafeac22857e88b0cb49507f3c", "5b34f2af9b66e8c9a99a4b31224f086ebd293592")
E:Error in /sdcard/Download/OTA_ENDEAVOR_U_ICS_40_HTC_Europe_1.29.401.7-1.28.401.9_release_259295wbmgoi0p47wgsfl6.zip
(Status 7)
Installation aborted.
result was NULL, message is: assert failed: install_zip("/sdcard/Download/OTA_ENDEAVOR_U_ICS_40_HTC_Europe_1.29.401.7-1.28.401.9_release_259295wbmgoi0p47wgsfl6.zip")
Click to expand...
Click to collapse
You need stock recovery.
I tried
i flashed the stock Rom. there comes the Update which i cant install
ok i get it i flashed the old boot.img and everythink worked fine...
i extracted it from the old custom rom...
Could you explain how you fixed this? I have exactly the same error: update failed due to error AppSharing.apk - status 7.
It seems OTA is verifying current applications for discrepancies - problem is I have stock recovery and stock ROM which I installed using this RUU from ShippedRoms with verified MD5 > RUU_PYRAMID_ICS_HTC_Europe_3.32.401.5_Radio_11.69.3504.00U_11.22.3504.07_M_release_246089_signed
I'm confused as OTA is perhaps informing itself that AppSharing.apk has been modified... but from a clean install??
Neutrino22 said:
Could you explain how you fixed this? I have exactly the same error: update failed due to error AppSharing.apk - status 7.
It seems OTA is verifying current applications for discrepancies - problem is I have stock recovery and stock ROM which I installed using this RUU from ShippedRoms with verified MD5 > RUU_PYRAMID_ICS_HTC_Europe_3.32.401.5_Radio_11.69.3504.00U_11.22.3504.07_M_release_246089_signed
I'm confused as OTA is perhaps informing itself that AppSharing.apk has been modified... but from a clean install??
Click to expand...
Click to collapse
Errrr... something is wrong here.
BenPope said:
Errrr... something is wrong here.
Click to expand...
Click to collapse
Lol... I'm in marvel at your attention to detail!
Since you're a senior member, could I call upon your wealth of knowledge which you may dispense here, in this very thread?
Warm regards
Neutrino22 said:
Lol... I'm in marvel at your attention to detail!
Click to expand...
Click to collapse
The One X is Endeavor, not Pyramid.
BenPope said:
The One X is Endeavor, not Pyramid.
Click to expand...
Click to collapse
Oh, how could I have missed that! I'm in the wrong forum! Many thanks for highlighting my stupidity (which appears to be boundless!)
Warms regards.
I guess the problem is still the same, but the solution and diagnostics might differ.
I would say you need to check your recovery and boot.img are stock, you are locked, and that you are not installing an RUU with a bootloader older than the currently installed one. But I know nothing of Pyramid.
BenPope said:
I guess the problem is still the same, but the solution and diagnostics might differ.
I would say you need to check your recovery and boot.img are stock, you are locked, and that you are not installing an RUU with a bootloader older than the currently installed one. But I know nothing of Pyramid.
Click to expand...
Click to collapse
It's all working now. Manage to obtain RUU. Thanks!

[Q] Different failed OTA update to 4.4

Last night I got the notification for 4.4 update. I'm on a rooted stock device, Build JSS15R Kernel 3.4.0-ge52a21
I hit ok to reboot and install. It booted and I saw the green android. I then left the room (mistake), and when I came back it was on the main screen.
I checked and I was on 4.3 still. Is there anyway to check to see why it failed? Any log files? Will I get the OTA again?
I don't really want to sideload but if last resort I will.
Any ideas?
Check the cache folder whether the downloaded files are there,,
Sent from my Nexus 7 using xda app-developers app
---------- Post added at 07:04 PM ---------- Previous post was at 07:03 PM ----------
Also it's not safe to do an OTA on a rooted device...
Sent from my Nexus 7 using xda app-developers app
this is exactly happened to me too,
so if my device rooted, i have to do safeload instead of OTA ?
That's stange, as every previous update i've had on both my Nexus 7's have been done on a rooted device.
Obviously you lose the root by doing the update, but just re-root afterwards.
In the cache folder there is a .zip file called. 'Longrandonstringofchars'+.signed-razor-KRT16S-from-JSS15R.7d9b309e.zip
???
filking said:
I checked and I was on 4.3 still. Is there anyway to check to see why it failed? Any log files? Will I get the OTA again?
I don't really want to sideload but if last resort I will.
Click to expand...
Click to collapse
Somewhere in /cache there is a recovery.log file
If you are not on the latest version you'll get the OTA again eventually.
Sideloading is really the same type of install as OTA. The difference mainly being whether it is automatically downloaded or you download by hand and send over a USB connection. The actually install file is the same in either case.
Thanks... I knew it was the same but I had a problem doing the same with an old nexus 2012 and the cable 'slipped' and bricked it.
So, to save risks, i'll wait for the OTA.... Not in a hurry, just curious why it didn't install 1st time.
I'll look at the recovery.log file and see what I find.
Ok, Below is the end of the recovery.log.
Seems like an error in the downloaded file, but I may be wrong.
Finding update package...
I:Update location: /cache/7d9b309e11da82edb5373a1f59965bca89f6041f.signed-razor-KRT16S-from-JSS15R.7d9b309e.zip
Opening update package...
I:read key e=65537
I:1 key(s) loaded from /res/keys
Verifying update package...
I:comment is 1370 bytes; signature 1352 bytes from end
I:whole-file signature verified against key 0
I:verify_file returned 0
Installing update...
Verifying current system...
file "/system/bin/debuggerd" doesn't have any of expected sha1 sums; checking cache
failed to stat "/cache/saved.file": No such file or directory
failed to load cache file
script aborted: "/system/bin/debuggerd" has unexpected contents.
"/system/bin/debuggerd" has unexpected contents.
E:Error in /cache/7d9b309e11da82edb5373a1f59965bca89f6041f.signed-razor-KRT16S-from-JSS15R.7d9b309e.zip
(Status 7)
Installation aborted.
I:Saving locale "en_GB"
I:timed out waiting for key input; rebooting.
I:Saving locale "en_GB"
Any ideas?
filking said:
Ok, Below is the end of the recovery.log.
Seems like an error in the downloaded file, but I may be wrong.
Finding update package...
I:Update location: /cache/7d9b309e11da82edb5373a1f59965bca89f6041f.signed-razor-KRT16S-from-JSS15R.7d9b309e.zip
Opening update package...
I:read key e=65537
I:1 key(s) loaded from /res/keys
Verifying update package...
I:comment is 1370 bytes; signature 1352 bytes from end
I:whole-file signature verified against key 0
I:verify_file returned 0
Installing update...
Verifying current system...
file "/system/bin/debuggerd" doesn't have any of expected sha1 sums; checking cache
failed to stat "/cache/saved.file": No such file or directory
failed to load cache file
script aborted: "/system/bin/debuggerd" has unexpected contents.
"/system/bin/debuggerd" has unexpected contents.
E:Error in /cache/7d9b309e11da82edb5373a1f59965bca89f6041f.signed-razor-KRT16S-from-JSS15R.7d9b309e.zip
(Status 7)
Installation aborted.
I:Saving locale "en_GB"
I:timed out waiting for key input; rebooting.
I:Saving locale "en_GB"
Any ideas?
Click to expand...
Click to collapse
To me, it looks like a corrupted download. Maybe you can try deleting the file and reboot?
Sent from my Nexus 4 using Tapatalk
I thought that as well.. So I copied the .zip file and deleted it.
Rebooting..... I will report back..
filking said:
Ok, Below is the end of the recovery.log.
Seems like an error in the downloaded file, but I may be wrong.
...
Any ideas?
Click to expand...
Click to collapse
The downloaded file is fine.
Your /system/bin/debuggerd is modified.
You most likely are rooted and using stickmount.
You can grab the appropriate debuggerd from this thread in the download section:
http://forum.xda-developers.com/showthread.php?t=2534698
look for update-KRT16S-debuggerd.zip
You can run it in TWRP or unzip and place debuggerd in /system/bin
Cheers for that.
I've now copied the downloaded 'buggerd' file (appropriate name btw) over and put the OTA .zip file back into cache.
Is there anyway I can execute that now, or do I have to wait for a new download.
filking said:
Cheers for that.
I've now copied the downloaded 'buggerd' file (appropriate name btw) over and put the OTA .zip file back into cache.
Is there anyway I can execute that now, or do I have to wait for a new download.
Click to expand...
Click to collapse
I assume you are unlocked?
Download latest twrp 2.6.3.1, unzip, rename as twrp.img, place in platform-tools
Boot into boot loader
In command prompt in your platform-tools directory type
fast boot boot twrp.img
Choose install and select the ota update.zip in the file browser
Or you can skip all that and wait for it to naturally happen.
Question for you. Downloaded the TWRP 2.6.3.1 which arrived as openrecovery-twrp-2.6.3.1-flo.img
You then say unzip. Confused at that point. Using all zip programs says no files. Was that put in to test me?
I had the exact same issue, please update with what you find out.
filking said:
Question for you. Downloaded the TWRP 2.6.3.1 which arrived as openrecovery-twrp-2.6.3.1-flo.img
You then say unzip. Confused at that point. Using all zip programs says no files. Was that put in to test me?
Click to expand...
Click to collapse
Sorry, I usually zip it up. Just rename it twrp.img so it is easier to type.
Ok, So I followed the directions..
Selected Install, then selected the downloaded .zip OTA file.
Messages on screen as follows :-
Skipping MD5 check
Verifying current System...
"/system/framework/core.odex" had unexpected content.
E:Error executing updater binary in zip ".... (ota file)"
updating partition details.
Then I reboot and tablet back to normal..
Help please
*UPDATE*
As I rebooted, I got a system message saying a new OTA is available. (spooky)
I selected install.
Got the green android and then he fell over error.
Checked the cache log and got same error really.
failed to stat "/cache/saved.file"
failed to load cache file
script aborted:" /system/framework/core.odex" has unexpected contents
E:Error in /cache/"otafile.zip"
(status 7)
installation aborted.
:crying:
sfhub said:
Sorry, I usually zip it up. Just rename it twrp.img so it is easier to type.
Click to expand...
Click to collapse
No worries, I guessed as much.
The update for 4.4 finally popped up on my notification bar as well and I went straight ahead to install it, hit reboot and install, it started the installation. I'm on stock with unlocked bootloader&rooted
Suddenly a sad looking dead android pops up with an "Error!" message. Waited a while and the device rebooted and it's still on 4.3, and I've lost the system update notification & in the settings it says I'm up to date :L
And I had this at the end of my recovery log file...
Finding update package...
I:Update location: /cache/7d9b309e11da82edb5373a1f59965bca89f6041f.signed-razor-KRT16S-from-JSS15R.7d9b309e.zip
Opening update package...
I:read key e=65537
I:1 key(s) loaded from /res/keys
Verifying update package...
I:comment is 1370 bytes; signature 1352 bytes from end
I:whole-file signature verified against key 0
I:verify_file returned 0
Installing update...
Verifying current system...
failed to stat "/system/app/Chrome.apk": No such file or directory
file "/system/app/Chrome.apk" doesn't have any of expected sha1 sums; checking cache
failed to stat "/cache/saved.file": No such file or directory
failed to load cache file
script aborted: "/system/app/Chrome.apk" has unexpected contents.
"/system/app/Chrome.apk" has unexpected contents.
E:Error in /cache/7d9b309e11da82edb5373a1f59965bca89f6041f.signed-razor-KRT16S-from-JSS15R.7d9b309e.zip
(Status 7)
Installation aborted.
I:Saving locale "en_US"
I:timed out waiting for key input; rebooting.
I:Saving locale "en_US"
..does this mean I need to get all the crappy system apps I've deleted back in there in order to make the update succeed? Also any idea how to get the update notification back so it could even try running it again? Thanks in advance!
filking said:
Ok, So I followed the directions..
Selected Install, then selected the downloaded .zip OTA file.
Messages on screen as follows :-
Skipping MD5 check
Verifying current System...
"/system/framework/core.odex" had unexpected content.
E:Error executing updater binary in zip ".... (ota file)"
updating partition details.
Then I reboot and tablet back to normal..
Help please
*UPDATE*
As I rebooted, I got a system message saying a new OTA is available. (spooky)
I selected install.
Got the green android and then he fell over error.
Checked the cache log and got same error really.
failed to stat "/cache/saved.file"
failed to load cache file
script aborted:" /system/framework/core.odex" has unexpected contents
E:Error in /cache/"otafile.zip"
(status 7)
installation aborted.
:crying:
Click to expand...
Click to collapse
So you've fixed one problem file (debuggerd) only to notice another file has been modified core.odex.
At this point I would suggest you just flash the factory image. We can go on replacing files one by one, but chances are you modified more than one file either directly or indirectly by flashing something on top for some tweak.
There are instructions and download link for the KRT16S factory image here (choose the nowipe option to keep your data):
http://forum.xda-developers.com/showthread.php?p=47640458#post47640458
---------- Post added at 06:53 PM ---------- Previous post was at 06:51 PM ----------
Zamuzzzz said:
..does this mean I need to get all the crappy system apps I've deleted back in there in order to make the update succeed? Also any idea how to get the update notification back so it could even try running it again? Thanks in advance!
Click to expand...
Click to collapse
If you've deleted a bunch of system apps, best you just flash the factory image, instructions and download here (choose the nowipe option to keep your data):
http://forum.xda-developers.com/showthread.php?p=47640458#post47640458
In the future, instead of deleting system apps, it is better to freeze the system apps if you want to receive future OTAs.
Thanks for reply. It's totally weird tho, as the only thing I've done is use the nexus root toolkit to unlock and root my device.
Apart from that, only added a few other apps like stickmount that may affect things.
The 4.3 update went fine. So it doesn't make sense, but I will now follow the instructions to do it manually.
Cheers for the help.

[Q] Stuck in Recovery, can't flash ROMs

Decided to resurrect my old Verizon GNex, and found that it will only boot to TWRP recovery. Was able to successfully sideload a ROM zip, but attempt to flash produces the following result (copied from phone screen, site won't let me link screenshot):
Formatting /system
Extracting /system
Symlinking
set_metadata_recursive: some changes failed
E:Error executing updater binary in zip '/sdcard
Error flashing zip '/sdcard/sideload.zip'
Updating partition details...
Failed
Any ideas on how to proceed?
First copy ROM on sdcard, then wipe all except sdcard, and then try.

Fatal Error - Cant flash roms

Hello,
I was getting an error after flashing exposed framework that would not let me use my device at all. Something along the lines of com.android.something has stopped/crashed/shutdown and stopped the phone from working and prompted to send report to HTC.
I am on an unlocked htc 10 s-on w/ unlocked bootloader FYI. While flashing a new rom in twrp I'm getting 'zip file is corrupt!' or 'Invalid zip file format!' I have flashed this particular rom before. Happens with viper, profusion, stock deodex, elementalx, and so on.
log when flashing a rom:
Updating partition details...
...done
Full SElinux support is present.
MTP EnabledInstalling zip file '/sdcard/HTC10_DEV.zip'
Checking for MD5 file
Zip file is corrupt!
or
Invalid zip file format!
Error installing zip file '/sdcard/HTC10_DEV.zip'
Updating partition details...
...done
If you have any idea how to solve this please, then you can roast me after. I've been bricked for nearly 2 weeks. I seriously need help here
notsurprised said:
Please see my most recent thread: https://forum.xda-developers.com/htc-10/help/unable-to-mount-repair-wipe-micro-ext-t3716101
I repaired the /system partition. Now I am able to mount everything but 'Micro SDCard' + 'usb_otg' partitions, and cannot repair anything but cache. Still unable to flash rom. Error - 'Zip file is corrupted'
Click to expand...
Click to collapse
.............
??
notsurprised said:
??
Click to expand...
Click to collapse
So you created a thread to point to your recent created thread. Seriously ...... read the forum rules again. This one will be reported to be closed, 1 thread on a subject is enough.
This was a thread I made previously. I didn't make it just to point at my other post.
notsurprised said:
Hello,
e:I got /system to mount after repair.
I am on an unlocked htc 10 s-on w/ unlocked bootloader FYI. After wiping all of my data(I know) while flashing a new rom in twrp I'm unable to do anything to 'MicroSDCard' or 'usb _otg' partitions and am getting 'zip file corrupted' when flashing any files/roms. Initially I was not able to mount /system either, but I was able to repair+mount it. This is the log now when flashing a rom:
Installing zip file '/sdcard/HTC10_DEV.zip'
Checking for MD5 file
Zip file is corrupt!
Error installing zip file '/sdcard/HTC10_DEV.zip'
Updating partition details...
...done
I tried to wipe, repair, and change file system for microsd + usb_otg - some of the logs:
mkfs.fat process ended with ERROR: 1
Unable to wipe usb_otg.
Unable to wipe /usb_otg
mkfs.fat process ended with ERROR: 1
Unable to wipe microsdcard.
Unable to wipe /external_sd
/sbin/fsck.fat -y process ending with ERROR: 2
Unable to repair Micro SDCard
Unable to repair usb_otg.
Error Changing File System
If you have any idea how to solve this please, then you can roast me after. I've been bricked for a few days. I seriously need help here
Click to expand...
Click to collapse
Can you provide a link to the HTC10_DEV.zip you tried to flash?
https://androidfilehost.com/?fid=817906626617945469 from this thread: https://forum.xda-developers.com/htc-10/development/htc10-stock-deodexed-nougat-wwe-2-41-t3556908
Its not the rom - it does this for all of them, I have already flashed these roms previously. viper, profusion, even stock rom. I think it has to sd card but I'm not positive. tysm for responding.... really
So I failed to mention the reason I was re-flashing my rom. I was getting an error after flashing exposed framework that would not let me use apps at all. com.android.something has stopped/crashed/shutdown and stopped the phone from working and prompted to send report to HTC. I didn't think much of it because I was still able to boot. But I don't think wiping 'data' partition is harmful and I'm thinking this has to be it.

Unable to mount/repair/wipe Micro + Ext. sd or flash rom

Hello all,
EDIT: I am unable to repair any of my partitions except cache
I am on an unlocked htc 10 s-on w/ unlocked bootloader FYI. After wiping all of my data(I know) while flashing a new rom in twrp I'm unable to do anything to 'MicroSDCard' or 'usb _otg' partitions and am getting 'zip file corrupted' when flashing any files/roms. Initially I was not able to mount /system either, but I was able to repair+mount it. This is the log now when flashing a rom:
Installing zip file '/sdcard/HTC10_DEV.zip'
Checking for MD5 file
Zip file is corrupt!
Error installing zip file '/sdcard/HTC10_DEV.zip'
Updating partition details...
...done
I tried to wipe, repair, and change file system for microsd + usb_otg - some of the logs:
mkfs.fat process ended with ERROR: 1
Unable to wipe usb_otg.
Unable to wipe /usb_otg
mkfs.fat process ended with ERROR: 1
Unable to wipe microsdcard.
Unable to wipe /external_sd
/sbin/fsck.fat -y process ending with ERROR: 2
Unable to repair Micro SDCard
Unable to repair usb_otg.
Error Changing File System
If you have any idea how to solve this please, then you can roast me after. I've been bricked for a few days. I seriously need help here
If you have ANY idea please reply. I will most likely not get this fixed as I have been troubleshooting this for a week. I am active on here so I will get back to you asap.
5. Create a thread or post a message only once.
As a large forum, we don't need unnecessary clutter. You're free to edit your message as you like, so if you do not receive an answer, revisit your message and see if you can describe your problem better. Not everyone is online at the same time so it might take a while before you receive an answer.
Thread closed.

Categories

Resources