Clean, reproducible platform repository for mainline Debian 13 (Trixie) + GNOME 48 dual-boot alongside OxygenOS on the OnePlus Pad 2 (caihong, OPD2403, Qualcomm Snapdragon 8 Gen 3 / SM8650P). The patched mainline Linux 7.3 kernel lives in the companion repository conasg/pad2-linux (pinned in kernel.lock).
Caution
USE AT YOUR OWN RISK — NO WARRANTY, NO LIABILITY.
Modifying firmware, partition tables, or boot images on an Android tablet carries a real risk of permanent hardware bricking, data loss, voided warranty, or irreversible anti-rollback (ARB) fuse trips.
- There is no universally proven EDL unbrick path for every OnePlus Pad 2 variant. If the pre-fastboot chain is damaged or the bootloader is relocked on modified partitions, the tablet may be unrecoverable.
- Unlocking a stock bootloader and shrinking
userdatafor dual-boot wipes all Android user data. Back up everything before starting. - This project is distributed "AS IS" under GPL-2.0-only, with no warranty of any kind (express or implied). The authors and contributors accept no liability for damaged devices, lost data, or any other consequence of using these files or instructions.
- This is an independent community project and is not affiliated with, endorsed by, or supported by OnePlus, OPPO, or Qualcomm.
Read docs/SAFETY.md and docs/ARB.md in full before connecting a tablet.
Hardware-qualified daily-driver dual-boot on OnePlus Pad 2 (OPD2403):
- 100% open-source, zero-blob UEFI Shelf bootloader (
uefi/): Zero proprietary Qualcomm DXEs, zero binary shims, SKU- and OxygenOS-agnostic (FdtRamManagerLib+ open-source SM8650 UFS 4.0/apps_smmuwith hardware write guard +Pad2SmBiosTableLib). Dual-boots Debian and OxygenOS cleanly with volume/power navigation and off-mode charging support. - No-flash kernel updates: Verified ARM64 Unified Kernel Images (UKIs) managed on the FAT32 ESP via
caihong-bootand Debiankernel-installwith automaticDebian/Debian (previous)rollback retention. - Display & Desktop: 12.1" 3000×2120 dual-DSI panel with native 30–144 Hz VRR in GNOME 48 / Mutter, KTZ8866 backlight, NT36532 touch with palm/edge-grip/charger-noise modes, auto-rotation + ambient light sensor, and hardware-accelerated Iris VPU33 video decode (Firefox ESR, Chromium, GNOME Web/Showtime).
- Audio, Cameras & Peripherals: 6× AW88261 speakers (with rotation-aware L/R channel swap), WCD939x stereo built-in microphones, rear 13 MP + front 8 MP cameras with hardware CAMSS/ICP/BPS ISP + continuous AF + smooth AE/AWB + dual-LED torch (
caihong-camera/ PipeWire / GNOME Snapshot), Wi-Fi 7 (ath12k), Bluetooth 5.4, Folio lid switch, and OnePlus Smart Keyboard (OPK2402) pogo dock + Bluetooth handoff. - Power & Storage:
s2idledeep sleep reaching 99.96% RPMhCXSD+DDRLPM, UFS 4.0 MCQ + WriteBooster, Adreno 750 at 903 MHz, andcaihong_skin_controlthermal throttling.
Known limits / not yet implemented (see docs/HARDWARE.md and docs/TODO.md):
- USB-C DisplayPort Alt Mode and OnePlus Stylo 2 (deferred — no hardware available to test)
- USB-C OTG host dual-role switching and USB-C analog headsets
- SUPERVOOC 67 W / PPS 55 W fast charging and battery charge-limit threshold
Start here in order:
docs/SAFETY.md— Hard safety rules, USB 2.0 fastboot requirement, recovery steps, and why EDL is not a safety net.docs/ARB.md— Anti-rollback fuses and how to check firmware packages before ever touching them.docs/INSTALL.md— End-to-end walkthrough from a fresh stock OnePlus Pad 2 to dual-boot Debian + OxygenOS (plus rollback).docs/HARDWARE.md— Subsystem-by-subsystem hardware support matrix.docs/ARCHITECTURE.md,docs/UEFI-BOOTLOADER-SPEC.md,docs/UEFI-KERNEL-UPDATES.md— Technical design and boot-store / UKI specifications.docs/TODO.md— Active roadmap and remaining work.
| Directory | Purpose |
|---|---|
blobs/ |
Local-only runtime OEM firmware, sensor configs, camera profiles, and per-unit calibration (empty + .gitkeep in git; populated from your own tablet via scripts/extract/) |
uefi/ |
100% open-source, zero-blob UEFI Shelf bootloader (SM8650 UFS + apps_smmu, FdtRamManagerLib, Pad2SmBiosTableLib, UKI/Android handoff, host tests) |
gnome/ |
GNOME 48 Trixie .deb patches (Mutter VRR & pointer visibility, GNOME Settings battery design capacity, GNOME Shell "Restart into OxygenOS", Power/ScreenShield) |
camera/ |
App-agnostic caihong-camera hardware ISP/AF/AE/AWB PipeWire runtime + optional GTK4 camera app |
apps/ |
Tablet utilities (caihong-monitor, tablet-settings) |
cli/ |
CLI tools & system daemons (caihong-boot, caihong-crash, caihong-pogo-bt, caihong-powerkey, caihong-rtc-offset, caihong-sensors, caihong-shell-back, caihong-speaker-rotation, caihong-vdec-check) |
packages/ |
Distro package overrides (gstreamer-good HDR) |
rootfs/ |
Debian Trixie rootfs builder, AudioReach UCM2/topology, sleep/tuned/udev/modprobe/vdec configs, shutdown hooks |
scripts/ |
Offline host tools: extract/ (backup & blob extraction), build/ (kernel, .debs, rootfs, UEFI, UKI), install/ (gpt-linux.py, provision-esp.sh, install-packages.sh, revert-check.py), lib/ |
docs/ |
Safety, ARB, install guide, hardware matrix, architecture, and UEFI specs |
Code in this repository is licensed under GPL-2.0-only unless explicitly noted otherwise in a file header. No proprietary OnePlus, OPPO, or Qualcomm binaries are distributed in this repository.