carleewang / cm9-msm8960

Automatically exported from code.google.com/p/cm9-msm8960
0 stars 0 forks source link

[No 4G Data] Preferred network type "GSM/WCDMA/LTE auto" is unavailable #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Full wipe of data/caches/system
2. Install CM10 & 
3. Boot
4. *#*#INFO#*#* is set to "WCDMA preferred" (as per build.prop parm 
ro.telephony.default_network)
5. None of the available options allow for LTE data session while using WCDMA 
for calls

What is the expected output? What do you see instead?
Expected output using a 4.0.4 based ROM or even 4.0.3 stock ROM:
0   WCDMA preferred
1   GSM only
2   WCDMA only
3   GSM auto (PRL)
4   CDMA auto (PRL)
5   CDMA only
6   EvDo only
7   GSM/WCDMA, CDMA, and EvDo (PRL)
8   CDMA + LTE/EvDo auto
9   GSM/WCDMA/LTE auto  **AU Telstra users need his one**
10  CDMA/EvDo/GSM/WCDMA/LTE auto
11  LTE only
12  LTE,CDMA

CM10 options:
0   WCDMA preferred
1   GSM only
2   WCDMA only
3   GSM auto (PRL)
4   CDMA auto (PRL)
5   CDMA only
6   EvDo only
7   GSM/CDMA (PRL)
8   LTE/CDMA auto (PRL)
9   LTE/GSM auto (PRL)
10  LTE/GSM/CDMA auto (PRL)
11  LTE only
12  Unknown

What version of the product are you using? On what operating system?
Running radio 0.18c.32.09.01_10.93a.32.20L from Telstra 1.89 RUU, unchanged 
when switching from sense 4.0.4 ROM to CM10 latest build.

Please provide any additional information below.
Also have a 2nd completely stock phone running original Telstra 1.81 RUU with 
radio 0.17a.32.09.03_2_10.85.32.16L. When doing *#*#INFO#*#* the same list of 
preferred networks is shown as the 4.0.4 based ROM. There are no issues 
connecting to 4G on either Sense ROM.

Have also forced the CM10 build to LTE only to verify that a 4G data session 
can be made. Obviously this is not useful as LTE is only used for data in some 
parts of AU but at least tests the functionality.

Original issue reported on code.google.com by aoc...@gmail.com on 22 Aug 2012 at 12:41

GoogleCodeExporter commented 9 years ago
Can't edit...damn. Should note this is for HTC One XL (evita) and using 08/19 
build with 0726 gapps. No other apps installed, no data restored by any means.

Original comment by aoc...@gmail.com on 22 Aug 2012 at 12:45

GoogleCodeExporter commented 9 years ago
You're fine aocmsi :).

the evita generally comes with #9 setup on stock roms (apparently its on 0 on 
CM10 currently....must have been a leftover from the very first CM9 build :X ). 
Can you try option #9 in CM10 by doing #*#*INFO*#*# to make sure it works for 
you?

Original comment by h8r...@gmail.com on 22 Aug 2012 at 1:23

GoogleCodeExporter commented 9 years ago

Original comment by h8r...@gmail.com on 22 Aug 2012 at 1:32

GoogleCodeExporter commented 9 years ago
New build doesn't resolve it, "GSM/WCDMA/LTE auto" is still missing from the 
options list. Changing to your radio, 
EVITA_ATT_1.85_Radio_0.17.32.09.12_10.86.32.08L.zip then full wipe results in 
the same thing.

The list of available network options are totally different. Where does it 
build this list from?

Original comment by aoc...@gmail.com on 22 Aug 2012 at 3:40

GoogleCodeExporter commented 9 years ago
I'm unsure, but I'm still hunting this down.

Original comment by h8r...@gmail.com on 23 Aug 2012 at 12:12

GoogleCodeExporter commented 9 years ago
Issue 20 has been merged into this issue.

Original comment by h8r...@gmail.com on 23 Aug 2012 at 11:14

GoogleCodeExporter commented 9 years ago
Issue 54 has been merged into this issue.

Original comment by h8r...@gmail.com on 23 Aug 2012 at 11:15

GoogleCodeExporter commented 9 years ago
h8, I think the best option is to provide a persistent alternative to configure 
this manually via the settings app. Scott made something like this for CleanROM 
4.5 DE and it appears to work fine, at least for me.

Original comment by gabrioba...@gmail.com on 24 Aug 2012 at 2:15

GoogleCodeExporter commented 9 years ago
If you come from a ROM based on 4.0.4, you MUST flash back to a 4.0.3 ROM 
before flashing to CM otherwise you will not have LTE!

Original comment by h8r...@gmail.com on 25 Aug 2012 at 4:41

GoogleCodeExporter commented 9 years ago
I have the same issue with HK CSL data....I came from stock 4.0.3 and it still 
does not work. i did try gsm/lte auto and still no luck...

Original comment by lhcheun...@gmail.com on 26 Aug 2012 at 4:33

GoogleCodeExporter commented 9 years ago
Tried this again, some persistent data is still being kept somewhere to cause 
issues with the preferred network list generated in the OP.

A) Wiped system, then did Factory Reset 5 (yes five) times.
B) Installed CleanROM 4.0 standard edition
C) Boot & configure APN
D) Check *#*#INFO#*#*, preferred list shown is as per expected:
    0   WCDMA preferred
    1   GSM only
    2   WCDMA only
    3   GSM auto (PRL)
    4   CDMA auto (PRL)
    5   CDMA only
    6   EvDo only
    7   GSM/WCDMA, CDMA, and EvDo (PRL)
    8   CDMA + LTE/EvDo auto
    9   GSM/WCDMA/LTE auto  ** Selected this one **
    10  CDMA/EvDo/GSM/WCDMA/LTE auto
    11  LTE only
    12  LTE,CDMA
E) GSM/WCDMA/LTE auto is selected, no issues with calls or 4G data.

Now try CM10...

F) Wipe system and do another 5 factory resets
G) Install cm-10-20120826-NIGHTLY-evita.zip, wipe cache and dalvik then reboot.
H) Configure correct APN, preferred list shown matches the CM10 list in OP 
which is not correct:
    0   WCDMA preferred
    1   GSM only
    2   WCDMA only
    3   GSM auto (PRL)
    4   CDMA auto (PRL)
    5   CDMA only
    6   EvDo only
    7   GSM/CDMA (PRL)
    8   LTE/CDMA auto (PRL)
    9   LTE/GSM auto (PRL)
    10  LTE/GSM/CDMA auto (PRL)
    11  LTE only
    12  Unknown
E) Selecting LTE/GSM/CDMA auto (PRL)is the closet option, but really need WCDMA 
in AU. Can get a 4G data session and make calls but after reboot, returns to 
WCMDA preferred.

After that I tried another 5 factory resets and installed rohan's AOKP 1.1 
build but exact same deal as CM10 (which was expected).

Back to 4.0.4 sense I go. If I have some time, I'll try relocking my 
bootloader, restoring stock RUU (4.0.3) and then starting from scratch with 
CM10.

Original comment by dmarinu...@gmail.com on 27 Aug 2012 at 5:53

GoogleCodeExporter commented 9 years ago
Have just tried doing a factory reset (1.81 RUU)

Unlock, install recovery, wipe system and then data 5 times
Install cm-10-20120826-NIGHTLY-evita.zip, wipe cache and dalvik then reboot.
Result is the same as list in part H) above.

Not sure what else I can test?

Original comment by dmarinu...@gmail.com on 28 Aug 2012 at 8:49

GoogleCodeExporter commented 9 years ago
Same problem.  updating from ICS 4.0.3 (Sense 4.0)
using "switchit" app to toggle between modes but LTE is never working , even in 
LTE only mode.

currently running release from 8/28

Thanks

Original comment by philippe...@gmail.com on 29 Aug 2012 at 5:39

GoogleCodeExporter commented 9 years ago
# Responding to Comment 5 by project member h8r...@gmail.com, Aug 22, 2012
# I'm unsure, but I'm still hunting this down.

FWIW, I believe the Preferred Network list comes from this file in the source 
(and is correct). But for whatever reason, its being interpreted differently by 
our devices.

https://github.com/htc-msm8960/android_device_htc_evita/blob/jellybean/libril/te
lephony/ril.h

Original comment by dmarinu...@gmail.com on 2 Sep 2012 at 6:29

GoogleCodeExporter commented 9 years ago
I have One XL on Telstra on 20120902 (second) build. I did quick research on 
this, and it looks like we have two problems here:

1) Not getting correct mode list in *#*#INFO#*#*: this actually looks like CM 
upstream issue; they hard-code the list in the testing app source (and they use 
the same list for all devices)!

(https://github.com/CyanogenMod/android_packages_apps_Settings/blob/jellybean/sr
c/com/android/settings/RadioInfo.java - scroll down to the end of the file)

2) Mode setting not sticking after reboot: ro.telephony.default_network in 
/system/build.prop is set to zero 
(https://github.com/CyanogenMod/android_device_htc_evita/blob/jellybean/system.p
rop), and this would be part of the problem. zero corresponds to "WCDMA 
preferred", and since any settings in build.prop has priority over everything 
else, this would explain why LTE mode selection is not sticking.

However I manually changed /system/build.prop to have 
ro.telephony.default_network=10 (and rebooted), and LTE still doesn't stick. 
This would need more investigation.

Original comment by mentwar on 3 Sep 2012 at 11:55

GoogleCodeExporter commented 9 years ago
Tested again on 20120902 build (thought there were two builds on this day, only 
one).

This issue could be deep into the RIL (but I don't have build environment so 
can't test hack myself yet). In QualcommSharedRIL.java 
(https://github.com/CyanogenMod/android_frameworks_base/blob/ics/telephony/java/
com/android/internal/telephony/QualcommSharedRIL.java), we simply ignore the 
requested network mode (if and only if LTE/GSM auto (PRL) was requested too) 
and reset it to zero (WCDMA preferred) because we never set mUSIM in 
HTCQualcommRIL.java (which is what we're using).

Unfortunately I don't have building environment atm so can't test it right now. 
If someone can look into this it would be great.

Also due to CM upstream change we'll probably need to add the following line to 
build.prop too:

telephony.lteOnGsmDevice=1

Original comment by mentwar on 3 Sep 2012 at 6:51

GoogleCodeExporter commented 9 years ago
we're going to give the telephony.lteOnGsmDevice=1 a shot first:
https://github.com/CyanogenMod/android_device_htc_evita/commit/f131aa06520ab8f1a
c94c632c318ec524c06233d

Original comment by h8r...@gmail.com on 4 Sep 2012 at 12:50

GoogleCodeExporter commented 9 years ago
Thanks very much for telephony.lteOnGsmDevice change. This should do two things 
at least:

1) Add Settings > More > Mobile networks > Network Mode option to turn on/off 4G
2) Let the ROM know that this is a GSM / WCDMA / LTE phone so that it (at 
least) *tries to* set the network mode correctly.

The proper fix will require RIL change in the upstream, as far as I can see. 
I'm setting up build environment now; if this works I'll let you know.

Original comment by mentwar on 4 Sep 2012 at 6:20

GoogleCodeExporter commented 9 years ago
LTE confirmed working on Rogers.
For those curious, I achieved LTE by setting the ltemobile.apn APN for Rogers 
and going into the Phone debug (*#*#INFO#*#*) and setting network type to 
LTE/GSM/CMA auto (PRL)

Original comment by fin...@gmail.com on 4 Sep 2012 at 11:27

GoogleCodeExporter commented 9 years ago
@ Comment 19...

This issue has nothing to do with you then if your using LTE/GSM/CMA auto (PRL).

Original comment by Strike...@gmail.com on 4 Sep 2012 at 11:43

GoogleCodeExporter commented 9 years ago
Well, before it would sit on H no matter what,  now I have full LTE

Original comment by fin...@gmail.com on 5 Sep 2012 at 12:33

GoogleCodeExporter commented 9 years ago
@h8rift:

I've pushed RIL fix and enable-LTE-by-default to CM Gerrit, please check them 
out:
http://review.cyanogenmod.com/#/c/22987/
http://review.cyanogenmod.com/#/c/22988/

With these changes, phone will boot with LTE on and working. "Preferred network 
mode" will also be remembered across reboots so LTE will stick, too.

Original comment by mentwar on 8 Sep 2012 at 12:41

GoogleCodeExporter commented 9 years ago
Thanks. Will have those reviewed today.

Original comment by h8r...@gmail.com on 8 Sep 2012 at 2:37

GoogleCodeExporter commented 9 years ago
Issue 94 has been merged into this issue.

Original comment by h8r...@gmail.com on 8 Sep 2012 at 2:40

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
If anyone wants to test it out in the meantime, I've built a ROM ZIP that you 
can flash with:

https://dl.dropbox.com/u/19376651/cm-10-20120908-UNOFFICIAL-evita.zip
https://dl.dropbox.com/u/19376651/cm-10-20120908-UNOFFICIAL-evita.zip.md5sum

I've also tested CleanROM 4.5 -> CM10 direct flashing. With the patch above LTE 
seems to be on (yay), so 4.0.3 downgrading should no longer be required.

If anyone experiences issues then please let us know.

Original comment by mentwar on 8 Sep 2012 at 4:17

GoogleCodeExporter commented 9 years ago
Hi mentwar, I did test your rom in comment 27, it did WORK. Now LTE sticks 
after reboot, its nice.

One strange thing though, in *#*#4636#*#*, preferred network type always sticks 
to LTE/GSM auto (PRL), however, in system settings>mobile network 
settings>network mode, its displayed as LTE/GSM/WCDMA. I don't know if this is 
a problem.

Thanks for your hard work.

Original comment by ch4nhe...@gmail.com on 8 Sep 2012 at 5:03

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
That's because the list of preferred network type in *#*#4636#*#* is 
hard-coded. "LTE/GSM auto (PRL)" actually means the same thing as 
"LTE/GSM/WCDMA" (or "GSM/WCDMA/LTE auto" in Sense ROM *#*#4636#*#*) (confusing, 
I know).

Fixing this will require co-ordination with other CM people, as currently there 
isn't a way to provide device-specific network type list for *#*#4636#*#*.

It's just a string problem, really, so it has nothing to do with LTE. You can 
simply ignore it.

Original comment by mentwar on 8 Sep 2012 at 5:18

GoogleCodeExporter commented 9 years ago
It works perfectly, multiple reboots confirmed. Can't WAIT for this to be 
implemented!

Original comment by j.varca...@gmail.com on 8 Sep 2012 at 5:37

GoogleCodeExporter commented 9 years ago
Works with ville without breakage (the RIL patch). Waiting for Ricardo to 
review and merge.

Original comment by h8r...@gmail.com on 8 Sep 2012 at 8:08

GoogleCodeExporter commented 9 years ago
Merged! see it next nightly :).

Original comment by h8r...@gmail.com on 9 Sep 2012 at 1:30

GoogleCodeExporter commented 9 years ago
Thanks very much guys! :-)

Once I confirm the fix on the next nightly I'll try backporting the fix (along 
with 5GHz Wi-Fi) to CM9 (if university work and unstable home broadband 
connection don't get in the way... :P)

Original comment by mentwar on 9 Sep 2012 at 1:38

GoogleCodeExporter commented 9 years ago
I can also confirm that 4G is working on the 20120910 nightly (Telstra One XL).

Original comment by d...@reactive.org on 12 Sep 2012 at 1:43

GoogleCodeExporter commented 9 years ago
For CM 10.1 on Nexus 4 in Canada with TELUS and Bell, an option for 
LTE/WCDMA/GSM should be implemented. Only viable LTE option is LTE/GSM but 
outcome is loss of data Connectivity when exiting LTE area and entering WCDMA 
area. 

Original comment by kirbygau...@gmail.com on 23 Dec 2012 at 1:45

GoogleCodeExporter commented 9 years ago
I'm having this issue and I just completely wiped my phone and flashed the 
latest cm10 nightly.

When I select LTE/GSM/WCDMA it just switches automatically back to GSM/WCDMA.  
It does the same thing if I switch it in *#*#INFO#*#*

Should the fix that was applied in September be in the current nightlies?

Original comment by boo...@gmail.com on 4 Jan 2013 at 4:12