yashsingh1/xdaforums huggingface dataset:
[Desire 816 Android Development] bigsupersquid:
my mms is OK on virgin mobile, and bt seems OK. I'll leave it on a while, then try to pair stuff and toggle it on and off to let you know.

over two hours, bt still on, pairs/forgets/pairs again/ fine, toggles off/on and reconnects automatically.

anyone with hardware issues:

I had another user update their firmware to lollipop to get around touchscreen problems with this rom and it worked.

I will add that to the OP with more info from users to verify the firmware needs to be updated. My htc evo 3d is certainly picky about its firmware and rom combinations.
[Desire 816 Android Development] bigsupersquid:
according to pdadb.net,

Pixel density (dot pitch):	266.4 pixel/inch (0.09533 millimetre/pixel)

I haven't checked the original build.prop to see what htc set it at.
[Desire 816 Android Development] bigsupersquid:
while I'd like to help with that, but I don't have the hardware to test on; without that there's too much guesswork. Google isn't much help, implies RIL patch based on other phones with same issue. Sorry. I'll add the info to the OP though.

This seems stable to me, actually haven't had one random reboot yet, or other noticable hiccup. Way better than the kitkat I daily drivered on my old optimus v.

Now if I decide to play with marshmallow, and actually get it booting, that would be proof of concept/alpha most likely.
[Desire 816 Android Development] exProphecy:
Does this have the issue where Bluetooth turns off randomly while on and it becomes unable to be reenable until reboot? Cuz that's my only issue with cm12 so far
[Desire 816 Android Development] bigsupersquid:
I'm not having any bluetooth problems at all. but I haven't done much more than test it to be sure it works, either. I'll leave it on longer and see if it drops out.
[Desire 816 Android Development] leeb0z:
I can't keep mobile data going...I'm on VM but apparently where I'm at the switching between 3G and 4G makes it angry...
[Desire 816 Android Development] :
[MENTION=2980661]bigsupersquid[/MENTION] can you upload dwg ROM on another site? Android host not worSking!!:(

SOORY WRONG POST !!

IGNORE!!
[Desire 816 Android Development] MuadAgo:
Phone: a5_chl Virgin Mobile US Desire 816

Installed: ROM, open gapps 5.1 (latest) (clean install)

This ROM is great, my phone was almost useless with the stock ROM.

Some issues I have with this ROM:

- When losing signal (usually taking the elevator to office), the phone reconnects, I can make calls but the phone doesn't reconnect to mobile data (I have the signal icon with an exclamation mark next to it, still saying "Virgin Mobile".) I usually have to turn on airplane mode, wait 5 to 10 minutes, turn airplane mode off and it reconnects. Sometime it doesn't.

- When playing music with bluetooth headphones, bluetooth stops working after a minute or two. Bluetooth is turned off, impossible to turn it back on. I have to clear Bluetooth Share app cache but the same issue reoccurs after a minute or so of playing music. It seems to happen more frequently when music is played from Chrome than from Google Play Music.

Does anyone have the same issues or managed to fix them?

Thanks.
[Desire 816 Android Development] bigsupersquid:
I've had connection problems with virgin mobile data for many years on different devices.

the device agnostic solution you already discovered, the toggling airplane mode on and off, usually works for me after about fifteen or thirty seconds of airplane mode on. when it does work, which it doesn't always.

Bluetooth, had been reported, i haven't experienced it myself and will have to test to get more information. I've mostly used it for keyboard/mouse rather than audio. I've noticed a pretty consistent disconnect after several minutes of not using the keyboard, but not while using it.

it's possible a newer build might fix both of those but I'm still not set up again yet.

//edit: so, testing bt audio, couldn't get the device to drop connection over about thirty minutes (browser, YouTube app) but my phone itself got something clogged up and started badly glitching and delaying A/V whether internal speakers or bt.

reboot fixed the glitching. bt wouldn't cut out for me in the short test period.

i do have other bt audio devices that this phone just won't see but other Android devices do.

i remember on the Optimus V the kernel had to be upgraded from 2.6.35 with multiple backports to 3.0.8 experimental for bt to work right past jellybean.

need to grab the new kernel source from HTC (if they've dropped it yet) for MM and see if they fixed up any drivers.
[Desire 816 Android Development] thoctor:
I just go into mobile data then access point names and toggle the bottom non LTE one and it starts up the LTE data above it. It's a known glitch with this phone and this ROM. I just have to do it every once in a while and the Bluetooth issue dropping seems to be an issue but I've only had it do it when I'm not at home for some strange reason. A reboot fixes it for me but I don't use Bluetooth much so for a heavy user it could be a pain. The benefits of this ROM to me outweigh these and a couple other minor issues but I also have S off and use Link2SD to expand my storage so I'm going to stick with this ROM I believe.
[Desire 816 Android Development] rakibkhan30:
I've flashed cm12.1 today and got touch problem.

I'm having a great touch problem.

My device is a5chl

HTC desire 816 v

Please
[Desire 816 Android Development] bigsupersquid:
sounds like you have kitkat firmware.

if you haven't, you need to update to official lollipop from htc before using cm12
[Desire 816 Android Development] rakibkhan30:
how can I update to official lollipop?

as I am new on this..

but I have the experieence to install the cm12 and used it for 4 months...

-thank you
[Desire 816 Android Development] bigsupersquid:
easiest way is to restore an unrooted stock backup, replace recovery with stock, relock your bootloader, and update from the settings menu.

otherwise you've gotta download the lollipop ruu from htc, and flash it through fastboot after restoring stock backup, stock recovery, and re locking bootloader.

last option is to extract img file from ruu by attempting to run it and grabbing the file out of temp directory after it unpacks. then, again, restore stock backup and recovery, lock bootloader, put img file on sdcard with correct name and reboot into bootloader, which will flash the img.

there should be guides in this forum with more detailed instructions
[Desire 816 Android Development] rakibkhan30:
sir,

thank you for your help.

but it is quite hard for me.

it will be easy if I get back to cm12.

my device is rooted. is it possible to get back to cm12???

if have another question

- in my country bangladesh can I use sim card in this mobile. since I have got this mobile I can't use any sim and it says no service

our network providers are all 900,1800,2100 Mhz

in our country we have only one cdma network with 800Mhz.

your valuable answer will be my great luck

thank you..
[Desire 816 Android Development] bigsupersquid:
can you find the APN settings for your carrier?

they should be available somewhere.

the sim you tried probably isn't recognized because of a missing APN in /system/etc/apns-conf.xml

just guessing though.

as far as reverting to cm12, you should be able to do that in recovery with the zip file of the version that worked for you before. just use the factory reset option in twrp before flashing the rom .zip file.

if you're really stuck you should restore the backup you made of your stock system before installing a custom ROM. the first step after installing custom recovery should always be to make a backup of the factory software. and store a copy somewhere safe, cause it's very inconvenient to lose it. i often do, and it's hard to get back to stock after that to deal with telephone customer service or the manufacturer updates.
[Desire 816 Android Development] rakibkhan30:
thank you

thank you for your valuable answer sir.

but I couldn't understand the 2nd answer..

the fact is, "can I use gsm 900mhz sim card for call and sms??"

obviously it is a cdma mobile. but is there any way that I can make my mobile gsm supported...???

sire please help I cant use(call and sms) my mobile since my father took it from US.
[Desire 816 Android Development] bigsupersquid:
ah

probably not

sorry
[Desire 816 Android Development] bigsupersquid:
new build with june 1 security patch uploading now
[Desire 816 Android Development] ajones23:
Lastnite I flashed this Rom. And haven't had any problems also on VM,data works fine. Flashed ROM first then APN fix and then gapps. Thanks for this great ROM.
[Desire 816 Android Development] the_Victorian:
The whole community would definitely appreciated if you messed with marshmallow for sure ;) thanks for your work Sir. Been running this for 3 days with gapps and capps, and no APN fix. The data has to be toggled once in a while, but everything else is great!
[Desire 816 Android Development] Shedal:
Any idea why I might be having this error when installing the cm-12.1-20151215-UNOFFICIAL-a5.zip?

assert failed: run_program("/tmp/install/bin/variant_script.sh") == 0

E:Error executing updater binary in zip '/sdcard/cm-12.1-20151215-UNOFFICIAL-a5.zip'

http://i.imgur.com/O6OaqZs.jpg?2

I have wiped data before installing (Wipe -> Advanced Wipe in TWRP, wiping Dalvik, system, cache and Data).

Also, I don't know which exact edition of HTC Desire 816 I have. I only know it has one SIM card. Is there a way to find out?

UPDATE: OK, the actual error I'm receiving in the log is this:

can't cd to /system/blobs/gsm/

...
[Desire 816 Android Development] Bandit Development:
I believe when you enter fastboot your exact model will be listed somewhere in the top 1/3 of the screen. That's where I found my exact number anyway.

Hope it helps.
[Desire 816 Android Development] Shedal:
I see this code in variant_script.sh:

case $modelid in

0P9C30000)	variant="chl" ;;

0P9C50000|0P9C51000|0P9C70000)	variant="dualsim" ;;

*)	variant="gsm" ;;

esac

Since the error I'm having is "can't cd to /system/blobs/gsm/", it means that "gsm" was chosen as the variant, so my model is neither of these: 0P9C30000, 0P9C50000, 0P9C51000, 0P9C70000.

Then there's this code:

basedir="/system/blobs/$variant/"

cd $basedir

In the package, under /system, I don't even see a directory named "blobs". Please explain, how is this supposed to work? I'm new to the Android world :)
[Desire 816 Android Development] Bandit Development:
I may be wrong, but I think it looks like your device model is A5_CHL.
[Desire 816 Android Development] Shedal:
I saw it on the fastboot screen. It's A5_UL. Thank you!
[Desire 816 Android Development] bigsupersquid:
turning airplane mode on and off to reset non working data connection has been a mobile data requirement in my area since first getting a virgin mobile phone five years ago.
[Desire 816 Android Development] bigsupersquid:
shouldn't need apn fix, it's built in, but it won't hurt anything to flash.

glad I'm not the only one enjoying this. y'all have fun.
[Desire 816 Android Development] bigsupersquid:
do you have the official latest twrp installed? wondering if your recovery is reporting your device props correctly.

can you put the whole recovery.log on pastebin.com and post the link it gives you? then I'll look.

and another question, was your a5 updated to lollipop official before putting on twrp? that may make a difference.
[Desire 816 Android Development] Shedal:
I have twrp-2.8.7.0-a5.img, which is the latest, according to https://dl.twrp.me/a5/

By the way, if you have any ideas as to what I should check/log from the .sh files, I can easily do that myself. I'm proficient with the shell and unzipping/zipping the update package ;)

---------- Post added at 01:59 PM ---------- Previous post was at 01:39 PM ----------

Before these lines:

basedir="/system/blobs/$variant/"

cd $basedir

I added this line:

find /system/ -type d

Here's the output:

/system/

/system/lost+found

There is no "blobs" directory, regardless of the modelid. Any ideas, bigsupersquid?
[Desire 816 Android Development] bigsupersquid:
grab your recovery.log after failed flash and put it in pastebin.com, then post me the link here
[Desire 816 Android Development] Shedal:
Here's my modified variant_script.sh. I only added some echos and that find that lists folders under /system/: http://pastebin.com/yvvPZx3U

Here's the log: http://pastebin.com/FpgBmv97

---------- Post added at 03:00 PM ---------- Previous post was at 02:08 PM ----------

I installed the ROM by commenting out these lines:

chmod 755 bin/*

find . -type f | while read file; do ln -s $basedir$file /system/$file ; done

Now I have CyanogenMod installed, the only issue is that it doesn't see my SIM card. I would really appreciate your help here.
[Desire 816 Android Development] bigsupersquid:
glad you got it installed. took some tweaking...

this bit in variant_script.sh,

case $modelid in
0P9C30000) variant="chl" ;;
0P9C50000|0P9C51000|0P9C70000) variant="dualsim" ;;
*) variant="gsm" ;;
esac

echo "variant: $variant"

bugs me.

add echo "modelid: $ modelid" before the echo variant line and see what it is.

bet it's not in the list. so it defaults to gsm; the ' *) variant="gsm" ;;' is a fall through.

the sim card, with the last official cm nightly, I got the same thing until putting in an apn fix for virgin mobile. yours probably needs a different apn list.

//edit: found this post in a search, http://xdaforums.com/showpost.php?p=64056750&postcount=1263 in grarak's cm12.1 thread, for the ringplus carrier apn. who's your service provider?

help me hash out these issues, we can fix it so others with the a5_ul can use this without needing to be adb and terminal savvy.

oh, and I mostly wanted the very beginning of the recovery.log, so I can see what it says about your _ul.
[Desire 816 Android Development] Shedal:
The model number is already in the log: 0P9C20000

My service provider is Mtel/Mobitel (Bulgaria).

Will check the apn stuff when I'm home.
[Desire 816 Android Development] bigsupersquid:
Google says that mtel/mobitel is a gsm carrier.

I'll have to see if the device builds any gsm parts, it might not, but it should since cm thinks it'll work with the _ul.

ha, didn't see the device id in the log but do now that you mention it.
[Desire 816 Android Development] leeb0z:
She has settled down now...its gotten better [emoji3] On another note... I was having issues with Bluetooth staying connected to my car and pebble watch... Turning off WiFi to keep it from constantly scanning when not near my home base has corrected the conflicts and Bluetooth stays connected without issue now.
[Desire 816 Android Development] exProphecy:
Just in case you folks need visual voicemail: https://app.box.com/s/sm80o9sbr4bf10dcc2m4urs24f1r62ja

:D
[Desire 816 Android Development] GreyCelt:
Flashed this today and so far having no problems whatsoever!! I also installed Xposed and all my modules that I was using on my previous ROM and have had no problems.

I'm on a5_chl on Virgin Mobile USA. I had previously updated my firmware to Lollipop a few months ago when I set-up the Insert Coin ROM on my 816, so that was already done.

Data and WiFi are working fine. I do have to toggle my data off/on to get it to work sometimes but that's no different from when I was running Insert Coin or Resurrection Remix.

I haven't tested Bluetooth yet so I can't report on that.

To the OP...

I really, really, REALLY hope that you continue to develop this ROM for the foreseeable future as we have lost development on the other two decent ROMs we had for this phone.

Furthermore, I SO HAPPY to hear that you are considering working on Marshmallow for this device when it comes out. I was really dreading the thought of having to revert back to stock in order to get 6.0 on my Desire.

Thank you, thank you, thank you!!!
[Desire 816 Android Development] bigsupersquid:
any luck? I'm curious. there's definitely _ul specific code in the device folder init. seems like there should be a way to get it to work
[Desire 816 Android Development] Alanman13:
Still running stock on mine. Build.prop shows ro.sf.lcd_density=320.
[Desire 816 Android Development] Bandit Development:
OK, thanks for the info.

320 still seems large to me, so I resized to 260.
[Desire 816 Android Development] Shedal:
Sorry for the delay. I'm preparing for a vacation trip, so I'll be gone for a week from tomorrow post noon.

In the post you've linked, the problem seems to be that the Sprint carrier was not in the apns-conf.xml.

On my device, the operator (M-Tel) is in the file. It has the right MCC code (284), so I assume this is not the problem.

Also, my phone doesn't even see the SIM card. At all. When I put it into the phone, nothing happens.

So I assume the real problem is that I commented out those failing lines in your shell script.

Do you have any idea as to why the lines were failing?
[Desire 816 Android Development] frank9184:
I tested it with my a5#ul device.

It works better than garark's build.

No mms bug,touch screen works fine.

LiveDisplay doesn't work
[Desire 816 Android Development] bonczas:
Does sms/calls work ?
[Desire 816 Android Development] frank9184:
I didn't test phone call.

But mms works fine.

I took some photos in camera app

,photos looks worth that stock rom

It's the only bug with all cm build
[Desire 816 Android Development] bigsupersquid:
Thanks, but that's not my fault.

Just upstream fixes.
[Desire 816 Android Development] frank9184:
Camera Buggy

Can you fix camera ??

Photos don't look like a 13MP camera

Everything works fine

~~~~~Works in a5#ul I tested ~~~~

Phone call OK

MMS ,SMS OK

NFC,Bluetooth OK

Touchscreen OK

Speakers OK

Camera OK ,but buggy

WiFi OK

~~~~~~~~~~~~~~~~~~~~~~

Also Great Job sir!!
[Desire 816 Android Development] bonczas:
Camera is CM bug so probably it cannot be fixed. I am using official htc camera on CM. Just google HTC Camera apk, install it and the same with gallery, because without HTC gallery camera won't save pictures.
[Desire 816 Android Development] Bandit Development:
Can you set the HTC camera to save photos to SD card? I couldn't find that option. If you can, do you mind sharing a link to the apk you use? Thanks.
[Desire 816 Android Development] frank9184:
Try this one:fingers-crossed:

https://drive.google.com/file/d/0B4yi7qYtkploVXl5OW0zOUJoVzg/view?usp=docslist_api
[Desire 816 Android Development] Bandit Development:
Just tried that, and it tried (and failed) to install over the stock CM camera.

Are you sure that's a HTC camera?
[Desire 816 Android Development] ajones23:
I might have the HTC m9 camera that will work for you. I will try to upload a link.
[Desire 816 Android Development] Bandit Development:
Thanks! Does the HTC M9 camera have SD card saving ability? That's what I'm missing in the current HTC I have.
[Desire 816 Android Development] ajones23:
Yes I believe so. This is the one I use.

---------- Post added at 07:46 PM ---------- Previous post was at 07:39 PM ----------

https://drive.google.com/folder/d/0BxdqG-DvH087TWRjcnlTNEdSdVk/edit He you go,flash camera first then ressolution patch second. In recovery.
[Desire 816 Android Development] Bandit Development:
The CameraPort zip fails to download on mobile, but I'll try sideloading with PC.
[Desire 816 Android Development] ajones23:
Sorry,i may have to go to my Computer. I will retry,give me 5 or 10 min.
[Desire 816 Android Development] Bandit Development:
Wait, it downloaded fine, I flashed but the camera does not have the SD card save feature. Thanks anyway for trying.
[Desire 816 Android Development] ajones23:
Wow,sorry I knew it had it. All my photos get saved to SDcard.
[Desire 816 Android Development] Bandit Development:
Is it just me, or does the camera seem very poor in CM regardless of the camera app used? I tested CM, Google, HTC and Open Camera, but they all gave sort of blurry pictures.

Can anyone tell me if the camera is better with stock rather than an AOSP ROM? Thanks! (If nobody has an answer, I may run a test between stock and AOSP.)

---------- Post added at 02:11 AM ---------- Previous post was at 02:09 AM ----------

To clarify, I mean the external SD card. Also, I had a HTC camera previously installed, so that may have influenced the zips you gave me.
[Desire 816 Android Development] ajones23:
That's possible,I flashed mine with a fresh install of this ROM. I never liked the stock camera anyway. Let me take some pics. And let you know.
[Desire 816 Android Development] Bandit Development:
My main interest right now is how fast the camera app takes the photo. Google Camera takes a very quick photo and the pic isn't blurry, but other cameras are slower.

Do your pictures take a 1/3 sec to process from the photo button capture press?

Thanks.
[Desire 816 Android Development] ajones23:
Well I took some pics a little blurry,but never seen it before. They take very quick and process fine. My PC looks blurry,maybe patch resolution is not needed. See pic.
[Desire 816 Android Development] Bandit Development:
Yeah, that's about the level of blurriness I get from almost every photo from either CM camera or Open Camera.

Google Camera works OK, but doesn't have an SD Card Save option.

I plan on running a camera test with 4 different camera apps between stock and CM, and I'll post the results so anyone else having issues with the camera might be helped.
[Desire 816 Android Development] bigsupersquid:
Looking into sultanxda's snapdragon camera.

Might also check media_profiles.xml for proper resolutions vs stock.
[Desire 816 Android Development] bigsupersquid:
Snapdragon camera does work.

You camera users must test it. Me, it's like a tone deaf person trying to distinguish between a Tandy stereo and a Denon.

I ganked zip from another thread

http://xdaforums.com/yureka/themes-apps/flashable-snapdragon-camera-v2-t3189679

And 'fixed' the zip to install on this ROM.

https://www.androidfilehost.com/?w=files&flid=46051

Give it a spin and report.

Oh, there's a lot of settings, but storage; only internal or usb-otg. I'll look into building the app and see if that can be fixed.
[Desire 816 Android Development] Bandit Development:
Do we just need to flash the zip you made? I flashed, and don't see any new camera app or anything.
[Desire 816 Android Development] GreyCelt:
Yes, flash it. Look for "Snapdragon Camera" or something like that.
[Desire 816 Android Development] Bandit Development:
Ah, OK. I didn't know that app was named Snapdragon Camera.

[MENTION=2980661]bigsupersquid[/MENTION] I think the camera you provided is better. It takes higher quality photos, and it CAN save to the SD card.

Does anyone agree that their HTC Desire 816 does not focus quickly when taking pictures of moving objects? I found that a different device, like say an iPod, takes about the same res pictures but focuses much quicker.
[Desire 816 Android Development] ajones23:
I downloaded and flashed snapdragoncamera,works fine. No blurry pics or videos,compared those pics from lastnite,much better. Thanks bigsupersquid.
[Desire 816 Android Development] bigsupersquid:
I'll see about adding snapdragon camera to the build from source since it seems to work better.
[Desire 816 Android Development] Bandit Development:
Also, I think it would be helpful to add the optional .zip to the OP so that people have that Snapdragon camera option too.

Thanks for your work on the camera!
[Desire 816 Android Development] bigsupersquid:
Again, I just borrowed the work of others except for patching the updater-script and zip structure. You're all welcome, though.

I considered adding it to the OP, now that it's been tested a bit I'll do that.
[Desire 816 Android Development] bigsupersquid:
So, I was wondering, did you check the md5sum on the zip before flashing? Maybe it was just corrupted enough to drop the gsm core files.
[Desire 816 Android Development] Bandit Development:
OK, so I was using the Snapdragon Camera a bit today and noticed that it freezes sometimes after taking a picture. Anyone else noticing this?

[MENTION=2980661]bigsupersquid[/MENTION] Did you say that you are working on another version of the zip to flash, or have you finished all you plan to do with the Snapdragon Camera?