[Desire 816 Android Development] bigsupersquid:
Marshmallow!

Special for the a5_chl Virgin Mobile US Desire 816, may work ok on other (single-sim) a5's too.

for dwg, dug:

Grarak's official cm13 for dual sim

dual-sim initialization tip:

post 3 has various user-supplied fixes, thanks y'all!

Flashes fine with official TWRP.

Official HTC firmware here:

http://www.htc.com/us/support/htc-desire-816-virgin-mobile/news/

Instructions to install the stock firmware (use the posted recovery.img and the new RUU from the previous link)

http://xdaforums.com/desire-816/general/ruu-t2952058

Instructions to extract zip from RUU to flash from sdcard with hboot

http://xdaforums.com/showpost.php?p=62680799&postcount=4

Here, I uploaded official Lollipop 0P9CIMG.zip for you guys.

copy 0P9CIMG.zip to external sd card. Remove card.

After flashing stock recovery,

fastboot oem lock, insert sdcard, and then reboot into hboot.

remove the file after it finally finishes multiple reboots into htc stock.

I strongly suggest updating your firmware to htc lollipop with an official ruu or you may have hardware issues like touchscreen, wifi, and/or bluetooth problems. It might work with kitkat firmware though, and you are free to try if you want. Post results if you do.

It appears kitkat firmware can cause not only touch issues but wifi issues.

Disclaimer: Void warranty, not responsible for anything, you know flashing is your choice and any damage is your own problem.

ESPECIALLY with a beta like this.

Wipe cache, data, and system for clean flash.

Dirty flash not recommended but may work.

if you dirty flash don't complain about bugs.

verify they happen on a clean flash too, without installing any other zips. then post your issue, and send me a logcat.

If you install gapps, use the ARM/6.0 versions, and either install them on a clean flash or wipe the dalek-cache before rebooting.

It's still beta, so expect weird bugs.

Working:

graphics

touchscreen

rotation/tilt

compass

sound

sdcard

internal storage

mass storage file transfer

root

LTE

MMS

SMS

Phone incoming and outgoing calls

Network location

GPS

Bluetooth

WiFi (including hotspot)

USB tether

camera

sd card as internal storage

FM radio

NFC

not working

you tell me. preferably with attached logcat/dmesg.

Current A5 ROM folder:

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

You'll want to grab the a5ul version in the front folder. Newest date.

Advise placing the md5sum file with it on the sdcard before flashing, TWRP will check that the file was downloaded without corruption that way.

as of 7/8/2016, built with Vynikal's fork of JustArchi's optimized build flags, with UBER 5.3 toolchains.

also with sepolicy support for SuperSU, and Viper4Android.

Source:

old, hidden

commits to 1/09/16 work. later are lost.

(cm-13.0 branch)

https://github.com/bigsupersquid/android_device_htc_a5

https://github.com/bigsupersquid/proprietary_vendor_htc

(cm-13.0-caf)

https://github.com/bigsupersquid/android_packages_apps_SnapdragonCamera

(master)

https://github.com/bigsupersquid/vendor_cm_prebuilt_common_etc_apns-conf.xml

https://github.com/bigsupersquid/kernel_htc_msm8974_arch_arm_configs_cm_a5_defconfig

needs but not built in yet: https://github.com/bigsupersquid/frameworks_base_core_res_res_xml_eri.xml

current sources:

get UBER arm-eabi 5.3 from here

decompress it, copy the UBERTC-arm-eabi-5.3-* folder to prebuilts/gcc/linux-x86/arm/arm-eabi-5.3 (instead of prebuilts/gcc/linux-x86/arm/UBERTC-arm-eabi-5.3-*)

official CM repo with these changes:

init cm repo to 13.0 instead of 12.1 as in the instructions.

roomservice.xml, goes in your build directory/.repo/local_manifests

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="bigsupersquid/android_kernel_htc_msm8974" path="kernel/htc/msm8974" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" />
<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" />
<project name="CyanogenMod/android_hardware_sony_timekeep" path="hardware/sony/timekeep" remote="github" revision="cm-13.0" /> -->
<project name="bigsuperprojects/android_device_htc_a5ul" path="device/htc/a5ul" 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_device_htc_a5-common" path="device/htc/a5-common" remote="github" revision="cm-13.0" />
<project name="bigsupersquid/Android-Blob-Utility" path="external/android-blob-utility" remote="github" revision="master" />
<!--<project name="Grarak/proprietary_vendor_htc" path="vendor/htc" remote="github" revision="cm-13.0" /> -->
<project name="bigsuperprojects/proprietary_vendor_htc" path="vendor/htc" remote="github" revision="cm-13.0" />
<remove-project name="CyanogenMod/android_packages_apps_CMUpdater" />
<project name="CyanogenMod/android_external_stlport" path="external/stlport" remote="github" />
</manifest>

repo sync, then lunch cm_a5ul-userdebug, then mka bacon and profit

The gcc-5.3 fix commits are spread all over the android tree, and JustArchi's flags are in android_build... I'm not going to fork and maintain all that stuff. I'll post individual commits for patching later, and a squid branch of device_htc_a5ul for the optimisations. Use the cm-13 branch and it'll build with all the regular CM stuff. Use the optimised one, and you may be hunting down fixes with Google for errors that pop up through the build.

Thanks to [MENTION=4443334]Grarak[/MENTION] for all the hard work on upstream source code and fixes for the a5. And CM of course. And all the device maintainers, developers, forum posters, and whoever else I ruthlessly kanged bits and parts of this from.

A big THANK YOU to donators: [MENTION=7406594]sorensenbill[/MENTION], [MENTION=3505814]clydeml[/MENTION], [MENTION=3683432]aftertzf[/MENTION], [MENTION=7696005]Ed128[/MENTION], [MENTION=3951714]ajones23[/MENTION]