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

Commit 110cb405 authored by Holly Jiuyu Sun's avatar Holly Jiuyu Sun Committed by Gerrit Code Review
Browse files

Merge "Add APIs to EuiccCardManager and EuiccCardController."

parents 52a41530 bdc36857
Loading
Loading
Loading
Loading
+96 −1
Original line number Diff line number Diff line
@@ -16,12 +16,14 @@

package com.android.internal.telephony.euicc;

import android.annotation.Nullable;
import android.app.AppOpsManager;
import android.content.Context;
import android.content.pm.ComponentInfo;
import android.os.Binder;
import android.os.ServiceManager;
import android.telephony.euicc.EuiccCardManager;
import android.telephony.euicc.EuiccNotification;
import android.text.TextUtils;
import android.util.Log;

@@ -81,7 +83,100 @@ public class EuiccCardController extends IEuiccCardController.Stub {
    }

    @Override
    public void getAllProfiles(String callingPackage, IGetAllProfilesCallback getProfilesCb) {
    public void getAllProfiles(String callingPackage, IGetAllProfilesCallback callback) {
        checkCallingPackage(callingPackage);

        // TODO(b/38206971): Get EuiccCard instance from UiccController and call the API.
    }

    @Override
    public void getRulesAuthTable(String callingPackage, IGetRulesAuthTableCallback callback) {
        checkCallingPackage(callingPackage);

        // TODO(b/38206971): Get EuiccCard instance from UiccController and call the API.
    }

    @Override
    public void getEuiccChallenge(String callingPackage, IGetEuiccChallengeCallback callback) {
        checkCallingPackage(callingPackage);

        // TODO(b/38206971): Get EuiccCard instance from UiccController and call the API.
    }

    @Override
    public void getEuiccInfo1(String callingPackage, IGetEuiccInfo1Callback callback) {
        checkCallingPackage(callingPackage);

        // TODO(b/38206971): Get EuiccCard instance from UiccController and call the API.
    }

    @Override
    public void getEuiccInfo2(String callingPackage, IGetEuiccInfo2Callback callback) {
        checkCallingPackage(callingPackage);

        // TODO(b/38206971): Get EuiccCard instance from UiccController and call the API.
    }

    @Override
    public void authenticateServer(String callingPackage, String matchingId, byte[] serverSigned1,
            byte[] serverSignature1, byte[] euiccCiPkIdToBeUsed, byte[] serverCertificate,
            IAuthenticateServerCallback callback) {
        checkCallingPackage(callingPackage);

        // TODO(b/38206971): Get EuiccCard instance from UiccController and call the API.
    }

    @Override
    public void prepareDownload(String callingPackage, @Nullable byte[] hashCc, byte[] smdpSigned2,
            byte[] smdpSignature2, byte[] smdpCertificate, IPrepareDownloadCallback callback) {
        checkCallingPackage(callingPackage);

        // TODO(b/38206971): Get EuiccCard instance from UiccController and call the API.
    }

    @Override
    public void loadBoundProfilePackage(String callingPackage, byte[] boundProfilePackage,
            ILoadBoundProfilePackageCallback callback) {
        checkCallingPackage(callingPackage);

        // TODO(b/38206971): Get EuiccCard instance from UiccController and call the API.
    }

    @Override
    public void cancelSession(String callingPackage, byte[] transactionId,
            @EuiccCardManager.CancelReason int reason, ICancelSessionCallback callback) {
        checkCallingPackage(callingPackage);

        // TODO(b/38206971): Get EuiccCard instance from UiccController and call the API.
    }

    @Override
    public void listNotifications(String callingPackage, @EuiccNotification.Event int events,
            IListNotificationsCallback callback) {
        checkCallingPackage(callingPackage);

        // TODO(b/38206971): Get EuiccCard instance from UiccController and call the API.
    }

    @Override
    public void retrieveNotificationList(String callingPackage, @EuiccNotification.Event int events,
            IRetrieveNotificationListCallback callback) {
        checkCallingPackage(callingPackage);

        // TODO(b/38206971): Get EuiccCard instance from UiccController and call the API.
    }

    @Override
    public void retrieveNotification(String callingPackage, int seqNumber,
            IRetrieveNotificationCallback callback) {
        checkCallingPackage(callingPackage);

        // TODO(b/38206971): Get EuiccCard instance from UiccController and call the API.
    }

    @Override
    public void removeNotificationFromList(String callingPackage, int seqNumber,
            IRemoveNotificationFromListCallback callback) {
        checkCallingPackage(callingPackage);

        // TODO(b/38206971): Get EuiccCard instance from UiccController and call the API.
+75 −72

File changed and moved.

Preview size limit exceeded, changes collapsed.