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

Commit 0ec12e16 authored by Arun kumar Voddu's avatar Arun kumar Voddu Committed by Automerger Merge Worker
Browse files

Merge "New hidden API to support the CTS test case that checks the file...

Merge "New hidden API to support the CTS test case that checks the file contents remains unaltered." into udc-dev am: 0fa26314 am: a0cbcf65 am: d64fd6ad am: 0e436a6b

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22839500



Change-Id: Ie6ea8b74d40ffb471957ccb125f65440fe13635d
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents c5ef62ea 0e436a6b
Loading
Loading
Loading
Loading
+23 −0
Original line number Diff line number Diff line
@@ -13304,6 +13304,29 @@ public class TelephonyManager {
        }
    }
    /**
     * Test API to verify carrier restriction status allow list i.e.
     * packages/services/Telephony/assets/CarrierRestrictionOperatorDetails.json.
     *
     * @param pkgName : packaga name of the entry to verify
     * @param carrierId : carrier Id of the entry
     * @return {@code List<String>} : list of registered shaIds
     * @hide
     */
    @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE)
    public List<String> getShaIdFromAllowList(String pkgName, int carrierId) {
        try {
            ITelephony service = getITelephony();
            if (service != null) {
                return service.getShaIdFromAllowList(pkgName, carrierId);
            }
        } catch (RemoteException ex) {
            Rlog.e(TAG, "getShaIdFromAllowList: RemoteException = " + ex);
            throw ex.rethrowAsRuntimeException();
        }
        return Collections.EMPTY_LIST;
    }
    /**
     * Used to enable or disable carrier data by the system based on carrier signalling or
     * carrier privileged apps. Different from {@link #setDataEnabled(boolean)} which is linked to
+7 −0
Original line number Diff line number Diff line
@@ -3037,4 +3037,11 @@ interface ITelephony {
     * @return {@code true} if the timeout duration is set successfully, {@code false} otherwise.
     */
    boolean setSatelliteDeviceAlignedTimeoutDuration(long timeoutMillis);

    /**
     * Test method to confirm the file contents are not altered.
     */
     @JavaPassthrough(annotation="@android.annotation.RequiresPermission("
                 + "android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE)")
     List<String> getShaIdFromAllowList(String pkgName, int carrierId);
}