New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Der_Caveman
Old
#1  
Senior Member - OP
Thanks Meter 97
Posts: 151
Join Date: Dec 2010
Default [Q] testsign.jar vs signapk.jar- why signapk fails?

Hi!

I signed a custom kernel with SignApk.jar and recovery console cannot verify it.

I get
E:No signature
E:Verification failed

Signing the same source zip with testsign.jar results in a positive verification.

Comparing the resulting CERT.SF files I realized that SHA1-Digest-Manifest is different. The reason why: two files are interchanged in the list. But that can't be the problem, can it?
 
Sippolo
Old
#2  
Member
Thanks Meter 20
Posts: 91
Join Date: Feb 2011
I'm trying and using zipSigner from maket, and it's quite complete and straightforward for signature

I used SignApk few times with no success, and do not know other methods at the moment ^^
The Following User Says Thank You to Sippolo For This Useful Post: [ Click to Expand ]
 
imnuts
Old
#3  
imnuts's Avatar
Recognized Developer
Thanks Meter 2470
Posts: 3,136
Join Date: Jul 2007
Location: West Chester

 
DONATE TO ME
If you used the test keys with signapk.jar, it would likely do the same thing as testsign.jar does. The difference is the keys used to sign the package, which can cause one to fail and the other to be ok.

Setup a Development Environment
Setup and Use the Android SDK
Stock Odin Restore files

You can find the answer to all of your questions right here. If that doesn't work, then try this or this
 
Der_Caveman
Old
#4  
Senior Member - OP
Thanks Meter 97
Posts: 151
Join Date: Dec 2010
Quote:
Originally Posted by imnuts View Post
If you used the test keys with signapk.jar, it would likely do the same thing as testsign.jar does. The difference is the keys used to sign the package, which can cause one to fail and the other to be ok.
Let me guess: it is not documented which keys and keystrenghts are okay for signapk?
 
imnuts
Old
#5  
imnuts's Avatar
Recognized Developer
Thanks Meter 2470
Posts: 3,136
Join Date: Jul 2007
Location: West Chester

 
DONATE TO ME
Quote:
Originally Posted by Der_Caveman View Post
Let me guess: it is not documented which keys and keystrenghts are okay for signapk?
I think the keys that are required are the Android test keys, but I don't know where you would get them to use with signapk.jar

Setup a Development Environment
Setup and Use the Android SDK
Stock Odin Restore files

You can find the answer to all of your questions right here. If that doesn't work, then try this or this
 
Der_Caveman
Old
#6  
Senior Member - OP
Thanks Meter 97
Posts: 151
Join Date: Dec 2010
So this is only a problem of custom recovery?

I tried also jarsigner with no luck.

Sent from my LG-P500 using XDA App
 
wizagg
Old
#7  
Member
Thanks Meter 2
Posts: 46
Join Date: Dec 2010
why don't you just toggle signature verification? it will disable signature verification.
 
Der_Caveman
Old
#8  
Senior Member - OP
Thanks Meter 97
Posts: 151
Join Date: Dec 2010
I can sign with testsign.jar so there is no problem flashing something- I only wanted to know why I can't put in my own cert.


XDA PORTAL POSTS

What’s Possible with CASUAL & How to Make Your Own CASUAL – XDA Developer TV

XDA Elite Recognized Developer AdamOutler is known … more

Pearl Chen to Talk NFC Development at XDA:DevCon 2013

From HTML to LEDs or Android to Arduino, Hardware Hacking is a pastime of many people … more

Avoid Framework Bootloops on Xperias Running Jelly Bean

If you’re a Sony device owner running a stock Android Jelly Bean firmware and … more

Forum Added for the Samsung Galaxy Mega

What do you do when the Galaxy Note line is simply not big enough? You get theSamsung Galaxy Mega. … more