yashsingh1/xdaforums huggingface dataset:
[Desire 816 Android Development] GreyCelt:
[MENTION=2980661]bigsupersquid[/MENTION] Could we just use an app like Selinux Mode Changer to change it to permissive? I've had to use that in the past on other ROMs to get things like Viper4Android to work that requires permissive.

By the way, I'm going crazy right now because my home Internet went out Saturday so I don't have WiFi to download the new build. ???? I could use LTE but I don't wanna kill my data cap for the month. It's killin' me not being able to download this! :eek:
[Desire 816 Android Development] bigsupersquid:
so I built new boot.img with modified sepolicy.

should allow supersu, viper4android both in sepolicy now without permissive selinux mode.

you can fastboot boot it or fastboot flash boot it...

one quirk:

built with Vynikal's fork of JustArchi's optimized build flags, with UBER arm-linux-androideabi-5.3 and arm-eabi-5.3 toolchains.

since I'm unofficial, and amping things up (I like to experiment.)

cm13 defaults are gcc 4.9 instead of 5.3. Everything still seems to work, but the kernel can make things... interesting... if it's not in tune.

try it out, should solve your supersu and viper issues anyway.

//edit: the zip isn't flashable, extract the boot.img

you can also flash the boot.img in twrp 3.0.2 without fastboot
[Desire 816 Android Development] bigsupersquid:
I wondered about mode change apps but went with the real deal sepolicy fix instead. If it works.

pfft, I uploaded the whole rom with usb tether over 3g, because my landline ISP bites and was too glitchy from wet weather to hold an upload. It did hit my data cap. but I haven't been able to use LTE for months cause the service here is lame, and 3g doesn't slow down much after being capped. A little.

plus I wanted it tested, and released.
[Desire 816 Android Development] ajones23:
Thanks I'll try it out,got everything else working. So smooth,I tried to build weeks ago but failed. My PC won't work. Thank you.
[Desire 816 Android Development] bigsupersquid:
no big deal. had to test the new toolchains before a full rom build anyway.

supersu installs without twrp, after the patch.
[Desire 816 Android Development] ajones23:
I think once I figure this out,I'll install this on my sons phone. Tomorrow I will try it out. Let you know.
[Desire 816 Android Development] GreyCelt:
[MENTION=2980661]bigsupersquid[/MENTION] I'm assuming because this is a new build based on new toolchains and what have you that it should be a clean install and not a dirty flash over the old build.

I should, hopefully, (fingers crossed) have my WiFi up tomorrow because CenturyLink is supposed to be here tomorrow and fix it. Then I'll be able to download and test.
[Desire 816 Android Development] ajones23:
Yeah always with a new build clean flash,wipe everything. Sorry your internet is out,that sucks. All seems fine,have to try Bluetooth tomorrow at work. I can say very clean build.
[Desire 816 Android Development] frank9184:
I wonder why after 1 day using MMS don't work at all~

(I Mean the Facebook MMS couldn't receive)

By the way,i felt wifi hardly connect

Any solutions?

Thank
[Desire 816 Android Development] bigsupersquid:
new build old toolchain.

next build and experimental boot.img for super su and viper, new toolchain.
[Desire 816 Android Development] bigsupersquid:
dirty flash breaks my mms, has to be clean flash to work. Facebook, i don't know. don't use it. no account.

my wifi is OK unless too far from router then it gets wanky.
[Desire 816 Android Development] bigsupersquid:
new build (20160706) is uploaded.

using justarchi's optimisations and gcc 5.3 UBER toolchains

no dexpreopt cause it's a test and i wanted it to build faster. slow boot time instead. next release I'll dexpreopt again, since it actually built without many patches for the newer gcc.

anybody who's run benchmarks, you can compare and see if the new build runs any smoother. it should...
[Desire 816 Android Development] bigsupersquid:
I guess that's all I can do with this for now!

Adding JustArchi's insanely good compiler optimization flags and using the latest greatest UBER toolchains is about as far as I can soup this up off the top of my head.

Well, I can still build CM's camera and post the apk, but that's about all I can think of. Or maybe use the real sultanxda's Snapdragon Camera instead of CM's "Snap" fork of it.

it looks like cm12 is about as popular as I feel for it.... hardly anyone wants the new release since it's basically just a security patch anyway. If I get bored enough maybe I'll optimize it too.

Really, I should dig into my Optimus V kitkat ROM and bring it up the the latest security patch, and debug it a little more now that I've learned more about the way device and vendor trees work.

Anyway, bug reports are welcome with specific error logs (logcat, dmesg) if there's issues to be found. I personally get all kinds of crashes and malfunctions from dirty flashing, even with clearing the Dalek cache and the telephony databases.

So bug reports work best from clean flashes rather than reports of things not working after a dirty flash. If you can reproduce an error from a dirty flashed install on a clean flash, then it's a real bug and not just some spoiled leftovers in /data somewhere.

Requests, pointers to commits and app source code, and info like the SuperSU/Viper crashes, are welcome.

though I can't guarantee any fixes or informed responses (like about Facebook, which I can't even test, and don't like having installed anyway cause it's a privacy black hole and resource hog.)
[Desire 816 Android Development] bigsupersquid:
that's amusing. my lousy landline internet service that was malfunctioning this weekend comes from Socket; which is a subcontractor for, you guessed it, CenturyLink.
[Desire 816 Android Development] frank9184:
Right now I feel The 4G becoming crazy

I should pull sim card out and put it in again to use the internet~

Also music app has broken (When I Chick the first album like blue ,and the others album is becoming to that style pop→blue)

Bad English but I still try to report bugs!
[Desire 816 Android Development] bigsupersquid:
sure.

did you wipe /data in twrp-advanced wipe? for a clean flash.

and, titanium backup restores cause glitches too.

I've not messed with the music app much but haven't gotten it to act weird yet. and my mobile data is pretty solid... but it's a different network than yours.

need logs. alogcat from play store can get them.
[Desire 816 Android Development] frank9184:
AnTuTu 27180

Bluetooth won't work

Bluetooth log later
[Desire 816 Android Development] bigsupersquid:
the specific glitches you're having sound like your phone is running kitkat firmware.

that's problems with wifi, Bluetooth, maybe touchscreen?

it should work better if you install the htc lollipop update, which is a pain, but needed to run marshmallow rom.

the basic way to do it is restore your original stock backup (that all the guides say to make when you root), flash a stock recovery, and re-lock your bootloader. then you can download and install the lollipop update from htc with fastboot.

there's guides in the desire 816 forum with more details.
[Desire 816 Android Development] frank9184:
A5UL

My firmware is marshmallow version ,and Bluetooth won't work at newest build (0704 worked)

I fully wiped data,system,cache..

When I open Bluetooth ,com.android.bluethooth will FC

Right now I can't contact my mi band :rolleyes::rolleyes:

Wifi,LTE contaction hardly~~

What if I reinstall the MM firmware?

Thank for the build

By the way ,will android n show up on 816?:laugh:
[Desire 816 Android Development] bigsupersquid:
hee hee

you're correct, my bad. apologies.

Bluetooth indeed broken.

I'll find the fix, meanwhile stick with July 4 build.

N? until a few days after cm source goes up, I'll play. clueless yet though
[Desire 816 Android Development] frank9184:
Waiting for your new build

NFC didn't work at all !

Even open it,and Android Beam didnt work ,either

Typhoon is coming ,so I don't sure that I can test the new build

Finger cross!!
[Desire 816 Android Development] NightHawkIX:
New Facebook appbupdate breaks the fix; evennif you delete the file again. You can use fb, but you get the Facebook has stopped message every few seconds.
[Desire 816 Android Development] bigsupersquid:
if you need a file to stay gone replace it with an empty folder of the same name. that was the trick to keep play services from updating in kitkat anyway.

post a logcat to pastebin.com if you want me to look at it.
[Desire 816 Android Development] bigsupersquid:
yep, optimized build breaks nfc and bluetooth. haven't found a way to fix it yet. they're acting stupid with linker type errors and claiming they can't find config files (nfc even says wrong firmware in log, wtf.)

so making a new build with sepolicy patches for SuperSU and Viper, omni permissions spoof patch, and gcc 5.3 kernel.

I'll work on integrating the optimizations more slowly next.

//edit: yeah, killing the -O3 fixes BT, but turns out I overlooked adding a blob (go figure) to vendor/htc/a5ul for the NFC (dug/dwg don't have NFC.) So next build should have both working. And it'll be uploading maybe this evening.
[Desire 816 Android Development] bigsupersquid:
ok, nfc was the blob and a build flag, and bt needed -Os in CFLAGS in system/bt/Android.mk and packages/apps/Bluetooth/jni/Android.mk

so it's all good afaik

uploading now with JustArchi flags optimized build, both toolchains UBER 5.3, supersu/viper sepolicy patch, and omni signature spoofing for microg.
[Desire 816 Android Development] frank9184:
Newest build antutu 27710! Higher!

Everything works expect Live Display and CyanogenMod original root(at development settings).

By the way ,How can I change the Carrier name?

Will these source code work on CyanogenMod 11?
[Desire 816 Android Development] bigsupersquid:
live display hasn't worked for me on either cm12 or 13, not sure what's wrong with that at all. minor issue, may not even try to fix. tried once and it didn't change anything.

root works partially for me, set to apps snd adb, the cm file manager can write to system, which requires root. but connectbot won't su.

interesting. nice catch.

the eri.xml linked in the third post for carrier name. change the Virgin Mobile lines to whatever other carrier name you want and follow the linked instructions.

thanks for testing.

and roughly the same tweaks may work on cm12. theres a link to justarchi's thread and he's got a lollipop version.
[Desire 816 Android Development] frank9184:
Eri.xml not worked , I changed all virgin mobile,the name still not changed .Is this solution only working on virgin mobile in the US?What if change files at /system/etc/?

Live Display worked on official CM11 by Grarak.CM 11 only touchscreen doesn't work.Should there have a fix?
[Desire 816 Android Development] bigsupersquid:
you need right marshmallow eri.xml for your carrier then.
[Desire 816 Android Development] icy_gt:
So does SuperSu work in the new build?
[Desire 816 Android Development] aftertzf:
Smooth on A5_UL Europe single Sim.

The ROM I've been desperately waiting for since cm12 was 'abandoned' and Sim not detected, April 2015.

I have a brand new phone, that is 3 years old and working better than ever.

For that and for freeing me from the bloat that is sense, thank you and thank you again!
[Desire 816 Android Development] blackmamba:
Ok - this may have been covered but I have a Sprint Prepaid HTC Desire 816 and i tried flashing it, I got the message "This device is htc_a5dug" - Does that sound correct? After that it aborted with "Status 7".

So, am I a5_chl or a5_dug - how does one find out? My boot loader is dev unlocked and I'm rooted. The boot loader shows "A5_CHL PVT SHIP S-ON"

HBOOT-3.19.0.0000

RADIO-1.47.40.0224

Any ideas?
[Desire 816 Android Development] frank9184:
Works !
[Desire 816 Android Development] icy_gt:
So i believe we can convert our sd card into internal storage right? How good does it work on here? I have a 32 GB
[Desire 816 Android Development] aftertzf:
SuperSU and root essentials report not root.

I have set root access to apps and adb on developer settings....

---------- Post added at 11:42 PM ---------- Previous post was at 11:21 PM ----------

That said, do you have a donate URL?
[Desire 816 Android Development] bigsupersquid:
betting its your recovery. Is it up to date twrp?

You can take the assert out of the updater-script in the zip too, since it is a chl.

My root is wanky too, must rebuild.

Donation URL in my profile here... Appreciate the thought.
[Desire 816 Android Development] bigsupersquid:
[MENTION=4022811]GreyCelt[/MENTION]

looks like a new build of twrp-3.0.2-0 in cm tree fixes flashing from adoptable storage issue, except it breaks mtp. bah.

one thing or another...

uploaded to the AFH recovery folder for anyone wants it.
[Desire 816 Android Development] icy_gt:
Is that mtp from inside TWRP ?
[Desire 816 Android Development] bigsupersquid:
Yes.

Adb works though.
[Desire 816 Android Development] GreyCelt:
Well, I don't do any file transfering while in TWRP anyway so I don't think MTP being borked should matter to me.

That's just used if you're transferring stuff to and/or from the device to a computer or something, right?

The USB OTG never worked for me in TWRP anyway.
[Desire 816 Android Development] bigsupersquid:
right, except you can still adb push to the interal, external, or adopted storage.

just like in official twrp for a5 :/

I'm tweaking at it now if you want to check back soon. Either adb or mtp working so far but not both. ugh.

nice new setup clean builds recovery in well under ten min, (2 min with ccache!) so I get to mess around quicker.
[Desire 816 Android Development] ajones23:
Has anyone gotten supersu to work,with the 7/8/2016 build.
[Desire 816 Android Development] icy_gt:
Hey am i the only one who gets LTE or no signal at all? I put it 3g only and it works fine. It was the same thing on stock though.
[Desire 816 Android Development] bigsupersquid:
I used to have that happen in older builds. now my service stinks bad enough to be 3g no matter what unless I set it deliberately to 1x. At least [MENTION=6251082]sahil.bhardwaj[/MENTION] figured out what commit was needed to fix the settings crash. Thanks to him. (and man, is it tricky to get a @ mention to stick with that username! the "." breaks it, and I had to manually set the member ID and text...)

not me, the root glitch broke install.

rebuilding now.
[Desire 816 Android Development] bmac6996:
I download the 7/8 build but did a clean install and got SuperSu to work.

At first when I tried to install everything all at once with the ROM, the MVNOSlayer_R4, opengapps and superSU, it would hang the CM loading screen on first boot.

I tried it a 2nd time but this time, did only the first three first, let CM boot and complete initial install and then came back and installed SuperSU later.

---------- Post added at 10:01 PM ---------- Previous post was at 09:59 PM ----------

And just to ask, there is no Gyro Sensor in the HTC 816 phone Sprint/Virgin/Boost variant correct? I'm trying to catch Pokemons in AR mode and it says it cannot determine the position of my phone and suggest that I turn of AR mode. I assume it's a phone thing and not a ROM thing.
[Desire 816 Android Development] bigsupersquid:
good data. thanks.

I had multiple glitches, and am rebuilding a new one with better native root access and such.

what I've read says no gyro. sorry.
[Desire 816 Android Development] frank9184:
I flashed a SuperSU with recovery ,and the root worked fine:cyclops:
[Desire 816 Android Development] ajones23:
What SuperSu zip did you use and where did you get it.
[Desire 816 Android Development] frank9184:
SuperSU V2.76

U can google it by yourself
[Desire 816 Android Development] bigsupersquid:
new build uploading

fixes root glitches (including supersu installer from play store)
[Desire 816 Android Development] bigsupersquid:
just quoting to get your attention...

new build has both cm camera and snap camera for ya. request honoured since you've been a great tester finding issues before i notice em
[Desire 816 Android Development] aftertzf:
Root confirmed good.

Facebook crashes.

Maybe won't apply the fix, I will appreciate the break from the pointlessness of it :)
[Desire 816 Android Development] bigsupersquid:
thanks for the report.

facebook irritates me even not using it for years now.

Guess I'll install it to check the log and see why the POS is crashing.

//edit: installed from Market (actually BlankStore,) which is now Play, created a test account, logged in, verified, searched some peeps.

bloody thing refused to crash for me to get a log.

are you using a backup? or did i not run it long enough before uninstalling it? or maybe there's some other factor. like i refused it all permissions.
[Desire 816 Android Development] ajones23:
I installed the 7-11 build and everything that I tested works. Root worked with SuperSu and Root Essentials app. Downloaded FB and messenger both worked no fc or crash. Viper4android also works no problems. [MENTION=3228718]bigsu[/MENTION]persqiud you rock you really out did yourself, great ROM. :good:
[Desire 816 Android Development] bigsupersquid:
Facebook working would be an upstream fix, i resynced the cm repo yesterday. or maybe kernel updates but less likely.

the sepolicy patches for viper and supersu i can only take credit for applying, not making.

a lot of the confectionary goodness is due to grarak as well. the optimizations come from justarchi's repo... toolchains from uber... gcc 5.3 fixes from Google and other places...

lots of cherry picking and tweaking out a few build errors from the optimizations mostly. been lucky there were so few needed.

i consider my work development mostly cause it's eventually a little off the wall and not a lot of people build from modified source (anymore) with the devices i tend to own. rather than that i come up with all totally original things. only a few of those, really, at least as yet.

wanted to point out that lots of upstream thanks are possible too.
[Desire 816 Android Development] GreyCelt:
I'm on the 07/08 Build and Root has been working perfectly for me. Is there really any other reason to flash the 07/11 Build? I really don't want to have to do another full-wipe and then go through setting-up my whole device again if I don't have to.

Everything is working great for me... WiFi, LTE, Bluetooth, Root, Viper (I did have to install Viper4Android as a system app to get it to stick), GPS, etc. are all working great. I haven't found a problem as of yet and, from what I can tell so far, all of the nagging problems from the February build are gone.

Thanks [MENTION=2980661]bigsupersquid[/MENTION]! Now... can you get the Pokémon Go servers back up?!? :D
[Desire 816 Android Development] ajones23:
I just did for fun,so my wife won't bother me,lol. But really everything works that I've tested,so far. I think its a keeper for a while,like stock MM but more space,and much smoother. If yours is good then stick with it.
[Desire 816 Android Development] frank9184:
AnTuTu 27870! [MENTION=2980661]bigsupersquid[/MENTION]

I wonder if these device trees build with AOSP.

Will it works better than Cyanogen?

BTY thanks for all you doing with signal sim 816,now it works like a new Nexus Phone
[Desire 816 Android Development] bigsupersquid:
nah, cm device tree doesn't get along with aosp.

that'd be nice, i have to cherry pick fixes from Google often enough, and I've wanted for years to be able to use codeaurora sources, but there's too much modification, relearning, and fixing.

I've gotten one booting aosp-caf build with a heavily modified device tree, but lots was broken and i didn't want to chase it all down.

this is a nice piece of hardware with good upstream source compatibility, helps me get it upgraded.
[Desire 816 Android Development] bigsupersquid:
[MENTION=4022811]GreyCelt[/MENTION]... ^

it's a lot of download bandwidth and redoing.

if you've got it working then you're good already.

mine was annoying me, replaced it.

don't think there's much change except whatever partially broke root.

did a repo sync, which usually seems to grab something for under the hood, but it's not always visible from use.
[Desire 816 Android Development] ajones23:
What I really meant is,my internet ATT has put a cap on data. So no more downloading for a while.
[Desire 816 Android Development] steppinthrax:
I will need to say that I strongly disagree with the "flashing advice" recommendation regarding rebooting after flashing rom to install gaaps. I just tried this a few minutes ago and upon reboot the rom crashed like crazy. All the gaaps were crashing. I found that (what I used to do) the best method would be to install the original rom, then wipe cache/dalvik, then install gaaps, then reboot. I notice the reboot afterwards takes longer because it has more module numbers to setup. I don't know if this works that way due to my lack of knowledge or due to the new update.
[Desire 816 Android Development] bigsupersquid:
when i use gapps i always was able to flash them before first boot. worst case with my old Optimus v i had to remove setup wizards before booting to avoid crashes.

i wipe all of userdata except the internal sd (/data/media) on new flashes myself so there's no dalek corpses or bad settings laying around to mess things up.
[Desire 816 Android Development] steppinthrax:
OK, I just now re-flashed my HTC DESIRE 816 VM (USA) single sim to the newest build. I since tried to use the 20160216 build but was having lots of issues. I notice off the bat upon reboot I was able to connect to LTE and it even identified Virgin Mobile. The 4gLTE seems responsive, however I did get one disconnect. When it did disconnect I would see the "right-triangle" logo flash and say LTE VM for a second then turn empty, it kept doing this every few seconds but failed to re-connect.

So I guess there might still be some connection issues. BTW, I never installed any of the apn_conf fix or the MVNO fix or the MM_VM fix. Also FB works right out of the box with no FB fix required. So I guess my question is do I need to install these fixes, or it seems it's working better. Need to give it a full test in a few days.

Thanks
[Desire 816 Android Development] steppinthrax:
Ok, another thing I just found, where is the ability to format a SD as internal storage. I can't find it anywhere, I understand that is a feature (big feature) of MM...
[Desire 816 Android Development] YmerejO42:
Just found this last night, downloaded stock stuff and installed (to update firmware), then wiped and flashed this... Gorgeous. I absolutely love it. Thank you so much!

Only issue I'm having is for some reason, I don't have a signal icon on my statusbar. Data's working fine (I did apply "Universal_vmu_ApnFix-v.R2" just in case), calls are working fine, just no signal icon.

Also, my quick settings dropdown has too many slots, and won't shrink even though I lowered it to only needing 4 icons (still has 5, can't seem to get rid of "Edit tiles"). So there's a huge amount of blank space under the tiles I actually use.

Another thing, and I'll admit it's minor... Is there any way to get rid of the constant notification/icon about the fact that I have an SD card? They don't really do anything, but they annoy me a little.
[Desire 816 Android Development] bigsupersquid:
Yeah, FB looks to be working now. The eri and apn are built in now too.

I can't test lte anymore because I've rarely had it operative in my area this year. my 3g is rock solid though.

SD as internal: Settings>Storage&USB>sdcard1>three dot menu>format as internal

they kind of hid it. Also the first time you put a card in (not the second) it'll offer to format it as internal storage too.

The apn fix has /data/eri.xml which isn't right for this ROM. Shouldn't need one except for other sprint mvno like boost or ting or ringplus.

Remove /data/eri.xml and /data/data/com.android.providers.telephony/databases/telephony* and reboot.

or reflash without apn fix.

you can acknowledge the sdcard icon by clicking it, select portable, and when it pops the icon next to offer the built-in file manager you can swipe it away without it returning.