public interface IccCard
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
|
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() |
String |
getServiceProviderName()
Returns service provider name stored in ICC card.
|
IccCardConstants.State |
getState() |
boolean |
hasIccCard() |
boolean |
isApplicationOnIcc(IccCardApplicationStatus.AppType type)
Checks if an Application of specified type present on the card
|
void |
registerForAbsent(Handler h,
int what,
Object obj)
Notifies handler of any transition into IccCardConstants.State.ABSENT
|
void |
registerForLocked(Handler h,
int what,
Object obj)
Notifies handler of any transition into IccCardConstants.State.isPinLocked()
|
void |
registerForNetworkLocked(Handler h,
int what,
Object obj)
Notifies handler of any transition into IccCardConstants.State.NETWORK_LOCKED
|
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)
Supply Network depersonalization code to the RIL
|
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)
Supply the ICC PIN2 to the ICC
|
void |
supplyPuk(String puk,
String newPin,
Message onComplete)
Supply the ICC PUK to the ICC
|
void |
supplyPuk2(String puk2,
String newPin2,
Message onComplete)
Supply the ICC PUK2 to the ICC
|
void |
unregisterForAbsent(Handler h) |
void |
unregisterForLocked(Handler h) |
void |
unregisterForNetworkLocked(Handler h) |
IccCardConstants.State getState()
IccRecords getIccRecords()
IccFileHandler getIccFileHandler()
void registerForAbsent(Handler h, int what, Object obj)
void unregisterForAbsent(Handler h)
void registerForNetworkLocked(Handler h, int what, Object obj)
void unregisterForNetworkLocked(Handler h)
void registerForLocked(Handler h, int what, Object obj)
void unregisterForLocked(Handler h)
void supplyPin(String pin, Message onComplete)
void supplyPuk(String puk, String newPin, Message onComplete)
void supplyPuk2(String puk2, String newPin2, Message onComplete)
boolean getIccFdnAvailable()
void supplyNetworkDepersonalization(String pin, Message onComplete)
boolean getIccLockEnabled()
boolean getIccFdnEnabled()
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 failvoid 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 failvoid changeIccLockPassword(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 failvoid 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 failString getServiceProviderName()
Please use this value when display Service Provider Name in idle mode
Usage of this provider name in the UI is a common carrier requirement. Also available via Android property "gsm.sim.operator.alpha"
boolean isApplicationOnIcc(IccCardApplicationStatus.AppType type)
type
- is AppType to look forboolean hasIccCard()
boolean getIccPin2Blocked()
boolean getIccPuk2Blocked()