mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 22:04:26 +00:00
Add HAL changes to support MEP-A1 mode
Test: build Bug: 254866604 Change-Id: Ie5c1485553b14e6000671a325d806afed0c6b1c7
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright (C) 2022 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. //
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// This file is a snapshot of an AIDL file. Do not edit it manually. There are
|
||||
// two cases:
|
||||
// 1). this is a frozen version file - do not edit this in any case.
|
||||
// 2). this is a 'current' file. If you make a backwards compatible change to
|
||||
// the interface (from the latest frozen version), the build system will
|
||||
// prompt you to update this file with `m <name>-update-api`.
|
||||
//
|
||||
// You must not make a backward incompatible change to any AIDL file built
|
||||
// with the aidl_interface module type with versions property set. The module
|
||||
// type is used to build AIDL files in a way that they can be used across
|
||||
// independently updatable components of the system. If a device is shipped
|
||||
// with such a backward incompatible change, it has a high risk of breaking
|
||||
// later when a module using the interface is updated, e.g., Mainline modules.
|
||||
|
||||
package android.hardware.radio.config;
|
||||
@Backing(type="int") @JavaDerive(toString=true) @VintfStability
|
||||
enum MultipleEnabledProfilesMode {
|
||||
NONE = 0,
|
||||
MEP_A1 = 1,
|
||||
MEP_A2 = 2,
|
||||
MEP_B = 3,
|
||||
}
|
||||
@@ -38,4 +38,5 @@ parcelable SimSlotStatus {
|
||||
String atr;
|
||||
String eid;
|
||||
android.hardware.radio.config.SimPortInfo[] portInfo;
|
||||
android.hardware.radio.config.MultipleEnabledProfilesMode supportedMepMode;
|
||||
}
|
||||
|
||||
@@ -41,4 +41,5 @@ parcelable SimApdu {
|
||||
int p2;
|
||||
int p3;
|
||||
String data;
|
||||
boolean isEs10;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* Copyright (C) 2022 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.hardware.radio.config;
|
||||
|
||||
/**
|
||||
* Multiple Enabled Profiles(MEP) mode is the jointly supported MEP mode. As per section 3.4.1.1 of
|
||||
* GSMA spec SGP.22 v3.0,there are 3 supported MEP modes: MEP-A1, MEP-A2 and MEP-B.
|
||||
* If there is no jointly supported MEP mode, supported MEP mode is set to NONE.
|
||||
*/
|
||||
@VintfStability
|
||||
@Backing(type="int")
|
||||
@JavaDerive(toString=true)
|
||||
enum MultipleEnabledProfilesMode {
|
||||
/**
|
||||
* If there is no jointly supported MEP mode, set supported MEP mode to NONE.
|
||||
*/
|
||||
NONE,
|
||||
/**
|
||||
* In case of MEP-A1, the ISD-R is selected on eSIM port 0 only and profiles are selected on
|
||||
* eSIM ports 1 and higher, with the eSIM port being assigned by the LPA or platform.
|
||||
*/
|
||||
MEP_A1,
|
||||
/**
|
||||
* In case of MEP-A2, the ISD-R is selected on eSIM port 0 only and profiles are selected on
|
||||
* eSIM ports 1 and higher, with the eSIM port being assigned by the eUICC.
|
||||
*/
|
||||
MEP_A2,
|
||||
/**
|
||||
* In case of MEP-B, profiles are selected on eSIM ports 0 and higher, with the ISD-R being
|
||||
* selectable on any of these eSIM ports.
|
||||
*/
|
||||
MEP_B,
|
||||
}
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
package android.hardware.radio.config;
|
||||
|
||||
import android.hardware.radio.config.MultipleEnabledProfilesMode;
|
||||
import android.hardware.radio.config.SimPortInfo;
|
||||
|
||||
@VintfStability
|
||||
@@ -52,4 +53,8 @@ parcelable SimSlotStatus {
|
||||
* active port in the slot mapping.
|
||||
*/
|
||||
SimPortInfo[] portInfo;
|
||||
/**
|
||||
* Jointly supported Multiple Enabled Profiles(MEP) mode as per SGP.22 V3.0
|
||||
*/
|
||||
MultipleEnabledProfilesMode supportedMepMode;
|
||||
}
|
||||
|
||||
@@ -49,4 +49,9 @@ parcelable SimApdu {
|
||||
* In hex string format ([a-fA-F0-9]*)
|
||||
*/
|
||||
String data;
|
||||
/**
|
||||
* isEs10 indicates that the current streaming APDU contains an ES10 command or it is a regular
|
||||
* APDU. (As per spec SGP.22 V3.0, ES10 commands needs to be sent over command port of MEP-A1)
|
||||
*/
|
||||
boolean isEs10;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user