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

Commit 4901d62f authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "ITelphony.aidl: Rename hasCarrierPrivileges for packages to...

Merge "ITelphony.aidl: Rename hasCarrierPrivileges for packages to checkCarrierPrivilegesForPackage."
parents a4d88d1e 56be215b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2870,9 +2870,9 @@ public class TelephonyManager {

    /** @hide */
    @SystemApi
    public int hasCarrierPrivileges(String pkgname) {
    public int checkCarrierPrivilegesForPackage(String pkgname) {
        try {
            return getITelephony().hasCarrierPrivileges(pkgname);
            return getITelephony().checkCarrierPrivilegesForPackage(pkgname);
        } catch (RemoteException ex) {
            Rlog.e(TAG, "hasCarrierPrivileges RemoteException", ex);
        } catch (NullPointerException ex) {
@@ -2880,8 +2880,8 @@ public class TelephonyManager {
        }
        return CARRIER_PRIVILEGE_STATUS_NO_ACCESS;
    }
    /** @hide */

    /** @hide */
    @SystemApi
    public void dial(String number) {
        try {
+1 −1
Original line number Diff line number Diff line
@@ -657,6 +657,6 @@ interface ITelephony {
    /**
     * Similar to above, but check for pkg whose name is pkgname.
     */
    int hasCarrierPrivileges(String pkgname);
    int checkCarrierPrivilegesForPackage(String pkgname);
}