Project

General

Profile

« Previous | Next » 

Revision 041b0e0a

Added by osmith about 4 years ago

IMSIPesudo.java: simple LU counter

View differences:

sim-applet/src/org/osmocom/IMSIPseudo/IMSIPseudo.java
16 16
	// which has a limited number of write cycles.
17 17
	private byte helloMenuItem;
18 18

  
19
	static byte[] welcomeMsg = new byte[] { 'H', 'e', 'l', 'l', 'o', ',', ' ',
20
						'W', 'o', 'r', 'l', 'd', '!' };
19
	static byte[] welcomeMsg = new byte[] { '0', 'x', ' ', 'L', 'U' };
21 20
	static byte[] menuItemText = new byte[] { 'I', 'M', 'S', 'I', ' ', 'P', 's', 'e', 'u', 'd', 'o', 'n', 'y', 'm',
22 21
						  'i', 'z', 'a', 't', 'i', 'o', 'n'};
23 22

  
......
61 60
		}
62 61

  
63 62
		if (event == EVENT_EVENT_DOWNLOAD_LOCATION_STATUS) {
64
			/* TODO: count the location updates done with the same
65
			 * pseudo IMSI, and warn the user if it becomes too
66
			 * high */
63
			welcomeMsg[0]++;
67 64
			showHello();
68 65
		}
69 66
	}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 48.8 MB)