|
@@ -10,9 +10,8 @@ import java.lang.IllegalArgumentException
|
|
|
|
|
|
|
|
class PrivilegedEuiccChannelFactory(context: Context) : DefaultEuiccChannelFactory(context),
|
|
class PrivilegedEuiccChannelFactory(context: Context) : DefaultEuiccChannelFactory(context),
|
|
|
PrivilegedEuiccContextMarker {
|
|
PrivilegedEuiccContextMarker {
|
|
|
- private val tm by lazy {
|
|
|
|
|
- (context.applicationContext as OpenEuiccApplication).appContainer.telephonyManager
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ override val openEuiccMarkerContext: Context
|
|
|
|
|
+ get() = context
|
|
|
|
|
|
|
|
@Suppress("NAME_SHADOWING")
|
|
@Suppress("NAME_SHADOWING")
|
|
|
override suspend fun tryOpenEuiccChannel(port: UiccPortInfoCompat): EuiccChannel? {
|
|
override suspend fun tryOpenEuiccChannel(port: UiccPortInfoCompat): EuiccChannel? {
|
|
@@ -35,7 +34,7 @@ class PrivilegedEuiccChannelFactory(context: Context) : DefaultEuiccChannelFacto
|
|
|
intrinsicChannelName = null,
|
|
intrinsicChannelName = null,
|
|
|
TelephonyManagerApduInterface(
|
|
TelephonyManagerApduInterface(
|
|
|
port,
|
|
port,
|
|
|
- tm,
|
|
|
|
|
|
|
+ telephonyManager,
|
|
|
context.preferenceRepository.verboseLoggingFlow
|
|
context.preferenceRepository.verboseLoggingFlow
|
|
|
),
|
|
),
|
|
|
context.preferenceRepository.verboseLoggingFlow,
|
|
context.preferenceRepository.verboseLoggingFlow,
|