Project

General

Profile

« Previous | Next » 

Revision 4eee13d7

Added by osmith about 4 years ago

IMSIPseudo.java: import all

It takes time to figure out where exactly a certain class/object/... is
located. Just import all of them. It does not seem to impact the size of
the applet, as there's a blog post writing about performance that does
it the same way [1]. Besides, except for the HelloSTK hello world, I've
seen it in all other code done that way, including 3GPP 03.19 Annex C.

[1]: https://gelvaos.blogspot.com/2011/04/

View differences:

sim-applet/src/org/osmocom/IMSIPseudo/IMSIPseudo.java
1 1
package org.osmocom.IMSIPseudo;
2 2

  
3
import javacard.framework.APDU;
4
import javacard.framework.Applet;
5
import javacard.framework.ISOException;
6

  
7
import sim.toolkit.EnvelopeHandler;
8
import sim.toolkit.ProactiveHandler;
9
import sim.toolkit.ProactiveResponseHandler;
10
import sim.toolkit.ToolkitConstants;
11
import sim.toolkit.ToolkitException;
12
import sim.toolkit.ToolkitInterface;
13
import sim.toolkit.ToolkitRegistry;
3
import sim.access.*;
4
import sim.toolkit.*;
5
import javacard.framework.*;
14 6

  
15 7
public class IMSIPseudo extends Applet implements ToolkitInterface, ToolkitConstants {
16 8
	// DON'T DECLARE USELESS INSTANCE VARIABLES! They get saved to the EEPROM,

Also available in: Unified diff

Add picture from clipboard (Maximum size: 48.8 MB)