yashsingh1/xdaforums huggingface dataset:
[Verizon HTC One (M8)] ptcfast2:
I was asked to also post this fix that I came up with in the general forum from the CleanROM thead, as it should help people having the same issue. The issue isn't actually related to that ROM but a broader M8 issue that I was unaware of and thought was specific to the ROM. It's been confirmed with multiple users having the issue that the fix below does indeed fix the random data issues that require a reboot/airplane mode toggle to resolve.

A fix for the 4G --> 3G, WiFi --> 4G, WiFi --> 3G, and 1X/3G --> 4G handoff issues that some people may be having is outlined below...

In a nutshell, we just need to change EVDO Rev A to "Enabled" instead of the 3rd "eHRPD" option in EPST.

Dial ##778 --> Edit Mode --> 000000 --> Modem Settings --> Rev A --> Enable --> Upper Right Corner Menu --> Commit Changes

Might cause a reset data connection with the transition due to a possible new IP or hamper simultaneous voice and data over 3G (which is possible), but it will allow the phone to establish a data connection on its own again and not get stuck on eHRPD 's random buggyness. Should transition back to 4G eventually as well

eHRPD basically for allows switching between LTE and EVDO systems seamlessly (no reset data connection from 4G --> 3G and back, slightly faster speeds, same IP, depends on tower...)

Changing this setting basically tells the modem in your phone to act more like a 3G phone when requesting 3G data access. Bypasses the hybrid-ness and just forces you on the legacy EVDO Rev A. network.

If the phone signal (4G is weak) at the time of the eHRPD transition, it can mess up. This change tells it to not bother with that and when the 4G signal isn't available just revert completely to 3G to register and not wait up for transition info. Makes it more cut and dry, and to be honest it does not really impact things. When the phone detects a 4G solid signal again it will switch back on all its own.

Same issue happened on the HTC Thunderbolt when Verizon was messing with things during initial 4G deployment. Only recent changes are the whole VoLTE ramp up, and that could be the cause of this recent crazyness.

To revert this change:

Dial ##778 --> Edit Mode --> 000000 --> Modem Settings --> Rev A --> eHRPD --> Upper Right Corner Menu --> Commit Changes
[Verizon HTC One (M8)] italbomber:
Thank you for sharing this! Very good find and positive feedback has been showing in response. Worth a try for everyone having these symptoms.
[Verizon HTC One (M8)] justinglock40:
The dial code doesn't work on ARHD 10.2
[Verizon HTC One (M8)] ptcfast2:
Isn't Android Revolution HD is in the Generic HTC One M8 section?

Sadly, this only works with VZW based ROMs. Anything with parts taken from other bases, or a GPE ROM it may not work and the code for EPST might be different/EPST might not work and/or the option may not be there.
[Verizon HTC One (M8)] mentallo:
That code doesn't do anything on the Viper rom
[Verizon HTC One (M8)] Scott:
Sounds like you guys need to flash CleanROM...

After making a Nandroid back up of your current system then do the edit and restore Nandroid if you want :angel:

But to answer the OP, yes. GSM ROMS will not have this option unless the Dev adds it in. Otherwise its a CDMA only function (I believe).
[Verizon HTC One (M8)] Roefastford:
It works on my viperone 1.8, are you on the newer versions that you do not have the new verizon firmware for yet ?
[Verizon HTC One (M8)] LibertyMonger:
This is great, I come from an HTC One S but also switched between that and a Galaxy Nexus so I could tell a difference in the way my signal acted and we have had signal issues with the HTC One S for quite some time now and it all seemed to stem from when we finally obtained s-off, seemed our One S was never the same, may have been placebo but I was worried it was happening all over again with our blessed M8 lol. The One S was not Verizon and may not be the same issue. I just tried this and it already seems better.Thanks very much. They still have not found a fix for the HTC One S

---------- Post added at 07:36 AM ---------- Previous post was at 07:30 AM ----------

I'm holding 2 M8's next to each other, one with the fix and one without, I am showing smooth 4g and she is showing a confused 3g lol.
[Verizon HTC One (M8)] ptcfast2:
The confused 3G one is with the fix or without?
[Verizon HTC One (M8)] mentallo:
Yes I'm on the latest version of viper.
[Verizon HTC One (M8)] Roefastford:
If you go back to 1.8 then it will probably work for you, 1.8 was the last verizon that worked correctly for your verizon firmware. I was on the 2.3 but had too many wifi issues so I went back to 1.8, which is less wifi issues now with this fix I seem to not have any wifi issues so far so think its working for me. I"am not going to update viperone until the new verizon firmware is out in a zip to flash in recovery, because the wifi issues are not worth it to update now.
[Verizon HTC One (M8)] krazie1:
Any more successful difference's people have since doing this?
[Verizon HTC One (M8)] LibertyMonger:
I was listening to a radio show streaming app today on Wi-Fi and the app kept stopping. every 10 minutes or so after trying this fix. It was the first time I listened to this app with this phone but listen to this app all the time with my other phones and never have this issue. It was consistently dropping Wi-Fi and 4g wasn't picking it up. I am running CleanRom with Harmon Kardon. I tried disabling Harmon Kardon to see if that may have been the issue since I am not accustomed to using it yet and it seemed to work better without it but still dropping signal. The signal icons seemed uneffected. I guess I am going to remove Harmon Kardon see if that makes a difference before I revert back from this fix.
[Verizon HTC One (M8)] ljx2k:
I did this and my phone now reverts back to LTE and doesn't get stuck on 3G like it had been doing since day 1. I was getting tired of cycling into and out of airplane mode. Thanks for this advice/fix!
[Verizon HTC One (M8)] DBordello:
Is this the bug I experience where I have 4G signal, but am "offline"?

If so, that has been driving me nuts. I am on the stock ROM, S-OFF Rooted. Is this present with the off the shelf version?
[Verizon HTC One (M8)] simonmiller1:
Reporting back after 3 separate complete wipe/reflash/restores on my M8. Here is my status as of now:

Tuesday: Tried flashing stock recovery and did factory reset. (didn't fix the handoff issue)

Wednesday: Tried flashing RUU then returning back to CleanRom 1.4 (didn't fix the handoff issue)

Thursday: tried the EHRPD fix listed below. So far today NO handoff issues! I don't want to jump the gun, but this appears to have done the trick. I have gone from 1x to 3G to 4G with no issues so far.
[Verizon HTC One (M8)] hyperfire21:
If anyone is using the Verizon M8 with a GSM sim and can't access the USSD code ##778# then go into settings -> mobile data -> preferred network -> LTE/CDMA and try running the code again in the dialer. Dont forget to change the preferred network back to Global after applying the fix by the OP.
[Verizon HTC One (M8)] fryediablo:
This has worked great for me. Thanks for posting. Was incredibly frustrating to have to fight with the phone every morning on my way to work to get it to connect to 4g. I had to toggle airplane mode, switch preferred networks and even reboot or some times do all of the above - lol. Thanks again.

Apparently this is a known issue and per Verizon, they're working with HTC to fix it. But I've also read that the problem could be cause by running xposed modules which seemed to be the case with me. I'm s-off running stock and was fine until I installed xposed.
[Verizon HTC One (M8)] ptcfast2:
This fix does not impact Wi-Fi directly, just eHRPD for mobile data transitions. Sounds like the app is the problem. Have the same ROM with Harmon Larson installed - no issues.

Yup. Seems to be impacting certain phones regardless of ROM. I'd give it a shot and see if it helps. If not just change it back. :)
[Verizon HTC One (M8)] allroy75:
Big thanks to the OP. I've been dealing with the the eHRPD limbo since I got my phone in April. I live in a low 4g area and was experiencing text and mms problems big time. It was always happening when it was bouncing for 3g and 4g. When I would check the network details it would say eHRPD. I would constantly toggle airplane mode off and on and change network preferences to get it to work. Really annoying. Well I tried this last night and the signal is staying in 4g almost all the time and I have experienced no problems with messaging. I am running Viper 1.8 and had to kind of guess to find the edit button after entering the numbers in the dialer, for some reason the Edit button did not show up but it was there when tapped on it. After that it was easy. Thanks again for the help. I wish Verizon was as good.
[Verizon HTC One (M8)] LibertyMonger:
Nah it's Wi-Fi and 4g issue, I work at a shop outside so the Wi-Fi only works so far in the driveway, when I walk past that point Wi-Fi drops the app and the 4g isn't picking it up. If I understand Wi-Fi handoff issue that seems to be the issue. I never had this issue with the same app and the same Wi-Fi with my Galaxy Nexus or my HTC One S. So I am gonna disable Xposed module to see if that is causing the issue. If that doesn't work I am gonna try it on my moms HTC One M8 which is still s-on to make sure it isn't an s-off issue. If the issue continues with my moms M8 then it is a Verizon/HTC issue.
[Verizon HTC One (M8)] haitu:
I'm on a work trip and I was really experiencing a poor performance on the Verizon network. I've been getting 1MB download. I thought to myself, "Hey, let's just try this."

I immediately did a speed test and I'm getting 12MB download! I hope this isn't a freak accident. I'll check tomorrow evening. Thanks.
[Verizon HTC One (M8)] bakemcbride21:
Interesting....I used this ALL the time on my Thunderbolt BITD as Verizon's LTE and eHRPD would go down all the time...and have used it on occasion when LTE was having issues as well.....didn't think to keep it on "Enabled" to cure the "stickiness" of staying on 1x or dropping completely.

They actually forgot to put this setting in properly on the original DNA firmware (if you switched to Enabled Rev A, you could not go back)....the first update restored it on it.

Will give it a whirl and report back!
[Verizon HTC One (M8)] syphix:
I really wonder if there's something more to this 4G handoff issue than this fix, though. I sent my first M8 in (warranty replacement) because of this exact issue. My new phone, without making this edit (which I don't intend to do), has NO issues with 4G handoff *KNOCK ON WOOD*.

I also noticed that my new M8 has the logo for "powered by Android" on the startup splash, yet my father's older M8 doesn't. The paint (metal grey version) doesn't chip as easily, too. So, something changed in the ~6 months this phone has been on the market.
[Verizon HTC One (M8)] sfreemanoh:
I don't see how it could be caused by Xposed...I had the problem when I first got my phone, before even installing Xposed. Or unlocking it, or rooting, etc (I got it about a week before the device was unlocked).
[Verizon HTC One (M8)] Turd Furguson:
This worked great for me. Thank you!
[Verizon HTC One (M8)] jbarcus81:
I know this is probably a different issue but the biggest annoyance I have with Sense and this M8 is the fact that say my internet drops, but it stays connected to my wifi router because the router is still on.. But there is no communication and it just doesn't change to use 4G ... I have to turn wifi off to do that.. it's crazy..
[Verizon HTC One (M8)] evilevn:
This fix has just solved the one problem I've had with this phone, I get bad 4G reception in my office so it constantly drops to 3G and I'm forced to do the airplane mode fix. Today I no longer lose data service when dropping to 3G!
[Verizon HTC One (M8)] fireguy0306:
Anybody who has done the fix, does this affect the ability to be on the phone and the internet while connected to 4g. This feature is very important to me and I don't want to try this and lose that.
[Verizon HTC One (M8)] Janhaus:
Is there a quick way to do this outside of dialing "##778"? I've got a Verizon HTC M8 that I flashed a Tmobile Viper rom on and it just ignores the ##778 command. I've been experiencing 4G handoff issues for the longest time, was planning to get rid of the phone but wanted to try this out and see if it solves any issues. Any suggestions on the best way to go about this?
[Verizon HTC One (M8)] blumpkinblake:
LTE is a GSM techonlogy which allows both. 3g and below on Verizon are CDMA technologies and that's why you couldn't do both at the same time.
[Verizon HTC One (M8)] krazie1:
Yes you can still be on phone/internet at the same time
[Verizon HTC One (M8)] blumpkinblake:
You could use dfs cdma tool.

DFS CDMA TOOL CAN BREAK YOUR PHONE IF YOU DO NOT FOLLOW THESE DIRECTIONS PROPERLY

I will not be held responsible for your actions

Install DFS CDMA Tool

Flash the zip attached to the bottom of this thread

Once your phone boots up, go to developer settings and turn off USB Debugging for this tutorial

Open up gscript which you just flashed and if diag_on is not an option, click the menu dots, and add it.

After diag_on is added, click it, allow root permissions and now go back to your computer

Open DFS CDMA Tool and click ports in the top left corner

Double click htc diagnostic interface and at the bottom under devices online, it should pop up, double click the bottom one that is connected.

After you double click the device in ports, the screen will exit to the main screen on in the bottom left corner you'll notice online and mode are both green. If online is yellow, make sure you disabled usb debugging and ran diag_on.

Next click SPC in the top left corner

In the DFS Log you'll notice this

Now that the device is unlocked, click the programming tab, data tab, and click read. It will populate your fields automatically

If for whatever reason it doesn't OR your DFS Log looks something like this

Then click SPC again and it will say Device Unlocked, again...

Just making sure that you are reading. Make 100% sure that you click read and it populates the fields correctly. If you write empty fields then your phone radios may not function correctly.

Under HDR SCP for AT config, change it to "RevA_MFPA_EMPA"

Click write. If you get the cps errors in the DFS Log when writing, click SPC again and then click write.

That's it for the tutorial, just reboot, turn on usb debugging, and do whatever you want!
[Verizon HTC One (M8)] hyperfire21:
Does your guide do the exact same thing as whats described in the OP? The OP seems to mention eHRPD settings change. Please explain what you're method is doing.
[Verizon HTC One (M8)] blumpkinblake:
Yes, that's exactly what it's changing. I did the same methods I posted yesterday while on the .0321 radio firmware and it fixed my issues as well.
[Verizon HTC One (M8)] hyperfire21:
The eHRPD enabled setting seems to be on the right in your pic under Data Config... I think the OP is mentioning that we should disable it... Can you clarify?
[Verizon HTC One (M8)] blumpkinblake:
Sure, I'll disable it and see if everything works. I've been messing around in CMDA Tool for around 2 months since there are literally no tutorials for it. I managed to break my radios, fix them, break em again, fix em again, then finally improve them :)

I'll edit this in a minute and tell you how it goes.

EDIT: Handoff works perfect

4g -> 3g/2g

4g/3g/2g -> Wifi -> 4g/3g/2g

3g/2g -> 4g

EDIT2:

If anyone went into phone info on your phone and changed band to USA to pop in another SIM card, then decided to go back to Verizon and found out you don't have LTE anymore. Let me know and I can post a tutorial on how to get it working again.
[Verizon HTC One (M8)] Janhaus:
Yikes, the DFS cdma tool isn't free, or at least the free version doesn't support the HTC One :(

Edit: Nvm, downloaded it, seeing the screens mentioned. Testing it out now!

Edit2: Ok, I followed all the steps. Two minor issues:

1. after adding diag_on to gscript and running, gscript immediately crashes. After trying this several times with no change in outcome I just kept on going with the instructions.

2. the first pass with the instructions, I did not get the 'online' icon to flash green - it stayed yellow. However I was able to read all the fields from the phone and write to the phone with no issues. Upon rebooting the phone and repeating the entire process, the 'online' icon flashed green finally. I essentially looped through the steps twice.

Right now it seems as if it works, I tried switching between wifi/lte/airplane mode and whatnot with no issues but will test it out the next day or two and see if it continues to work!
[Verizon HTC One (M8)] ocman40:
Thanks for this OP! I have been noticing these very exact symptoms the last month or so when Im in a weak 4G Transition zone. I would have to reboot to gain network connectivity.

No more issues.
[Verizon HTC One (M8)] mentallo:
I have had a problem for a while where I either connect to 4G or 1x but never to 3G. Does anybody know what could cause that?
[Verizon HTC One (M8)] nicotheandroidguy:
Yeah i lost VZW LTE when doing that could you post the tutorial?
[Verizon HTC One (M8)] garywojdan81:
Whats the advantage of using the tool as opposed to the method in the op if the end result is identical? It seems to increase the likelihood of catastrophic error by overcomplicating a straightforward fix.
[Verizon HTC One (M8)] ptcfast2:
Only should be used for people who can't bring up the EPST menu. This would be due to the ROM they are using is not based off the Verizon base.
[Verizon HTC One (M8)] hyperfire21:
I wanted to bump my earlier post.. no one seemed to have commented whether this method worked or not. It did for me...
[Verizon HTC One (M8)] evilkokonut:
anyone know how to do this on GPE roms?
[Verizon HTC One (M8)] ocman40:
I noticed that after the radio update this setting still sticks. Do we need to revert after the update or?
[Verizon HTC One (M8)] Preston2291:
^^Bump! ^^
[Verizon HTC One (M8)] garywojdan81:
I did, just to see if the handoff is improved.
[Verizon HTC One (M8)] hyperfire21:
Let us know what u think.
[Verizon HTC One (M8)] blumpkinblake:
The DFS CDMA Tool settings for Verizon LTE should look like this:

I spent many many hours messing with DFS settings trying to get LTE back. BC0 and Band IV are the ones we need. BC0 takes care of all the CDMA, and Band IV as described here is what enables LTE. Band 13, aka the 700mhz spectrum is automatically turned on in the newer radios. Changing the settings in DFS doesn't seem to do anything besides make you lose service.
[Verizon HTC One (M8)] ptcfast2:
Same here. I'll know tomorrow if they finally fixed the issue and hopefully it means my change isn't needed. :victory:
[Verizon HTC One (M8)] regspy:
Hmmmm if I were to disable band 4 and enable band 3 would that make me get LTE in Europe?
[Verizon HTC One (M8)] boazlaz:
lte

i just did the procedure - went to bands and pressed read.

it showed me wcdma 1800 and 2600 as marked (enabled)

im on 4.4.3 from yesterday.

i wonder if it was the same on 4.4.2

ill be able to check LTE availability only on sunday.
[Verizon HTC One (M8)] garywojdan81:
Hand off on the new radio seems as good as the rev a fix.
[Verizon HTC One (M8)] krazie1:
Handoff is improved but still not fast enough on the New Radios. My lady's GS5 transitioned from 3G back to 4GLTE faster than my updated One M8. I think this fix is still required.
[Verizon HTC One (M8)] garywojdan81:
My wife's got a G2 and my m8 seems faster now than hers.
[Verizon HTC One (M8)] ptcfast2:
Handoff seems to be more fixed with the latest modem firmware, but 3G with eHRPD enabled still seems to be slower than just using Rev A. .30 Mbps for eHRPD vs 2.2 Mbps Rev A in the exact same location (full 5 bars, 3G).

Does not hurt anything either way is the main thing to stress here. Switch back, don't - whatever works for you. :)
[Verizon HTC One (M8)] blumpkinblake:
Unfortunately when I was in Europe, happymovil didn't let me use LET so I couldn't test it. However, it doesn't hurt to try. I'd all else fails, just revert back to the old settings
[Verizon HTC One (M8)] hyperfire21:
I was thinking, if we are using a GSM sim card in the verizon phone.... We can just disable Rev A.

Any upside or downside to this? Please chime in.
[Verizon HTC One (M8)] ruccarucca:
not able to get the menu through dialer on GPE?
[Verizon HTC One (M8)] sfreemanoh:
Is anyone else still seeing the handoff issue after doing this fix? I'm on a 4.4.2 ROM (CleanROM), so I was able to do it through the dialer, but my phone got stuck on 1x last night at the gym.
[Verizon HTC One (M8)] neilrl79:
My phone got stuck on 1x about a week ago, but it only happened the one time.
[Verizon HTC One (M8)] facu1982:
The Best fix

Down to the point and no need to download crappy apps! Thanks so much for the fix, it worked and was easy. Thanks!
[Verizon HTC One (M8)] evilevn:
Since the latest Firmware update I haven't had this issue, I went and set this back to the default and the handoff has been working perfectly since.
[Verizon HTC One (M8)] MajikUF:
I don't know if it was specifically covered, but on 4.4.4 I was looking to revert to the original setting, but the menu changed.

Instead of Modem Settings, it was moved to "Data Parameters" and the Rev A setting was in there.
[Verizon HTC One (M8)] xdadevnube:
I'm on CleanROM 3.0 on the latest firmware. I never have and still can't get the dialer code to work. I've tried BoneStock and a couple others that I don't remember. Anybody else able to get ##778 or ##778# to work on latest firmware and CleanROM?

Edit * Okay, I feel like a tool. Just have to hit SEND!
[Verizon HTC One (M8)] mattie_49:
That's awesome
[Verizon HTC One (M8)] deeznuts:
This fix did nothing for me. On viper 3.1 rom and there's a few spots at work that have no reception or goes to 1x reception. I did the fix which was:

Dial ##778 --> Edit Mode --> 000000 --> Modem Settings --> Rev A --> Enable --> Upper Right Corner Menu --> Commit Changes

At work today I went into this area and what do you know, SOD like always even before this change above.

Should i just revert back or keep REV A Enable? Doesn't seem to have made any difference in regard to the SOD when going to 1x connection or going from 1x to 4g.
[Verizon HTC One (M8)] moeaz05:
I messaged you. please check pm.

---------- Post added at 07:26 AM ---------- Previous post was at 07:24 AM ----------

Hey i messaged you. Please check pm. Off topic. thanks
[Verizon HTC One (M8)] moeaz05:
Very late reply. But that is my thought process as well. I am using gsm on the verizon phone. My handoff was not as bad. I did this "fix" and it got horrible. so i went to disable. So my thought process is saying it should be fixed now. After all i disabled cdma technology? Anyways. ill respond back to tell you how it goes.

---------- Post added at 03:54 AM ---------- Previous post was at 03:51 AM ----------

That was my thought process as well. My handoff was not that bad. I did this "fix" and it got horrible. So now i disabled it and i will report back how it goes. my thought process is saying it should be perfect now since i disabled cdma technology ? WIll report back.
[Verizon HTC One (M8)] MARKREIF:
i'D LIKE TO KNOW THE PM CONTENT AS I'M ON VIPER 3.2.1 AND TRIED THIS FIX AND FOUND MY DEVICE GOING LOCKED (WHILE STILL MAINTAINING THE TETHER CONNECTION). I'M HAVING HANDOFF ISSUES AND IN ORDER TO GET BACK TO A STABLE DEVICE I HAD TO REVERT BACK. ANY SUGGESTIONS?
[Verizon HTC One (M8)] Dudejoe4:
Does anyone know if there is a way to do this on 5.0.1? I'm running the Stock unroofed ROM but am having this problem. This fixed it for me previously on KitKat, but when I dial it now it doesn't do anything.
[Verizon HTC One (M8)] temple2101:
Same here. On KitKat I did this fix and never had any issues. Switched to Lollipop and my issues are back. Couldn't figure out what was going on and then traced it back to my switch to a 5.0.1 ROM. Driving me insane...
[Verizon HTC One (M8)] Dudejoe4:
BUMP
[Verizon HTC One (M8)] rigbyrobot:
Bumb