From a87f15465315f06a19e092868ff68b419ff92eb9 Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Tue, 17 Dec 2024 22:01:43 -0500 Subject: [PATCH 1/2] EuiccChannelManagerService: Stop throwing exceptions for USB channels when switching --- .../im/angry/openeuicc/service/EuiccChannelManagerService.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app-common/src/main/java/im/angry/openeuicc/service/EuiccChannelManagerService.kt b/app-common/src/main/java/im/angry/openeuicc/service/EuiccChannelManagerService.kt index a20c8db..f76f1dc 100644 --- a/app-common/src/main/java/im/angry/openeuicc/service/EuiccChannelManagerService.kt +++ b/app-common/src/main/java/im/angry/openeuicc/service/EuiccChannelManagerService.kt @@ -476,8 +476,9 @@ class EuiccChannelManagerService : LifecycleService(), OpenEuiccContextMarker { throw RuntimeException("Could not switch profile") } - if (!refreshed) { + if (!refreshed && slotId != EuiccChannelManager.USB_CHANNEL_ID) { // We may have switched the profile, but we could not refresh. Tell the caller about this + // but only if we are talking to a modem and not a USB reader throw SwitchingProfilesRefreshException() } From 895899d03ab49c108b608673ad6dfadf8fbd1cc5 Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Tue, 17 Dec 2024 22:34:06 -0500 Subject: [PATCH 2/2] i18n: Optimize strings and update translations --- app-common/src/main/res/values-ja/strings.xml | 18 ++++++++++++++---- .../src/main/res/values-zh-rCN/strings.xml | 18 ++++++++++++++---- app-common/src/main/res/values/strings.xml | 12 ++++++------ 3 files changed, 34 insertions(+), 14 deletions(-) diff --git a/app-common/src/main/res/values-ja/strings.xml b/app-common/src/main/res/values-ja/strings.xml index 54d5890..25211b0 100644 --- a/app-common/src/main/res/values-ja/strings.xml +++ b/app-common/src/main/res/values-ja/strings.xml @@ -16,7 +16,9 @@ eSIM チップがプロファイルの切り替えの待機中にタイムアウトしました。これはデバイスのモデムファームウェアのバグの可能性があります。機内モードに切り替えるかアプリを再起動、デバイスを再起動してください。 操作は成功しましたが、デバイスのモデムが更新を拒否しました。新しいプロファイルを使用するには機内モードに切り替えるか、再起動する必要があります。 新しい eSIM プロファイルに切り替えることができません。 + 入力した確認用テキストは一致していません ICCID をクリップボードにコピーしました + EID をクリップボードにコピーしました USB の権限を許可 USB スマートカードリーダーにアクセスするには許可が必要です。 USB スマートカードリーダー経由で eSIM に接続できません。 @@ -36,6 +38,9 @@ IMEI (オプション) ダウンロードに失敗する可能性があります 残り容量が少ないため、ダウンロードに失敗する可能性があります。 + クリップボードに LPA コードが見つかりません + LPA コードを解析できません + クリップボードまたは QR コードの内容を LPA コードとして解析できません ダウンロードウィザード 戻る 次へ @@ -49,6 +54,7 @@ eSIM プロファイルをどの方法でダウンロードしますか? カメラで QR コードをスキャン ギャラリーから QR コードをスキャン + クリップボードから読み込む 手動で入力 eSIM をダウンロードするための詳細情報を入力または確認: eSIM をダウンロード中です… @@ -68,7 +74,11 @@ 最終の APDU 例外: 保存 %s のエラー診断 + ログは指定されたパスに保存しました。他のアプリにシェアしますか? 新しいニックネーム + ニックネームを UTF-8 にエンコードできません + ニックネームは 64 文字以内にしてください + ニックネームの変更で予期せぬエラーが発生しました %s のプロファイルを削除してもよろしいですか?この操作は元に戻せません。 削除を確認するには「%s」を入力してください 通知 @@ -90,10 +100,10 @@ SAS 認定番号 Protected Profileのバージョン NVRAM の空き容量 (eSIM プロファイルストレージ) - GSMA プロダクション証明書 - GSMA テスト証明書 - 対応 - 非対応 + 証明書の発行者 (CI) + GSMA プロダクション CI + GSMA テスト CI + 未知の eSIM CI はい いいえ 保存 diff --git a/app-common/src/main/res/values-zh-rCN/strings.xml b/app-common/src/main/res/values-zh-rCN/strings.xml index 200931a..2085666 100644 --- a/app-common/src/main/res/values-zh-rCN/strings.xml +++ b/app-common/src/main/res/values-zh-rCN/strings.xml @@ -17,7 +17,9 @@ 等待 eSIM 芯片切换配置文件时超时。这可能是您手机基带固件中的一个错误。请尝试切换飞行模式、重新启动应用程序或重新启动手机 操作成功, 但是您手机的基带拒绝刷新。您可能需要切换飞行模式或重新启动,以便使用新的配置文件。 无法切换到新的 eSIM 配置文件。 + 输入的确认文本不匹配 已复制 ICCID 到剪贴板 + 已复制 EID 到剪贴板 授予 USB 权限 需要获得访问 USB 智能卡读卡器的权限。 无法通过 USB 智能卡读卡器连接到 eSIM。 @@ -37,7 +39,11 @@ IMEI (可选) 本次下载可能会失败 当前芯片的剩余空间不足,可能导致配置下载失败。\n是否继续下载? + 日志已保存到指定路径。需要通过其他 App 分享吗? 新昵称 + 无法将昵称编码为 UTF-8 + 昵称长于 64 字符 + 重命名配置文件时发生了未知错误 您确定要删除 %s 吗?此操作是不可逆的。 请输入\'%s\'以确认删除 通知列表 @@ -74,6 +80,9 @@ 测试 准备中 可用 + 未在剪贴板上发现 LPA 码 + LPA 码解析错误 + 无法将二维码或剪贴板内容解析为 LPA 码 下载向导 返回 下一步 @@ -87,6 +96,7 @@ 您想要如何下载 eSIM 配置文件? 用相机扫描二维码 从图库选择二维码 + 从剪贴板读取 手动输入 请输入或确认下载 eSIM 的详细信息: 正在下载您的 eSIM... @@ -115,10 +125,10 @@ SAS 认证号码 Protected Profile 版本 NVRAM 剩余空间 (eSIM 存储容量) - GSMA 生产环境证书 - GSMA 测试环境证书 - 兼容 - 不兼容 + 证书签发者 (CI) + GSMA 生产环境 CI + GSMA 测试 CI + 未知 eSIM CI 还有 %d 步成为开发者 diff --git a/app-common/src/main/res/values/strings.xml b/app-common/src/main/res/values/strings.xml index 95ea261..7b0ff69 100644 --- a/app-common/src/main/res/values/strings.xml +++ b/app-common/src/main/res/values/strings.xml @@ -54,9 +54,9 @@ This download may fail This download may fail due to low remaining capacity. - No LPA string found in clipboard - Incorrect LPA String - Could not parse QR code or clipboard content as an LPA string for downloading eSIMs. + No LPA code found in clipboard + Unable to parse + Could not parse QR code or clipboard content as a LPA code. Download Wizard Back @@ -97,7 +97,7 @@ New nickname Failed to encode nickname as UTF-8 - Nickname is too long + Nickname is longer than 64 characters Unknown failure when renaming profile Are you sure you want to delete the profile %s? This operation is irreversible. @@ -126,10 +126,10 @@ SAS Accreditation Number Protected Profile Version Free NVRAM (eSIM profile storage) - Certificate Issuer + Certificate Issuer (CI) GSMA Live CI GSMA Test CI - Unknown eSIM CA + Unknown eSIM CI Yes No