Add getCdmaPrlVersion().

Bug:27612001
Change-Id: Icce9e99d360e30268d41bc063eeefc7484627df6
This commit is contained in:
Youhan Wang
2016-07-18 18:34:43 -07:00
parent ff080be098
commit 4eb5678ed8
2 changed files with 43 additions and 0 deletions

View File

@@ -5423,6 +5423,39 @@ public class TelephonyManager {
return null;
}
/**
* Return the Preferred Roaming List Version
*
* Requires that the calling app has READ_PRIVILEGED_PHONE_STATE permission
*
* @return PRLVersion or null if error.
* @hide
*/
public String getCdmaPrlVersion() {
return getCdmaPrlVersion(getDefaultSubscription());
}
/**
* Return the Preferred Roaming List Version
*
* Requires that the calling app has READ_PRIVILEGED_PHONE_STATE permission
*
* @param subId the subscription ID that this request applies to.
* @return PRLVersion or null if error.
* @hide
*/
public String getCdmaPrlVersion(int subId) {
try {
ITelephony service = getITelephony();
if (service != null) {
return service.getCdmaPrlVersion(subId);
}
} catch (RemoteException e) {
Log.e(TAG, "Error calling ITelephony#getCdmaPrlVersion", e);
}
return null;
}
/**
* Get snapshot of Telephony histograms
* @return List of Telephony histograms

View File

@@ -1106,6 +1106,16 @@ interface ITelephony {
*/
String getEsn(int subId);
/**
* Return the Preferred Roaming List Version
*
* Requires that the calling app has READ_PRIVILEGED_PHONE_STATE permission
* @param subId the subscription ID that this request applies to.
* @return PRLVersion or null if error.
* @hide
*/
String getCdmaPrlVersion(int subId);
/**
* Get snapshot of Telephony histograms
* @return List of Telephony histograms