Use prebuild system.img and get the ubports edge rootfs from here.
Boot into TWRP and install it with the JBB's halium-install script.
./halium-install -p ut ubports-touch.rootfs-xenial-edge-armhf.tar.gz system.img
adb push halium-boot.img /tmp
| --- android-x86_64_defconfig 2016-03-13 22:45:33.511718005 +0800 | |
| +++ android-x86_64_systemd_defconfig 2016-03-27 22:04:11.987423495 +0800 | |
| @@ -70,16 +70,14 @@ | |
| # CONFIG_KERNEL_LZ4 is not set | |
| CONFIG_DEFAULT_HOSTNAME="android_x86_64" | |
| CONFIG_SWAP=y | |
| -# CONFIG_SYSVIPC is not set | |
| +CONFIG_SYSVIPC=y | |
| +CONFIG_SYSVIPC_SYSCTL=y | |
| # CONFIG_POSIX_MQUEUE is not set |
| import json | |
| import logging | |
| from django.conf import settings | |
| from django import forms | |
| from django.utils.safestring import mark_safe | |
| from django.utils.translation import ugettext_lazy as _ | |
| from six.moves.urllib.request import urlopen | |
| from six.moves.urllib.parse import urlencode | |
| from six.moves.urllib.error import URLError |
| # | |
| # Automatically generated file; DO NOT EDIT. | |
| # Linux/x86 3.10.20 Kernel Configuration | |
| # | |
| CONFIG_64BIT=y | |
| CONFIG_X86_64=y | |
| CONFIG_X86=y | |
| CONFIG_INSTRUCTION_DECODER=y | |
| CONFIG_OUTPUT_FORMAT="elf64-x86-64" | |
| CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig" |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <manifest> | |
| <project path="device/motorola/maserati" name="NotKit/android_device_motorola_maserati" revision="hybris-11.0" /> | |
| <project path="device/motorola/omap4-common" name="NotKit/android_device_motorola_omap4-common" revision="hybris-11.0" /> | |
| <project path="kernel/motorola/omap4-common" name="NotKit/android_kernel_motorola_omap4-common" revision="hybris-11.0" /> | |
| <project path="vendor/motorola" name="TheMuppets/proprietary_vendor_motorola" revision="cm-11.0" /> | |
| <project path="rpm" name="NotKit/droid-hal-maserati" remote="github" revision="master" /> | |
| <project path="hybris/droid-configs" name="NotKit/droid-config-maserati" remote="github" revision="master" /> | |
| <project path="hybris/droid-hal-version-maserati" name="mer-hybris/droid-hal-version-maserati" remote="github" revision="master" /> |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <manifest> | |
| <project name="NotKit/android_device_motorola_addison" path="device/motorola/addison" remote="github" revision="hybris-13" /> | |
| <project name="NotKit/android_kernel_motorola_msm8953" path="kernel/motorola/msm8953" remote="github" revision="hybris-13"/> | |
| <project name="LineageOS/android_external_bson" path="external/bson" remote="github" revision="cm-13.0"/> | |
| <project name="LineageOS/android_device_qcom_common" path="device/qcom/common" remote="github" revision="cm-13.0" /> | |
| <project name="Alberto97/proprietary_vendor_motorola" path="vendor/motorola" remote="github" revision="8fe11afb30479622e6bc461ab31a1c421b06a03f" /> | |
| <project name="MotorolaMobilityLLC/motorola-external-greybus" path="hardware/motorola/greybus" remote="github" revision="marshmallow-6.0.1-release-griffin" /> | |
| <remove-project name="mer-hybris/android_bionic" /> |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <fcntl.h> | |
| #include <sys/resource.h> | |
| #include <linux/fb.h> | |
| #include <assert.h> | |
| #include <string.h> | |
| #include <sys/ioctl.h> | |
| #include <unistd.h> |
| diff --git a/drivers/input/touchscreen/synaptics_driver_s3320.c b/drivers/input/touchscreen/synaptics_driver_s3320.c | |
| index 79b184a0..f3d3872f 100644 | |
| --- a/drivers/input/touchscreen/synaptics_driver_s3320.c | |
| +++ b/drivers/input/touchscreen/synaptics_driver_s3320.c | |
| @@ -2105,7 +2105,6 @@ static int synaptics_input_init(struct synaptics_ts_data *ts) | |
| set_bit(EV_ABS, ts->input_dev->evbit); | |
| set_bit(EV_KEY, ts->input_dev->evbit); | |
| set_bit(ABS_MT_TOUCH_MAJOR, ts->input_dev->absbit); | |
| - set_bit(ABS_MT_WIDTH_MAJOR,ts->input_dev->absbit); | |
| set_bit(ABS_MT_POSITION_X, ts->input_dev->absbit); |
Use prebuild system.img and get the ubports edge rootfs from here.
Boot into TWRP and install it with the JBB's halium-install script.
./halium-install -p ut ubports-touch.rootfs-xenial-edge-armhf.tar.gz system.img
adb push halium-boot.img /tmp
| #define _GNU_SOURCE | |
| #include <errno.h> | |
| #include <dlfcn.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <stdbool.h> | |
| #include <unistd.h> | |
| #include <sys/stat.h> | |
| #include <libgen.h> |
| #include <iostream> | |
| #include <string> | |
| #include <cstdint> | |
| #include <fstream> | |
| #include <random> | |
| #include <format> | |
| #include <chrono> | |
| #include <unistd.h> | |
| #include <sys/stat.h> | |
| #include <fcntl.h> |