Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 009b877c authored by Youhan Wang's avatar Youhan Wang Committed by android-build-merger
Browse files

Merge \\"Add getCdmaPrlVersion().\\" into nyc-mr1-dev am: d71c64f7

am: 393ccd2a

Change-Id: I62949a772e5355ca345f94d7dcedc8112de97863
parents da233227 393ccd2a
Loading
Loading
Loading
Loading
+33 −0
Original line number Diff line number Diff line
@@ -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
+10 −0
Original line number Diff line number Diff line
@@ -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