Revision cf04db03
Added by Neels Hofmeyr about 4 years ago
sim-applet/src/org/osmocom/IMSIPseudo/IMSIPseudo.java | ||
---|---|---|
13 | 13 |
|
14 | 14 |
private byte STKServicesMenuId; |
15 | 15 |
private SIMView gsmFile; |
16 |
static byte[] LUCounter = new byte[] { '0', 'x', ' ', 'L', 'U' };
|
|
16 |
static byte[] LUCounter = { '0', 'x', ' ', 'L', 'U' }; |
|
17 | 17 |
|
18 | 18 |
/* Main menu */ |
19 |
private static final byte[] title = new byte[] { 'I', 'M', 'S', 'I', ' ', 'P', 's', 'e', 'u', 'd', 'o', 'n', 'y', 'm',
|
|
19 |
private static final byte[] title = { 'I', 'M', 'S', 'I', ' ', 'P', 's', 'e', 'u', 'd', 'o', 'n', 'y', 'm', |
|
20 | 20 |
'i', 'z', 'a', 't', 'i', 'o', 'n'}; |
21 |
private static final byte[] showLU = new byte[] {'S', 'h', 'o', 'w', ' ', 'L', 'U', ' ', 'c', 'o', 'u', 'n', 't', 'e', 'r'};
|
|
22 |
private static final byte[] showIMSI = new byte[] {'S', 'h', 'o', 'w', ' ', 'I', 'M', 'S', 'I'};
|
|
23 |
private static final byte[] changeIMSI = new byte[] {'C', 'h', 'a', 'n', 'g', 'e', ' ', 'I', 'M', 'S', 'I', ' '};
|
|
21 |
private static final byte[] showLU = {'S', 'h', 'o', 'w', ' ', 'L', 'U', ' ', 'c', 'o', 'u', 'n', 't', 'e', 'r'}; |
|
22 |
private static final byte[] showIMSI = {'S', 'h', 'o', 'w', ' ', 'I', 'M', 'S', 'I'}; |
|
23 |
private static final byte[] changeIMSI = {'C', 'h', 'a', 'n', 'g', 'e', ' ', 'I', 'M', 'S', 'I', ' '}; |
|
24 | 24 |
private final Object[] itemListMain = {title, showLU, showIMSI, changeIMSI}; |
25 | 25 |
|
26 | 26 |
/* Change IMSI menu */ |
27 |
private static final byte[] enterIMSI = new byte[] {'E', 'n', 't', 'e', 'r', ' ', 'I', 'M', 'S', 'I' };
|
|
28 |
private static final byte[] setDigit1 = new byte[] {'S', 'e', 't', ' ', '1', ' ', 'a', 's', ' ', 'l', 'a', 's', 't', ' ',
|
|
27 |
private static final byte[] enterIMSI = {'E', 'n', 't', 'e', 'r', ' ', 'I', 'M', 'S', 'I' }; |
|
28 |
private static final byte[] setDigit1 = {'S', 'e', 't', ' ', '1', ' ', 'a', 's', ' ', 'l', 'a', 's', 't', ' ', |
|
29 | 29 |
'd', 'i', 'g', 'i', 't'}; |
30 |
private static final byte[] setDigit2 = new byte[] {'S', 'e', 't', ' ', '2', ' ', 'a', 's', ' ', 'l', 'a', 's', 't', ' ',
|
|
30 |
private static final byte[] setDigit2 = {'S', 'e', 't', ' ', '2', ' ', 'a', 's', ' ', 'l', 'a', 's', 't', ' ', |
|
31 | 31 |
'd', 'i', 'g', 'i', 't'}; |
32 | 32 |
private final Object[] itemListChangeIMSI = {changeIMSI, enterIMSI, setDigit1, setDigit2}; |
33 | 33 |
|
... | ... | |
166 | 166 |
} |
167 | 167 |
|
168 | 168 |
private void showError(short code) { |
169 |
byte[] msg = new byte[] {'E', '?', '?'};
|
|
169 |
byte[] msg = {'E', '?', '?'}; |
|
170 | 170 |
msg[1] = (byte)('0' + code / 10); |
171 | 171 |
msg[2] = (byte)('0' + code % 10); |
172 | 172 |
showMsg(msg); |
Also available in: Unified diff
drop unnecessary 'new byte[]' before {...}