Find your next open-source project

Search by name, purpose, or keyword, or paste a GitHub URL. Start with / to search agent skills (e.g. /pdf)

yzddmr6/onepluspad-2pro-macos

System ToolsCross-system

A source-only port that boots native macOS on the OnePlus Pad 2 Pro with touch, stylus and keyboard support.

147
27
C++
NOASSERTION
3 days old
+47 stars in 23h

Overview

This project ports Apple's XNU kernel and the macOS userland to the OnePlus Pad 2 Pro (OPD2413, Snapdragon 8 Elite), running macOS natively instead of inside a virtual machine. It ships a board-level UEFI loader, DarwinBoot, kernel patches, and native drivers for display/GPU, storage, touch, stylus, keyboard cover, Wi-Fi, audio, sensors, power and camera. The target audience is technically experienced owners willing to unlock the bootloader, repartition the tablet and build the installer on a Linux host — it is a preview (v0.1.0) rather than a turnkey product.

Because the installer bundles Apple system files and mixes GPL and APSL kernel code, only source is published; users must obtain macOS, the Xcode SDK and the KDK from Apple themselves and build locally.

Quick start

Prerequisites: a OnePlus Pad 2 Pro OPD2413 with 512 GB storage (12 or 16 GB RAM) and an unlocked bootloader; an x86_64 Linux host with Docker and about 70 GiB free disk; an Apple account (free tier is enough) to fetch the SDK/KDK; a USB-C cable. Building clears all data on the tablet, so back up first.

  1. Put the tablet into fastboot mode and connect it. Find DEVICE_SERIAL with fastboot devices.
  2. Build the installer bundle (use --layout dual to reserve space for Ubuntu, or drop --layout for macOS-only):
tools/build bundle --inputs /path/to/inputs --output /path/to/build --layout macos --serial DEVICE_SERIAL
  1. Preview the install (no --erase-android), then rerun with --erase-android to write after checking:
python3 tools/install --serial DEVICE_SERIAL --bundle /path/to/build/bundle-macos \
  --layout macos --work /path/to/private-install --erase-android
  1. On first boot a macOS-only layout goes straight to the desktop; a dual layout boots Ubuntu first and provides a "reboot to macOS" entry. The default account is erhai / yzddmr6; run passwd after first login.

Input paths, dual-boot setup, upgrades and Android recovery are covered in the build instructions and install/upgrade/recovery guide.

Constraints

  • Supported hardware is narrow: only the OPD2413 512 GB model with 12 or 16 GB RAM; 256 GB variants and the overseas OnePlus Pad 3 are rejected before any write.
  • Installation wipes Android, Linux and macOS user data; the installer backs up the partition table and boot partition first, and tools/install restore-android can return to factory Android (requires setup again).
  • No App Store, iCloud, Apple account, online macOS updates or FileVault, because the device has no Apple security chip. Install arm64 apps from vendor sites; x86 apps do not run.
  • Known gaps (as of this preview): external displays, USB-C peripherals, Bluetooth pairing, stylus charging in macOS, hardware video decode, Apple's 67 W fast charging and deep sleep are unsupported or partial. Partial camera support is limited to the ErhaiCamera app with fixed focus.
  • Code is under a mix of BSD-2-Clause-Patent, APSL-2.0, GPL-2.0-only and MIT; build artifacts are not redistributable, and the project is unaffiliated with Apple, Qualcomm or OnePlus.

How it works

The stock bootloader (XBL → ABL) is left in place; a board UEFI reads BOOT.BIN from ESP, DarwinBoot builds the device tree, and a patched XNU kernel runs at EL1 with native drivers. The drivers follow the author's linux-sm8750 mainline Linux port. More detail is in the architecture doc.

HotRepo's take

On the C++ new-project board for 2026-12-02 the repository gained 3 stars and 1 fork, reaching 103 stars and 23 forks. The project record has no all-language daily ranking recorded. The README is unusually specific for a port of this kind: it lists concrete support states, exact device models, a one-command build/install flow, and honestly states what does not work. The main practical caveat is the narrow hardware and data-wipe requirement, which makes this a project to read and evaluate before attempting, not an everyday install. For similar ports, see the upstream projects credited in the NOTICE file.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

You might also like

  1. Snapintosh/SnapintoshBoots macOS on a single Snapdragon X2 laptop model via a custom hypervisor and Adreno GPU driver stack, for hackers with that exact machine.Python875
  2. dipa-studio/ios-sweetBoots Apple's XNU kernel and an unmodified iOS 16 userland on a Redmi Note 10 Pro, for kernel porting experimenters.Python1,029
  3. Leviidev/HengeEmulates a full macOS guest on iPhone and iPad using Henge's own arm64 JIT, Metal-backed graphics and trackpad touch input.C2,747
  4. Nwflower/Reims-GoWindows desktop app that checks, installs and manages a GPU-accelerated macOS virtual machine through a guided wizard.Go107
  5. UniXNU/UniXNUBoots iOS and macOS on non-Apple ARM64 devices via a UEFI layer, aimed at porters and tinkerers.Python899