yashsingh1/xdaforums huggingface dataset:
[Nexus 4 General] EugenePHD:
preferred_network_mode1

So, if preferred_network_mode1 is now used, then it means that in 5.1 the setting you change in Phone Info stays even after reboot as mine stayed even though the script only changed preferred_network_mode, not preferred_network_mode1.

Anyway, changed the script to modify both preferred_network_mode and preferred_network_mode1 to value 10 and reflashed. Won't hurt to have both.
[Nexus 4 General] neod192:
Yes, I wiped everything, including the SD card and used the 5.1 factory image from Google. I used the 33-1.06-hybrid.zip hybrid driver from here: http://bit.ly/makostuff (it's under the N4 Radios (LTE) folder). It's the one that ferrocene posted in post #774. I'm pretty sure this is the same modem you used in your script.

I didn't use your nexus-4-lte-enabler-v2.12.zip script, since I already have SQLite and know how to manually change the default value. Thanks!
[Nexus 4 General] soyguris:
Cool, thank for the hard work. Only need the uninstaller and it is perfect.

Regards.
[Nexus 4 General] nycelitemaster:
I will work on uninstaller tonight or tomorrow.

My script only adjust the preferred_network_mode1 to 9 and doesn't touch the preferred_network_mode because it isnt being used. What I want clarification on is that what benefit do we get to use value 10 instead of 9? Can someone provide me details? So then I can adjust the values and re-upload the script

Sent from my Nexus 4
[Nexus 4 General] neod192:
[MENTION=483068]nycelitemaster[/MENTION], ramjet73 mentioned in this post that using 10 allows fallback to 2G, but I don't think that's right. CDMA is only used by Verizon and Sprint and would not do anything on T-Mobile if enabled.
[Nexus 4 General] nycelitemaster:
That is exactly what I was thinking. As long as you have GSM/LTE that should cover the whole T-Mobile network regardless. Given T-Mobile does not even have CDMA frequencies. WCDMA is different beast.

At this point changing from 9 to 10 shouldn't make any difference.

Sent from my Nexus 4
[Nexus 4 General] EugenePHD:
Edit
[Nexus 4 General] nycelitemaster:
OK I edited and added 10 for mode and mode1 link is here.. Give it a shot and see if it works : http://goo.gl/d2bhVi

Sent from my Nexus 4
[Nexus 4 General] arealcoolhand:
Thanks for this. For whatever reason I could get LTE working on stock 5.1 but not on Chroma (4/14 build). Flashing this finally got it working on Chroma again. Still perplexed as I never had any issue with the .33/.05 modem on Chroma.
[Nexus 4 General] lion7718:
Thanks...2.12 worked on my N4 with 5.1 :good:
[Nexus 4 General] soyguris:
Cool, ok, the latest version of the script is v.2.13 and this change the default network mode to 10.

If i manually need to revert this changes, because google release a new OTA, how I do this?

Sorry for my bad english.
[Nexus 4 General] nycelitemaster:
I am working on uninstaller.

Edit: here we go with uninstaller, Nexus-4-LTE-enabler-2.13u:

http://goo.gl/j27LIl.

Can someone test it? I am work. Once someone post confirmation, I'll ask gorillap to add in the makostuff.

Sent from my Nexus 4
[Nexus 4 General] MTAsaFAN:
lion7718, could u please tell me which modem did u flash?
[Nexus 4 General] lion7718:
This one: 33/106 http://xdaforums.com/showpost.php?p=60142380&postcount=776
[Nexus 4 General] smartymcfly:
Under phone information

LTE+GSM

LTE+GSM+CDMA

LTE Only

LTE+WCDMA

I never seen the option for LTE WCDMA befor, but wouldn't that be the option that want on the N4 as it normally operates on WCDMA?

They are in the order I posted them so look below LTE only. Maybe that is 12, instead of 9 or 10 for the database edit.
[Nexus 4 General] yochananmarqos:
I've never seen an LTE/WDCMA entry. My last entry after LTE only says 'Unknown', whatever that means.

Either way, the LTE/GSM/CDMA auto setting allows for 2G (E), 3G/H/H+ & 4G (LTE). Same as WDMA preferred except for LTE, of course.
[Nexus 4 General] smartymcfly:
And for network type, it often get either UMTS or LTE with LTE GSM CDMA

On LTE WCDMA it returns HSPAP or LTE

I have resurrection remix as the ROM.
[Nexus 4 General] yochananmarqos:
Sounds like there might be ROM related settings involved. I'm on stock 5.1. I got a chance to test out the results today going to a local small town where I only get EDGE. I was on LTE on the freeway mostly, then next I noticed I was on EDGE It may have dropped down to 3G or H in between, however AutoMate hides the status bar so I couldn't see unless I swiped down. On the way back, I noticed it switched from E back to H once I got close to civilization, then back to LTE. In some spots, it decided to bounce between 3G & H like it normally would using WDCMA preferred until it locked back on to LTE.
[Nexus 4 General] Selmak:
LTE seems to be sticking for me now through reboots on CM 12.1 after flashing 2.13.
[Nexus 4 General] Dor-b:
How is the battery consumption on LTE compared to 3G?

Thanks
[Nexus 4 General] nycelitemaster:
Great for me! Try it yourself :)
[Nexus 4 General] elias.acab:
Working perfectly on SAOSP 5.1 on my N4! Settings stick after reboot. Signal could be stronger. Not sure whether thats related to the modem or the signal strength in my area, but I feel like I used to get better reception at home with the stock modem.

Thanks for the great job!
[Nexus 4 General] yochananmarqos:
It's definitely possible you will get varying signal strengths depending on LTE availability in your area.
[Nexus 4 General] Blacksmith5:
Thanks for all your work. 1 quick question I installed version 2.1.1 do I have to uninstall it before installing version 2.1.3? if so any suggestions on how I do that? Thanks again for your work
[Nexus 4 General] nycelitemaster:
Well if you are using 5.1+ then you can simply install 2.13 over it and it should work just fine.

Sent from my Nexus 4
[Nexus 4 General] Blacksmith5:
Thanks for the quick reply. I just did that. By the way thanks for the great work. I'm on T-Mobile:good:
[Nexus 4 General] pkadavid:
Depends on how the LTE signal in your area is. If it's strong, then it usually improves battery life vs 3G. If it's weak or has to keep switching between 3G and LTE, then it will use more battery. That's been my experience, at least.
[Nexus 4 General] Blacksmith5:
Do I need to flash the .33/1.06 modem separetly? after flashing the 2.13 enabler? Thanks
[Nexus 4 General] lion7718:
No, just flash the enabler & it will install the radio & edit the files needed.
[Nexus 4 General] Blacksmith5:
Thanks for the reply and input and clearing that up for me:good:
[Nexus 4 General] acejavelin:
For me, when signal is very good to excellent, it is similar to slightly better than 3G, but if signal is only decent to marginal, the battery drains noticeably quicker... I also had lots of issues with GSM to LTE handoff, and the phone would get stuck in 3G even when LTE was available. In my area AT&T's LTE has slowed down noticeably, to the point HSPA+ is significantly faster (consistently 5Mbps on LTE and 8Mbps on HSPA+, with noticeable difference in latency), so I went back to the stock radios.
[Nexus 4 General] gorilla p:
I recently started having a problem with what seems to be the radio on my N4.

It is dropping with no network connection, and unable to find any carrier/network, then it will connect to the network or maybe even data for 30sec-2min, then completely drops again.

I did a factory reset and tried 2 different ROMs with both the 1.05 and 1.06 stock radios with same result.

I called Tmo and they said there no reported outages or tower issues in the area.

Everything else on the phone is working fine. WiFi 2.5&5GHz is working.

IDK if anyone has experienced this, but is is pretty safe to say my radio has crapped out?
[Nexus 4 General] lion7718:
What ROMs are you using?
[Nexus 4 General] ariesgodofwar:
You know, I have Tmo and had a few times a few days ago where it was having issues, and dropping connection entirely. It was probably like Sat/Sun if I recall. Have not experienced since. Is it still ongoing for you?
[Nexus 4 General] gorilla p:
No, strangely enough, I just left my phone plugged in and took a nap before work and when I woke up, it had a signal.

Signal has been fine since.

I think they may have been doing some work or having a tower issue and the random customer support person I called was clueless.

If it continued into today, I would've pushed it more and drive around a little, but everything seems OK now.
[Nexus 4 General] Blacksmith5:
Enabler worked for me nexus 4 using stock lollipop 5.1 on T-mobile

I just want to thank everyone here . After I updated to Lollipop 5.1 I lost 4G . Because of the excellent advice here and sideloading the LTE Enabler 2.1.3 It fixed the problem. I now have 4G on T-mobile while driving around Dallas today.... Thanks everyone for the great advice and help
[Nexus 4 General] ariesgodofwar:
Thread title needs an update with new version or we should start a new thread so folks can find the 5.1 related discussion
[Nexus 4 General] elias.acab:
Im using 2.13 on rooted stock 5.1 and it looks like its breaking my GPS, anyone else experiencing this? "GPS signal lost", in fact, it never fixes the location....

Thanks
[Nexus 4 General] yochananmarqos:
The hybrid modem to enable LTE has nothing to do with GPS.
[Nexus 4 General] nycelitemaster:
You might to specify what ROM you use, also make sure your GPS is always on instead of battery saver mode. Radio has no effect on GPS.

Sent from my Nexus 4
[Nexus 4 General] yochananmarqos:
You might want to quote the right person for full effect. ?
[Nexus 4 General] nycelitemaster:
LoL true.. I did it while I was eating breakfast at job haja

Sent from my Nexus 4
[Nexus 4 General] elias.acab:
haha I said I was running stock 5.1 rooted :P anyways...not relevant at all...thanks for your reply
[Nexus 4 General] 888Plugin8.com:
Is there a solution for 5.1.1? I can't get mine to stick while on 4g
[Nexus 4 General] blade86sam:
Signal for LTE compared to 3G will be weaker, that is normal.

The signal strength on the nexus 4 compared to, say a Samsung Galaxy S4 on same provider using LTE, has the

same

signal strength.
[Nexus 4 General] haizmanbrain:
preferred_network_mode2

After updating my phone it kept going back to WCDMA preferred. I found I had a preferred_network_mode2 in the settings.db that had got created when updating from 5.01 to 5.1. I set that to '10' and now 4G sticks after reboots.
[Nexus 4 General] c00ller:
Who is managing the account for /makostuff/? Could you please do us a small favor and adapt a consistent naming scheme and do a little clean up? Right now, there are some problems as I see it:

Google Drive sorts files by name. and as is, old and new files are scattered. it should ideally go somewhat in order.

there are duplicate files (e.g. there are two Nexus_4_HYBRID_LTE_Modem_27_106.zip)

some lte-enabler zips don't say which hybrid radio image it contains (e.g. nexus-4-lte-enabler-v2.13.zip)

That being said, I have a question about nexus-4-lte-enabler-v2.13.zip. I did a search, but could not find which hybrid radio version it contains?
[Nexus 4 General] lion7718:
2.13 contains hybrid radio .33/1.06

http://xdaforums.com/showpost.php?p=60142380&postcount=776
[Nexus 4 General] c00ller:
To follow up, here's just my suggestion. Files should be grouped by the types: 1) hybrid radio only 2) stock radio only and 3) lte-enabler. Here are some examples of each:

Nexus4_Radio_Hybrid_106_27.zip (putting it in order of 106_27 instead of 27_106 allows the 106 hybrids to be grouped together since Drive sorts by file name)

Nexus4_Radio_Stock_105

Nexus4_LTE_Enabler_106_33.zip

And/or you could create a subfolder for each type. I would gladly do some reorganization it if I had access to the directory.
[Nexus 4 General] raz123:
Nice. On a clean CM12.1 install, after installing nexus-4-lte-enabler-v2.13.zip, I had to follow these steps to make LTE stick on reboot:

You will need a rooted phone

1. Download, install and open SQLite Debbuger

2. Browse and select /data/data/com.android.providers.settings/databases/settings.db

3. Select on 'global' -> 'name' -> 'preferred_network_mode'

4. Tap right under 'VALUE'

5. Update value -> put: 10

6. Tap on top right button to save changes (looks like: >)

7. Tap on 'Commit' (bottom right button)

Boom.
[Nexus 4 General] Selmak:
I used the 4G Switcher app available in the Play Store, which is nothing more than a shortcut to open the dialer settings where you can select LTE/GSM auto.
[Nexus 4 General] gorilla p:
http://xdaforums.com/showthread.php?t=2987907
[Nexus 4 General] ViViDboarder:
Catchup

I haven't used my N4 in a few months and just updated to CM12.1 and have been hunting down zipfiles.

It seems the latest version people have had luck with is nexus-4-lte-enabler-v2.13.zip, which is likely based on the version on github (latest is 2.11). It's rather hard to tell if there is a new XDA thread since this OP hasn't been updated and it's also hard to track what changes have been made since whoever modified it did not fork the repo.

I'm starting my own fork for now to encourage iteration and transparency. If anyone wants to fork it, go ahead. If anyone wants to make changes to it, go ahead.

https://github.com/ViViDboarder/mako-lte-and-lte-hotspot-fix
[Nexus 4 General] lion7718:
Just wanted to post that 2.13 is working on 5.1.1
[Nexus 4 General] DaleFarnsworth:
After upgrading to 5.1.1, I found there was a preferred_network_mode3 variable set to 0.

I modified the tmp/query.sh script from nexus-4-lte-enabler-v2.13.zip to set each of

preferred_network_mode

preferred_network_mode1

preferred_network_mode2

preferred_network_mode3

to 10. and installed the resultant zip. I'm sure there is a more elegant way to accomplish it, but this worked for me.

Dale
[Nexus 4 General] ariesgodofwar:
Here is a link to the post with v2.14 which was made with the 5.1.1 radio: http://xdaforums.com/showpost.php?p=60885004&postcount=1707
[Nexus 4 General] nycelitemaster:
Try to call.. if you switch all of them, more likely you'll disable your calling. Has happened to me.

[MENTION=412931]Gorilla[/MENTION].p - add this to makostuff - nexus-4-lte-enabler-v2.14-Uninstaller - http://bit.ly/1LhKZza
[Nexus 4 General] pjc123:
So, I have used various LTE enablers or manually installed the hybrid radios starting back in the KitKat days, until I tried the one on this thread back in April on Lollipop, but text messages were getting delayed by days or never showing up so I had to remove it. So I would like to give it a try again. I am now rooted on 5.1.1 with TWRP using AT&T Straight Talk with an LTE sim card and some LTE spots in my area. What would be the recommended most stable enabler ( 2.13, 2.14, etc.)? I gather I then need to install and try the various hybrid radios as usual to find the best one (I have had issues with GPS not locking with certain hybrids)?

Thanks.
[Nexus 4 General] ariesgodofwar:
I flashed 2.14, which has the latest 5.1.1 modem included, and have not had any issues. YMMV
[Nexus 4 General] pjc123:
Thanks, I will give it a try. After viewing the install script I discovered exactly what it was installing.
[Nexus 4 General] pjc123:
I had to uninstall 2.14. GPS was only working half the time.
[Nexus 4 General] kmcoch:
Not sure if LTE is working

I flashed my stock N4 with 5.1.1 using the instructions and I'm still not getting a signal at my house (I only have the triangle outline indicating that there is no service). How do I know if LTE is actually enabled? Will there be a LTE symbol where the signal strength symbol is in the top right of the screen? I am using the $30 T-Mobile plan on that N4 and have the 4G LTE sim card (just purchased today). I have another N4 with Straight Talk AT&T.

My home is located on the outer edges between cell towers, so I've never had great cell service at my house. The T-Mobile coverage map shows full LTE coverage in my neighborhood including the verified customer accounts on my street.

Not sure what to do now?

Thanks!
[Nexus 4 General] lion7718:
No...it will say "4G".

If you have Xposed installed, GravityBox has an option to show "LTE".
[Nexus 4 General] kmcoch:
Thanks. It does not show 4G. We even went outside to see if it would change. The SIM status only shows EDGE.

I also found a message in this thread about changing something in the #*#*4636... over to GSM/LTE and I changed that because it had a CDMA-something setting. Once that was changed the signal was a little better, but still no 4G.
[Nexus 4 General] kmcoch:
So, does anyone else have any ideas?? Should we re-flash?

Another question: I read somewhere that if T-Mobile has LTE in an area, then AT&T uses LTE on a different band. Is there any way for me to see which bands are actually used by the carriers in my area? I'm in the Norfolk/Virginia Beach, VA area. I have one N4 on T-Mobile and one on ST-AT&T.

Thanks!
[Nexus 4 General] pjc123:
I wrote a set of instructions a couple of years ago which allows you to draw a coverage map based on multiple criteria including the provider, band, etc. It is very possible that things have changed on the FCC website since then, so my instructions may also need to be updated, but it will give you the gist of things to get started anyway. I used it to find out exactly where AT&T's band 4 LTE was located in my state:

http://xdaforums.com/showpost.php?p=45707459&postcount=202
[Nexus 4 General] lion7718:
You posted that your only seeing 'Edge', that means your house is pretty much in a dead zone. Drive closer to the city or a more populated area & see if your signal improves before trying anything else.

What version did you flash 2.11 or 2.14..??
[Nexus 4 General] kmcoch:
Yes, my house is a dead zone for regular 4g and 3G service, even though I live in the city. I think we are just between two towers. But of course the coverage map for T-Mobile shows my house and everything around it (the whole 5-city area) being in the 4G-LTE zone. When driving around town, we get a "H" signal and almost full bars. We have never seen a 4G.

I flashed 2.11 because that is what is linked in the first post of this thread.

---------- Post added at 03:12 AM ---------- Previous post was at 02:27 AM ----------

OMG. Thank you so much for posting that link. I followed your instructions for AT&T and T-Mobile and their maps are exactly the same and my house clears falls out of the range of both of them. The coverage shows the border ending at the top edge of my yard. Guess we better move ~ lol.

Not sure what to do now? I wonder if one of those 3rd party boosters would help get a better signal in the house?
[Nexus 4 General] lion7718:
T-Mobile will give you a booster if you get at least 3 bars on 3G somewhere in your house...which you don't...so I don't know if buying your own would make a difference.
[Nexus 4 General] kmcoch:
Unfortunately, since we have a prepaid plan, they won't give us a booster. Or at least that is what the guy in the store told me. I polled my neighbors online last night and most of them get crappy service too. They've all been told it's because our neighborhood is heavily treed. One neighbor has had success with the AT&T booster, but I'm not sure they would let me buy one from them since that account is a prepaid one as well.

Since we're not seeing 4G on the phone that was flashed (v2.11), should we try to flash a different version? And if so, which version and where is it?
[Nexus 4 General] JWxshotsx:
Anyone have a different link to 2.14 enabler? The Box file is refusing to download

Nvrmind
[Nexus 4 General] kmcoch:
Can you share the link?
[Nexus 4 General] JWxshotsx:
Had to dl from mobile with Box app. Hope this helps. Doesn't seem to be working properly with Straight Talk (AT&T) though.
[Nexus 4 General] kmcoch:
Can you please post the link for 2.14? I searched this thread and it isn't posted.
[Nexus 4 General] Chief Brody:
It was never supposed to work with ATT. It's Band 4 only which happens to work for Tmobile in the US.
[Nexus 4 General] acejavelin:
AT&T has Band 4 LTE in limited markets, generally where T-Mobile does not provide service, although in a few areas it does... Most of these areas are in the central corridor is the US, about 30 or so market areas in total.

Basically flash it, if your on Prepaid (Go Phone, Cricket, ST, etc) then your done, it will just work if AT&T has Band 4 LTE in your area, of you are on AT&T postpaid you have to call customer service and get a dummy LTE IMEI number assigned to your line since they see the N4 as a "4G" device and not an LTE device, without doing this you will only get HSPA+ whether they have Band 4 in your area or not.
[Nexus 4 General] ariesgodofwar:
Link is in this post:

http://xdaforums.com/showpost.php?p=60885004&postcount=1707
[Nexus 4 General] kmcoch:
I can't download it. Do I have to sign up for Box to get it?
[Nexus 4 General] acejavelin:
You do not need a Box account... Are you doing it on mobile, I just tried it, took me to m.box.com and gave me a simple download button, worked fine.
[Nexus 4 General] kmcoch:
No, I am trying to download it from my computer. When I click the download button, nothing happens. I'll try it from my phone.
[Nexus 4 General] automatikjack:
So I found this thread by Google after using this fix to the the SAME problem on my tmobile note 3. And it looks like I need to update script to keep myself in the game now that I'm on lolipop.

Does anything need to be removed from the script or just add in:

(

sleep 15

iptables -D natctrl_FORWARD -j DROP

iptables -t nat -A natctrl_nat_POSTROUTING -o rmnet_usb0 -j MASQUERADE

)

The script, as I used it before, looked like this:

#!/system/bin/sh

iptables -A bw_FORWARD -i !lo+

iptables -A natctrl_FORWARD -j RETURN -i rmnet+ -o wlan0 -m state --state RELATED,ESTABLISHED

iptables -A natctrl_FORWARD -j DROP -i wlan0 -o rmnet+ -m state --state INVALID

iptables -A natctrl_FORWARD -j RETURN -i wlan0 -o rmnet+

iptables -A natctrl_FORWARD -j DROP

iptables -A natctrl_nat_POSTROUTING -t nat -o rmnet+ -j MASQUERADE
[Nexus 4 General] cb474:
Is it still correct that there is not way to get LTE to persist after reboots on CM12?
[Nexus 4 General] Deimosis:
Anyone have an update for 6.0 marshmallow now that the nightly are on to 13? I am specifically trying to get LTE enabled on straight talk with att.
[Nexus 4 General] gorilla p:
See thread below.

Flash 33/107 hybrid modem

Add/edit the 3 build.prop settings listed in thread.

Set LTE as preferred option in *#*# menu.

LTE on this phone only works on Band4. Make sure he carrier uses Band4 LTE

http://xdaforums.com/showthread.php?t=2412052
[Nexus 4 General] otchill:
pure nexus 4 LTE enabler

Hi guys,

I am using pure nexus project rom on my nexus 4. I want to enable LTE.

Could you please advise me to enable LTE on nexus 4??

thanks in advance..
[Nexus 4 General] gorilla p:
Dude... Read the post right before yours.
[Nexus 4 General] Deimosis:
I did all of this. Modified the build.prop and verified that all 3 lines are in and correct. However, when I use *#*#INFO#*#* to change the preferred network type to any of the LTE's it will always returns to WDCMA. How can I save the LTE setting?

Thanks in advance.
[Nexus 4 General] gorilla p:
Did you flash the hybrid modem?

Does your service provider support Band4 LTE?
[Nexus 4 General] Deimosis:
I got it to work now. I think I was choosing the wrong LTE option.
[Nexus 4 General] ravionly431:
4G LTE for airtel India

Guys,

I am trying to enable 4G on my nexus 4 running 5.1.1.

But don't know which hybrid modem to flash.

Please help.
[Nexus 4 General] yochananmarqos:
1.07/0.33.
[Nexus 4 General] ravionly431:
4G LTE for airtel India nexus 4 with 5.1.1

I have installed nexus 4 modem flasher but it doesn't contain the hybrid modem you mentioned. Can you please send me the zip file for the same?

Thanks in advance.
[Nexus 4 General] yochananmarqos:
I don't have it anymore, sorry. I dropped my N4 & cracked the screen. It's in one of the LTE threads.

EDIT: See the link in the next post.
[Nexus 4 General] gorilla p:
Bit.ly/makostuff
[Nexus 4 General] andy0777:
Can you support Marshmallow please! Or can I just modify the update script remove the os version check?Will this work properly on Marshmallow?
[Nexus 4 General] makbomb:
I'm currently on Pure Nexus M ROM. Would I be able to clean flash a Lollipop based ROM to use the enabler successfully? Thank You! :)