How to sign zips with md5 to flash it with recovery - Android

This is not for noobs or any jackasses who only read others.
As you all know,installing a custom ROM requires data like md5,recovery image and similar extensioned files.They are all packed in a zip package.But not just any zip package.After you generated the other files,zip it normally and flash it,it won't work.You know that the famous update.zips are always signed zips?We'll show you how to do this properly and easy.
First,you must have files like we said above.We don't care where do you get those files.Then,download "ES File Explorer" from Play Store.Hold and select those files after you got into the app.(You also need to know where those files are.For example Download or Android)Click the three dots icon under the screen and choose "Compress".Name the zip file and let it compress.After it is finished,choose"Add"and choose File.Name it update.zip.After that,download another app from Play Store called "Zip Signer".Open it,select the input file is the zip which isn't update.zip.Then select update.zip as output file,choose "Sign" or whatever.Wait until it's finished.Then boot into recovery mode.If you use TWRP,go to Install>choose update.zip and flash.If you don't have any custom recovery,first wipe cache partition>install zip from sdcard and go until you find update.zip.Install it and reboot your phone!Done!

Related

[Q] AHH!! failed

I got clockworkmod working fine, but I am unable to loan ROMs. Whenever I downloand a ROM it opens in muiltiple files and it also happens with TNT, Thi is where Im stuck
Step 3.
Copy whatever ROM you wish to install (it should be a .zip file) to the ROMs folder on your tablet. (Leave it zipped, Clockwork will install it from the .zip file as is). trying to get VEGan 5.1 final
Note: If the ROM you downloaded has multiple files, look for the one named “update.zip” and rename it to whatever you want (something to help you differentiate it from other ROMs), then copy that to the tablet. If an “update.zip” doesn’t exist, and you’re lost…read through that ROM’s thread and see if anybody else asked about it…if not then you probably should (on that ROM’s thread…each one is different).
I cant fiqure how to get the update.zip. When I do open the files i get 3 files
META_INF,boot, and system. I tried to copy and paste all three files in the ROMs, but it never show the update.zip
You don't need an update.zip with clockworkmod recovery... you just need the rom that is zipped and can be named anything.
Stop unzipping the rom you are downloading and just copy it to your device. Install that with clockworkmod recovery.
Sent from my Viewsonic 10" GTab...
novicexda said:
I got clockworkmod working fine, but I am unable to loan ROMs. Whenever I downloand a ROM it opens in muiltiple files and it also happens with TNT, Thi is where Im stuck
Step 3.
Copy whatever ROM you wish to install (it should be a .zip file) to the ROMs folder on your tablet. (Leave it zipped]/B], Clockwork will install it from the .zip file as is). trying to get VEGan 5.1 final
Note: If the ROM you downloaded has multiple files, look for the one named “update.zip” and rename it to whatever you want (something to help you differentiate it from other ROMs), then copy that to the tablet. If an “update.zip” doesn’t exist, and you’re lost…read through that ROM’s thread and see if anybody else asked about it…if not then you probably should (on that ROM’s thread…each one is different).
I cant fiqure how to get the update.zip. When I do open the files i get 3 files
META_INF,boot, and system. I tried to copy and paste all three files in the ROMs, but it never show the update.zip
Click to expand...
Click to collapse
you've answered your own question, the rar or zip file you downloaded might be in diff names, but always leave it in zip format. if in rar, unrar and the zip file should be in it.
in clockwork recovery, you can update by update.zip or choose your own zip
tcrews said:
You don't need an update.zip with clockworkmod recovery... you just need the rom that is zipped and can be named anything.
Stop unzipping the rom you are downloading and just copy it to your device. Install that with clockworkmod recovery.
Sent from my Viewsonic 10" GTab...
Click to expand...
Click to collapse
That is my problem, if automaticly unzips when it downloads. I am not sure if its my windows setting becaue I am unable to download TNT lite because I keep getting " windows can no opem" message. Is there a way i can prevent it from unzipping? Thanks BTW
maybe use a diff browser to download or right click on link and "save as"
You might be hitting open instead of save ...
down load it direct to your Gtab
Download the file directly to your tab. Use ES file explorer to move it to your SD card if necessary. Reboot in to clock work - choose file from SD card-select it and install.

Devoid.Franco Kernel 14

Been using Franco's Rom and Kernel and it's been great. However, I like to update to his v.14 kernel. I did the format
1. Wipe
2. Partition, etc...
3. Load v5 Rom
4. Restart
My problem is right here, the warning is to delete the tweaks file and the script file (which I don't have one) in File Manager. I use the OI manager that comes with v5 Rom but it just wont' delete, and I don't want to load the new kernel because of all the warnings, please help :-(...
calculus1918 said:
Been using Franco's Rom and Kernel and it's been great. However, I like to update to his v.14 kernel. I did the format
1. Wipe
2. Partition, etc...
3. Load v5 Rom
4. Restart
My problem is right here, the warning is to delete the tweaks file and the script file (which I don't have one) in File Manager. I use the OI manager that comes with v5 Rom but it just wont' delete, and I don't want to load the new kernel because of all the warnings, please help :-(...
Click to expand...
Click to collapse
it wont delete cause of permissions. I use root explorer for this kind of work. In this particular case i had deleted the nececary scrips from the flash zip and i flashed afterwards. (i had a clean install)
I am trying the clean install as well, can you give the instructions or point me to somewhere where I can read more about this, thanks for your time and effort.
Do I just delete it in the Devoid.Franco v5 zip before flashing and then restart the process (the only file that I can find is tweaks.sh)
Sorry, found the init.d file as well. Would I delete those files in the zip, rezip and then start the process over?
you just delete them from the zip and you flash it as usuall. just dont forget to disable verification check on your recovery or else it will give you error
Sorry, just a newb when it comes to this.
I couldn't delete the two files from the devoid.franco.v5.zip file so I did the following:
1. Extract the zip file
2. Deleted the two files
3. Rezipped the files into a new devoid.franco.v5.zip
4. Load the zip into the micro sd card after all the wipe and partition
5. Disabled Signature check
6. Tried the flash and it said it can't open the zip because it's bad :-(...
This can't be that hard when all the other kernels was easy to install...
calculus1918 said:
Sorry, just a newb when it comes to this.
I couldn't delete the two files from the devoid.franco.v5.zip file so I did the following:
1. Extract the zip file
2. Deleted the two files
3. Rezipped the files into a new devoid.franco.v5.zip
4. Load the zip into the micro sd card after all the wipe and partition
5. Disabled Signature check
6. Tried the flash and it said it can't open the zip because it's bad :-(...
This can't be that hard when all the other kernels was easy to install...
Click to expand...
Click to collapse
Extracting a zip and re-zipping it DOESN'T work. You are not supposed to unzip the file. Just flash the rom, delete the offending files using root explorer, and then flash the kernel.
Sent from my LG Optimus One P500 using XDA App
You should't extract the file and rezip it. It corrupts it when it comes to flashing. I personally browse the zip file with winrar and simple delete the files i need. I also add files to zip this way like apks, ringtones etc
Trying winrar and it seems to work, gone to see if I can finish the entire process. Thanks so much for your time again. In the future, can I send the apps that I want directly into this zip? I can to sue something zipsigner before to get calendar, etc... Thanks again!!!
An alternative way for a clean install:
1: wipe everything
2: flash devoid.franco.v5
3: reboot (to check if everything is ok)
4: reboot into recovery
5: mount /system partition under 'mounts and storage' (clockworkmod)
6: from pc type (with phone still in recovery): 'adb shell'
7: in adb shell, type: 'rm /system/etc/tweaks.sh'
8: in adb shell, type: 'rm /system/etc/init.d/00script'
9: flash franco.kernel.v14
10: reboot
I Hope it helps,
Bye
You're welcome m8.
And yes you can have the apps you want inside the rom this way very easilly. just put them in app folder. I did this with some removed apps like browser and calendar and also removed zeam launcher and used adw launcher (personal taste) I even tried that with frameworks (aka themes) and it worked great
Thanks so much to both of your posts, it's working. One last questions, thought setcpu was already implemented in this kernel, but I don't see it anywhere? Again, thanks again for everyone's time and effort, learned so much today (wife is mad though because we need to do house work, lol, lol, better get going)... She said, "who formats their phone 5 times in 1 month, lol, lol"
setcpu is NOT included, you have to install it.
See first post in franco.kernel thread for the link.
Eh! eh! you are not in Europe, I guess if you have to help your wife NOW!!!
Barcelona-ManchesterUTD right NOW...
oh yes the wifes. my gf gets fustrated like "wtf are roms and kernels?? its just a phone!!! you call people and they call you back" rofl
One last note on setcpu. When i was using last version (2.13), every time i rebooted my phone the settings where gone and had to set them again. I switched to v2.1 and it worked like a charm. Have no idea if that is general issue or only me had it. Just thought i should tell you
Done via editing the zip with rar and all worked smoothly.
Thx all
/W

Mecool KM8 P 2GB/16GB S912 Amlogic TV Box Android 7.1, TWRP Root Instructions Russian

Hi all recently purchased the Mecool KM8 P 2GB/16GB S912 Amlogic, updated the firmware to 7.1 but lost root access. I have managed to find some instructions on a Russian website to root the stock firmware but can't make head nor tale of it and don't want to brick the device.
The google translate version of the instructions reads as follows:
To get root 7 Androide did:
1.Nado SuperSu create a text file without an ending .txt textBOOTIMAGE = / dev / block / boot
2. Flash card throw Recovery for 7 Androyd created Fail SuperSu and SuperSU.zip (5,63 MB)
3. Boot into Recovery with USB there "Advanced" ==> "File Manager" find the file on a flash drive that put his name it .SuperSu in and copy it into the folder / system
3. Without leaving the Recovery go to "Set" and set SuperSU.zip (5,63 MB)
Can someone please help to decipher the above?
Here's the link to the instructions website. The downloads are pinned to the top of the page. Please let me know if you have any success...
http://4pda.ru/forum/index.php?showtopic=807465&st=1100#entry62380504
1. Create a texfile with this content:
BOOTIMAGE = /dev/block/boot
If I am not mistaken then this file should be saved wit the name .SuperSU and no extension.
2. Copy this file and the Supersu.zip onto a SD with a working TWRP recovery.
3. The file .SuperSu is now to be copied into the system folder - it does not specify if the one from the box or the one from the recovery is used - I assume the one on the box. But needs to be tested to be sure.
4. Without ending the recovery session go back and install install SuperSu.
Thing is you need a recovery that works with Nougat to do any of this.
But then again translators suck and someone capable of reading russing could bring some light on it....
Managed to get it to work. Steps in common English are as follows:
To get root on Android 7.1:
1. Create a text file (eg in Notepad) and name it Supersu without an ending .txt with the folowing text BOOTIMAGE = / dev / block / boot
2. On a microsd card copy Recovery.img (TWRP 7), the created SuperSu file (from step 1) and SuperSU.zip (5.63 MB)
3. Insert the card into Boax and boot into Recovery.
4. Using theTWRP recovery got to Advanced" then "File Manager" find the created Supersu file (from step 1) and copy it into the folder / system.
5. Without leaving the Recovery go to "Install" and flash SuperSU.zip (5.63 MB) from the Microsd card
can you post the required Files here?
i dont understand russian so i dont know what they wrote on 4pda.ru
I have found all file and attached at end of the Post
1. decompress km8p.zip to the root of your TF-Card so you have 3 Files on the root of your TF-Card (.SuperSU, SuperSU.zip and recovery.img)
2. power off your KM8P
3. Press Reset and hold it
4. Power your Box on and hold Reset
5. If you see the TWRP-Logo you can stop press Reset
6. On the Screen accept write and modifying Systemfiles
7. go to Advanced" then "File Manager" copy .Supersu file from TF-Card in/ system of your Box
8. then go to "Install" and flash SuperSU.zip (5.63 MB) from the TF-Card
9. Reboot and now you have root installed
MetaIIica said:
I have found all file and attached at end of the Post
Click to expand...
Click to collapse
I think you uploaded the wrong file, as the zip file you uploaded only contain one file (km8p), which has no file extension (it is probably a .zip file).
However it is missing the other files you are talking about, so could you upload the right files?
Thanks for the effort!
afehst said:
I think you uploaded the wrong file, as the zip file you uploaded only contain one file (km8p), which has no file extension (it is probably a .zip file).
However it is missing the other files you are talking about, so could you upload the right files?
Thanks for the effort!
Click to expand...
Click to collapse
I attached the TWRP for Android 7 here, if you still need it.
I have also started a thread on how to root with Magisk instead of supersu, as supersu wouldn't work for me.
https://forum.xda-developers.com/android-stick--console-computers/amlogic/howto-km8-p-2gb-8gb-s912-amlogic-tv-box-t3745937

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

Replacing/updating files in ROM update zip

Quick scenario: I am working on a Nook Simple Touch UK ROM zip (now obsolete), trying to get from it the essentials that make it "UK" and move them into/replace similar files (mostly images and documents, but maybe one or two system apps) to the current US version of the ROM so that everything will function properly, but the ROM will have the look and feel (and localization options) of the obsolete UK ROM. There's not a lot to change.
The zips don't open for inspection properly in anything I've tried except 7zip. I can move/overwrite files from one ROM to the other, but there does seem to be a slight compression going on and I have no idea how to stop this. In WinRAR I could, but I don't see any similar option in 7zip. Then the zip contents go into a CWM flashable zip.
Preparing the CWM zip with no changes to the current US ROM gives an error-free flash and a functioning result. But if I change even one file (like the boot splash screen--same name, same file size--until moved), the flash fails almost immediately.
I asked someone about internal checksums before ROMs would install but they did not think there were any on these ROMs. Now I wonder. I don't see anything that looks like a checksum or even a "to do" list.
Have I missed some fundamental step or am I using my tools incorrectly (or the wrong tools)? One last thought, these are "update" zips, if that makes any difference, so on their own they would not wipe user data,for example.
Edit: I think I've got it!
1. Unzip (not just "open") both zips with WinRAR (7zip would not extract the update zips for me)
2. Drag alternate versions of files from one folder to the other
3. Zip up with 7zip
4. Open CWM update zip (just has META-INF folder) and ROM update zip with 7zip
5. Drag contents of ROM update zip to CWM zip.
6. Copy new CWM zip to CWM card and flash.
7. SMILE!
nmyshkin said:
Quick scenario: I am working on a Nook Simple Touch UK ROM zip (now obsolete), trying to get from it the essentials that make it "UK" and move them into/replace similar files (mostly images and documents, but maybe one or two system apps) to the current US version of the ROM so that everything will function properly, but the ROM will have the look and feel (and localization options) of the obsolete UK ROM. There's not a lot to change.
The zips don't open for inspection properly in anything I've tried except 7zip. I can move/overwrite files from one ROM to the other, but there does seem to be a slight compression going on and I have no idea how to stop this. In WinRAR I could, but I don't see any similar option in 7zip. Then the zip contents go into a CWM flashable zip.
Preparing the CWM zip with no changes to the current US ROM gives an error-free flash and a functioning result. But if I change even one file (like the boot splash screen--same name, same file size--until moved), the flash fails almost immediately.
I asked someone about internal checksums before ROMs would install but they did not think there were any on these ROMs. Now I wonder. I don't see anything that looks like a checksum or even a "to do" list.
Have I missed some fundamental step or am I using my tools incorrectly (or the wrong tools)? One last thought, these are "update" zips, if that makes any difference, so on their own they would not wipe user data,for example.
Edit: I think I've got it!
1. Unzip (not just "open") both zips with WinRAR (7zip would not extract the update zips for me)
2. Drag alternate versions of files from one folder to the other
3. Zip up with 7zip
4. Open CWM update zip (just has META-INF folder) and ROM update zip with 7zip
5. Drag contents of ROM update zip to CWM zip.
6. Copy new CWM zip to CWM card and flash.
7. SMILE!
Click to expand...
Click to collapse
Nice job!

Categories

Resources