From 71dad9a276f414fb912d93ad259f2109da89d196 Mon Sep 17 00:00:00 2001 From: Yoshiaki Naka Date: Mon, 12 Mar 2018 14:27:34 +0900 Subject: [PATCH] Remove the UICC specific code from android.se.omapi It is better to remove the UICC specific code from frameworks/base. The code will be moved to SecureElementSession.openLogicalChannel(). Bug: 73331557 Test: Confirmed that OMAPI TC 6.4.7 ID3b passed with this change. Change-Id: I1dda1d741306b417b1b886cdcee5ef89f86390e3 --- core/java/android/se/omapi/Session.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/java/android/se/omapi/Session.java b/core/java/android/se/omapi/Session.java index 19a018ee01bbc..3d8b74b51c4c6 100644 --- a/core/java/android/se/omapi/Session.java +++ b/core/java/android/se/omapi/Session.java @@ -301,12 +301,6 @@ public class Session { * provide a new logical channel. */ public @Nullable Channel openLogicalChannel(byte[] aid, byte p2) throws IOException { - - if ((mReader.getName().startsWith("SIM")) && (aid == null)) { - Log.e(TAG, "NULL AID not supported on " + mReader.getName()); - return null; - } - if (!mService.isConnected()) { throw new IllegalStateException("service not connected to system"); }