yashsingh1/xdaforums huggingface dataset:
[Nexus 4 General] CSX321:
To add to what [MENTION=2001582]acejavelin[/MENTION] said, a slower LTE connection will often perform better overall than a faster HSPA+ connection. The much lower latency of LTE makes a huge difference. What that means (forgive me if you already know this) is basically that LTE responds to each request much more quickly. A single modern Web "page" is often made up of dozens of individual requests. HSPA+ response times (sometimes called "ping" times) are usually in the range of 200ms, while LTE is much quicker, maybe 20ms. If a page makes, say, 50 requests, that's 10 seconds more time just waiting on responses with HSPA+ than with LTE. That wait time can often be more than the amount of time it takes to transfer the content of the page itself, which is why a slower LTE connection ends up loading the page quicker. Kind of counterintuitive, but true.
[Nexus 4 General] ramjet73:
Generic Lollipop Versions for T-Mobile USA

I've created and tested two new flashable zips that only check for Android 5.x rather than a specific release as follows:

nexus-4-lte-enabler-v2.1.1.zip

Flashes .33/1.05 hybrid radio and sets "preferred_network_mode=10" in settings.db for any 5.x ROM.

nexus-4-lte-sqlite3-v2.1.1.zip

Sets "preferred_network_mode=10" in settings.db for any 5.x ROM. This file can be flashed when changing ROM's to set the preferred network type index without re-flashing the hybrid modem firmware.

I've changed the index from 9 to 10 because after some testing on my Nexus 4 I've determined that the index is relative to 0 and the tenth entry in the preferred network type list for T-Mobile USA is "LTE/GSM auto (PRL)" which allows fallback from 4G to 3G but the eleventh entry is "LTE/GSM/CDMA auto (PRL)" which allows fallback from 4G to 3G to 2G.

Note that these flashable zip files are designed to work with a ROM based on the Google Lollipop (5.x) factory image or the 5.x AOSP source code. The hybrid radio can still be used with non-AOSP ROM's such as CM12 and MIUI V6 (when it becomes available) but the preferred_network_type setting may not "stick" and require manual selection after each boot in the "Phone Information" settings accessed via the "*#*#4636#*#*" dialer code or an app that generates that dialing sequence.

ramjet73
[Nexus 4 General] acejavelin:
[MENTION=275009]ramjet73[/MENTION] tried both, working well on latest SimpleAOSP. Thanks!
[Nexus 4 General] Selmak:
I am running a CM12 based rom, crdroid, and I can report that this does not stick. I can of course set LTE manually as you described, and it does work. This is of course exactly what I have been doing. It is interesting that the selection I choose is in the 10 position on the list, but still doesn't stick. Oh well.
[Nexus 4 General] manicbomber:
CM based Rom as well and this isn't doing the trick.
[Nexus 4 General] ramjet73:
That's pretty much what I said in my last post so you shouldn't be surprised. It will at least flash the most current hybrid modem for those that don't have that installed already and there are apps like 4G LTE Switch to make accessing the manual setting easier.

There used to be a patch for MIUI V5 to enable LTE on the Nexus 4 but that doesn't work any more on the current versions and I haven't found one that works on CM11 either. I think the problem is that the developer(s) can set the default preferred network type when the ROM is compiled and that seems to be overriding the current value in the settings.db file, even when it is set manually or in an init.d script, as [MENTION=1878977]*child[/MENTION] has already attempted.

So if you want a permanent LTE setting for MIUI and/or CM ROM's you need to post in those threads and ask the developers to work with MIUI or CyanogenMod on a fix. I doubt that you will get one in this thread with a zip file patch.

ramjet73
[Nexus 4 General] Selmak:
I was not complaining in any way. I was only responding to confirm what you had already mentioned would likely be the case. I do of course appreciate your hard work.
[Nexus 4 General] manicbomber:
Actually what you said is it "may" not stick and I was confirming it.
[Nexus 4 General] *child:
We really need someone who has experience compiling their own ROMs.
[Nexus 4 General] snipinu:
Sticks for me thanks to the development team!
[Nexus 4 General] 404-Not Found:
Does anyone know if Cricket uses Band 4? They currently run on AT&T's 4GLTE which uses Band 4 but I am not sure. I ran out of High-speed data so I am stuck in 3G so I don't how to confirm
[Nexus 4 General] acejavelin:
If AT&T has Band 4 LTE in your area, then so does Cricket... Band 4 LTE is deployed on about 40 AT&T markets, mostly the central US corridor and areas where T-Mobile has little or no Band 4 LTE deployment.
[Nexus 4 General] 404-Not Found:
I live in Phoenix, AZ. Anyway to check if there's deployment here?
[Nexus 4 General] acejavelin:
Phoenix has AT&T Band 4 LTE, Band 17 is there primary there, and Band 4 is an expansion frequency... It likely won't be everywhere AT&T's primary LTE area covers though.
[Nexus 4 General] 404-Not Found:
OH YEAH!!!! Looks like I have 4G LTE coverage but I'll report back as soon as I get my High Speed data enabled in 5 days. Woohoo!!! I am already hyped!
[Nexus 4 General] yochananmarqos:
Cricket is a subsidiary of AT&T, so I imagine an AT&T coverage map should give you an idea.
[Nexus 4 General] 404-Not Found:
Most likely still gonna try it tho
[Nexus 4 General] acejavelin:
AT&It's coverage maps do not include specific LTE bands... In many areas they have 2, 3, even 4 different LTE Bands deployed with varying channel size depending on licensing and market need.

---------- Post added at 11:48 PM ---------- Previous post was at 11:43 PM ----------

By all means do... It is nice, faster, and even if not, latency is reduced most of the time. Note you could see anywhere from minor to quite significant battery drain on LTE. Speed comes at a cost sometimes. When I was on Cricket I could speed test better sometimes, but it never seemed faster in real use.

And be prepared for the "Cricket Crawl"... Cricket can have extreme slow downs in LTE speeds, especially late afternoon and into evening times. Switching back to WCDMA will usually get things moving again.
[Nexus 4 General] yochananmarqos:
One should not have to bother switching to WDMA only while using LTE/GSM/CDMA auto (PRL), right? It will utilize H+, H, 3G & 2G when LTE is not available.
[Nexus 4 General] acejavelin:
True... But I was referring to when the Cricket Crawl is going on, the LTE connects fine but the speeds drop dramatically, sometimes under 100kbps with 300+ms latency and sometimes 50% or more packet loss... When this happens 3G HSPA+ is usually still fine, or at least significantly better, but you have to manually switch it.

I have also seen where the N4 will get stuck in 3G after it has fallen back and won't switch back to LTE, even though its in the correct LTE mode... Usually toggling airplane mose, or switching back to WCDMA preferred then back to the correct LTE setting will restore 4G.
[Nexus 4 General] Selmak:
Cricket sounds like they throttle pretty hard in order to prioritize AT&T post paid. Since Phoenix was brought up I thought I'd mention MetroPCS as an alternative. They have band 4 LTE here in Phoenix on T-mobile. It works very well, and I don't have any throttling issues.
[Nexus 4 General] yochananmarqos:
With the stock radio, I've noticed it will drop to 3G with little to no activity (presumably to save power) then switch to HSPA+ when there's data traffic. With the hybrid LTE radio, it won't do that at all & will stay on LTE as long as it's available no matter what. One could use one of quite a few methods to do that manually, but it seems to cause more battery drain & delay between switching to be worth it.
[Nexus 4 General] 404-Not Found:
100Kbps?! Pfft. My home WiFi has a max of 250Kbps I can deal with that. I am just hyped because for the first time I'll be able to go over 400Kbps!!!! But I do realize that Cricket's 3G speed is about 15Kbps so yeah. It's okay for web browsing but can't watch videos unless I go below 240p. Although Cricket's HSPA speed is about 300Kbps so even if I don't get 4GLTE I can at least get faster internet.
[Nexus 4 General] 404-Not Found:
Crickets 3G or "HSPA+" sucks!
[Nexus 4 General] yochananmarqos:
Zoikes, you must be in the boonies. 256 K DSL is the best you can get? Hey, it's twice as fast as T-1 ISDN. :p
[Nexus 4 General] acejavelin:
Something is wrong... With even mediocre HSPA+ signal, 3-4Mbps down should be easily achievable, those speeds indicate a problem. Are you throttled already? If not, I would be digging a little deeper into what's wrong. Occasional slowdown are normal on Cricket, during busy times not at midnight, but during off-peak times close to 4Mbps down on 3G and 8Mbps down on LTE should be achievable, unless the local AT&T network is that bad, but if it is I would think their customers in Phoenix would revolt.
[Nexus 4 General] 404-Not Found:
Yeah, CenturyLink is the only ISP in my area and they only offer the 2Mbps plan. But atleast I pay $20/month so thats nice.

I am throttled. But when I used my Lumia (also used HSPA+) when throttled I would get 200Kbps not 16Kbps so it might the phone.
[Nexus 4 General] acejavelin:
Odd... Cricket throttles to 128kbps at the proxy, so that usually equates to 100-110k at the handset, that is what most people get. And only down speeds are throttled, upload speeds should be normal no matter if throttled or not.
[Nexus 4 General] 404-Not Found:
I know right. But it seems off so it might the phone. My Lumia didn't go crazy like this, it be the bands but I checked the N4 has the same bands as my Lumia 630
[Nexus 4 General] 404-Not Found:
[MENTION=2001582]acejavelin[/MENTION] I was wondering if there is a special APN for LTE on Cricket? I put the APN from their site but wondering if there's a different one
[Nexus 4 General] acejavelin:
Nope... Just the ndo one, although some people have changed the APN to "phone" and had better luck, but it won't make LTE connect any better. Some people think they get better speed, but the general consensus is it's just the placebo effect
[Nexus 4 General] *child:
200 kbps??? I'd kill myself LOL
[Nexus 4 General] acejavelin:
Same here... At home I have 110Mbps down and 10.5Mps up... 200kbps was like 15+ years ago when we first started deploy ADSL, I can't image dealing with that.
[Nexus 4 General] 404-Not Found:
I wasn't kidding...

I hear that Google considers on bringing Phoenix to Google Fiber plan so there's a chance I might get 1Gbps+ speeds:D
[Nexus 4 General] 404-Not Found:
Its not that bad, websites load fast and stuff the only thing I don't like is when I torrent and watching videos. I can't watch 720p videos without constant buffering but 480p handles fine.
[Nexus 4 General] fr3quency:
Wtf... *takes a look at his 24mbps connection*

Sent from my Nexus 4
[Nexus 4 General] 404-Not Found:
I have hope my friend...

(I live in Phoenix)
[Nexus 4 General] acejavelin:
[emoji14] Not many people like their cable company... But I do...

MidcoNet Xstream Wideband 2.0

And if I wanted to pay more I could double the speeds again...

https://www.midcocomm.com/Services/Internet/
[Nexus 4 General] ramjet73:
That is very impressive. :good:

I'm with Oceanic Cable, which is a division of Time Warner and it costs me about the same as your 1.0 option to get 30/5 service.

But my biggest concern is that the Comcast buyout goes through and they implement measured service as they have in some places on the mainland. :eek:

ramjet73
[Nexus 4 General] acejavelin:
Yeah... Measured service would suck, but I think that is going to be the future. I have worked in the telecom industry for close to 25 years, I fully expect measured service to be the industry standard within 10 years. The only real question is the price and if it will be reasonable
[Nexus 4 General] *child:
What do you mean by "measured"? Does it mean that you are only allowed to transfer a certain amount of data per month?
[Nexus 4 General] acejavelin:
Not exactly, more like "pay for what you use"... typically how this work is you pay a base fee plus how much data you actually use. "Measured service" means they actually charge you based on your usage that they measure.

Here is an example (numbers are just to make it simple, not actual possible costs or levels of use):

Use 20GB of data... Base charge of $15 and $1 per GB, costs you $35 for the month

Use 50GB of data... Base charge of $15 and $1 per GB, costs you $65 for the month

Use 100GB of data... Base charge of $15 and $1 per GB, costs you $115 for the month

And cost per GB could vary... say if you use 50GB or less it is $1 per GB, if you use 50-100GB it is $0.75/GB, if you use of over 100GB you pay $.50/GB.

Don't kid yourself, every ISP has at least had this discussion... it will come eventually. Unlimited data usage for a fixed fee will become a thing of past, even on hard line providers like cable or DSL.
[Nexus 4 General] *child:
OK I understand.

It's somewhat like that in Canada. Here your monthly fee includes a certain amount of bandwidth and you pay extra if you go over. We have two main service providers and it was pretty bad a year or two ago, but the I think the government stepped in and forced them to allow other companies to provide services using their lines. Now we have more options, including unlimited bandwidth options, and this has forced the two main providers to lower their prices and offer unlimited bandwidth options themselves.

All it takes is a little competition.
[Nexus 4 General] neod192:
I just upgraded to 5.0.1 and the .33/1.05 hybrid radio and I can connect to 4G. However, I'm noticing that it drops back to 3g/HSPA+ a lot more than before. I'm on T-Mobile. Any idea what might cause this?

Also, like others here I am experiencing signal drop when on Wi-Fi. The signal drops to no bars for a few seconds, then back up. I don't think I missed any calls because of this. This has been going on for a while, even before the upgrade.
[Nexus 4 General] *child:
Before what, with the .33/1.04 hybrid radio?
[Nexus 4 General] *child:
So I have decided to step down from this project. It is better to have someone with an Nexus 4, who is able to test and troubleshoot releases, head the project, so [MENTION=275009]ramjet73[/MENTION] has stepped up and agreed to take over the project. I still frequent XDA, so if you need anything, feel free to PM me.

It has been a pleasure bringing LTE and tethering over LTE to the beloved Nexus 4. Please enjoy your Nexus 4s and LTE!

Sincerely,

*child
[Nexus 4 General] acejavelin:
Thanks for all you've done for us... It is very much appreciated!
[Nexus 4 General] neod192:
Yes, I had the .33/1.04 hybrid radio before the upgrade. After a few days of using it, it seems to stay on 4G longer. If I see H or 3G, it'll switch to 4G in a couple minutes.

Thanks for supporting the Nexus 4 and LTE this whole time!
[Nexus 4 General] *child:
It should downgrade to 3G when there's little data transferring to conserve battery.
[Nexus 4 General] acejavelin:
Really? Mine sticks in 4G/LTE all the time it is in an area with sufficient signal, except when making a voice call, in my home area. Then if it does fallback to HSPA (never seen 3G at home), it will often get stuck there even when LTE signal is good until I manually toggle it.

I have noticed when I travel it will occasionally drop to 3G/UMTS when there is no data, but will go to HSPA+ or 4G when data is used in some areas... I have tried multiple radio versions and can't seen to find the "perfect" balance.
[Nexus 4 General] yochananmarqos:
Same here. The stock radio would drop from HSPA+ to 3G with no activity, but I have strong LTE signal in town & it won't drop unless LTE is not available.
[Nexus 4 General] *child:
What are we talking about here? Let's clarify some things:

3G = HSPA = HSPA+ = H = H+

4G = LTE

What you see in your status bar depends on what ROM you're running or any modifications you've applied.
[Nexus 4 General] acejavelin:
Umm... On my phone using SimpleAOSP its a little different

E - Edge

3G - UMTS (traditional 3G)

H - HSPA

H+ - HSPA+

4G - LTE

I have also verified it with Network Signal Info
[Nexus 4 General] *child:
Have you guys tried the .33 stock radio?
[Nexus 4 General] svnhvn:
I did, on Kitkat.
[Nexus 4 General] acejavelin:
Nope...never have. Just seems odd, it kinda works "as expected" in Rapid City, but in Bismarck it stays on 4G all the time. Just curiousity, not really a problem.
[Nexus 4 General] 404-Not Found:
So, my plan has been unlocked and I am no longer throttled. However I did notice LTE is activated yet. Speeds are still impressive though
[Nexus 4 General] 404-Not Found:
Photo did not upload but here it is:
[Nexus 4 General] acejavelin:
So do you have LTE or not now, your verbiage seems unclear? LTE signal is not related to being throttled, even when throttled you should still get LTE signal, just slow speeds.
[Nexus 4 General] 404-Not Found:
My bad. LTE is *not* activated. I am going to reflash the zip again
[Nexus 4 General] 404-Not Found:
So reflashed the zip and this happened. WTF?!

I wasn't even throttled anymore. Its stuck in HSPA(+)
[Nexus 4 General] ramjet73:
Which APN are you using?

ramjet73
[Nexus 4 General] acejavelin:
Sorry, I forgot what carrier you with. Had lots of discussions lately...
[Nexus 4 General] 404-Not Found:
I am using the ndo apn by Cricket Wireless.

Yeah, its cool. Supposedly Cricket has an optional Band 4 by AT&T however I still don't get LTE after the flashing the zip from OP and it seemed to have slowed down even more but it back to 300KBps.
[Nexus 4 General] acejavelin:
There is no Cricket "optional" bands... it is very simple, if you have Cricket you have access to AT&T's LTE network if it is in your area. Band 4 for AT&T is only in limited areas, not everywhere had it. If you have the correct modems installed and use something like 4G LTE Switch or the embedded *#*#4636#*#* menu to access the preferred network mode and change it to LTE/GSM or LTE/GSM/CDMA it will just work it is available. The flash tool "should" make the change for you, but it doesn't in every ROM. There is no special APN to enable or use LTE with Cricket.

The modem in the OP are a hybrid, the mobile data modem is from .33 and the rest of the modem is from 1.05, it is not ideal but it works fine for most people on most AOSP based KitKat and Lollipop ROMs.
[Nexus 4 General] sociojeje:
I've flashed the zip and did #*#* method to set LTE/GSM only. LTE is working well but reboot turn back the setting to 3g. Is there anyway I can just force LTE as the preferred network type? BTW, my carrier is T-mobile.

edit) Okay, sorry, I read the FAQ and cm12 seems to have problem sticking to the LTE. will wait till the problem solved.
[Nexus 4 General] gorilla p:
For those who can't get LTE to stick at the moment, Radio Switcher on play store makes switching a little less annoying

Visit the NeXuS⁴ file repository at bit.ly/makostuff
[Nexus 4 General] Alien23:
Hello,

I wanted to first say thank you to everyone involved in making LTE work on the Nexus 4 and the hard work is appreciated !

I wanted to see if anyone else is having their phone revert back to HSPA and 3g as the preferred network type under Cellular Network settings ? I flashed the 2.1 zip to my phone which worked fine for about 2 weeks but today my phone went back to HSPA and 3g out of the blue. I've tried to re-flash both the 2.1 and 2.11 zips to my phone but neither sticks for more than a few moments before going back to stock.

Some info:

Nexus 4 on stock 5.0.1

On T Mobile. LTE was working fine before it reverted to HSPA.

I've tried formatting my phone and flashing both zips but 4G wont stick.

If anyone else is experiencing this, or has a fix to make it stick, a note here would be appreciated !
[Nexus 4 General] Hairball97:
Seems to work, thanks for the work and sharing this!

However just one issue, which radio "preferred network type" should I be using (right after flashing, I forgot to check)? For some reason it isn't holding anymore on LTE when I reboot. I am on stock Lollipop 5.0.1.

When I was looking up the provider settings, I accidentally pressed the 3G, which might have got it to hook on. :confused: Now I chose LTE only again and can connect, but I imagine this won't let me automatically pass back to HSPA when LTE isn't available.

I use Koodo (Telus) which is a HSPA/LTE network only, there's no 2G GSM.
[Nexus 4 General] yochananmarqos:
LTE/GSM/CDMA auto (PRL) is default. You might have to reflash the enabler to make it stick again. That will allow it to switch between LTE (4G) / HSPA+ / HSPA / HSDPA (3G) / EDGE (2G).
[Nexus 4 General] Hairball97:
Thanks for the response, I'll try setting that back then.

I think the problem is my provider has poor LTE coverage out here, also just found out that Koodo doesn't have voice calls on LTE, apparently that's something not too common yet. Sure learn something new every day.
[Nexus 4 General] acejavelin:
The N4 doesn't have VoLTE capability anyway... It will (should) jump down to H or lower automatically for the voice call, then anywhere from 5 to 30 seconds later it switches back to LTE. There can be a tiny window well the handoff is occurring that you cannot make or receive calls. This is probably part of the reason LTE was disabled.
[Nexus 4 General] :
How can we make it work on more bands, then?
[Nexus 4 General] c00ller:
You can't, it is limited by the hardware.
[Nexus 4 General] AvidPhisherman:
My current setup - Nexus 4, stock 5.0.1, rooted, using latest TWRP recovery (v2.8.4.0).

For the people who have successfully enabled LTE, which of the below methods did you use?

1. OP installation instructions say to just boot into Recovery and flash the .zip file

2. Also in the OP, the FAQ section contains a link to this post by *child on how to use a toolkit to do it

As mentioned in the toolkit post, how likely is it to brick your device or lose data using the above methods? Nothing that a Nandroid Backup can't fix, right?
[Nexus 4 General] sociojeje:
No worries. It is the same two things with different methods. If you already have TWRP then boot into TWRP recovery then install LTE eabler zip. If you don't see LTE in your preferred network type (in mobile network setting), do *#*#4636#*#* in your dialer then you will see testing screen. On the screen, go into phone information menu. On this menu, if you scroll down, you will see set preferred network type. It is located right above the turn off radio box.

Using the dropdown menu, choose LET/GSM auto (PRL) or LTE/GSM/CDMA auto (PRL). You are done. If rebooting resets the setting do the *#*#4646#*#* again to set it to LTE.
[Nexus 4 General] *child:
Use the OP instructions if you have a custom recovery (i.e. TWRP or CWM). Use the toolkit if you have the stock recovery. I have updated my post to reflect this.

The chances of bricking are slim to none using the toolkit, and even less likely if you already have a custom recovery installed; but as you stated, nothing a Nandroid can't fix.
[Nexus 4 General] AvidPhisherman:
Big thank you, both [MENTION=2313115]sociojeje[/MENTION] and [MENTION=1878977]*child[/MENTION]

I'm not totally new to this stuff and I probably should have known that was the case, but I wasn't sure due to the differing instructions. Seems like I may have read the OP a little too carefully.

In any case, I will confidently flash the LTE .zip and have my Nandroid ready if necessary.
[Nexus 4 General] Poor Grammar:
Does this work T-Mobile straight talk

#Dirty Unicorns#I play dirty
[Nexus 4 General] acejavelin:
This is not a carrier specific mod... The real question is does T-Mobile Straight Talk use Band 4 LTE in your area?
[Nexus 4 General] gorilla p:
T-Mobile uses Band4 in most if not all of the USA
[Nexus 4 General] Nick N:
Any chance of having a Geeb (LG E970) compatible version of this? My brother has an N4 and seems to have no issue getting LTE here where we live, I am using the 84/27 hybrid modem and can never get LTE. Both of us are on TMo.