public class UiccCardApplication extends Object
Modifier and Type | Field and Description |
---|---|
static int |
AUTH_CONTEXT_EAP_AKA |
static int |
AUTH_CONTEXT_EAP_SIM
These values are for authContext (parameter P2) per 3GPP TS 31.102 (Section 7.1.2)
|
static int |
AUTH_CONTEXT_UNDEFINED |
Constructor and Description |
---|
UiccCardApplication(UiccCard uiccCard,
IccCardApplicationStatus as,
Context c,
CommandsInterface ci) |
Modifier and Type | Method and Description |
---|---|
void |
changeIccFdnPassword(String oldPassword,
String newPassword,
Message onComplete)
Change the ICC password used in ICC fdn enable
When the operation is complete, onComplete will be sent to its handler
|
void |
changeIccLockPassword(String oldPassword,
String newPassword,
Message onComplete)
Change the ICC password used in ICC pin lock
When the operation is complete, onComplete will be sent to its handler
|
void |
dump(FileDescriptor fd,
PrintWriter pw,
String[] args) |
String |
getAid() |
String |
getAppLabel() |
int |
getAuthContext() |
boolean |
getIccFdnAvailable()
Check whether fdn (fixed dialing number) service is available.
|
boolean |
getIccFdnEnabled()
Check whether ICC fdn (fixed dialing number) is enabled
This is a sync call which returns the cached pin enabled state
|
IccFileHandler |
getIccFileHandler() |
boolean |
getIccLockEnabled()
Check whether ICC pin lock is enabled
This is a sync call which returns the cached pin enabled state
|
boolean |
getIccPin2Blocked() |
boolean |
getIccPuk2Blocked() |
IccRecords |
getIccRecords() |
IccCardApplicationStatus.PersoSubState |
getPersoSubState() |
int |
getPhoneId() |
IccCardStatus.PinState |
getPin1State() |
IccCardApplicationStatus.AppState |
getState() |
IccCardApplicationStatus.AppType |
getType() |
protected UiccCard |
getUiccCard() |
void |
queryFdn()
Assumes mLock is held.
|
void |
registerForLocked(Handler h,
int what,
Object obj)
Notifies handler of any transition into State.isPinLocked()
|
void |
registerForNetworkLocked(Handler h,
int what,
Object obj)
Notifies handler of any transition into State.NETWORK_LOCKED
|
void |
registerForReady(Handler h,
int what,
Object obj) |
void |
setIccFdnEnabled(boolean enabled,
String password,
Message onComplete)
Set the ICC fdn enabled or disabled
When the operation is complete, onComplete will be sent to its handler
|
void |
setIccLockEnabled(boolean enabled,
String password,
Message onComplete)
Set the ICC pin lock enabled or disabled
When the operation is complete, onComplete will be sent to its handler
|
void |
supplyNetworkDepersonalization(String pin,
Message onComplete) |
void |
supplyPin(String pin,
Message onComplete)
Supply the ICC PIN to the ICC
When the operation is complete, onComplete will be sent to its
Handler.
|
void |
supplyPin2(String pin2,
Message onComplete) |
void |
supplyPuk(String puk,
String newPin,
Message onComplete)
Supply the ICC PUK to the ICC
When the operation is complete, onComplete will be sent to its
Handler.
|
void |
supplyPuk2(String puk2,
String newPin2,
Message onComplete) |
void |
unregisterForLocked(Handler h) |
void |
unregisterForNetworkLocked(Handler h) |
void |
unregisterForReady(Handler h) |
void |
update(IccCardApplicationStatus as,
Context c,
CommandsInterface ci) |
public static final int AUTH_CONTEXT_EAP_SIM
public static final int AUTH_CONTEXT_EAP_AKA
public static final int AUTH_CONTEXT_UNDEFINED
public UiccCardApplication(UiccCard uiccCard, IccCardApplicationStatus as, Context c, CommandsInterface ci)
public void update(IccCardApplicationStatus as, Context c, CommandsInterface ci)
public void queryFdn()
public void unregisterForReady(Handler h)
public void registerForLocked(Handler h, int what, Object obj)
public void unregisterForLocked(Handler h)
public void registerForNetworkLocked(Handler h, int what, Object obj)
public void unregisterForNetworkLocked(Handler h)
public IccCardApplicationStatus.AppState getState()
public IccCardApplicationStatus.AppType getType()
public int getAuthContext()
public IccCardApplicationStatus.PersoSubState getPersoSubState()
public String getAid()
public String getAppLabel()
public IccCardStatus.PinState getPin1State()
public IccFileHandler getIccFileHandler()
public IccRecords getIccRecords()
public void supplyPin(String pin, Message onComplete)
public void supplyPuk(String puk, String newPin, Message onComplete)
public void supplyNetworkDepersonalization(String pin, Message onComplete)
public boolean getIccLockEnabled()
public boolean getIccFdnEnabled()
public boolean getIccFdnAvailable()
public void setIccLockEnabled(boolean enabled, String password, Message onComplete)
enabled
- "true" for locked "false" for unlocked.password
- needed to change the ICC pin state, aka. Pin1onComplete
- onComplete.obj will be an AsyncResult
((AsyncResult)onComplete.obj).exception == null on success
((AsyncResult)onComplete.obj).exception != null on failpublic void setIccFdnEnabled(boolean enabled, String password, Message onComplete)
enabled
- "true" for locked "false" for unlocked.password
- needed to change the ICC fdn enable, aka Pin2onComplete
- onComplete.obj will be an AsyncResult
((AsyncResult)onComplete.obj).exception == null on success
((AsyncResult)onComplete.obj).exception != null on failpublic void changeIccLockPassword(String oldPassword, String newPassword, Message onComplete)
oldPassword
- is the old passwordnewPassword
- is the new passwordonComplete
- onComplete.obj will be an AsyncResult
onComplete.arg1 = attempts remaining or -1 if unknown
((AsyncResult)onComplete.obj).exception == null on success
((AsyncResult)onComplete.obj).exception != null on failpublic void changeIccFdnPassword(String oldPassword, String newPassword, Message onComplete)
oldPassword
- is the old passwordnewPassword
- is the new passwordonComplete
- onComplete.obj will be an AsyncResult
((AsyncResult)onComplete.obj).exception == null on success
((AsyncResult)onComplete.obj).exception != null on failpublic boolean getIccPin2Blocked()
public boolean getIccPuk2Blocked()
public int getPhoneId()
protected UiccCard getUiccCard()
public void dump(FileDescriptor fd, PrintWriter pw, String[] args)