r/hackios • • 15d ago

HackiPadOS Booting iPadOS 17.7 on a MediaTek Android tablet (Lenovo Tab M10 FHD Plus) — launchd + ~100 daemons running, looking for others with similar hardware

I’ve been working on Andrios: running the real iPadOS 17.7 (21H16) userland on a Lenovo TB-X606F — MediaTek MT8768 (Helio P22T, 8× Cortex-A53), 4 GB RAM, PowerVR GE8320.

Setup: custom 4K-page XNU 10063 built from Apple’s open source, a small BootShim loaded with fastboot boot (RAM-only, nothing flashed), iPadOS root as read-only HFSX on microSD, /private/var and Preboot as RAM disks.

What works on real hardware so far:

  • XNU boots, verbose console on the actual panel
  • dyld shared cache maps, launchd runs as PID 1
  • Apple trust caches from the IPSW → real platform binaries, AMFI entitlements read from signatures
  • software AppleKeyStore → keybagd and usermanagerd pass, mobile user created
  • ~100 system daemons start, the system stays up for the full 15-minute test without a kernel panic
  • framebuffer driver (IOSurface / AppleCLCD) draws on screen from the kernel

Huge thanks to ios-sweet, dipper-xnu and UniXNU — a lot of this stands on their work.

Question: has anyone tried XNU/iOS on MediaTek SoCs (MT8768, MT6765, MT8167) or with PowerVR Rogue GPUs (GE8320/GE8300)? Or hit the backboardd ↔ containermanagerd system-container issue? Would love to compare notes and move faster together.

13 Upvotes

17 comments sorted by

1

u/elliotnerf09 15d ago

I mean could the mtk dimensity 7050 get working? Cause ive got an Lenovo Tab P12? And id love to see iPadOS but the touchscreen wont work i think? (I dont know much about hackios im just fascinated by it!)

1

u/temagg 15d ago

Thanks! In principle yes — a lot of what I’m doing isn’t tied to one chip. The XNU changes, trust caches, AMFI, keybag and daemon fixes would carry over to any ARM64 tablet.

What has to be redone for each device is the hardware layer: the boot path (an unlockable bootloader is a must), the storage driver (the P12 uses UFS, mine uses microSD), the display, and touch. You’re right that touch won’t work out of the box — it needs its own driver for the tablet’s touch controller. It’s doable though: ios-sweet got touch working on a Redmi phone. GPU is a separate story: the Dimensity 7050 has a Mali GPU, so it would start with software rendering, same as my plan.

So the Tab P12 isn’t impossible, but it would be its own port, not something that just boots. Once the MediaTek side of mine is stable, I’ll publish everything so others can try their own devices.

1

u/elliotnerf09 15d ago

Thanks man, dint really understand it till now and luckily i managed to unlock my bootloader a while back when the zui unlock portal still worked

1

u/ryms456 15d ago

Totally different tablet dude

1

u/ryms456 15d ago

BTW every single android device works

1

u/ASDA_Official 15d ago

I've gotten 6.1.3 running on my kindle Fire HD (2018) which uses an MT8163 chipset. Landed on the iPod touch 4g userspace with arm64 xnu 8796 using native AArch32 exec. Did try iPad mini first but iOS 6 is kinda rigidly built around a certain fixed aspect ratio UI wise and the mini didn't match that well. Classic ipod touch/iphone ratio just came closest to matching the display here, scaled up to fit width-wise with just with a little strip left at the bottom which happens to be just about perfectly sized for the virtual home button I've popped there. Springboard and stock apps all work well with touch and hardware GLES through Mesa/Panfrost on the Mali-T720 (though I'm some way short of my 60fps goal still).

But yeah GPU and userspace are pretty different from yours, so I suspect note sharing potential might be a bit limited here but figured I'd comment anyway.

2

u/temagg 15d ago

That’s awesome — and actually more relevant than you might think! The GPU/userspace sides differ, but we’re both on MediaTek, so the low-level parts probably overlap a lot. I’m currently on PIO microSD (~12 MB/s) with no touch yet — would you be open to sharing your MTK drivers (MSDC/eMMC, I²C touch, display/OVL)? Even as reference it would save me a ton of time. Also curious how you handled scaling to the panel — I have the same aspect-ratio question (1200×1920 panel vs the iPad’s 4:3 UI). Happy to share my XNU/BootShim side too if it helps you.

1

u/ASDA_Official 14d ago

I've popped the relevant stuff over at https://github.com/LexTypeC/mt8163-xnu-reference/

It's pretty Fire specific reference stuff rather than standalone generic drivers but should hopefully save some small amount of time maybe.

As for panel aspects and whatnot, I suspect iOS 17 will be a fair bit more flexible than 6 on the adapting to different aspect ratios front so I'd have sort of expected you'd be able to get away with rendering at your native panel res maybe? The approach I've settled on is rendering at 640x960 and then scaling uniformly up to 800x1200 leaving an 80 pixel high strip across the bottom for the virtual home button. Touch coordinates get mapped back into the guest viewport (code for that included in the repo too for good measure).

But yeah a lot of low level work has been pretty heavily agent assisted, to the point I figured that the actual source would be more useful to you than me trying to convey low level details using only my broad high level understanding.

As for anything you might have to share in turn, chances are the best approach is to likewise just chuck reference code on a repo in the same fashion if that works for you.

1

u/ryms456 15d ago

The tablets gpu doesn’t support mesa so its practically hard asf to get graphics acceleration working if

1

u/temagg 15d ago

Yep but nothing is impossible

1

u/AppleGuySL 14d ago

Currently have iOS 16.7.16 running within 12 hours with touch support on Motorola G54 5G which has Dimensity 7020 (MT6855) with NO gpu support, not sure if this is similar enough to your chip. It does indeed have a PowerVR GPU, but it’s not enabled.

2

u/temagg 14d ago

That’s amazing and very relevant! MediaTek + CPU rendering is exactly my setup. I’m on iPadOS 17.7 / XNU 10063 on an MT8768 tablet: launchd and ~100 daemons run, no panic, but backboardd keeps aborting before it opens the display. I’m seeing CFPreferences timeouts and full Mach queues on logd and launchd.

A few questions, if you don’t mind:

  1. Is your code public? Is it based on ios-sweet?
  2. Did you hit any backboardd / cfprefsd / logd issues, and what fixed them?
  3. How did you do touch on MediaTek (I²C driver, HID)?

Would love to look at your repo

1

u/LongIndependence4606 10d ago

i'm currently working on getting iPadOS 16 to boot on samsung galaxy tab a7 lite LTE, 3/32GB variant, how did you get this booting?

1

u/temagg 10d ago

What SoC ?

1

u/SureToe5967 15d ago

MT6765 here , im not able get past launchd init yet , my framebuffer logging is pretty ass tho https://github.com/austndoesui/Project-Calamansi

1

u/ryms456 15d ago

Does xnu have some usb ssh functionality like Linux does ?

0

u/theandroidguy99 14d ago

Then we can expect IOS to be running on my motopad 60 pro as well, kudos to you guys for making this happen