BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 04-02-2008, 09:34 AM   #1
jstern81
New Member
 
Join Date: Apr 2008
Model: 8703e
PIN: N/A
Carrier: sprint/nextel
Posts: 3
Default MIDlet signed with 4.3 tools is not signed on 4.1 OS?

Please Login to Remove!

Hey all, I'm new to development on the blackberry platform, and probably like many people I'm having trouble trying to sign my first application. I believe, though I haven't been able to confirm, that my issue is as follows:
* I generated my keypairs using the 4.3 jde components. I did this before I realized that:
* My blackberry is running the 4.1 version of the OS

I am able to compile my cod file (using the 4.1 jde components, which I downloaded after many hours of distress at this mysterious 907 invalid cod message I got when trying to install my 4.3 compiled cod), and install it OTA to my blackberry (with the unsigned warning) and executes fine. I'm able to sign my cod (the status shows as 'Signed' in the Signature Tool, and the cod file size changed, though the jad attributes for the cod size and sha1 were unchanged; and updating these attributes had no effect on my problem). However, when I go to install my spiffy newly signed midlet, I get the same unsigned warning message, though it still installs and executes so whatever the signing is doing it's not hurting anything. Any thoughts would be greatly appreciated; could this be due to generating my keypairs originally with the 4.3 tools, and therefore signing with the 4.3 tools, but trying to run the signed midlet on my 4.1 blackberry? Thanks!
Offline  
Old 04-03-2008, 11:59 AM   #2
bdowling
Thumbs Must Hurt
 
Join Date: Jan 2007
Model: 8800
Carrier: Orange
Posts: 181
Default

You can use the JDE 4.3 to develop 4.1 applications, just don't call anything in the API that was added after 4.1. The API docs say what version stuff was added at.
Offline  
Old 04-03-2008, 12:40 PM   #3
jstern81
New Member
 
Join Date: Apr 2008
Model: 8703e
PIN: N/A
Carrier: sprint/nextel
Posts: 3
Default

Right, I'm not using any blackberry-specific API methods at all in fact. I'm just trying to sign the code to get rid of all the warning messages, and hopefully allow midlets launched by the PushRegistery.registerAlarm to run without prompting the user for permission. However, the the cod file that the 4.3 tool builds won't install on my 4.1 blackberry (907 Invalid COD). And with my keypairs which I generated with the 4.3 tools I can sign my cod file (double-clicking it confirms the signature in the Signature Tool), but when I install the midlet on my phone it gives me the usual 'unsigned midlet' warning.

Which is what leads me to believe that I may need to purchase a new set of keys and generate keypairs using the 4.1 tools so I can sign with them.
Offline  
Old 04-04-2008, 08:00 PM   #4
jstern81
New Member
 
Join Date: Apr 2008
Model: 8703e
PIN: N/A
Carrier: sprint/nextel
Posts: 3
Default solution

Ok, in case anyone else runs into this issue, two things going on here:

1. Blackberry 4.1 phones always display the warning 'This application does not contain a signature. It might not be from a trusted source. Do you want to proceed?' when installing OTA: Knowledge Center - This application does not contain a signature

2. When signing 4.1 applications it is best to use the 4.3 tools (since you get the nice '-p passphrase' option for the SignatureTool.jar), however, if you do so, don't forget to copy the sigtool.bat, sigtool.csk, sigtool.db and the SignatureTool.jar from the 4.3 bin to the 4.1 bin. Reference: Knowledge Center - Signature Key format changes in BlackBerry JDE 4.3.0
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Audio Polarity Checker Phase Detector Self-Test Auto-Off PD-9A Speaker Tester picture

Audio Polarity Checker Phase Detector Self-Test Auto-Off PD-9A Speaker Tester

$43.00



PD-9A Polarity Checker Phase Detector Self-Test Auto-Off Audio Speaker Testing picture

PD-9A Polarity Checker Phase Detector Self-Test Auto-Off Audio Speaker Testing

$45.00



IndusTec DC 20A Motor Polarity Reversing - Toggle Switch Maintained DPDT 3 Pos picture

IndusTec DC 20A Motor Polarity Reversing - Toggle Switch Maintained DPDT 3 Pos

$14.99



Honeywell Quartz Polarity Sensitive Hour Meter 85098 picture

Honeywell Quartz Polarity Sensitive Hour Meter 85098

$79.99



Dairyland PCR-5KA Polarization Cell Replacement With Box. picture

Dairyland PCR-5KA Polarization Cell Replacement With Box.

$299.99



One (1) DC Motor Reverse Polarity Switch 12v Reversing - 30A Rocker Momentary picture

One (1) DC Motor Reverse Polarity Switch 12v Reversing - 30A Rocker Momentary

$11.99







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.