yangzhaofeng / ctenabler

Let new foreign devices support China Telecom
61 stars 5 forks source link

Can this be updated to fix pixel 7 pro? #12

Open supermansaga opened 1 year ago

supermansaga commented 1 year ago

Network Signal Guru app could enable 5g, but it doesn't take care of dual sim dual standby situation where the 5g is handicapped back to 4g LTE. Any thoughts? Many thanks for your time and consideration.

yangzhaofeng commented 1 year ago

Pixel 7 does not use Qualcomm basebands, so unable to add support.

Will the main SIM be unable to use NR when eSIM is added? I am only using one SIM.

supermansaga commented 1 year ago

Dumb question. What's NR? Pixel 7 Pro on Android 13 currently doesn't support two eSim being active at the same time, but with Android 14, that maybe possible. In my scenario, China Telecom is a physical SIM, whereas T-Mobile is eSim.

1) When I turn them both on/active,

Phone number (sim slot 1) Unknown (should refer to China Telecom number)

Phone number (sim slot 2) eSim US number from T-Mobile (It's called Edge which is a 2G network)

SIM Status (sim slot 1) China Telecom (has ICCID which is 20 digits)

SIM Status (sim slot 2) CMCC (not sure what to make of it, T-Mobile roaming on China Mobile? But I gave T-Mobile customer service agent the IMEI (sim slot 1) info below. It now shows ICC ID, which is 19 digit and EID number, which is 32 digit)

IMEI (sim slot 1) (15-digit number) (I told this to T-MOBILE rep too, but is it shared by China Telecom as well?)

IMEI (sim slot 2) (15-digit number)

2) When I only turn on T-Mobile

Phone number (sim slot 1) Unknown

Phone number (sim slot 2) eSim US number from T-Mobile (It's called Edge which is a 2G network)

SIM Status (sim slot 1) Not available

SIM Status (sim slot 2) CMCC (not sure what to make of it, T-Mobile roaming on China Mobile? But I gave T-Mobile customer service agent the IMEI (sim slot 1) info. It now shows ICC ID, which is 19 digit and EID number, which is 32 digit)

IMEI (sim slot 1) (15-digit number) (I told this to T-MOBILE rep too, but is it shared by China Telecom as well?)

IMEI (sim slot 2) (15-digit number)

3) When I turn off both

Phone number (sim slot 1) Unknown

Phone number (sim slot 2) Unknown

SIM Status (sim slot 1) Not available

SIM Status (sim slot 2) Not available

IMEI (sim slot 1) (15-digit number) (I told this to T-MOBILE rep too, but is it shared by China Telecom as well?)

IMEI (sim slot 2) (15-digit number)

4) When I turn on only China Telecom

Phone number (sim slot 1) Unknown

Phone number (sim slot 2) Unknown

SIM Status (sim slot 1) China Telecom (has ICCID which is 20 digits)

SIM Status (sim slot 2) Not available

IMEI (sim slot 1) (15-digit number) (I told this to T-MOBILE rep too, but is it shared by China Telecom as well?)

IMEI (sim slot 2) (15-digit number)

yangzhaofeng commented 1 year ago

Phone number unknown for CT in About phone is a known bug (or maybe a feature?). In 4636, you can see the phone number starting with +86.

For T-Mobile roaming, as I have known, most foreign SIMs roams only at CU's 3G (UMTS) or CM's 2G (GSM/EDGE) networks for voice. CT uses CDMA2000/1xRTT as 2G network, which is not supported by Exynos 5300 modem and has almost retired (it now only has a very basic hexagon coverage).

For the CT network problem, what network type shows in the CT SIM status? If you are outside a building and your phone is rightly configured, it should show both NR SA (standalone 5G, while NR NSA means non-standalone 5G) for both Mobile voice network and Mobile data network. For indoor cases, LTE is also possible.

supermansaga commented 1 year ago

NR stands for New Radio? The P7P is showing LTE after I used XDA Senior Member foobar66's VoLTE Magisk module. Otherwise it would not have worked either for 4G LTE. It was that incompatible.

Not sure where I could show NSA + SA on the SIM status, but in a YouTube video walkthrough, the NSA + SA mode is the one that I was told to enable via the Network Signal Guru app with root access. While the trick has worked for my two other P7P that only had China Telecom physical SIM, it has refused to work for a third one that also has the eSim. And I told T Mobile the slot 1 IMEI instead of slot 2.

Separately, do you believe China Telecom could roam in the United States for calling and texting, esp after the sanctions?

Many thanks

supermansaga commented 1 year ago

Also, what do you mean by 4636? I now follow your question the CIT SIM status. When it's on 5G for my parents' P7P without the presence of other SIM cards, it says NR SA as you described it for both mobile voice/data network type. But on my P7P with the eSim too, it's only LTE for both mobile voice/data network type and also LTE on the top right corner of the phone screen. And I have repeatedly run Network Signal Guru app to once again force 5G. So maybe P7P just can't have true dual standby 5G for China Telecom? I have also asked T-mobile to move over from IMEI 1 to IMEI 2.

And one final question is whether China Telecom could roam in the United States after the sanctions. Thanks.

yangzhaofeng commented 1 year ago

4636 is the screen that appears after typing *#*#4636#*#* in Phone app. In Phone information you can see detailed data about your SIM and its network.

Have you modified carrierconfig-com.android.carrier-<ICCID>-<nonce>.xml (CT's ICCID) in /data/user_de/0/com.android.phone/files? Add

<boolean name="enhanced_4g_lte_on_by_default_bool" value="true" />
<boolean name="carrier_volte_available_bool" value="true" />
<boolean name="vendor_hide_volte_settng_ui" value="false" />
<boolean name="vonr_enabled_bool" value="true" />
<boolean name="vonr_setting_visibility_bool" value="true" />

after the first <bundle> line. (and of course reboot your phone)

In Network Signal Guru, you should not only set the mode to SA+NSA (or SA only) but also set the frequency to FR1+FR2 (or FR1 only, because there is currently no mmWave in China).

About the sanction, CT can still roam in US but roams at Verizon or ATT or T-Mobile (not sure which ones are available) instead of CT America.

supermansaga commented 1 year ago

Many thanks. I can now navigate to 4636 and see that while I can switch to NR (i.e. 5G) only, it doesn't work. By default, it is set to NR/LTE/GSM/WCDMA.

As for within Network Signal Guru, it says NR Band Comb (defaults to) FR2 only (1). I have now chosen "Set to FR1+FR2". Thus it now shows NR Band Comb: FR1+FR2 (2). But I recall I don't have to perform this step for my parents' P7P, because I followed strictly what the youtube video says and they worked. I then rebooted, but it's still just LTE.

For the sake of testing, I have also erased the eSim. But 5G still hasn't shown up, even after resetting on Network Signal Guru and choosing NA+NSA again.

I guess I'll have to take a look at the file modification next. Totally inexperienced. It appears the lines are trying to force 4G VoLTE? Wouldn't Foobar66's module already do that? https://forum.xda-developers.com/t/mod-magisk-root-volte-enabler.4372705/

Another XDA member caller LHui at https://forum.xda-developers.com/t/guide-enabling-vo5g-vonr-on-t-mobile-plus-volte-vowifi-video-calling-for-everyone-else.4438761/ has come up with a Magisk Module and said on bottom of page 3, "My magisk module needs the network signal master to turn on 5G, but the module turns on call recording, vo5G, and WiFi." Not sure what he meant by vo5G or WiFi. Shouldn't WiFi be separate from phone data plan? Thanks!

yangzhaofeng commented 1 year ago

There is VoLTE, VoNR(Vo5G) in China, but no public-used VoWiFi, because with current solutions it may violate some codes. If you can read Chinese, you can refer to this article https://www.163.com/dy/article/H9VQNND90511B8LM.html to see some "updates".

You do not need to install foobar66's module after editing the file.

BTW, isn't there a tutorial on XDA telling how to use CT's VoNR? I am considering to write one...

supermansaga commented 1 year ago

If the XDA links I already pasted don't contain the tutorial you referred to, then could you please share it or write one? https://forum.xda-developers.com/t/activate-5g-on-non-5g-country.4457071/page-16 is specifically for Pixel 6 Pro. Oh. Did you just write one at https://forum.xda-developers.com/t/guide-root-enabling-vo-5g-nr-for-chinese-network-providers.4562617/?

I would prefer not to edit files myself, so that's why I prefer using foobar66's module if it can already do the magic and not the reason why I cant have 5g. Thanks. Fundamentally, I just don't get why only 2 of 3 P7P can have CT's 5g, but not all 3. I did them in exactly the same way. Thanks

Yes I can read Chinese too. I now see LHui's Wifi means VoWiFi. Maybe I should indeed give his module a shot. Vo5G is a good idea too. But then if we aren't already Vo5G, what are we on when we say we have 5G. It's still Voice over traditional call network that is not 5G?

supermansaga commented 1 year ago

To provide an update to this issue, ultimately, if things just don't work after using the Network Signal Guru app for enabling 5G in the first place, one has to "reset network, wifi, bluetooth" via the Settings app and then try the guru one more time. It appears flashing factory image hasn't worked for me, but resetting and repatching finally did. My 5G indicator is finally back on the top right corner.

See additional discussion at https://forum.xda-developers.com/t/guide-root-enabling-vo-5g-nr-for-chinese-network-providers.4562617/

Many thanks to Mr. Yang, XDA's Lhui, and many others.