1 /* 2 * Copyright (C) 2017, The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 /* 17 * Copyright (c) 2015-2017, The Linux Foundation. 18 */ 19 /* 20 * Contributed by: Giesecke & Devrient GmbH. 21 */ 22 23 package android.se.omapi; 24 25 import android.se.omapi.ISecureElementReader; 26 27 /** 28 * SecureElement service interface. 29 * @hide 30 */ 31 interface ISecureElementService { 32 33 /** 34 * Returns the friendly names of available Secure Element readers. 35 */ getReaders()36 String[] getReaders(); 37 38 /** 39 * Returns SecureElement Service reader object to the given name. 40 */ getReader(String reader)41 ISecureElementReader getReader(String reader); 42 43 /** 44 * Checks if the application defined by the package name is allowed to 45 * receive NFC transaction events for the defined AID. 46 */ isNFCEventAllowed(String reader, in byte[] aid, in String[] packageNames)47 boolean[] isNFCEventAllowed(String reader, in byte[] aid, 48 in String[] packageNames); 49 50 } 51