yashsingh1/xdaforums huggingface dataset:
[Desire 816 Android Development] JKMB888:
No LTE, cannot switch from WCDMA Preferred via USSD

Hello users.

I have a particular issue when it comes to LTE reception. I have received my HTC 816 (a5_ul - single SIM, of course) from the warranty repair of SIM card slot. It was on stock Lollipop 5.0.2 with relocked bootloader status (I locked it back so the former owner could claim the warranty). I have unlocked it, flashed TWRP 3.0.0 and then flashed the stock MM 6.0.1 ROM which became available recently (also on XDA as a ZIP). After some time, I have decided that going for CM13 is a better option anyway - less bloat, better camera (my OPO has the same edition of camera software and it is superb).

I have flashed the CM13 for a5_chl assuming it will work correctly, along with OpenGAPPS. Device seemed to work fine, but after leaving the Wi-Fi, I have noticed that no LTE reception is available (Polish carrier Play, HTC 816 is within the band spectrum, my OPO worked fine on LTE from the same location). I have tried to use *#*#4636#*#* code to see if I can change the preferred network since the toggle in Settings did not seem to react. In that USSD-activated menu, I could not change from WCDMA Preferred.

Does anobody know what I did wrong? Also, clean flashing of ROM ZIP with "a5" suffix did not change the situation. Still, only HSPA and HSPA+ networks are available for this device. Both stock 5.0.2 and 6.0.1 received the LTE signal with no difficulties.

Since it is my fiancee's main phone, the burden is heavy and the struggle is real :) Please help :)
[Desire 816 Android Development] steppinthrax:
You have to apply the Universal APN fix for Virgin Mobile phones. I have done this already and you do get LTE/data. However, it will eventually cut out after moments of non-use. Then you have to airplane it (turn airplane on and off).

I know from history this has always been a problem with Cynogenmod running on the HTC desire 816. No version of Cynogenmod thus far has came stock with a working LTE/4g on these phones. You apply the APN fix and it works for a bit then cuts out. It's annoying because if you are listening to Pandora and it will buffer a 3 minute song. By the time it switches to the next song there is no data.

Also if you are generally using the phone and and data cuts out you won't get any notifications and completely forget that the data is cut.
[Desire 816 Android Development] rumpleduskin:
I was just wondering if I can help in any way at all. Your beta version is running nicely, and the SD card working for all internal. Which is great, no more running out of room.

In case anyone can't get there SD card to work as internal, once you format it you go to SD card and click the 3 dots and then migrate. Works great.

I am having one small problem I keep getting the pop up google services is not responding, its so fast though you can barely read it. Its not a major problem, just annoying. I dirty flashed and installed micro version of gapps so that may be the problem. Going to install full version of gapps later today and see if that fixes the problem.

But if i run into any errors would you like me to post them? I have to read back through to figure out how to get you a log file. Whatever I can do to help. You've got a pretty stable version working already. I thought I was Sol for marshmallow.

Thanks again for the hard work.
[Desire 816 Android Development] steppinthrax:
When I first installed this I kept getting errors for various google apps. Gmail and one other google apps wouldn't run. I formated and reflashed and wiped dalvik between and put pico back on and it seemed to work. Maybe I picked the wrong version gaaps before, not sure...
[Desire 816 Android Development] Imbhavuk:
hi buddy awesome one i had ever. sexy bro for this awesome creation i just installed now everything worked fine searching for problems . it increased my sounds viszualiser also working well even wifi ..can this update install my play store direct to play store...? im still having this prblm.. and once again thanks for this awesome creation ...

---------- Post added at 06:58 PM ---------- Previous post was at 06:38 PM ----------

hi buddy now how to get play store i downloaded manually but this is not working.. and the google play services are automatically stopping
[Desire 816 Android Development] rumpleduskin:
In the first page he has a link to gapps file ,make sure u read and get the arm 6.0 and pick the installation you want.
[Desire 816 Android Development] Imbhavuk:
how to fix this facebook issue?? any also tell me how can i access google play store i downloaded manually google play store apk and google play services and it is nt working plz help howw can i acces to my play and play services....

---------- Post added at 07:31 PM ---------- Previous post was at 07:21 PM ----------

yes buudy i have installed arm 6.0 aroma version but still i am not having the play store ..
[Desire 816 Android Development] luka.miskovic:
hi huys, for a5_ul device cm-13.0-20151231-UNOFFICIAL-a5.zip is the latest release or?
[Desire 816 Android Development] Imbhavuk:
wait buddy i again installed gapps firstly i have selected complete installation but now i am selecting of my choices there i got all the google apps to install but when again i boot the apps were not still installed may i flash again the whole process..

---------- Post added at 07:38 PM ---------- Previous post was at 07:36 PM ----------

i m having battery issue my battery is draining much
[Desire 816 Android Development] JKMB888:
Hey, thanks for a fast response. I have found a download of Universal VMU APN Fix, however on external forum. I am bit sceptical as it is - judging by the name - a fix for Virgin Mobile, and this is not my carrier. I have never been that much into carrier-specific software and hardware. Is it going to restore the LTE on my CM13 even though I am in Poland and using device dedicated for Polish market, and using Polish carrier's SIM? I believe that tomorrow I will have more time to investigate and to try this fix, so it gives me some time to investigate the subject. One more time, thank you (includes the "in advance" portion).
[Desire 816 Android Development] bigsupersquid:
you need the apns-conf.xml for your carrier instead of the vm one.

put it in /etc and chmod 644
[Desire 816 Android Development] steppinthrax:
Bigsupersquid, what causes the intermittent non-use disconnection?

Thanks
[Desire 816 Android Development] bigsupersquid:
suggest clean install (advanced wipe data system and cache) reboot, wait 15 min, reboot to recovery, install non aroma 6.0 arm (armv7 not arm64) open gapps, reboot
[Desire 816 Android Development] bigsupersquid:
every virgin mobile device I've used does that, stock or custom rom, lg/Motorola/htc.

it's worse in cm, and this device's cm13 ril/telephony isn't ironed out yet.
[Desire 816 Android Development] bigsupersquid:
messing with the official ul marshmallow gave me a hint on ril, settings for (lte/cdma only) stick from stock to cm13.

also, I've had no lte for weeks, since right after vm toggled my service and fixed it.

for a few days now running stock, still 3g no lte.

this evening i went to settings and did update profile, it actually took, and activated my lte again.

back to backup of cm13, no data at all. it was working with 3g before update profile.

so I've got two different universal-apns zips, one with mcc310mnc120 apns and one with 311491 apns. 310120 is sprint, 311490 virgin mobile.

this time the sprint one worked. other times it's been the virgin mobile one that made a difference, or neither helps. but i mess with the cdma props in init, too. so they've been both 311490 (older release) or 310120 (current 2/16)

for the 2/16 build they match the default sprint mccmnc.

main points:

telephony settings can stick from stock install to clean or used cm13 install.

stock update prl/profile may fix broken data (but may require apn-fix zip)

and, [MENTION=4022811]GreyCelt[/MENTION], [MENTION=3951714]ajones23[/MENTION], i added the apns fix post and rom flashing advice to post 3.

thanks for the contributions.
[Desire 816 Android Development] ajones23:
Hey [MENTION=2980661]bigsupersquid[/MENTION] if you need some help with test builds. Like testing data,I would help out. Thanks goes to you,for all your hard work.
[Desire 816 Android Development] TrUE BlUE:
Flashed the 21st Feb build in 816 DWG variant a week ago. Theres been no problem with my network. dual sim card slot is active and i can make and receive calls. wifi and bluetooth is holding steady. But the wakelock issue is still persitent. battery is not so good.i barely last a day with full use. however ive minimized it by stopping the system update service from google play services. can this be fixed in ur next build. id surely appreciate it! [MENTION=2980661]bigsupersquid[/MENTION] uve done a really fantastic job in bringing in marshmallow to this great phone. big thanks to u mate!:good::good::good:
[Desire 816 Android Development] vinaymysore777:
Hi true Blue

Whether calls from Sim no 2 is working ,whether you are able to make & receive calls ,whether data is working in sim no 1,Whether any netowrk patch universal apn fix or any addidtional zips are required
[Desire 816 Android Development] rumpleduskin:
So this fixes the data problem? Sorry for the question, but I can't change settings either. I used Greycelts fix for data, is this one better?
[Desire 816 Android Development] TrUE BlUE:
1. Whether calls from Sim no 2 is working: Yes

2. whether you are able to make & receive calls : Yes

3. whether data is working in sim no 1: Yes (using airtel 3G) even while im on roaming

4. Whether any netowrk patch universal apn fix or any addidtional zips are required: No. I didnt use any.
[Desire 816 Android Development] bigsupersquid:
it turned my data back on in my cm13 backup after activating lte in stock messed up data when i restored, but it wasn't necessary before that.

the apns-conf doesn't really 'fix' data but it does explain to the phone what network to talk to and its available protocols plus mms proxy and port (more or less)

there's other something broken that locks out carrier/network settings; works OK in cm12.1.1 though. you can change settings in a rom that allows it, and they should persist into cm13 (for now at least.)

if you're not getting service, try fixing it in a stock install, make sure it's all working, then restore your cm13 backup and try it out.

maybe try the same thing on dual sim too since there's now a report of one working.

reflash stock (not just any rom that works, stock is important), update any prl or profile or whatever under settings-phone info it'll let you do. then, once you have everything working, try a clean cm13 install (advanced wipe system data cache before flashing) and see if it's still broken.

since one dual sim and most chl s and some ul all work OK, it's possible the non working ones have different carrier apns, and/or need network settings squared away in a stock install.
[Desire 816 Android Development] icy_gt:
Do you have your network mode on lte/cdma ? And how persistent is each one?
[Desire 816 Android Development] :
Sim& wifi

Vodafone Indian sim working?

Wifi working?
[Desire 816 Android Development] rumpleduskin:
I'm also only getting LTE which is why i ask about that fix everyone's talking about. Plus my cameras not working at all now, it was at first. I forget the page that a fix was on if there was one, this thread is getting long, hard to remebr what was said where. Also, when I chose carrier settings I'm still getting the pop up error its not working and it closes. So far, these are my only issues I've encountered, other then google services keeps poping up and closing quite often. That though is probably cuz I dirty flashed, trying to fix it without starting over, because unlocking my phone was a pain in the ass, I'm trying not to go through it again. My apologies for bringing up same things, im rather new at this and trying to learn without being bothersome and breaking my phone at the same time.
[Desire 816 Android Development] ajones23:
So your having problems with data. Are you on VM chl,go to the first page of this thread. Third post down.
[Desire 816 Android Development] shantanu223:
Only for DWG version 21st Feb Build

OK..let me clarify few doubts for new users 21st Build

1) SIM 1 Calling / Data working. In-call volume working

2) Sim 2 Calling / Data works but In-call volume NOT working. Basically you won't hear anything.

3) Wifi works, GPS works.

Persisting issue: SIM 1 network mode shows WCDMA Preffered in engineering mode (*#*#4636#*#*) however network type always sticks to 3G mode. It does not switch to 2G when 3G is unavailable hence there will no network coverage at all.

Probable fix: While installing the ROM, insert 2 SIM cards in SIM1 and SIM2 slot both. Make sure the after first boot, both Sim cards must be initialized. After initialized you can set preferred data SIM as SIot 1. The network mode will be set to GSM/CDMA (Auto Prl). Thats when SIM 1 will be able to auto switch 3G and 2G and network coverage will be stable.

***Initializing only SIM2 card slot after first boot might make wifi intermittent. Hence advised to initiate both slots after first boot time.***Initializing only SIM1 card slot after first boot will set network mode to WCDMA Preferred and network coverage will be unstable as stated above***.

Hence advised to initiate both slots after first boot time.
[Desire 816 Android Development] :
[MENTION=2980661]bigsupersquid[/MENTION] can you upload dwg ROM on another site? Android host not working!!:(

---------- Post added at 07:23 AM ---------- Previous post was at 07:05 AM ----------

Will the WiFi work if:

I have kitkat firmware and if I initialize device with only 1 Sim in slot 1?
[Desire 816 Android Development] shantanu223:
Yes WIFI will work, but network will stuck to 3G only.
[Desire 816 Android Development] :
Will this zip fix WiFi and Bluetooth? Because i only have the WiFi and Bluetooth problem. SIM Card issue is fixed. I know that, for fixing WiFi and Bluetooth you need to update the firmware. Is there any alternative?

---------- Post added at 02:27 PM ---------- Previous post was at 02:26 PM ----------

WiFi still not working (erratic). Nor the Bluetooth.
[Desire 816 Android Development] phamtlsoft:
What order to initiate slots after first boot time. Is Sim 1 slot first ? or both is same time
[Desire 816 Android Development] shantanu223:
Yes..initiate both sim card at a time after first boot.

What i meant, installation steps that i followed.

Insert two sim cards

Reboot to recovery, preferably twrp 3

Wipe

Install rom + gapps

Reboot

Now select your preferred language.

Connect to wifi

System will ask to turn on sim cards. Thats where you switch on both cards

Select sim 1 as data and proceed with further setup.

---------- Post added at 10:36 PM ---------- Previous post was at 10:30 PM ----------

These zips were required for versions prior to 21st build. Not required for 21st build as far as i know

Try to upgrade to lilipop and then install.

In my case installation worked for both kitkat lollipop.

Use twrp 3 + advance wipe( proceed with caution) + rom + gapps.
[Desire 816 Android Development] :
So using twrp 3 + advance wipe( proceed with caution) + rom + gapps will make my wifi work?

Actually i dont want to upgrade to lollipop .,since it is a very long process. So I was looking for an alternative by which i can make the wifi work instead of upgrading the firmware.
[Desire 816 Android Development] shantanu223:
[MENTION=2980661]bigsupersquid[/MENTION] i think editing the file /system/etc/snd_soc_msm can fix the crackling issue but its not in etc folder. Also in cm12.1 i saw that viper4android was able to limit the sound out gain system wide. So what settings did it use to implement the amp limitation system wide ? I mean what files are responsible for speaker sound gain any idea ?
[Desire 816 Android Development] bigsupersquid:
you can try editing some system xml. i looked it up but hadn't messed with it since i readjust the built in mixer control to minimize pop and frizzle from speaker overload.

http://xdaforums.com/showpost.php?p=47593115&postcount=2

i adust the mixer to a straight diagonal line starting at the top left ending at the lower right.
[Desire 816 Android Development] bigsupersquid:
you're going to have a hard time of it... have to revert the hardware drivers in the kernel to match the kitkat firmware, without reverting everything else that's been changed between KitKat and marshmallow. rebuild the kernel afterwards and insert it into your boot.ing, don't forget the dtb's.

i certainly don't have the time for that.
[Desire 816 Android Development] rumpleduskin:
OK, thanks for responding. My play services are getting worse as well. Worked 14 hours today and another 14 tomorrow. Looks like Saturday I'll do as you suggest and install official stock ROM that came with phone. My fault for trying to take a shortcut when you clearly said for best results do a clean install, I went with dirty. Guess my saturdays going to be fixing my phone. I'm pretty sure these errors will go away once I do.

One quick question, I install original image and then lock the bootloader, correct? Then I'll do all prl or pll(not sure what it's called but I know what it is) I will get everything working and then I'll unlock and reinstall cm13. After I wipe disk, clear cache and dalvik cache as well.

After all this is done I will be better able to let you know what's going on since it will all be fresh and no dirty install. The cm13 version still the same, or have you added in the files to get data to work. Or will I have to flash the separate files?

Once again thanks for doing this, and taking time to help all of us. Gotta get stressful at times. ;)
[Desire 816 Android Development] TrUE BlUE:
can anyone provide me with a RILJ wakelock fix?? its eating up my battery.:confused::( the wakelock arises whenever the phone is in sleep preventing deep sleep mode! and when the screen is on it reduces considerably! help!
[Desire 816 Android Development] :
OMG! I will wait for someone to make a flashable zip for that.;):p
[Desire 816 Android Development] bigsupersquid:
don't mess with your bootloader, just restore a stock backup, update prl, update profile, make sure all your data is working, then you can advanced wipe data, system, and cache, and either reflash the cm13 zip or restore just /system from a backup of it.

play services stink, and I'm afraid you'll have to search a solution for play services wakelock blocking, since that's not really a rom issue. i get over two days battery in a charge, even using data pretty regularly.

you can test what app is holding wake lock with some app i forget, and you can verify it's not the rom with a clean install without additional apps.

i blame gapps because most people use them and they're known battery and wake lock hogs.

i don't see any kernel work done on this device in quite some time. i kind of doubt anyone is going to forward port kitkat drivers into the current kernel.
[Desire 816 Android Development] TrUE BlUE:
After having tested it, ive zeroed in on the conclusion that the RILJ wakelock is defeinietly not caused by gapps. i clean flashed d rom and after the first boot everything was fine. the device went to long hours of deep sleep and the RILJ wakelock was absent. but as soon as i rebooted the device, the RILJ wakelock just wouldnt go. the device has not been in deep sleep since.

maybe it has to do with the sim variations as the build was originally based for single sim variant and the absense of the second sim is causing these wakelocks??

a fix for this is much appreciated...ie whenever u get the time..till then i may have to move back to lollipop:crying:
[Desire 816 Android Development] bigsupersquid:
there's an app that will tell you exactly what app is holding wake locks, user or system.

if you could find out just what is doing it then there's a better chance i can fix it, since i can't replicate it.
[Desire 816 Android Development] TrUE BlUE:
i used wakelock detector and this is wats up.
[Desire 816 Android Development] bigsupersquid:
interesting.

my chl has zero wakelocks from telephony.

can you get me a radio log as root?

adb root

adb logcat -db radio > log.txt
[Desire 816 Android Development] TrUE BlUE:
after my last post, i had restored back to lollipop and after a few hours re-restored to cm13. so this log is only for half and hour on cm13 but the RILJ wakelock is persistent.

hope this helps!
[Desire 816 Android Development] :
There is a different kernel called Gra kernel. Will that work?
[Desire 816 Android Development] shantanu223:
Gra kernel is buggy. Chances are there it might disable the vibration permanently as reported by few users earlier.

Also for cm13 please upgrade to lollipop once atleast for stability.
[Desire 816 Android Development] sahil.bhardwaj:
Guys, Was very busy this week so couldn't follow up with forum, Anything new i missed? [MENTION=2980661]bigsupersquid[/MENTION] Any new rom to test? Some user who are on kitkat and not willing to upgrade, can i share firmware.zip which i got from lollipop ota file?
[Desire 816 Android Development] TrUE BlUE:
[MENTION=6251082]sahil.bhardwaj[/MENTION] yep im facing RILJ wakelock in this rom which has led to me moving back to lollipop..haha..but seriusly this rom is awesome! but battery is eaten up way to fast due to this wakelock. ive added a radio log for d same. please hv a look n suggest a solution mate.

ps. im on the dwg variant..
[Desire 816 Android Development] :
Sure!!!
[Desire 816 Android Development] bigsupersquid:
nothing new, finally got Ubuntu install back up and running with old external drive, resynced cm13, ready to redo device changes from scratch.

haven't done any real work coding since my hard drive crashed.

and 'real life' is trampling hard on my toes right now, doubt I'll have time to fix anything in the next couple weeks.

believe me, I'd much rather be coding and debugging than dealing with the nonsense going on in my non-virtual corner of the world right now.
[Desire 816 Android Development] sahil.bhardwaj:
Checked mine, Only 11 mins out of 14 hours and it was due to proximity sensor nothing from RilJ. Is there any network issue where you keep your phone for long time?
[Desire 816 Android Development] sahil.bhardwaj:
[MENTION=2980661]bigsupersquid[/MENTION] , Do you think flashing this firmware.zip taken from lollipop OTA will update firmware of kitkat users, It has boot.img, hboot_signedbyaa.img and recovery.img in it. (I've removed recovery from it.)

BTW, If anyone is going to try this, You need to flash ROM over it again, else OS won't boot.
[Desire 816 Android Development] TrUE BlUE:
none that i know of :(

just so things r clear, whats d process u followed when u flashed this rom? for me, i had lollipop pac rom before. i clean installd (dalvik cache,system n data) wiped and then flashed dis rom. next the gapps mini 6.0. after initial boot things r fine. deep sleep nd no wakelocks. after i rebooted there was no deepsleep. just nightmares of rilj..
[Desire 816 Android Development] bigsupersquid:
my s-on hboot won't flash anything unsigned by htc I'm pretty sure. wouldn't even flash kitkat ruu because hboot was older than my firmware.

even if it installs i think it has to boot once to write the new firmware, not sure if it needs to get beyond the first part of init.rc or not.

stock ruu is really the safest way to go.

i know it's a pain, i had to do it myself when my lte service went bad, because I'd wiped my stock backup and had to be on current stock to talk to my service provider.

if you're on custom rom any service problems are immediately the fault of your device, kind of like in the usa, one car hitting another from behind is always at fault regardless of the actual circumstances.
[Desire 816 Android Development] Clarkie_955i:
UL/GSM/ Amaysim
[Desire 816 Android Development] bigsupersquid:
Are you running the 12/25 build? The first one was missing the gsm blobs.

I think the marshmallow 12/31 has them included too.