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

Commit 6a7c9333 authored by Nathan Harold's avatar Nathan Harold
Browse files

Provide a public API for TelephonyManager.getForbiddenPlmns()

Bug: 33296073
Test: none
Change-Id: I4f1bce663669c18098755c386456e6e9687a3cfb
parent f56cd707
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -37955,6 +37955,7 @@ package android.telephony {
    method public java.lang.String getDeviceId();
    method public java.lang.String getDeviceId(int);
    method public java.lang.String getDeviceSoftwareVersion();
    method public java.lang.String[] getForbiddenPlmns();
    method public java.lang.String getGroupIdLevel1();
    method public java.lang.String getIccAuthentication(int, int, java.lang.String);
    method public java.lang.String getLine1Number();
+1 −0
Original line number Diff line number Diff line
@@ -41164,6 +41164,7 @@ package android.telephony {
    method public java.lang.String getDeviceId();
    method public java.lang.String getDeviceId(int);
    method public java.lang.String getDeviceSoftwareVersion();
    method public java.lang.String[] getForbiddenPlmns();
    method public java.lang.String getGroupIdLevel1();
    method public java.lang.String getIccAuthentication(int, int, java.lang.String);
    method public java.lang.String getImei();
+1 −0
Original line number Diff line number Diff line
@@ -38037,6 +38037,7 @@ package android.telephony {
    method public java.lang.String getDeviceId();
    method public java.lang.String getDeviceId(int);
    method public java.lang.String getDeviceSoftwareVersion();
    method public java.lang.String[] getForbiddenPlmns();
    method public java.lang.String getGroupIdLevel1();
    method public java.lang.String getIccAuthentication(int, int, java.lang.String);
    method public java.lang.String getLine1Number();
+13 −0
Original line number Diff line number Diff line
@@ -4173,6 +4173,19 @@ public class TelephonyManager {
        }
    }

    /**
     * Returns an array of Forbidden PLMNs from the USIM App
     * Returns null if the query fails.
     *
     *
     * <p>Requires that the caller has READ_PRIVILEGED_PHONE_STATE
     *
     * @return an array of forbidden PLMNs or null if not available
     */
    public String[] getForbiddenPlmns() {
      return getForbiddenPlmns(getSubId(), APPTYPE_USIM);
    }

    /**
     * Returns an array of Forbidden PLMNs from the specified SIM App
     * Returns null if the query fails.
+1 −1
Original line number Diff line number Diff line
@@ -1218,7 +1218,6 @@ interface ITelephony {
     */
    void setPolicyDataEnabled(boolean enabled, int subId);


    /**
     * Get Client request stats which will contain statistical information
     * on each request made by client.
@@ -1236,6 +1235,7 @@ interface ITelephony {
     * */
    void setSimPowerStateForSlot(int slotId, boolean powerUp);

    /**
     * Returns a list of Forbidden PLMNs from the specified SIM App
     * Returns null if the query fails.
     *