Symbian Developer Network

   
 

Need help using the forums?
Click here

Home » Symbian Developer Network Forums » Discussion Groups » Symbian Signed General

Thread: Constrained by the certificate

Legend
  • Five stars: 251 - 10000 pts
  • Four stars: 101 - 250 pts
  • Three stars: 51 - 100 pts
  • Two stars: 11 - 50 pts
  • One star: 1 - 10 pts
  • No stars: 0 - 0 pts
Helpful Answer (1 pts)
Correct Answer (2 pts)
This question is answered.


Permlink Replies: 8 - Pages: 1 - Last Post: 06-Jan-2009 13:26 Last Post By: paul_todd Threads: [ Previous | Next ]
anthapu

Posts: 2
Registered: 24/12/08
Constrained by the certificate
Posted: 24-Dec-2008 17:54
 
Click to report abuse...   Click to reply to this thread Reply
Hi,
I have 2 IMEI's in a certificate. I am able to install it E71 without any issues. On N95 I can't get it installed. It always says constrained by the certificate.

I verified all the common issues posted here, like Verifying for Symbian A certificate.

PKG File.

;Languages
&EN

;Header
#{"MMIFilter"},(0x200210E5),1,0,0

;Localised Vendor name
%{"Openstream Technologies"}

;Unique Vendor name
:"Openstream"

;Dependency :: Supports s60 3rd edition fp1 and fp2
0x102032BE, *, *, *, {"S60 3rd Edition, FP1"}

; MMIS60Filter dll
"$(EPOCROOT)\Epoc32\release\$(PLATFORM)\$(TARGET)\MMIFilter.dll" -"!:\sys\bin\MMIFilter.dll"
"$(EPOCROOT)\Epoc32\data\z\resource\plugins\MMIFilter.rsc" -"!:\resource\plugins\MMIFilter.rsc"

Output from devcertlist.exe for certificate.

Listing all IMEI's in devcert

1 354855022651664
2 392255019682925

Found 2 IMEI's in the certificate

Listing all Capabilities's in devcert

NO TCB
CommDD
Power Management
MultimediaDD
Read Device Data
Write Device Data
NO DRM
Trusted UI
Protserv
DiskAdmin
Network Control
NO All Files
SWEvent
Network Services
Local Services
Read User Data
Write User Data
Location
SurroundingsDD
User Environment
Thanks in advance,
Anthapu Reddy.

mikebrock

Posts: 51
Registered: 19/10/06
Re: Constrained by the certificate
Posted: 27-Dec-2008 20:27   in response to: anthapu in response to: anthapu
Correct
Click to report abuse...   Click to reply to this thread Reply
The second IMEI (392255019682925) is not valid. The final digit of an IMEI number is a check digit, and it shows that this IMEI is wrong.

I think you have mis-typed the second digit, it should be a 5 not a 9. If you make that change then the check digit will be correct. You'll need to get a new developer certificate with the correct IMEI.

Mike.
paul_todd

Posts: 344
Registered: 17/10/07
Re: Constrained by the certificate
Posted: 28-Dec-2008 10:14   in response to: mikebrock in response to: mikebrock
 
Click to report abuse...   Click to reply to this thread Reply
Hi Mike,

Where did you find the information about the check digit as its something I could easily add to DevCertList
mikebrock

Posts: 51
Registered: 19/10/06
Re: Constrained by the certificate
Posted: 28-Dec-2008 18:39   in response to: paul_todd in response to: paul_todd
Helpful
Click to report abuse...   Click to reply to this thread Reply
Hi Paul,

The 3GP site has the definitive specification of the IMEI in specs 22.016 and 23.003 http://www.3gpp.org/ftp/Specs/archive/23_series/23.003

IMEIs have 15 digits, the 15th being the check digit.

Samsung used 17 digits in some of their S60 phones. (In particular a device that was on the Nokia RDA for a while.) That is CTelephony::GetPhoneId returned a 17 digit string and developer certificates had to use all 17 digits. The first 15 digits were the IMEI, the 15th digit being the check digit. They had an extra 16th and 17th digit, this looked to be a cross between the IMEI and IMEISV. So beware making the dev cert list too prescriptive because this could cause issues with non-standard implementations.

The check sum is calculated as follows:
(Replace brackets around i and around 14 with square brackets.)

int checksum = 0;
for (int i = 0; i < 14; i++)
{
int v = (int)imei(i) - (int)'0';
if (v < 0 || v > 9) return false;
if (i % 2) v *= 2;
checksum += (v % 10) + (v / 10);
}
if (checksum % 10 == 0) checksum = 0;
else checksum = 10 - (checksum % 10);
int targetcs = (int)imei(14) - (int)'0';

return (targetcs == checksum);

anthapu

Posts: 2
Registered: 24/12/08
Re: Constrained by the certificate
Posted: 29-Dec-2008 15:23   in response to: mikebrock in response to: mikebrock
 
Click to report abuse...   Click to reply to this thread Reply
Thanks a lot. The IMEI characters were so small, even after verifying 5 times and by 2 people still we got it wrong :D
paul_todd

Posts: 344
Registered: 17/10/07
Re: Constrained by the certificate
Posted: 29-Dec-2008 15:31   in response to: anthapu in response to: anthapu
 
Click to report abuse...   Click to reply to this thread Reply
That's why I am going to update devcert list in the next couple of weeks with some heuristic checks to ensure the IMEI's look okay.

Ideally, if you have a copy of the devcert that has the corrupt IMEI's in it I would like a copy to put into the test harness to ensure that these cases are catered for correctly.
paul_todd

Posts: 344
Registered: 17/10/07
Re: Constrained by the certificate
Posted: 06-Jan-2009 12:02   in response to: paul_todd in response to: paul_todd
 
Click to report abuse...   Click to reply to this thread Reply
Devcert list has been updated over at the Forum Nokia wiki

http://blogs.forum.nokia.com/blog/paul-todds-forum-nokia-blog/2009/01/06/devcertlist-update
and
http://wiki.forum.nokia.com/index.php/Listing_IMEIs_and_Capabilities_in_a_DevCert

This should now be up to version 1.2.

Please let me know of any bugs and ideally also include any devcert you are having problems with so I can reproduce it.
symbiansigned

Posts: 1,827
Registered: 29/11/06
Re: Constrained by the certificate
Posted: 06-Jan-2009 12:13   in response to: paul_todd in response to: paul_todd
 
Click to report abuse...   Click to reply to this thread Reply
Great tool. Thanks Paul! Can we also include it on the developer.symbian.com/sstools page? Would you object?
paul_todd

Posts: 344
Registered: 17/10/07
Re: Constrained by the certificate
Posted: 06-Jan-2009 13:26   in response to: symbiansigned in response to: symbiansigned
 
Click to report abuse...   Click to reply to this thread Reply
That's cool,

The other tool we use quite a lot is AnalySIS as it shows all the data in the sis file correctly
http://discussion.forum.nokia.com/forum/showthread.php?t=124128

Point your RSS reader here for a feed of the latest messages in all forums