From bfc6cd7483d998701d7dbe5b160cc8ef7e6ff586 Mon Sep 17 00:00:00 2001 From: Hui Wang Date: Mon, 12 Oct 2020 12:19:48 -0700 Subject: Support Gba Api Added api to support generic authentication architecture. Bug: 154865133 Test: atest cts/tests/tests/telephony/current/src/android/telephony/gba/cts/ Test: manual by GbaTestApp Merged-In: I9aea4c8bc2123b6d00c4a8ddf9901c885d2742d2 Change-Id: I9aea4c8bc2123b6d00c4a8ddf9901c885d2742d2 --- .../com/android/internal/telephony/ITelephony.aidl | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'telephony/java/com') diff --git a/telephony/java/com/android/internal/telephony/ITelephony.aidl b/telephony/java/com/android/internal/telephony/ITelephony.aidl index 7e1aee7c6a7b..fc83f759aa3d 100644 --- a/telephony/java/com/android/internal/telephony/ITelephony.aidl +++ b/telephony/java/com/android/internal/telephony/ITelephony.aidl @@ -37,6 +37,8 @@ import android.telephony.CellIdentity; import android.telephony.CellInfo; import android.telephony.ClientRequestStats; import android.telephony.ThermalMitigationRequest; +import android.telephony.gba.UaSecurityProtocolIdentifier; +import android.telephony.IBootstrapAuthenticationCallback; import android.telephony.IccOpenLogicalChannelResponse; import android.telephony.ICellInfoCallback; import android.telephony.ModemActivityInfo; @@ -2265,4 +2267,31 @@ interface ITelephony { */ int sendThermalMitigationRequest(int subId, in ThermalMitigationRequest thermalMitigationRequest); + + /** + * Get the Generic Bootstrapping Architecture authentication keys + */ + void bootstrapAuthenticationRequest(int subId, int appType, in Uri nafUrl, + in UaSecurityProtocolIdentifier securityProtocol, + boolean forceBootStrapping, IBootstrapAuthenticationCallback callback); + + /** + * Set the GbaService Package Name that Telephony will bind to. + */ + boolean setBoundGbaServiceOverride(int subId, String packageName); + + /** + * Return the package name of the currently bound GbaService. + */ + String getBoundGbaService(int subId); + + /** + * Set the release time for telephony to unbind GbaService. + */ + boolean setGbaReleaseTimeOverride(int subId, int interval); + + /** + * Return the release time for telephony to unbind GbaService. + */ + int getGbaReleaseTime(int subId); } -- cgit v1.2.3