public class UiccCarrierPrivilegeRules extends Handler
Modifier and Type | Class and Description |
---|---|
static class |
UiccCarrierPrivilegeRules.TLV |
Handler.Callback
Constructor and Description |
---|
UiccCarrierPrivilegeRules(UiccCard uiccCard,
Message loadedCallback) |
Modifier and Type | Method and Description |
---|---|
boolean |
areCarrierPriviligeRulesLoaded()
Returns true if the carrier privilege rules have finished loading.
|
void |
dump(FileDescriptor fd,
PrintWriter pw,
String[] args)
Dumps info to Dumpsys - useful for debugging.
|
List<String> |
getCarrierPackageNamesForIntent(PackageManager packageManager,
Intent intent)
Returns the package name of the carrier app that should handle the input intent.
|
int |
getCarrierPrivilegeStatus(PackageInfo packageInfo)
Returns the status of the carrier privileges for the input package info.
|
int |
getCarrierPrivilegeStatus(PackageManager packageManager,
String packageName)
Returns the status of the carrier privileges for the input package name.
|
int |
getCarrierPrivilegeStatus(Signature signature,
String packageName)
Returns the status of the carrier privileges for the input certificate and package name.
|
int |
getCarrierPrivilegeStatusForCurrentTransaction(PackageManager packageManager)
Returns the status of the carrier privileges for the caller of the current transaction.
|
List<String> |
getPackageNames()
Returns package names for privilege rules.
|
void |
handleMessage(Message msg)
Subclasses must implement this to receive messages.
|
boolean |
hasCarrierPrivilegeRules()
Returns true if the carrier privilege rules have finished loading and some rules were
specified.
|
dispatchMessage, dump, getLooper, getMessageName, getTraceName, hasCallbacks, hasMessages, hasMessages, obtainMessage, obtainMessage, obtainMessage, obtainMessage, obtainMessage, post, postAtFrontOfQueue, postAtTime, postAtTime, postDelayed, removeCallbacks, removeCallbacks, removeCallbacksAndMessages, removeMessages, removeMessages, runWithScissors, sendEmptyMessage, sendEmptyMessageAtTime, sendEmptyMessageDelayed, sendMessage, sendMessageAtFrontOfQueue, sendMessageAtTime, sendMessageDelayed, toString
public boolean areCarrierPriviligeRulesLoaded()
public boolean hasCarrierPrivilegeRules()
public List<String> getPackageNames()
public int getCarrierPrivilegeStatus(Signature signature, String packageName)
signature
- The signature of the certificate.packageName
- name of the package.public int getCarrierPrivilegeStatus(PackageManager packageManager, String packageName)
packageManager
- PackageManager for getting signatures.packageName
- name of the package.public int getCarrierPrivilegeStatus(PackageInfo packageInfo)
packageInfo
- PackageInfo for the package, containing the package signatures.public int getCarrierPrivilegeStatusForCurrentTransaction(PackageManager packageManager)
packageManager
- PackageManager for getting signatures and package names.public List<String> getCarrierPackageNamesForIntent(PackageManager packageManager, Intent intent)
packageManager
- PackageManager for getting receivers.intent
- Intent that will be sent.public void handleMessage(Message msg)
Handler
handleMessage
in class Handler
public void dump(FileDescriptor fd, PrintWriter pw, String[] args)