Неверный формат zip файла twrp как исправить
Users of TWRP 3.1 on Doogee Mix (including myself) faced the mammoth problem of an encrypted storage after unlocking the bootloader and flashing the custom recovery. This problem is not peculiar to the Doogee Mix, any other device with TWRP 3.1+ will likely face the same issue and the solution preferred here would work.
By default, your device storage is encrypted (Settings > Security > Encryption) and any TWRP from 3.1+ respects that protocol.
This means that the internal storage would be showing 0mb because it can't be mounted, (no) thanks to the encryption.
Previous versions of TWRP (eg 3.0.3) could easily decrypt the device using the default password but from version 3.1, things changed.
SOLUTION
Needed:
1. An unlocked bootloader
2. TWRP installed (download from the TWRP thread)
3. An SD CARD (or USB OTG)
4. Magisk.zip (latest version, copy it to the SD card)
NOTE: Copy/Backup your files from your internal storage into your PC as this process would wipe everything from the internal storage.
STEPS
> With the bootloader unlocked and TWRP flashed, boot into recovery.
> The screen might be dark when in recovery, just press the power button and the the vol- button, it'll turn ON. Then swipe to unlock.
> You can change the language to English by clicking on the 2nd rectangle by the right above the swipe function.
> Tick "do not show again" and the swipe to allow modification.
> Confirm device encryption by clicking "Backup" or "Install", if the storage size is 0mb or no folder is showing while trying to install, then the device is encrypted.
> Go back, click "Wipe"
> You can choose to Factory reset, Format data or Advanced wipe > tick /data. Either way, it's going to wipe EVERYTHING in the internal storage (that's the purpose of device encryption, to prevent unauthorized access to the storage). However, I recommend you choose "FORMAT DATA"
> If you chose "Format data", then type yes in the next screen and swipe to format.
> When completed, go home, click Reboot and choose Recovery to boot into recovery (very important, do not reboot the phone into system otherwise you'll start all over. Reboot into recovery, not system).
> When in the recovery, click install > select storage > SD card (or USB OTG) (note that the internal storage will display as normal but remember it is now empty following the data reset)
> Navigate to the Magisk in /Sdcard (or USB OTG) and install.
> When completed, you can now reboot safely into system.
> Complete the phone setup and Open Magisk Manager. Notice that Magisk is now installed and "Preserve force encryption" is now unticked". You can also go to Settings > Security > Encryption and notice that it will ask you to encrypt your device, meaning it is decrypted now.
> The next time you will boot into recovery, TWRP may still be in Russian language, just change it one more time and you are good to go.
> Now you can flash anything you want including Xposed (download latest version from the official Xposed thread/website).
I tired of resolving Lineage OS' vendor mismatch issue on updates so I thought I'd flash the stock 8.0 onto my Nexus 5X. I wiped the cache and went to install the zip, but got the messages:
I'm following step 7 in this guide. I have tried both the downloaded zip and the zip inside the extracted downloaded zip.
Invalid zip file format!
Error installing zip file ' /sdcard/bullhead-opt4.170623.006-factory-e876a276.zip'
Updating partition details.
. done
Could someone tell me how I might work my way around this?
Thanks for your time!
TheFixItMan
Senior Member
invalided zip can mean all sorts of things
it could be but not limited to
The zip is corrupted - download the zip file again
The zip is not meant for your phone
You have incorrectly edited the zip
The updater script is incorrect
The update binary is not for your phone
The zip is not a flashable zip - look inside and make sure there is a META-INF folder - if not its definitely not a flashable zip
Ibuprophen
Senior Member
Hi there everyone! I tired of resolving Lineage OS' vendor mismatch issue on updates so I thought I'd flash the stock 8.0 onto my Nexus 5X. I wiped the cache and went to install the zip, but got the messages: I'm following step 7 in this guide. I have tried both the downloaded zip and the zip inside the extracted downloaded zip. Invalid zip file format! Error installing zip file ' /sdcard/bullhead-opt4.170623.006-factory-e876a276.zip' Updating partition details. done. And that's it. Could someone tell me how I might work my way around this? Thanks for your time!
Did you try asking this question within that specific thread?
I feel, as a developer myself, that a good developer have an unwritten obligation to provide any/all "Reasonable" support that's needed by a member.
There's also good members (who are more experienced) that also provides assistance to those who need it even though their not obligated to do so.
I've always encouraged members to ask for assistance with anything, that already has a support thread, to ask within that thread first.
I hope i had explained this okay via text.
~~~~~~~~~~~~~~~
I Am The Egg Man,
They Are The Egg Men.
I Am The Walrus!
Coo Coo Cachoo!
I DO NOT PROVIDE SUPPORT VIA PM UNLESS ASKED/REQUESTED BY MYSELF.
PLEASE KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
I have an HTC 10 Sprint version. After the last big update, I decided I didnt really like it so I wanted to root my phone and install a custom rom, or even just the stock rom but get some cool root apps that could help me deal with some of the changes to the OS. I had previously rooted my HTC One M8 and it went through flawlessly.
So I was following a guide and everything went well until I started getting an error while trying to wipe the data on the phone.
The full process went something like this: Download all the stuff i need, booted the phone into download mode, used the command prompt to get the token, unlocked the bootloader, flashed twrp(all with the cmd prompt) and then attempt to wipe data using twrp on the phone. It kept saying something like "failed to mount data." I found a guide on how to fix this, and it worked. However, I didnt do it right. The guide said to change the file system types and then wipe them, but I did it to the system data, which seems to have wiped my OS. Apparently I was only supposed to wipe data and cache. woops.
So it seems that I am stuck and I cant find an easy-to-understand forum post with a solution to this particular issue. I assume that because I have twrp installed that I can find a way to get a rom on it, I just dont know how.
Can anyone help me out here?
santod040
Recognized Developer / Recognized Contributor
I have an HTC 10 Sprint version. After the last big update, I decided I didnt really like it so I wanted to root my phone and install a custom rom, or even just the stock rom but get some cool root apps that could help me deal with some of the changes to the OS. I had previously rooted my HTC One M8 and it went through flawlessly.
So I was following a guide and everything went well until I started getting an error while trying to wipe the data on the phone.
The full process went something like this: Download all the stuff i need, booted the phone into download mode, used the command prompt to get the token, unlocked the bootloader, flashed twrp(all with the cmd prompt) and then attempt to wipe data using twrp on the phone. It kept saying something like "failed to mount data." I found a guide on how to fix this, and it worked. However, I didnt do it right. The guide said to change the file system types and then wipe them, but I did it to the system data, which seems to have wiped my OS. Apparently I was only supposed to wipe data and cache. woops.
So it seems that I am stuck and I cant find an easy-to-understand forum post with a solution to this particular issue. I assume that because I have twrp installed that I can find a way to get a rom on it, I just dont know how.
Can anyone help me out here?
What version of Twrp?
Make sure you have the latest version.
Best bet at this point, would be to RUU, especially if your Twrp is already current.
Sent from my HTC6545LVW using Tapatalk
Tarima
Senior Member
I have an HTC 10 Sprint version. After the last big update, I decided I didnt really like it so I wanted to root my phone and install a custom rom, or even just the stock rom but get some cool root apps that could help me deal with some of the changes to the OS. I had previously rooted my HTC One M8 and it went through flawlessly.
So I was following a guide and everything went well until I started getting an error while trying to wipe the data on the phone.
The full process went something like this: Download all the stuff i need, booted the phone into download mode, used the command prompt to get the token, unlocked the bootloader, flashed twrp(all with the cmd prompt) and then attempt to wipe data using twrp on the phone. It kept saying something like "failed to mount data." I found a guide on how to fix this, and it worked. However, I didnt do it right. The guide said to change the file system types and then wipe them, but I did it to the system data, which seems to have wiped my OS. Apparently I was only supposed to wipe data and cache. woops.
So it seems that I am stuck and I cant find an easy-to-understand forum post with a solution to this particular issue. I assume that because I have twrp installed that I can find a way to get a rom on it, I just dont know how.
Can anyone help me out here?
Which of the files from that thread are you trying to flash? If they're RUU files you won't be able to flash them from TWRP, they need to be flashed in download mode which you can't do easily (downgrading from Oreo to Nougat) unless you're s-off.
If you're talking about the ROM zip linked in the last post of that thread, it should work. What are the steps you're doing in twrp?
Generally, in the tech giant Google’s most used mobile operating system, Android there are many terms that are usually seen with great recurrence, so, it is quite essential to know what they actually mean and why the tech giant Google offered all these options to users of Android.
Apart from all those terms, today here we will explore the recovery mode, yes, it is one of the essential terms of Android. However, the fact is that there are many users who know about this term, recovery mode, or even have made use of the recovery mode on their Android smartphone as well.
What is Recovery Mode?
Fix TWRP Invalid Zip File Format Issue
Basically, the recovery is a partition or part of the memory of Android smartphone or tablet where all the programs for Android OS are saved. Yes, it means that it is an alternative to the normal boot that an Android smartphone or tablet performs.
As the name of this term itself implies Recovery, so, it means it offers a set of functions and essential tools to recover the Android OS (Operating System) in case of any problem that prevents it from its execution in a normal way.
Here we have an example simply to make you understand it in a better way, assume that right now you are unable to boot your Android device, and you have nothing to do.
In this point the recovery mode is the only option that will simply allow you to recover your Android device, hence, it is undoubtedly a very important function and part of the Android operating system.
Generally, all Android smartphones and devices come with this recovery mode as standard, and not only that, even the way to access it is very similar in most devices as well (in some cases it varies).
Types of recovery mode available
Fix TWRP Invalid Zip File Format Issue
Basically, there are two types of recovery, the first one is the default one, known as ‘Stock Recovery’, which comes pre-installed on the Android smartphones by default and they are basically developed by the smartphone manufacturer itself.
Now comes the second one, which is generally known as ‘Custom Recovery’, so, the custom recovery are those which are actually created and developed by the independent developers and communities. For example, the most popular and most used custom recovery is the TWRP (Team Win Recovery Project), and it is one of the best known right now.
As we told earlier that the recovery mode is a term that comes by default in each Android smartphone and device, which gives the users a set of options for system recovery, but in many cases, they are usually quite limited.
But, somehow it also depends largely on each manufacturer, as there are some manufacturers who simply gives more options than others, but the fact is that there are no such big differences comes in this department of Stock Recovery.
However, apart from all these things, a custom recovery simply offers you a vast number of essential functions and tools as compared to the stock recovery. Basically, they are the ones used with ROOT Android smartphones or tablets, as they simply have access to more parts in the operating system than the stock one.
How the recovery mode can save your Android smartphone?
Fix TWRP Invalid Zip File Format Issue
Till now you might have known that the recovery mode of Android OS is not an ordinary function, as it is basically, an emergency feature provided by the manufacturer of the phone. Hence, it is the last opportunity to use on unusual occasions only.
Since this mode gives you great powers, you should use it carefully, as if you won’t then it may erase all the contents of the smartphone. Hence, here we will simply recommend you some emergency and important situations in which you can simply make use of the recovery mode on your Android smartphone.
Here are some situations:-
- If an Android update has been blocked.
- If the screen of your smartphone does not respond.
- If the Android device has been locked accidentally and restarting the device does not solve the issue.
- If your smartphone is getting slow or hangs very frequently.
- If you want to update the firmware and somehow it is blocked.
Apart from all these things, we strongly recommend you to use the recovery mode as the last option. And before using the recovery mode of your Android smartphone, we also strongly recommend always to make a backup copy of all the data present on your smartphone, just as an additional security measure.
How to access recovery mode on any Android smartphone?
Fix TWRP Invalid Zip File Format Issue
Generally, most of the Android smartphones offers a similar system, but their appearance and circumstances simply depend on each specific brands. However, as we told earlier that once the backup has been made, then you are ready to access the recovery mode on your Android smartphone.
- To do so, first, you have to switch off your smartphone.
- Fix TWRP Invalid Zip File Format Issue 9
- Then simply you have to use a combination of buttons, “press volume up and power button” or “volume down and power button”, simply to turn it on in recovery mode.
- That’s it now you are done, like this, you can simply open the recovery mode on your Android smartphones.
(Note: Combinations could simply vary device to device and manufacturer to manufacturer)
Methods to fix the TWRP Invalid Zip File Format issue
Basically, in recovery mode, you will find all the relevant functions to solve any problem with the device that could not be solved in any other way. As if you all don’t know then let me clarify once that the recovery is the only accessible option that you can access even if the operating system of your smartphone does not work properly.
However, apart from all these things, there are many users who use custom recoveries to flash new custom ROMs on their Android smartphones and tablets. And while flashing a ROM on your Android smartphone or tablet, if you have faced ‘TWRP Invalid Zip File Format’ error, then you are at the right place, as here, in this post we will simply show you that how you to fix this error.
Sideload Flashable ZIPs on Android with TWRP
Fix TWRP Invalid Zip File Format Issue
By, using the ADB sideload, you can easily sideload any of your desired ROM and mod zip files by executing the commands.
- First of all, make sure to charge your device above 60% battery, simply to avoid any accidental shutdowns.
- Then simply check whether you have installed all the necessary drivers on your PC.
- Now after the above step, simply check if the device that you have connected with your PC is detected or not.
- Then simply enable the USB Debugging on your Android device.
- After the above step now simply download all the ADB and Fastboot Platform-Tools on your PC.
- Next, you have to download and extract all the ADB files on your computer or laptop.
- Now simply you have to open the command prompt in the ADB folder by right-clicking on the mouse while holding the Shift key.
- Then simply connect your Android device to your PC and reboot your device into recovery mode.
- Now simply tap on the “Advanced” option on your TWRP recovery.
- Then simply tap on the “ADB Sideload” option.
- After that now simply copy all the Zip files to the ADB folder that you want to install on your device.
- Now after the above step simply start the ‘ADB sideload’ in your recovery of your device and enter the following command that we have mentioned below in the CMD (command prompt).
- Now you will see a progress bar in the CMD, where it will show you that the Zip file is being copied, and once the file is copied, it will be automatically installed on your device.
Fix TWRP Invalid Zip File Format Issue
- Now once the zip files were installed on your device, you can simply reboot it.
- That’s it now you are done.
Try to download again all the zip files
Fix TWRP Invalid Zip File Format Issue
Sometimes it happens that we start downloading any files and suddenly for some reason, the connection to the network shows an error or the download manager stop responding, due to which our files get corrupted. Hence, here we strongly recommend you to download all the necessary zip files once again, as it may solve your issue quickly.
Unpack and Re-zip
Fix TWRP Invalid Zip File Format Issue
Yes, it may sound quite simple, but, the fact is that somehow, it is very fruitful in some situations. So, 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.
Conclusion
Finally, after reading the whole guide, I am sure that now you have learned that in the recovery menu it is basically a matter of choosing the function which is considered important in each case. Hence, you should select each option carefully in recovery mode.
Moreover, for your general knowledge, you can simply move the selection with the volume buttons of your smartphone and in case if you want to select and confirm any option then simply you have to do so with the power button of your Android smartphone or device.
So, all these are some essential methods to fix the TWRP invalid zip file format issue on any Android smartphone or tablet. What do you think about this? Simply share all your views and thoughts in the comment section below. And if you liked this post then simply do not forget to share this post with your friends, family and on your social profiles.
ADB/Fastboot и прочее
4PDA | QDLoader HS-USB Driver | 32/64-bit
4PDA | ADB Driver Lite | 32/64-bit
4PDA | Platform-tools (adb/fastboot) | r.25.0.4 | Windows
4PDA | Platform-tools (adb/fastboot) | r.23.1 _. | Windows — поддержка XP
4PDA | Platform-tools (adb/fastboot) | r.25.0.4 | Linux
4PDA | Platform-tools (adb/fastboot) | r.25.0.4 | macOS
HashTab — утилита для проверки контрольной суммы файла
USBDeview — список всех USB-устройств с возможностью их удаления из системы
Возможное решение ошибки "status 7" при прошивке через TWRP
GApps(выбираем ARM64, согласно своей версии android , и какие нужны; установка через TWRP)
®Substratum Theme Engine - Для изменения темы .
✔ Статус прошивки: Unofficial
Основано на:LineageOS
A Версия Android: Pie 9.0
A Google Apps: Нет
P Ведущие:Dyneteve
XDA
1. Прошивка Google AFH
2. Vendor(firmware) - Google AFH
3. Рекомендуемые GApps - Google AFH
И принципе можно любые GApps, выбрать arm64, android 9, пакет по желанию.
4. Обход проверки загрузчика(расшифровщик) под fastboot -vbmeta.img ( 4 КБ )
Установка только в кастомном recovery(TWRP)!
Источник с XDA, на руках телефона ещё нет(но есть огромный опыт на других, принцип тот же, кроме нюансов на конкретные аппараты).
Делаем всё на свой страх и риск, ответственность не несу.
1. Обязательно делаем бэкап своей прошивки!Лучше полный - sysnem, data, vendor, boot.Перед бэкапом удалить все пароли на блокировку.
2.Скачиваем все необходимые файлы на телефон (кроме расшифровщика под fastboot - на ПК), внутренняя память или карта памяти.
3.1 Через ПК. Расшифровщик закидываем в папку adb(надеюсь есть, и объяснять не надо, если ставили TWRP). Переводим телефон в режим fastboot(на выключенном зажать вмести кнопки Питания и Громкость-), подключаем к ПК, в папке adb Отрыть окно команд(одновременно правую кнопку мышки и Shift), проверяем подключение, и вводим
3.2 На XDA отписались что это можно пропустить и поставить потом TWRP.
4. Перезагружаемся в TWRP
4.1 Делаем вайпы - обое cache, system, data, vendor, желательно перезагрузка в recovery.
4.2 Установить, находим загруженные файлы
Установить патченый vendor - LineageOS Firmware-Violet.zip
Возвращаемся и устанавливаем прошивку,GApps, дешифратор - Disable_Dm-Verity_ForceEncrypt, Magisk. Ждём окончания установки, перезагружаемся в систему, настраиваем, пользуемся.
Update to april security patch
Added fm radio
Adjusted rounded corners
Added ota server ( If a new build comes out you can download from ota )
Updated carrierconfig
Enabled volte for all carriers that are not listed in carrierconfig
Fixed sound distortion for some cases
Fixed manual network selection
Fixed any kind of sim manager derpness
More stuff i'm lazy to list
Кодовое имя нашего телефона (Xiaomi Redmi Note 7 Pro ) - violet , проверяйте перед скачиванием , и перед установкой , в названии zip должно быть violet .
Boot - Загрузочное ядро.
Recovery - Рекавери ( установленное TWRP )
System - Система , установленная прошивка .
Образ System (system.img) - Образ системы в формате img. Не рекомендуется бэкапить, а тем более восстанавливать, бутлуп зачастую.
Data - Установленные приложения , загрузки , кроме фото и музыки , лежат во внутренней памяти .
Cache - Кэш ( остатки от программ , браузинга , кешированные файлы , по простому - мусор )
Internal Storage - Внутренняя память ( фото , музыка , загрузки , и т. д . )
Modem - Модем ( отвечает за связь , можно пробовать менять - для улучшения связи ).
Cust - Раздел, отвечающий за регионы.
EFS - IMEI, MAC-адреса, SN устройства (в основном бэкапится один раз и навсегда, пока телефон на руках).
Persist - Различные датчики устройства, также имеет отношение к MI Аккаунту.
Splash - Загрузочное лого.
Vendor - так скажем драйвера , теперь вынесены отдельно
Vendor Image - образ Vendor
ERROR 7 - одна из самых распространенных ошибок. Имеет много вариантов
1. Прошивка не под ваше устройство, проверьте точно ли в названии zip есть violet .
2. Может с качалось с ошибкой( так называемый битый файл) - проверить на ошибки, перекачать ещё раз.
3. Может требуется более свежий vendor( для кастомных прошивок)
4. Если с верхними пунктами всё нормально - попробуйте сменить TWRP на более свежее, актуальное.
Обязательно перед бэкапом удаляем любые пароли , отпечатки ! Если не удалите при восстановлении не пустит в прошивку .
В TWRP выбрать Резервное коп-ние , появится меню
Для стандартного бэкапа достаточно system ( прошивка ), data ( установленные приложения , загрузки , кроме фото и музыки , лежат во внутренней памяти ) , boot (ядро ) , vendor( грубо - драйвера ). Можно выбрать куда сохранить , сжать , поставить пароль .
Всё выбрали - свайп и ждём .
Переход на кастом осуществляется без восстановления data , поэтому если нужно что-то сохранить с последующим восстановлением - пользуемся ® Titanium Backup ,®Migrate , MyBackup ,Super Backup : SMS & Contacts ,или любой другой программой .
Фото , и музыку можно просто на ПК . Если захотите вернутся - то бекап в TWRP
Рекомендую сделать бэкап EFS, и сбросить на ПК, облако.
При обновлении прошивки от одной команды вайпы не обязательны , обычно в скрипте прописано форматирование кешей и system . Но если опасаетесь и старая привычка то после прошивки вайп кешей , там будет предложено .
При обновление прошивки все изменения в system которые вносили ( патчи , кастомное ядро , и т.д.) удалятся , устанавливаем заново . Magiks( встроен скрипт авто обновления ) останутся .Все данные и приложения останутся .
Рекомендации - перед обновлением отключите все модули Magisk,часто могут ломать или вообще не дать обновится, после обновления включать лучше по одному.
Установка новой прошивки обязательно на чисто .
Скачиваем нужную прошивку . Можно скинуть на карту памяти , флешку , или ПК ( потом перекинете в телефон ).
Идём в TWRP , делаем полные вайпы (system , data , внутренняя память , обое кеши ), после перезагрузка в рекавери , делаем формат data (чтобы расшифровать data , по умолчанию зашифрована) ,опять перезагрузка . При переходе с MIUI - вначале делаем формат data.
Если есть карта памяти , почистить её тоже от хвостов старой прошивки , папки Android и Lost.Dir , MIUI (если есть ) , в файловом менеджере TWRP.
Теперь можно приступать к установке . Установить , выбор накопителя , находим свой файл прошивки , выбрать . Если нужен root (® Magisk - The Universal Systemless Interface ),или патчи - то жмём добавить . Файлы станут в очередь , прошьются все сразу
При установке кастомной прошивке может потребоваться ещё прошить vendor, дата выхода - не ниже рекомендуемой автором, или в посте с прошивкой. Плюс если нужны GApps(приложения Google) берём Здесь, выбрать ARM64 согласно версии android, пакет по усмотрению(состав пакета можно узнать нажав на зеленый квадрат возле названия. В некоторых прошивках могут уже быть встроенные, смотрим описание.
Обновить или установить новое можно в самом TWRP , идем в Установка , справа внизу нажать img (файлы TWRP и ядер идут в расширении img) , находим свой файл , выбрать, свайп . После установки перезагрузится в recovery , и настраиваем новое .
Так же и прошиваем ядро , только загрузка сразу в систему .
XDA
Устанавливается как обычный арк , внимательно читайте инструкцию . При включении обычный вайп data сотрёт всю внутреннюю память ,лучше выключить в утилите после бэкапа .
tipatch-app-v1.4.apk ( 2.17 МБ )
Если после каких либо действий слетело TWRP , но остался root - можно использовать утилиту Flashify+Full+_for+root+users_+v1.9.2_Rus.zip ( 12.23 МБ )
Коллеги, большая просьба, проверьте, поддерживает ли поверамп на кастомах hi-res вывод звука. Завтра истекают 360 часов, думаю что ставить, так как на MIUI с hi-res проблема. Чтобы знать - или сам плеер не адаптирован под новый проц или это же косяк прошивки.
Технический пост с прошивками
Или список со всеми ссылками (включает в себя TEST, BETA, CHANGELOG)
(Обновлен 1 ноября 2021)
Читайте также: