yashsingh1/xdaforums huggingface dataset:
[Desire 816 Android Development] bigsupersquid:
after much prodding they finally bumped me to tech support. credited me back 2Gb data, and triggered a profile update on stock rom that got me not much happening until evening, when I forced anther PRL update (which claimed it did update) that resulted in immediate LTE reception.

I learned that the network settings on this are all boogered up and the only things you can change are the data roaming and home/auto on the system select.

by taking it from home to auto I was able to get sometimes 3g, and at least voice+sms, until my LTE came back online. Now it stays locked to LTE whether home or auto.

Trying to change the preferred network type just throws radio errors. whether or not lte working.

PhoneBase: set Preferred Network Type unknown RAF: 1 12784

though the 12784 varies by which type you try to change it to.
[Desire 816 Android Development] bigsupersquid:
for data leakage

partial solution

settings-data usage-menu button-restrict background data
[Desire 816 Android Development] frank9184:
How do I fix the camera?? It's a terrible bug for me.

Plz!!
[Desire 816 Android Development] sahil.bhardwaj:
Hi All

Yesterday i built a5dwg from Grarak device tree. Camera worked for the first time, but failed after clicking first pic and caused media server to crash over and over again even after rebooting. Built again without camera, No bootloops or media server crash but got 1.4 GB data usage over wifi by "android OS" as other reported. Voice, WIfi, bluetooth and SMS are working. Using SD card as internal storage also working without any issue.
[Desire 816 Android Development] Bandit Development:
Mind sharing your room service XML? I haven't been able to build 13 with Graraks sources.
[Desire 816 Android Development] bigsupersquid:
Google htc desire 816 ruu

get the exe from htcdev site

you'll have to install stock recovery and relock your bootloader to install the ruu

then you can unlock again, install twrp, and go from there

see here for more specifics, but you need the latest htc ruu instead of the ones linked there.

http://xdaforums.com/desire-816/general/ruu-t2952058
[Desire 816 Android Development] sahil.bhardwaj:
Here it is, Please note, I am using kernel and vendor also from Grarak.

<manifest>
<project name="CyanogenMod/android_external_stlport" path="external/stlport" remote="github" />
<project name="Grarak/android_device_htc_a5-common" path="device/htc/a5-common" remote="github" revision="cm-13.0" />
<project name="Grarak/android_device_htc_a5dwg" path="device/htc/a5dwg" remote="github" revision="cm-13.0" />
<project name="Grarak/android_kernel_htc_msm8974" path="kernel/htc/msm8974" remote="github" />
<project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" />
<project name="bigsupersquid/android_packages_apps_SnapdragonCamera" path="packages/apps/SnapdragonCamera" remote="github" revision="cm-13.0-caf" />
<project name="Grarak/proprietary_vendor_htc" path="vendor/htc" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_external_sony_boringssl-compat" path="external/sony/boringssl-compat" remote="github" />
<project name="CyanogenMod/android_hardware_sony_thermanager" path="hardware/sony/thermanager" remote="github" />
</manifest>

If you are facing problem related to camera ext while building, Please copy "camera" and "include/camera" folder from this m8 sources: https://github.com/CyanogenMod/android_device_htc_m8-common/tree/cm-13.0

Along with that if you get bootloops, comment out

# Camera
PRODUCT_PACKAGES += \
libshim_camera \
Snap

from a5-common.mk

Don't enable data as this rom will suck internet with a speed of ~10MB/Minute

I still don't know why do we need to build thermanager as it is crashing in background trying accessing cpu details.
[Desire 816 Android Development] bigsupersquid:
you can also chmod 0000 /system/lib/hw/camera.msm8226.so in recovery after flashing before booting (twrp's file manager works ok) to stop camera related bootloops.

you could try reverting to stock thermanager, Grarak's nice clean tree labels the commits well. it's in vendor and device both.

When I built and tried a5ul from basically the same tree as you've posted, I couldn't get cell service. But that was when my lte was off, which also borked my build's cell service too.

I want to know what's up with the data flow. Still haven't had time to trace it.
[Desire 816 Android Development] sahil.bhardwaj:
I will try this now

Right now doing that

I got the network and data working

I am going to debug today, But i ve lost 1.4 GB already :laugh:
[Desire 816 Android Development] bigsupersquid:
today I switched wifi on and ran tcpdump in terminal.

lots and lots of traffic, two ip's

one resolves to gps. outgoing data only.

http://www.urlvoid.com/ip/72.51.26.219

the other, pings in and gets responses.

http://tejji.com/ip/ip-address-to-url.aspx?ip=54.240.160.61
[Desire 816 Android Development] :
Is Vodafone india sim working? Can you give me the link to your ROM?
[Desire 816 Android Development] JudgeFutta:
This is a great ROM except the Bluetooth issues for me. I can say much for LTE because I use it as a WiFi device.
[Desire 816 Android Development] bigsupersquid:
was your phone updated to htc lollipop at any time before flashing this?

Wi-Fi Bluetooth and touchscreen all seem to have changed a little in the firmware between kitkat and lollipop.
[Desire 816 Android Development] JudgeFutta:
Well, I just tried them again and they seem to work to just fine. Sorry about the wasted post and thanks for the great ROM.
[Desire 816 Android Development] sahil.bhardwaj:
All SIM should work as my airtel worked very well, I would say call quality was better than 12.1 and after all it was built using Grarak device tree and he had resolved most of the issues related to SIM detection and calling. Coming back to ROM, I will be sharing it this weekend, as i don't keep VPS running whole week as it costs a bit high.
[Desire 816 Android Development] bigsupersquid:
as far as the data leak goes, I built 6.0.1 from aosp-caf repo (mostly with a tiny bit extra cm in it for msm8226) and it does not flow out any extra data.

not sharing it cause nfc, gps, browser are broken and 'internal storage is full' from selinux perms.

the point is that it's not a marshmallow error, or even a device folder error most likely, causing the data leak. though it might still be the proprietary gps libs.
[Desire 816 Android Development] tinyface:
micro sd card problems

Every time I try to format my micro SD card so it can be an internal storage it never works it says my SD card is corrupted I can only format it as an external SD card it just says SD card corrupt when I try to make it internal
[Desire 816 Android Development] aftertzf:
Would messing with hosts file at least stop using all your data plan without breaking connectivity?
[Desire 816 Android Development] bigsupersquid:
need to add that to the op, it's been mentioned and verified before.

log says something about f2fs formatting/crypto error.

well, I tried adding the two ip's that were running into the hosts file redirected to 0.0.0.0 but it seemed to ignore that. maybe I didn't do that right.
[Desire 816 Android Development] sahil.bhardwaj:
Hi [MENTION=2980661]bigsupersquid[/MENTION]

I tried making camera work, but i am stuck at one point and need help.

So let me explain what i did.

1. Removed this from BoardConfig

TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY := libcamera_parameters_ext

2. Added extra camera parameters in 'include/camera/CameraParametersExtra.h'.

CameraParametersExtra.h

/*
* Copyright (C) 2016 The CyanogenMod Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#define CAMERA_PARAMETERS_EXTRA_C \
const char SCENE_MODE_TEXT[] = "text"; \
const char KEY_SMILEINFO_BYFACE_SUPPORTED[] = "smileinfo-byface-supported"; \
const char KEY_CONTI_BURST_STATE[] = "contiburst-state"; \
const char CONTI_BURST_CAPTURING[] = "contiburst-capturing"; \
const char CONTI_BURST_CAPTURE_DONE[] = "contiburst-done"; \
const char KEY_FORCE_USE_AUDIO_ENABLED[] = "forceuseaudio"; \
\

#define CAMERA_PARAMETERS_EXTRA_H \
static char SCENE_MODE_TEXT[]; \
static char KEY_SMILEINFO_BYFACE_SUPPORTED[]; \
static char KEY_CONTI_BURST_STATE[]; \
static char CONTI_BURST_CAPTURING[]; \
static char CONTI_BURST_CAPTURE_DONE[]; \
static char KEY_FORCE_USE_AUDIO_ENABLED[]; \
\

as mentioned here and found many followed this to make camera work.

http://review.cyanogenmod.org/#/c/112113/

3. Added Camera wrapper back. Copied from cm-12.1

But I am still getting error saying parameter 'KEY_CONTI_BURST_STATE' not found while camera service is starting even its in CameraParametersExtra.h. Please suggest.

And i am following these changes of AV framework.

http://review.cyanogenmod.org/#/q/camera+project:CyanogenMod/android_frameworks_av+branch:cm-13.0

---------- Post added at 06:32 PM ---------- Previous post was at 06:08 PM ----------

I guess there is some other issue, as I was able to mount my 32 GB SD card as internal in first attempt.
[Desire 816 Android Development] Alanman13:
I'm not sure if 0.0.0.0 will do anything. The typical method for utilizing hosts in this way is to redirect to localhost, so try pointing them to 127.0.0.1. That way, it'll check the phone locally for whatever it is doing instead of from the outside.

Since you cannot have ip 0, that line may be saying "don't do anything to this address". Just a guess on that though.
[Desire 816 Android Development] bigsupersquid:
development and bug repair indefinitely stalled until I can replace smashed pc.

you can thank my ex-partner for the destruction.

//edit: reforming rather than ex, and repentant.

pc replaced and working on upgrade.
[Desire 816 Android Development] aftertzf:
Setup a kickstart, and been there had that done... It DOES get better... ;)
[Desire 816 Android Development] bigsupersquid:
you think people would actually pay up front for rom development?

I guess some, generous users did donate me about $100 total for optimus v rom work between 2011 and 2015... which I thought was pretty good considering how much people like me pay for free software (little, and rarely)

I'd considered something like that before, but hadn't taken the idea seriously.
[Desire 816 Android Development] bigsupersquid:
I think the boardconfig line is needed but I can't test to check until I dredge up another build machine.
[Desire 816 Android Development] Alanman13:
Little scared to find out, but how smashed? I hope at least your hard drive is salvageable...
[Desire 816 Android Development] bigsupersquid:
the hard drives were both dangling rather than mounted, so maybe shocked.

limited amount on the internal at least, mostly on an external that wasn't in the same place. and it'd be more issue with the days of re-sync over slow isp than code loss since I've learned better about git, and even use it sometimes when I should.

I'm just not willing to pay for another pc yet. the last one was old, underpowered but at least 64 bit; free and using my ubuntu dev install drive from the previous expensive one I killed by overheating it.

the second drive came with the free pc, 500 crunchy Gb for ccache.

I'm only concerned about ubuntu drive cause it's got couple years personal stuff on it. I can reinstall anything else.

once my miserly side accepts the cost of a new pc that is. took about seven months to find the free one, and I wasn't close yet to paying again at that time.
[Desire 816 Android Development] bigsupersquid:
rejoice ye who care, for another ancient relic 64bit pc hath fallen unto me...

with a couple shiny new parts, and all my old data remaining intact.

once I find me a decent price on a replacement for a shorted gigabyte "bulletproof" motherboard I've got a nice cpu and my old 16Gb RAM waiting to drop in for decent specs later.

so now I can build again. not super fast but it'll do it.
[Desire 816 Android Development] GreyCelt:
WOOHOO! Great to hear!

Sent from my HTC Desire 816 a5_chl running Unofficial CM 12.1 ? on Virgin Mobile USA
[Desire 816 Android Development] Bandit Development:
Just wanted to let you all know that I have received an Honor 5X for an XDA contest, so I'm getting rid of my HTC 816.

Thanks for all [MENTION=2980661]bigsupersquid[/MENTION] and [MENTION=4443334]Grarak[/MENTION] 's work for this device. All the devs here really improved my device. Thanks everyone! :)
[Desire 816 Android Development] bigsupersquid:
congratulations!

enjoy your new toy.
[Desire 816 Android Development] bigsupersquid:
So an update on the data usage.

Disabling gps.default.so (chmod 0000) stops it.

Shows up as CM Settings Storage in "my data manager" monitoring app.

This happens with grarak's device tree too.
[Desire 816 Android Development] GreyCelt:
Does disabling that also disable gps functionality?

Also, will replacing the gps.default.so file with one from the LP build or another build fix the data problem?

Sent from my HTC Desire 816 a5_chl running Unofficial CM 12.1 ? on Virgin Mobile USA
[Desire 816 Android Development] bigsupersquid:
unfortunately yes.

It's already a vendor prebuilt.

Just not sure why it does that in cm13 and not 12.

Google has not been helpful.

My only clue so far is that file sometimes breaks first boot.
[Desire 816 Android Development] bigsupersquid:
Sweet.

Building gps.msm8226.so from device Motorola msm8226-common replaces gps.default.so functionally, and looks quieter with a quick tcpdump on WiFi with GPS running.

//late edit: turns out was a dirty build that made it work, but fished a couple more proprietary blobs from stock and gps isn't leaking data anymore.
[Desire 816 Android Development] Addymore:
Good

Good to hear....! Hope to see a well running CM 13 on htc desire 816.....
[Desire 816 Android Development] sabetta:
Just wanted to throw a big "Thank You" out to bigsupersquid for all his hard work trying to bring us all up to marshmallow! Seems like we're becoming a dying breed with the a5-chl ! At least someone still has love for us! If there is some way I can help (preferably w/out blowing my data alotment, lol) let me know!
[Desire 816 Android Development] bigsupersquid:
Two things, one good news, one not so much.

Good news first, most recent build (from slightly modded grarak tree) with a couple extra gps blobs traced by

http://xdaforums.com/showthread.php?t=2794413

isn't leaking data. Still no camera though. And can't verify LTE since it hasn't worked much in my area for a good month.

Not so much good news; I still can't help you who run dual sim or gsm models...

Remote testing, frankly, bites, and I don't have either of those devices for direct debugging, or the time to mess with units I don't have around.

Best I can do will be separate builds from grarak's trees for ul/tl and dug/dwg which I can't fix most issues with. Not necessarily as often as chl builds.

Direct support, still, for virgin usa chl, since I use it and can fully test for it.

I will upload a fresh ROM within a day or two.
[Desire 816 Android Development] bigsupersquid:
So, here's a surprise teaser...

Turns out that with grarak's camera shims and killing cameraservice's knowledge of the flash, you get...
[Desire 816 Android Development] bigsupersquid:
After a day of testing, no data drain at all. Browser is the big data hog now.

GPS works fine.

data doesn't readout as lte but is still faster than I'm used to on 3g, so maybe is just an eri.xml glitch or something. Or fast 3g which is plenty acceptable around here.

Camera works, front and back and flash too (even though I had to bypass flash detection in framework to stop the mediaserver respawning.)

Sdcard as internal storage works now.

Thanks to [MENTION=4443334]Grarak[/MENTION] for suggesting use of his device tree and for patching up the camera. Except for a few missing proprietary blobs and a couple other files, most everything that is now fixed which was broken in my builds is due to his work.

Later tonight should have a fresh Virgin Mobile US chl build uploaded. Other versions (one for ul/tl, one for dwg/dug) based straight off of Grarak's trees as soon as I'm able, tomorrow is an over-the-table workday.
[Desire 816 Android Development] Grarak:
Congrats for fixing camera. I am currently busy getting official cm on oneplus 2. You can maintain the 816 as official cm maintainer if you want. let me know
[Desire 816 Android Development] bigsupersquid:
bump for new chl release with camera
[Desire 816 Android Development] vip1327:
Everything is working like charm

*Camera is working

* GPS is fast to connect

* Rom is smooth

* Ram usage is very low

Cons

* Not getting good data speed just 50kbps against 170kbls in cm12. 1 unofficial

Pls guide how to use sdcard as internal storage
[Desire 816 Android Development] bigsupersquid:
settings>storage>select external sd card>three dot menu button on top right>settings>format as internal

or eject and reinsert the card, and follow prompts
[Desire 816 Android Development] vip1327:
Thanks bro

Rom is working great

Data speed is normal now
[Desire 816 Android Development] ajones23:
So can anyone say that this could be a daily ROM or not.
[Desire 816 Android Development] bigsupersquid:
I was daily drivering it as soon as the camera was up, since it was the last big bug after the data flow problem.

I've had maybe a little stutter or two in the browser that were corrected with sleep/wake, but no ui glitches or reboots.

apps have fc'd but not system ones.

eng build flashes the red outline in bursts but not really often like my old OV with KitKat. eng doesn't show other problems.

user build forces selinux enforcing. mostly works except camera doesn't then. so there's still a bit of work to do.

this is userdebug build, and selinux permissive. works good for me.

I bumped the OP to say beta instead of alpha since it seems to be pretty much working now.
[Desire 816 Android Development] ajones23:
Alright,just got v4a working on ur 5.1 build,and all seems great. I might give it a try this weekend. If I had the time and PC I would try and build. Thanks for all your hard work.
[Desire 816 Android Development] sabetta:
I installed Rom and pico gapps everything seems to be working except that there is no cell activation. In settings it says cellular disconnected, is there something more I need to do to activate it on my account? It's virgin mobile a5-chl, updated to lp ruu coming from reserection remix 5.1.1
[Desire 816 Android Development] bigsupersquid:
odd. you clean flashed?

that setting is mobile data... if wifi is on that disconnects.

does it say something for cellular network type and service state?

can you call/sms?

i may need a logcat -b radio for more information but dunno yet.
[Desire 816 Android Development] bonczas:
I can confirm that the most recent build is working fine on A5_UL version. To be honest I am shocked as I never managed to get calls and sms working on any 12.1 build.

It even found LTE.

Now going back to backup - going to test more in the evening as I'm at work now.
[Desire 816 Android Development] sabetta:
yes clean flashed 3x, mms works no mobile data. I've never done a logcat, I read a post and opened a com. prompt in adb, shows device connected, entered adb logcat -b radio.txt all I get is waiting for device? now I got unable to open log device radio.txt
[Desire 816 Android Development] bigsupersquid:
mms uses mobile data. that's really weird.

can you check the md5sum of the zip against the download info on afh?
[Desire 816 Android Development] sabetta:
md5 is green.

seems odd, connected and not with wifi turned off. Did I do something wrong trying to get the logcat? I also tried change apn app that I was using on R.R. 5.1.1 and it didnt work as it did on R.R. Also cellular networks/ carrier settings - the process com.android.phone has stopped
[Desire 816 Android Development] sahil.bhardwaj:
Hi [MENTION=2980661]bigsupersquid[/MENTION], Can you suggest me the device trees you used so that i can build one for a5dwg dual sim and share?
[Desire 816 Android Development] tatono:
when making a call the phone restarts, it happen to you ??

I have the a5_ul
[Desire 816 Android Development] bonczas:
Nope, although I called a friend only once then restored my backup.

Does this happen every time or randomly to you ?
[Desire 816 Android Development] bigsupersquid:
the only settings that do anything on that page are data roaming and system select. and carrier settings always fc.

try adb root before logcat. I've had problems with logs unless being root.

and you might wanna pull your screenshot (includes mobile #)

for dwg

basic cm13 repo

Grarak/android_device_htc_a5dwg

should pull in the other dependencies at lunch.

my chl changes aren't pushed to github yet, pc been down over a day now.

not me. can you grab a logcat (as root, logcat -db radio main system) for more information?

did htc ever release lollipop for the dwg? if so, is your firmware up to date from official lollipop? i seem to remember issues with people finding dwg lollipop firmware.
[Desire 816 Android Development] sahil.bhardwaj:
No worries, I just flashed your "ul" rom, copied all the camera related .so from lib, Installed the 'dwg' rom i built from grarak source two weeks back and replaced camera libs, Camera working smooth. But didn't get anything related to gps except gps.default.so :good:
[Desire 816 Android Development] bigsupersquid:
cool. the gps blobs i added are mostly unrelated qc names.

the ril related blobs i added are probably wrong for dwg anyway.

might watch your data usage.
[Desire 816 Android Development] sabetta:
I enabled apps and adb in root phone settings, or do you mean type adb root in computer command prompt
[Desire 816 Android Development] bigsupersquid:
adb root on the pc.

there might possibly be personal stuff in the log (maybe not but radio likes to list numbers) so you can pm it if you want
[Desire 816 Android Development] ajeshmanu:
deleted

---------- Post added at 06:13 AM ---------- Previous post was at 06:09 AM ----------

Yes...htc released lollipop update a long time ago for DWG(indian). mine was on kitkat rooted,SVHD rom for about 1 yr.i recently reverted back to stock lollipop successfully using RUU zip...(just relocked and flashed ruu zip from hboot)
[Desire 816 Android Development] vip1327:
Facing force closure while using facebook n messenger app any fix for them was working perfect in cm 12.1
[Desire 816 Android Development] sahil.bhardwaj:
GPS data leakage is still there for me, Don't know what file i should replace. Currently, I have disabled gps.default.so.
[Desire 816 Android Development] shantanu223:
Hi Sahil,

As per your previous post are you using cm13 on A5dwg? can you please share how didyou make it work
[Desire 816 Android Development] tatono:
I have reinstalled and now if goes well
[Desire 816 Android Development] bonczas:
Don't know if anyone else will experience this but facebook, messenger and snapchat didnt work for me. I had to download versions from last year. Most recent snapchat version working is 9.18.x. Facebook and messenger were from November 2015. If i update them or install newer versions they fc on start.
[Desire 816 Android Development] frank9184:
I tested at a5ul device ,and i feel this rom is smooth.

I find some bugs like

LiveDisplay doesnt work

Cant choose internet conntaction like 3G or LTE

Camera low quality,and not have 10MP 16:9

nfc doesn't work

Keyboard choose word laggy?

Can't download file to sdcard like stock rom

This might not a bug ,but i recommend u

Torch app use last kitkat build or just remove it ?

The last kitkat build is more material !

Thanks