Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add VoNR & VoCrossSIM toggle support #45

Merged
merged 16 commits into from Apr 13, 2023
Merged

Conversation

hdoublearp
Copy link
Contributor

This adds VoNR toggle support. Devices supporting SA may or may not have VoNR toggle setting visible. The default bool value for the toggle is false per AOSP. Requires modem support to truly work, but that is independent of Android.

@hdoublearp hdoublearp changed the title Add VoNR toggle support Add VoNR & VoCrossSIM toggle support Feb 17, 2023
@kyujin-cho
Copy link
Owner

kyujin-cho commented Feb 18, 2023

Hi! Thanks for your contribution. Is there an actual carrier operating VoNR right now so that we can test if this really works? @hdoublearp

@kszaq
Copy link
Contributor

kszaq commented Feb 23, 2023

While I cannot comment on VoNR, the cross-sim calling feature is awesome! At first I was confused what it does. The setting it enables is called "Backup calling":
Screenshot
Basically, it allows Wi-Fi Calling over second SIM's data = free roaming. 👍🏻

@hdoublearp
Copy link
Contributor Author

Hi! Thanks for your contribution. Is there an actual carrier operating VoNR right now so that we can test if this really works? @hdoublearp

Happy to contribute! Yes, indeed there is VoNR live on T-Mobile in the United States, on their NR-SA n71, n25, and n41 network. I can confirm that this boolean is valid and functional on the Pixel 6 Pro for enabling VoNR on the network.

It also seems to work on Qualcomm, but unfortunately there is a NV item in the baseband filesystem which dictates whether IMS can be registered when connected to SA networks (/nv/item_files/modem/mmode/nr5g_full_voice_support). When enabled (set to 0x01) the toggle works.

That being said, I feel that if it's working for Pixel that it's worth merging. Thanks for the feedback. :)

@hdoublearp
Copy link
Contributor Author

hdoublearp commented Feb 27, 2023

While I cannot comment on VoNR, the cross-sim calling feature is awesome! At first I was confused what it does. The setting it enables is called "Backup calling": Screenshot Basically, it allows Wi-Fi Calling over second SIM's data = free roaming. 👍🏻

It's a new feature in Android 13 which seems to be disabled by default. iOS has had this feature for quite some time, I'm excited to see this on Android. 😄

@hdoublearp
Copy link
Contributor Author

image

Added VoNR setting visibility bool. Tested with Xperia 1 IV.

@kyujin-cho
Copy link
Owner

kyujin-cho commented Mar 4, 2023

@hdoublearp Great! Thanks for the report. Please the merge conflicts. After that I will be really happy to merge this PR.

@kszaq
Copy link
Contributor

kszaq commented Mar 9, 2023

I've been testing the cross-sim feature and it's not required to enable KEY_ENABLE_CROSS_SIM_CALLING_ON_OPPORTUNISTIC_DATA_BOOL to make it work.

One thing worth nothing is that the second SIM that provides mobile data must not be roaming, else "Backup calling" won't work, see: https://cs.android.com/android/platform/superproject/+/master:frameworks/base/telephony/java/android/telephony/ims/ImsMmTelManager.java;l=1014-1047

I'm currently using a "travel eSIM" for mobile data and it is roaming in the country I'm in now, so a workaround to make "Backup calling" work was to enable KEY_FORCE_HOME_NETWORK_BOOL for the mobile data SIM.

@sukumarpatel
Copy link

Has this been merged yet? The latest version doesn't have the vonr toggle

@fillwithjoy1
Copy link
Contributor

Has this been merged yet? The latest version doesn't have the vonr toggle

No.

@sukumarpatel
Copy link

I tested the apk for VoNR from this branch. It works perfectly in Pixel 6 and 6A. The changes work.

@JohnC599
Copy link

JohnC599 commented Apr 3, 2023

I tested the apk for VoNR from this branch. It works perfectly in Pixel 6 and 6A. The changes work.

Hi, I would love to test this build but I don't seems to find the place I can download the APK, where did you get it?

@fillwithjoy1
Copy link
Contributor

I tested the apk for VoNR from this branch. It works perfectly in Pixel 6 and 6A. The changes work.

Hi, I would love to test this build but I don't seems to find the place I can download the APK, where did you get it?

The owner of that repository hasn't published an APK but if you got Android Studio you can 'Get from VCS' and link it to his repository and then run it on your device like usual

@hdoublearp
Copy link
Contributor Author

@kyujin-cho I will need to rebase, because there was some logic changes in moder.kt and config.kt, where instead of "BooleanPropertyView(label" you are now using BooleanPropertyView(label = stringResource(R.string.". I will update the PR with the additional commits with the rebase and hopefully you can merge then.

@hdoublearp
Copy link
Contributor Author

I have rebased and resolved the conflicts. Please review, and let me know!

@kyujin-cho
Copy link
Owner

@hdoublearp Logic seems fine. Please just update code to fix lint issues.

@hdoublearp
Copy link
Contributor Author

@kyujin-cho lint should be fixed now :)

Copy link
Owner

@kyujin-cho kyujin-cho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kyujin-cho kyujin-cho merged commit 53ecd86 into kyujin-cho:main Apr 13, 2023
2 checks passed
@sukumarpatel
Copy link

Waiting for a 1.2.5 release version 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants