Skip to content

Commit

Permalink
Merge branch 'main' into feature/quick-settings-tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
kyujin-cho committed Feb 16, 2024
2 parents 7d62457 + e3a03f4 commit f315240
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Carriers which aren't possible for testing by developer but reported as supporte

#### Optional

only if installing Schizuku using ADB
only if installing Shizuku using ADB

- Windows, macOS or Linux PC with [Android Platform Tools](https://developer.android.com/studio/command-line/adb) installed
- USB-A to USB-C or USB-C to USB-C cable to connect Pixel to the PC
Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ android {

defaultConfig {
applicationId "dev.bluehouse.enablevolte"
minSdk 30
minSdk 29
targetSdk 33
versionCode 12
versionName "1.2.7"
Expand Down
13 changes: 7 additions & 6 deletions app/src/main/java/dev/bluehouse/enablevolte/HomeActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,15 @@ class HomeActivity : ComponentActivity() {
@OptIn(ExperimentalMaterial3Api::class)
@Composable
fun PixelIMSApp() {
val context = LocalContext.current
val navController = rememberNavController()
val carrierModer = CarrierModer(LocalContext.current)
val carrierModer = CarrierModer(context)
val currentBackStackEntry by navController.currentBackStackEntryAsState()

var subscriptions by rememberSaveable { mutableStateOf(listOf<SubscriptionInfo>()) }
var navBuilder by remember {
mutableStateOf<NavGraphBuilder.() -> Unit>({
composable("home", "Home") {
composable("home", context.resources.getString(R.string.home)) {
Home(navController)
}
})
Expand All @@ -104,18 +105,18 @@ fun PixelIMSApp() {

fun generateNavBuilder(): (NavGraphBuilder.() -> Unit) {
return {
composable("home", "Home") {
composable("home", context.resources.getString(R.string.home)) {
Home(navController)
}
for (subscription in subscriptions) {
navigation(startDestination = "config${subscription.subscriptionId}", route = "config${subscription.subscriptionId}root") {
composable("config${subscription.subscriptionId}", "SIM Config") {
composable("config${subscription.subscriptionId}", context.resources.getString(R.string.sim_config)) {
Config(navController, subscription.subscriptionId)
}
composable("config${subscription.subscriptionId}/dump", "Config Dump Viewer") {
composable("config${subscription.subscriptionId}/dump", context.resources.getString(R.string.config_dump_viewer)) {
DumpedConfig(subscription.subscriptionId)
}
composable("config${subscription.subscriptionId}/edit", "Expert Mode") {
composable("config${subscription.subscriptionId}/edit", context.resources.getString(R.string.expert_mode)) {
Editor(subscription.subscriptionId)
}
}
Expand Down
14 changes: 8 additions & 6 deletions app/src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
<string name="enable_video_calling_vt">启用视频通话(VT)</string>
<string name="enable_ss_over_ut">UT接口下启用补充业务</string>
<string name="enable_ss_over_cdma">CDMA下启用补充业务</string>
<string name="sim_detected">检测到SIM</string>
<string name="volte_supported_by_device">支持VoLTE</string>
<string name="ims_status">IMS状态</string>
<string name="ims_status_for">卡 %1$s 的IMS状态</string>
<string name="sim_detected">检测到 SIM</string>
<string name="volte_supported_by_device">支持 VoLTE</string>
<string name="ims_status">IMS 状态</string>
<string name="ims_status_for">卡 %1$s 的 IMS 状态</string>
<string name="permissions_capabilities"><![CDATA[权限与兼容性]]></string>
<string name="registered">已注册</string>
<string name="unregistered">未注册</string>
Expand All @@ -38,7 +38,7 @@
<string name="newer_version_available">有新版本 %1$s 可用!</string>
<string name="feature_toggles">启用/禁用功能</string>
<string name="cosmetic_toggles">显示设置</string>
<string name="show_4g_for_lte_data_icon">使用4G替换LTE图标</string>
<string name="show_4g_for_lte_data_icon">使用 4G 替换 LTE 图标</string>
<string name="show_vowifi_icon">显示 VoWiFI 图标</string>
<string name="always_show_data_icon">始终显示数据速率图标</string>
<string name="hide_enhanced_data_icon">隐藏增强4G(LTE+)图标</string>
Expand All @@ -65,7 +65,7 @@
<string name="restart_ims_registration">重新注册IMS</string>
<string name="please_wait">请稍后…</string>
<string name="expert_mode">专家模式</string>
<string name="loading">加载中...</string>
<string name="loading">加载中</string>
<string name="loaded">已加载 %1$s 共 %2$s</string>
<string name="edit_value">更改值</string>
<string name="search">搜索</string>
Expand All @@ -78,4 +78,6 @@
<string name="qs_toggle_tile_title_sim_2">VoLTE Config (SIM 2)</string>
<string name="add_status_tile">Add IMS status display tile</string>
<string name="add_toggle_tile">Add VoLTE config toggle tile</string>
<string name="sim_config">SIM 配置</string>
<string name="config_dump_viewer">配置转储查看器</string>
</resources>
4 changes: 3 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<string name="restart_ims_registration">Restart IMS registration</string>
<string name="please_wait">Working on it…</string>
<string name="expert_mode">Expert Mode</string>
<string name="loading">Loading...</string>
<string name="loading">Loading</string>
<string name="loaded">Loaded %1$s of %2$s</string>
<string name="edit_value">Edit Value</string>
<string name="search">Search</string>
Expand All @@ -77,4 +77,6 @@
<string name="qs_toggle_tile_title_sim_2">VoLTE Config (SIM 2)</string>
<string name="add_status_tile">Add IMS status display tile</string>
<string name="add_toggle_tile">Add VoLTE config toggle tile</string>
<string name="sim_config">SIM Config</string>
<string name="config_dump_viewer">Config Dump Viewer</string>
</resources>
1 change: 1 addition & 0 deletions docs/compatibility-chart.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ Carrier not being listed on the table does not mean that this patch won't work f
| Europe | Spain (214) | Orange (03) | O | O | MVNO: spn: JAZZTEL. [Reference](https://github.com/kyujin-cho/pixel-volte-patch/discussions/1#discussioncomment-6869373) |
| Europe | Turkey (286) | Turkcell (01) | O | O | May need to register to carrier from other device and `ims` APN. [Reference](https://github.com/kyujin-cho/pixel-volte-patch/discussions/1#discussioncomment-6261820) |
| Oceania | New Zealand (530) | Spark NZ (05) | O | O | [Reference](https://github.com/kyujin-cho/pixel-volte-patch/discussions/1#discussioncomment-4940003) |
| Oceania | Australia (505) | Telstra (01) | O | O | Backup Calling doesn't seem to work (could be a handset issue) [Reference](https://github.com/kyujin-cho/pixel-volte-patch/pull/238)
| Oceania | New Zealand (530) | 2degrees NZ (24) | O | X | VoWiFi doesn't seem to work regardless of whether 'ims' APN is present or not. Post June 2023 Security Patch, VoLTE and 5G (NR) seem to be natively enabled now. [Reference](https://github.com/kyujin-cho/pixel-volte-patch/discussions/1#discussioncomment-5644517) |
| Europe | Hungary (216) | Vodafone (70) | Yes | ? | VoLTE works |

0 comments on commit f315240

Please sign in to comment.