How to read and verify .CAP & .EXP files
802670Dec 9 2010 — edited Dec 9 2010Hi All.
Please correct me if I'm wrong here. If I want to share some service with other applets in another package I extend Shareable interface and then, after I compile my package, there is an .EXP file, where all my shared interfaces described. And from .EXP file and only from this file other applets could know that I have these shared interfaces and therefore use them.
But what happens if I use wrong .exp with my applet, saying that I provide services that I don't?
*1.* My question is: is there any verification of correspondance of .exp file with actual bytecode on load-(intall-) time?
If my .exp file says I have service A, but there is no such service in the applet, will there be any kind of error generated? Or the only one who will notice is the other applet trying to use my ghost service?
*2.* I know there is VerifyExp tool that check consistency of .EXP files. But is there off-card tool that checks that .exp is correct for the corresponding package (.cap)?
*3.* Is there tool for decompiling .CAP files? I know there is Exp2Text tool that converts .EXP to readable format. There is also tool that converts .CAP to APDU. Is there tool that does what JAD does for Java - shows bytecode from .CAP? I've found a couple of tools, but couldn't really get them to work, so any hint on actually working tool is appreciated.
Thank you.