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
#!/bin/sh | |
# Copyright (c) 2025 TheKit <[email protected]> | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# 1. Redistributions of source code must retain the above copyright notice, | |
# this list of conditions and the following disclaimer. | |
# |
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
# Copyright (C) 2025 TheKit | |
# SPDX-License-Identifier: GPL-3.0-or-later | |
""" | |
Generate libinput quirks for devices with problematic kernel drivers. | |
On some devices (commonly OnePlus/OPPO/Realme), the touchscreen kernel driver |
#include <iostream> | |
#include <string> | |
#include <cstdint> | |
#include <fstream> | |
#include <random> | |
#include <format> | |
#include <chrono> | |
#include <unistd.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> |
#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> |
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
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); |
#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> |
<?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" /> |
<?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" /> |
# | |
# 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" |