Xiaomi_Kernel_OpenSource icon indicating copy to clipboard operation
Xiaomi_Kernel_OpenSource copied to clipboard

GPL Request: Complete, buildable kernel source for Xiaomi 15 (dada) — .gitignore hides HWID/DTS/defconfig, A16 branch missing, 6.6.24→6.6.77 version gap

Open ilertnost opened this issue 5 months ago • 6 comments

GPL Request: Xiaomi 15 (dada) kernel source incomplete — HWID/DTS/defconfig hidden in .gitignore, no A16 branch, 6.6.24 vs 6.6.77 gap

This is a formal GPL v2 compliance request for Xiaomi 15 ("dada", SM8750) and other SM8750 devices

The device ships with HyperOS 3.x (Android 16). The published kernel source (dada-v-oss) is incomplete in multiple independent ways:

  1. NO ANDROID 16 KERNEL BRANCH

The required "dada-w-oss" (A16) branch does not exist. Other SM8750 devices have also missing w-oss branch and some drivers

  1. KERNEL VERSION MISMATCH
  • Published source (dada-v-oss): Linux 6.6.24
  • Shipped in HyperOS 3.x (A16): Linux 6.6.77

53 patch levels of difference. The published source does not correspond to any shipped binary.

3..GITIGNORE HIDES THREE CRITICAL COMPONENTS

The published .gitignore (https://github.com/MiCode/Xiaomi_Kernel_OpenSource/blob/dada-v-oss/.gitignore) contains deliberate exclusions:

A) HWID driver — tagged "# Xiaomi Add" (line 182): "drivers/misc/hwid/" The HWID driver identifies hardware variants. Without it, the kernel cannot determine which device it is running on, causing an instant bootloop. Same exact pattern documented on SM8450 (taro) years ago.

B) All vendor device tree sources (lines 168-169): "arch/*/boot/dts/vendor" Every .dts/.dtsi file for display, touchscreen, camera, battery, GPIO, regulators - the entire hardware description - is excluded.

C) All vendor defconfigs (line 165): "arch//configs/vendor/_defconfig" Device-specific build configurations, defining exactly which drivers and features are enabled for each variant (CN, Global, EEA, India), are excluded.

Each of these alone makes a bootable build impossible. Together they constitute systematic, deliberate source suppression.

  1. COMMUNITY CONFIRMATION

LineageOS for Xiaomi 15 had to be closed because developers were forced to use a prebuilt kernel extracted from stock ROM: https://xdaforums.com/t/closed-experimental-lineage-os-for-xiaomi-15-dada.4774409/

Community prebuilt kernel repo exists for the same reason: https://github.com/lolipuru/device_xiaomi_dada-kernel

  1. THIS IS SYSTEMIC - 14,593 OPEN GPL ISSUES

As of June 30, 2026, the MiCode repository has 14,593 open issues, the vast majority GPL compliance requests spanning all Xiaomi device lines and years: https://github.com/MiCode/Xiaomi_Kernel_OpenSource/issues

  1. OTHER MANUFACTURERS PROVE IT IS POSSIBLE
  • Samsung Galaxy S25 (same SM8750 SoC) - full buildable source
  • Realme GT7 Pro (same SM8750 SoC) - full buildable source
  • Xiaomi itself has complied in the past under pressure (Redmi Note 4(Nikel)
  1. ACTIONS TAKEN

Formal complaint sent (with bilingual EN/RU text) to:

CC'd to:

Follow-up letter sent with detailed .gitignore analysis.

30-day deadline set: July 30, 2026.

  1. NEXT STEPS AFTER DEADLINE
  • Day 30: Formal GPL violation filing with Software Freedom Conservancy (handles Linux kernel enforcement)
  • Day 45: Filing with Free Software Foundation ([email protected])
  • Day 60: Russian regulatory complaints — RKN (152-FZ, KоАП 13.11 turnover fines), FAS (antimonopoly), Rospotrebnadzor
  • Day 60: Technology press notification (Android Authority, XDA, 4PDA, DTF, Ars Technica)
  • Day 90+: Legal action through copyright holders

Fork with attempted fixes: https://github.com/ilertnost/android_kernel_xiaomi_sm8750/tree/lineage-23.2 (removed .gitignore HWID exclusion, added SM8750 defconfig options, added DSU-120 capacity override)

This issue is part of an organized GPL compliance effort. No affiliation with any corporation. Just a user who wants to run custom software on a device he owns.

ilertnost avatar Jun 30 '26 09:06 ilertnost

As additional evidence, I dumped the kernel modules directly from my Xiaomi 15 device running HyperOS 3.x (A16). The HWID driver is loaded and running:

lsmod | grep mca_hwid

mca_hwid 12952 0 - Live 0x0000000000000000

The published .gitignore explicitly excludes drivers/misc/hwid/ with # Xiaomi Add. Yet the compiled binary mca_hwid.ko exists on every shipped device. This is not an oversight - it is deliberate source suppression.

Full module list extracted from device (278 vendor modules loaded)

Key Xiaomi-proprietary modules with no published source:

mca_hwid.ko - HWID (hidden by .gitignore) mca_parse_dts.ko - Device tree parser (but DTS hidden by .gitignore) mca_qcom_panel.ko - Display xiaomi_touch.ko - Touchscreen mi_fp.ko - Fingerprint synaptics_tcm2.ko - Touch (Synaptics) All 35+ mca_* modules Kernel config extracted from /proc/config.gz confirms Linux 6.6.77, while published source is 6.6.24.

Samsung Galaxy S25 and Realme GT7 Pro (same SM8750) publish complete, buildable source. Xiaomi has no technical excuse

ilertnost avatar Jun 30 '26 10:06 ilertnost

@mi-code

kdkdjdndndekekkekeke avatar Aug 10 '26 06:08 kdkdjdndndekekkekeke

@conservancy @fsfe @mxmehl @nicorikken

mfrkfkdkfkkdkd avatar Aug 19 '26 07:08 mfrkfkdkfkkdkd

HyperOS 4.0.0.6 kernel version bumped from 6.6.77 to 6.6.118 @mi-code @fsfe @conservancy @mxmehl

ilertnost avatar Aug 28 '26 14:08 ilertnost

In the custom firmware "Xiaomi.eu" the kernel was specified up to 6.6.118 Screenshot_2026-09-08-15-15-15-612_com.android.settings.jpg

snusoedik2281488 avatar Sep 08 '26 12:09 snusoedik2281488