[Desire 816 Android Development] tpr0:
Hey all, I'v recently managed to build Ubuntu Touch for our device, it boots!

Code:

#include <std_disclaimer.h>

/*

* Your warranty is now void.

*

* I am not responsible for bricked devices, dead SD cards, thermonuclear war,

* or you getting fired because the alarm app failed. Please do some research

* if you have any concerns about features included in this ROM

* before flashing it! YOU are choosing to make these modifications, and if

* you point the finger at me for messing up your device, I will laugh at you.

*/

WARNING : This is a "Work In Progress" ROM, flash it only if you know what you are doing, or willing to help as a tester.

Building:

Quote:

In the meantime, I do not have a stable internet connection to push my commits to a remote git, hope this is helpful.

Very rough notes:

-Add device repo from Cngnmd cm-11.0 device/htc/a5

-run extract-file sin device for vendor, running custom rom, (?)

-remove 'not found marked' nfc etc... files from proprietary

-Add msm8974 kernel , cm-11 branch under kernel/htc/msm8974

-Replace AOSP QCOM : media,keymaster,display from Cm cm-11.0 branch

-Add vendor/cm

-Add qcom-common under device/qcom/common

-Add device/qcom/common/dtbtool to your subdirs in build/core/main.mk

-Removed android emulator prebuilt apk from vendor/cm/config/common.mk

-Removed audio_firmware_file perms from device/htc/a5/sepolicy/mediaserver.te

-Replace cmdline in boardconfig.mk with "BOARD_KERNEL_CMDLINE := androidboot.selinux=permissive console=tty0 apparmor=0 androidboot.hardware=qcom user_debug=31 ehci-hcd.park=3"

-Patch cm_a5 defconfi kernel using ubuntu config.

-in /opt/user/phablet/kernel/htc/msm8974/net/netfilter/xt_connbytes.c, remove const from const struct nf_conn_counter *counters;

-Replace system/core/mkbootimg folder with https://github.com/elliekimpot/mkbootimg repo (master)

-run buildenv and lunch. Add android products mk, rename cm.mk to cm_a5.mk (acc to product)

-replace data=ordered with data=journal in fstab.qcom.

For adbd to function, see the last section in https://developer.ubuntu.com/en/star...ng-new-device/

Local latest build:

Quote:

Boot.img(11mb): https://drive.google.com/file/d/0Bwg...ew?usp=sharing

System.img(156mb): (uploading)

How to flash:

Quote:

Backup! , though, ubuntu touch does not affect the data and system partition. Which means that you can dual boot easily, all you have to do is swap boot.img. e.g: flash your nandroid boot.img and you boot to android, flash the ubos boot.img and you to ubuntu. Just backup in case something goes wrong.

Download http://cdimage.ubuntu.com/ubuntu-to.../current/wily-preinstalled-touch-armhf.tar.gz, latest boot.img, latest system.img and rootstock using bzr or the file uploaded in this thread.

Extract rootstock, copy all remaining files to the rootstock folder.

Reboot to fastboot. (bootloader -> FASTBOOT)

Linux: in rootstock directory, type: sudo fastboot flash boot boot.img. Windows: fastboot flash boot boot.img.

Reboot to recovery (twrp preferred), and make sure /data partition is mounted (ticked in mount menu; twrp unmount option; cwm)

Make sure your device appears in: adb devices. Run Linux/Cywgin(Windows): ./rootstock-touch-install wily-preinstalled-touch-armhf.tar.gz system.img.

rootstock will reboot the device, you will have ubuntu

Follow the build notes to enabled adbd on post-boot w/o graphics.

What works:

Quote:

-> Works

-> Broken

-> Untested

Graphics (current wip, kernel issue) :confused:

Graphics Mir (wip) :confused:

Boot process :D

Rotation :confused:

Cellular Radio :confused:

BT :confused:

Wireless network :confused:

Sound :confused:

Touch :D

Camera :confused:

Video Decode :confused:

Suspend/Resume :confused:

XDA:DevDB Information

[PORT][WIP][A5] Ubuntu Touch, ROM for the HTC Desire 816

Contributors

tpr0

ROM OS Version: 4.4.2-phablet

Based On: cm-11.0 specifics: device,vendor,kernel

Version Information

Status: Testing

Created 2015-05-28

Last Updated 2015-05-27

XDA:DevDB Information

[PORT][WIP][A5] Ubuntu Touch, ROM for the HTC Desire 816

Contributors

tpr0

ROM OS Version: 2.3.x Gingerbread

Based On: cm-11.0 specifics: device,vendor,kernel

Version Information

Status: Testing

Created 2015-05-28

Last Updated 2015-06-01