How do I fix TWRP "Invalid zip format" error - Android Q&A, Help & Troubleshooting

I have a Samsung Tab 2 with TWRP 3.3 installed. I wanted to try out some old jellybean roms but they didnt support my device codename so i edited updater-script to fix the issue. I did the same thing a year ago using winrar to make it into a zip again and the edited rom flashed with no problems but now trying the same thing with winrar or 7-zip doesnt work and gives me the "Invalid Zip File Format" error. Any way to fix this?

You try to flash the ZIP-file via ADB Sideload option from TWRP's Advanced option?
If you are facing this TWRP invalid zip file format issue, then by unpacking and re-zipping these zip files could simply fix your issue instantly.

jwoegerbauer said:
You try to flash the ZIP-file via ADB Sideload option from TWRP's Advanced option?
If you are facing this TWRP invalid zip file format issue, then by unpacking and re-zipping these zip files could simply fix your issue instantly.
Click to expand...
Click to collapse
No i copy them to my sd card and flash them from there

jwoegerbauer said:
You try to flash the ZIP-file via ADB Sideload option from TWRP's Advanced option?
If you are facing this TWRP invalid zip file format issue, then by unpacking and re-zipping these zip files could simply fix your issue instantly.
Click to expand...
Click to collapse
still doesnt work. then can i change my device codename so i dont have to edit updater-script?

Having the same problem here... fairly reputable zips Magisk and Flashify. Tried sideload and repakaging, no joy

I have the same problem in my Samsung J5 (2016).Model J510F.

I have the same problem "invalid zip file format" with Xperia Z2 and Resurrection Remix 10.
I found some possible help here. They recommend to unpack and repack the zip or install with ADB Sideload, too. Instructions for using ADB Sideload are also included.

Related

kernel in zip format is not working

Hi all,
I'm currently using LU200 and there is a problem when updating kernel:
1. I download kernel.zip for my phone and install it successful (this file contains: boot.img, ko file, update script)
2. However, when unzip and zip it again by using command "zip -r" --> I cant install this zip file (some errors occur)
I have checked checksum of those file, both of them are completely different (I see in many forum they use the same command "zip -r" to zip that file).
My question is: is there is tool for zip this kind of file? what is it?

help please..

I tried to flash tesla rom but was unable to do so using Cwm recovery and now I am not able to flash any rom on my phone.
Whenever I try to flash it says
Symmlinks:some link failed
E:/error in /sd card
Status 7
Installation aborted..what to do
I am using a310
zain.shamsi261 said:
I tried to flash tesla rom but was unable to do so using Cwm recovery and now I am not able to flash any rom on my phone.
Whenever I try to flash it says
Symmlinks:some link failed
E:/error in /sd card
Status 7
Installation aborted..what to do
Click to expand...
Click to collapse
Short way: Try TWRP.
Longer way: uzip the rom, open META-INF/com/google/android directory. You will find a file "updater-script" . Rename that to "updater-script.txt"
With any of your favorite text editor delete line starting with “assert” to next semicolon. Most probably you'll find it at the top.
Save file. Rename back to updater-script. Replace from original. Rezip. And flash.
If none of this work may be you have tried experimenting with partitions.
In that case you need to repartition.

Why doest my files don't appear in my sdcard TWRP ?

Im trying to flash a file from twrp but the files simply don't appear in it. It appear only when I access it through the computer.
Anyway, how to change that ?
maybe because the file is not a flashable zip? With TWRP you can flash flashable zip or img files for partitions.. Also, be sure to access the /sdcard from the TWRP file manager when you tap Install. If it's and External SD you could have to mount it before..
EDIT:
Last but not least, if you are sure the zip is flashable you could use sideload.. From TWRP go to Advanced / Sideload and start sideload.. Open a command prompt into your PC and with the device attached to it use
Code:
adb sideload G:/whatever/the/file/is/into/your/PC/file.zip
Naturally you need adb
brainvision said:
maybe because the file is not a flashable zip? With TWRP you can flash flashable zip or img files for partitions.. Also, be sure to access the /sdcard from the TWRP file manager when you tap Install. If it's and External SD you could have to mount it before..
EDIT:
Last but not least, if you are sure the zip is flashable you could use sideload.. From TWRP go to Advanced / Sideload and start sideload.. Open a command prompt into your PC and with the device attached to it use
Code:
adb sideload G:/whatever/the/file/is/into/your/PC/file.zip
Naturally you need adb
Click to expand...
Click to collapse
It says "failed". Despite that, even if it was an image, shouldn't I see the file at least ? There's an option in twrp which I can choose between zip and images...
The file is the XposedInstaller_3.0_alpha4.apk, xposed-v86-sdk23-arm.zip.asc and eu.chain.fire.supersu_v2.78-278_Android-2.1.apk
No one is a zip as you can see..
Liooh said:
The file is the XposedInstaller_3.0_alpha4.apk, xposed-v86-sdk23-arm.zip.asc and eu.chain.fire.supersu_v2.78-278_Android-2.1.apk
Click to expand...
Click to collapse
You should download zip file instead of the asc file if you want to flash the xposed framework.the apk files you have to install it on the phone and you don't have to flash it on the recovery

How to use flashify to flash the recent updates under downloaded_rom folder?

1. My Redmi 5 Plus/Redmi Note 5 India is rooted, using TWRP and Magisk
2. I would like to know if there is a way that recent updates under downloaded_ROM can be flashed using a third party application such as Flashify?
3. I have come to this decision because when I tried to reboot device for installing recently updates, my device enters the TWRP recovery only find nothing in there, which is annoying. Root cause for this mess is that Xiaomi's fastboot rom downloads page is download, which would usually be my go to method after all. Using Mi Flash Tool, and then a few command types re-root the recently updated mobile phone.
Please guide me!
If I understood well if twrp it´s not recognicing (not really, only it can´t access) your data partition you need to format data at first time after to unlock and install a custom recovery in order that twrp can access to your storage directory.
Flashify just is capable to install boot and recovery images. Maybe you meant FlashFire, then to install it tap on + button and a menu will display with some options like Flash ZIP or OTA.
SubwayChamp said:
If I understood well if twrp it´s not recognicing (not really, only it can´t access) your data partition you need to format data at first time after to unlock and install a custom recovery in order that twrp can access to your storage directory.
Flashify just is capable to install boot and recovery images. Maybe you meant FlashFire, then to install it tap on + button and a menu will display with some options like Flash ZIP or OTA.
Click to expand...
Click to collapse
you're right, brother. I meant FlashFire, when I typed Flashfire. My bad.
I have the OTA downloaded from the official website, since the file I had in the downloaded ROM folder always returned an error as corrupt file when tried to open using Winrar. So I had to go the official site and get the same downloaded to see the contents inside.
But now, having copied the file to the downloaded ROM folder on my phone, I do not see any option as how I can choose the file to get installed. I mean there is no file explorer option given to me, rather Google Drive option. Perhaps I have to have the file uploaded once again on to my Google Drive on my device?
sengottuvel said:
you're right, brother. I meant FlashFire, when I typed Flashfire. My bad.
I have the OTA downloaded from the official website, since the file I had in the downloaded ROM folder always returned an error as corrupt file when tried to open using Winrar. So I had to go the official site and get the same downloaded to see the contents inside.
But now, having copied the file to the downloaded ROM folder on my phone, I do not see any option as how I can choose the file to get installed. I mean there is no file explorer option given to me, rather Google Drive option. Perhaps I have to have the file uploaded once again on to my Google Drive on my device?
Click to expand...
Click to collapse
Download again the file from the same site, maybe downloaded to your Google Drive is corrupted and check that the extension didn´t change from .zip to .rar or FlashFire won´t recognice it. Winrar have to be capable to open it otherway the file is corrupted.
When you are sure that is the correct file If you had a stock recovery then you can install it through update option in settings/about device/updates from miui menu

Question What if I directly flash the zip file "DN2101_A15"?

So, I tried flashing it through Partition backer but it always should some error, I also placed it in the same folder as the platform-tools and extract zip of file but it does not work. I was thinking what would if I flashed it directly using ADB Sideload? What could go wrong?

Categories

Resources