Signing a update.zip for recovery flashing - Android

So I have a zip that I would like to sign so I no longer have to uncheck the verify zip signature in TWRP.
I tried signing the zip with autosign and apk-zipsigner1.2 both using the "test key"
And I keep getting signature verification error.
Does anyone know how to sign a zip?
For reference the zip in question places a file in the : system\vendor\firmware\ aka this is a Ducati video firmware revert zip.

Related

[Q] Loading a custom signed ROM from SD card

I got the following error when I tried to load an OTA package from the SD card using CWM recovery with signature verification enabled.
Finding update package ...
Opening update package ...
Verifiyng update package ...
E: failed to verify whole-file signature
E: signature verification failed
Installation aborted
Following are the details of the steps I followed -
1) I rooted my Galaxy Tab 2 7.0 (P3113) following the instructions posted on
http://www.androidauthority.com/galaxy-tab-2-7-0-p3113-root-clockworkmod-recovery-96474/.
2) Then I built an AOKP jellybean custom ROM following the instructions on
http://rootzwiki.com/topic/31166-tutorial-so-you-want-to-build-aokp-jb-ubuntu-1204/
3) Then I followed http://www.kandroid.org/online-pdk/guide/release_keys.html to create a distribution release and my own private signing certificates, and signed the APKs in the target files. Then I used ota_from_target_files to create an OTA zip signed with my own key.
4) I copied the signed OTA package to mSD card and boot the tablet to Recovery, then I wiped everything (factory/data reset, cache, ectc) including formating /system partition, then I enabled the Signature Verificaiton, and then selected the zip to install, and got the "Failed to verify the whole-file signature" error message.
By the way, if I disable the signature verification, I can load the zip successfully.
Can someone tell me what I did wrong or if I missed any necessary steps? Much appreciated.

help with signing update.zip

Hi
I have mounted and modified some og the apk in a system.img and saved changes.I then re zipped the udate.zip folder with the new system.img.
When i try to install with update.zip i get the following error e:signature verification failed and i am guessing that i need to sign the new update.zip
but for this to work im guessing that the signing needs to be the same as the unmodded firmware is this right?
In the zip file there is META-INF , Cert.rsa cert.sf and mainfest.mf do i need to sign the actual zip with these or the modified system.img and how would i sign with original signature as every guide i have read about signing requre pk8 and pem files. Would i need to convert cert.rsa and cert.sf to pem file.
Any help with this would be apreshiated as i am only new here and in modding and still trying to get my head around it
thanks

[Q] Android Flashable zip creation and signature matching failed

I am creating a flash zip file for updating my android ICS rom.I have been following the below tutorial for making the flash zip,
http://forum.xda-developers.com/showthread.php?t=732957
And for signature matching I have followed the below tutorial
http://forum.xda-developers.com/showthread.php?t=1966007?
After everything done successfully when I want to use my flash zip from stock recovery mode then it says "Signature Verification Failed".
But I have followed everything that is written in the tutorial.So where is the problem??Can anyone help??
I want to create a flash zip by which I can update my app or delete some app or anything I want to do. Is above two thread is not enough can anyone give me the actual link of thread from where I can learn it.Or is anyone create a flash zip before,if so please attached it with your replies.Please help....
It's urgent...........................
I am attaching the the zip with the thread also..

singnature verification failed

how to fix signature verification failed in my gts 5282 galaxy star
Using clockworkmod recovery??Stock recovery only allows .zip's signed by Samsung.
1) Disable Signature Verification in cwm
2) Open Rom package in 7zip go to /com/Google/Android/updater-script open the file with notepad++ delete the first line titled 'asserts' this should solve status 7 errors also
just flash a custom recovery.

ZipSigner

Hi....
I want to know that if your TWRP or CWM verfies signature correctly when it enabled... in the case of signed the zip with test-key using ZipSigner or other signing apps in android......
Edit:- All info is here https://forum.xda-developers.com/android/help/app-sign-apk-zip-android-t3835975
HemanthJabalpuri said:
Hi....
I want to know that if your TWRP or CWM verfies signature correctly when it enabled... in the case of signed the zip with test-key using ZipSigner or other signing apps in android......
Click to expand...
Click to collapse
For me , I hadn't any problem with zip signature .
When I used to make flashable zip , I was a newbie and I took a flashable zip template (with cert and everything in it). It worked perfectly every time ?.
I didn't needed to sign them anymore , I just used the META-INF folder in the template every time , and I compressed the folders to zip .
But I don't remember if the signature verification was enabled

Categories

Resources