public interface IConfigurationService
extends android.os.IInterface
Modifier and Type | Interface and Description |
---|---|
static class |
IConfigurationService.Stub
Local-side IPC implementation stub class.
|
Modifier and Type | Method and Description |
---|---|
int |
checkCapability(int cap) |
java.lang.String[] |
checkCapabilityList(int cap) |
boolean |
checkPackageAuth(java.lang.String pkgname)
Check if the given package is trusted by ConfigurationService.
|
boolean |
checkUidAuth(int uid)
Check if the given UID is trusted by ConfigurationService.
|
int |
getErrorCode() |
java.lang.String |
getErrorStr() |
byte[] |
readConfigurationFile(int storage,
int type)
Read a configuration file from the SIM or from the ME (Mobile Equipment).
|
void |
registerNotificationReceiver(McopMessenger m)
Register a messenger instance to receive notifications from the MCOP
service.
|
boolean |
writeConfigurationFile(int storage,
int type,
byte[] data)
Write a configuration file to the SIM or to the ME.
|
int getErrorCode() throws android.os.RemoteException
android.os.RemoteException
java.lang.String getErrorStr() throws android.os.RemoteException
android.os.RemoteException
void registerNotificationReceiver(McopMessenger m) throws android.os.RemoteException
This function is platform-specific. On Android, McopMessenger is just a wrapped instance of Messenger. You must do the relevant setup to receive messages yourself.
m
- Messenger instance to receive the notificationsandroid.os.RemoteException
int checkCapability(int cap) throws android.os.RemoteException
android.os.RemoteException
java.lang.String[] checkCapabilityList(int cap) throws android.os.RemoteException
android.os.RemoteException
byte[] readConfigurationFile(int storage, int type) throws android.os.RemoteException
storage
- configuration file storagetype
- configuration file typeandroid.os.RemoteException
Constants.Configuration.Storage
,
Constants.Configuration.FileType
boolean writeConfigurationFile(int storage, int type, byte[] data) throws android.os.RemoteException
storage
- configuration file storagetype
- configuration file typedata
- an array of byte data to writeandroid.os.RemoteException
Constants.Configuration.Storage
,
Constants.Configuration.FileType
boolean checkPackageAuth(java.lang.String pkgname) throws android.os.RemoteException
pkgname
- Full name of the packageandroid.os.RemoteException
boolean checkUidAuth(int uid) throws android.os.RemoteException
uid
- UID to checkandroid.os.RemoteException