Compare commits
9 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ec0519dfc1 | |||
| 10025d7a59 | |||
| 8675c39e0d | |||
| db91ed01be | |||
| ddf1d3eb4a | |||
| 21897328e1 | |||
| 755115ef64 | |||
| a81a063960 | |||
| 5583c0b789 |
13 changed files with 19 additions and 20 deletions
|
|
@ -100,7 +100,7 @@ class EuiccMemoryResetFragment : DialogFragment(), EuiccChannelFragmentMarker {
|
|||
.onStart {
|
||||
parentFragment?.notifyEuiccProfilesChanged()
|
||||
|
||||
val resId = R.string.toast_euicc_memory_reset_finished
|
||||
val resId = R.string.toast_euicc_memory_reset_finitshed
|
||||
toast = Toast.makeText(requireContext(), resId, Toast.LENGTH_LONG)
|
||||
|
||||
runCatching(::dismiss)
|
||||
|
|
|
|||
|
|
@ -24,11 +24,8 @@ class DownloadWizardDetailsFragment : DownloadWizardActivity.DownloadWizardStepF
|
|||
private val matchingId: EditText by lazy {
|
||||
requireView().requireViewById<TextInputLayout>(R.id.profile_download_code).editText!!
|
||||
}
|
||||
private val confirmationCodeInput: TextInputLayout by lazy {
|
||||
requireView().requireViewById(R.id.profile_download_confirmation_code)
|
||||
}
|
||||
private val confirmationCode: EditText by lazy {
|
||||
confirmationCodeInput.editText!!
|
||||
requireView().requireViewById<TextInputLayout>(R.id.profile_download_confirmation_code).editText!!
|
||||
}
|
||||
private val imei: EditText by lazy {
|
||||
requireView().requireViewById<TextInputLayout>(R.id.profile_download_imei).editText!!
|
||||
|
|
@ -74,10 +71,10 @@ class DownloadWizardDetailsFragment : DownloadWizardActivity.DownloadWizardStepF
|
|||
updateInputCompleteness()
|
||||
|
||||
if (state.confirmationCodeRequired) {
|
||||
confirmationCodeInput.requestFocus()
|
||||
confirmationCodeInput.setHint(R.string.profile_download_confirmation_code_required)
|
||||
confirmationCode.requestFocus()
|
||||
confirmationCode.setHint(R.string.profile_download_confirmation_code_required)
|
||||
} else {
|
||||
confirmationCodeInput.setHint(R.string.profile_download_confirmation_code)
|
||||
confirmationCode.setHint(R.string.profile_download_confirmation_code)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
<string name="toast_profile_enable_cross_class">このプロファイルに切り替えるには、現在有効になっているプロファイルを手動で無効にしてください。</string>
|
||||
<string name="toast_profile_delete_confirm_text_mismatched">確認文字列が一致しません</string>
|
||||
<string name="toast_euicc_memory_reset_confirm_text_mismatched">確認文字列が一致しません</string>
|
||||
<string name="toast_euicc_memory_reset_finished">このチップは消去されました</string>
|
||||
<string name="toast_euicc_memory_reset_finitshed">このチップは消去されました</string>
|
||||
<string name="toast_iccid_copied">ICCID をクリップボードにコピーしました</string>
|
||||
<string name="toast_sn_copied">シリアル番号をクリップボードにコピーしました</string>
|
||||
<string name="toast_eid_copied">EID をクリップボードにコピーしました</string>
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@
|
|||
<string name="euicc_info_sku">产品名称</string>
|
||||
<string name="euicc_info_sn">产品序列号</string>
|
||||
<string name="euicc_info_fw_ver">产品固件版本</string>
|
||||
<string name="profile_download_confirmation_code_required">确认码 (必须)</string>
|
||||
<string name="profile_download_confirmation_code_required">确认码 (必需)</string>
|
||||
<string name="profile_download_imei">IMEI (可选)</string>
|
||||
<string name="download_wizard_error_suggest_network_unreachable">请连接到其他网络(例如在 Wi-Fi 和数据之间切换)后重试。</string>
|
||||
<string name="logs_saved_message">日志已保存到指定路径。需要通过其他 App 分享吗?</string>
|
||||
|
|
@ -160,7 +160,7 @@
|
|||
<string name="pref_developer_ignore_tls_certificate_desc">允许 RSP 服务器使用任意证书</string>
|
||||
<string name="euicc_info_unavailable">无信息</string>
|
||||
<string name="toast_euicc_memory_reset_confirm_text_mismatched">输入的确认文本不匹配</string>
|
||||
<string name="toast_euicc_memory_reset_finished">此芯片已被擦除</string>
|
||||
<string name="toast_euicc_memory_reset_finitshed">此芯片已被擦除</string>
|
||||
<string name="task_euicc_memory_reset">正在擦除 eSIM 芯片</string>
|
||||
<string name="task_euicc_memory_reset_failure">eSIM 芯片擦除失败</string>
|
||||
<string name="euicc_memory_reset">擦除 eSIM 芯片</string>
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@
|
|||
<string name="euicc_info_sku">產品名稱</string>
|
||||
<string name="euicc_info_sn">產品序號</string>
|
||||
<string name="euicc_info_fw_ver">產品韌體版本</string>
|
||||
<string name="profile_download_confirmation_code_required">確認碼 (必須)</string>
|
||||
<string name="profile_download_confirmation_code_required">確認碼 (必需)</string>
|
||||
<string name="profile_download_imei">IMEI (可選)</string>
|
||||
<string name="download_wizard_error_suggest_network_unreachable">請連線到其他網路(例如在 Wi-Fi 和行動網路之間切換)後重試。</string>
|
||||
<string name="logs_saved_message">日誌已儲存到指定路徑。需要透過其他 App 分享嗎?</string>
|
||||
|
|
@ -156,7 +156,7 @@
|
|||
<string name="pref_developer_ignore_tls_certificate_desc">允許 RSP 伺服器使用任意證書</string>
|
||||
<string name="euicc_info_unavailable">無資訊</string>
|
||||
<string name="toast_euicc_memory_reset_confirm_text_mismatched">輸入的確認文字不匹配</string>
|
||||
<string name="toast_euicc_memory_reset_finished">此晶片已被擦除</string>
|
||||
<string name="toast_euicc_memory_reset_finitshed">此晶片已被擦除</string>
|
||||
<string name="task_euicc_memory_reset">正在擦除 eSIM 晶片</string>
|
||||
<string name="task_euicc_memory_reset_failure">eSIM 晶片擦除失敗</string>
|
||||
<string name="euicc_memory_reset">擦除 eSIM 晶片</string>
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
<string name="toast_profile_enable_cross_class">Please disable the currently enabled profile manually in order to switch to this profile.</string>
|
||||
<string name="toast_profile_delete_confirm_text_mismatched">Confirmation string mismatch</string>
|
||||
<string name="toast_euicc_memory_reset_confirm_text_mismatched">Confirmation string mismatch</string>
|
||||
<string name="toast_euicc_memory_reset_finished">This chip has been erased</string>
|
||||
<string name="toast_euicc_memory_reset_finitshed">This chip has been erased</string>
|
||||
<string name="toast_iccid_copied">ICCID copied to clipboard</string>
|
||||
<string name="toast_sn_copied">Serial number copied to clipboard</string>
|
||||
<string name="toast_eid_copied">EID copied to clipboard</string>
|
||||
|
|
|
|||
|
|
@ -12,11 +12,7 @@ class PrivilegedSettingsFragment : SettingsFragment(), PrivilegedEuiccContextMar
|
|||
val info = with(requireContext()) {
|
||||
packageManager.getApplicationInfo(packageName, PackageManager.GET_META_DATA)
|
||||
}
|
||||
try {
|
||||
info.javaClass.getMethod("isSignedWithPlatformKey").invoke(info) as Boolean
|
||||
} catch (_: NoSuchMethodException) {
|
||||
false
|
||||
}
|
||||
info.javaClass.getMethod("isSignedWithPlatformKey").invoke(info) as Boolean
|
||||
}
|
||||
|
||||
override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) {
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 3.2 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 6.9 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 4 KiB After Width: | Height: | Size: 0 B |
Binary file not shown.
|
Before Width: | Height: | Size: 9.4 KiB |
6
app/src/main/res/values/Colors.xml
Normal file
6
app/src/main/res/values/Colors.xml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="colorPrimary">#1B2B8A</color>
|
||||
<color name="colorPrimaryDark">#111E5E</color>
|
||||
<color name="colorAccent">#D4A017</color>
|
||||
</resources>
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<resources>
|
||||
<string name="app_name" translatable="false">OpenEUICC</string>
|
||||
<string name="app_name" translatable="false">WHYFIM Esim</string>
|
||||
<string name="no_euicc_priv">No eSIM found on this device.\nOn some devices, you may need to enable dual SIM first in the menu of this app.</string>
|
||||
<string name="channel_type_telephony_manager">TelephonyManager (Privileged)</string>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue