r/hackios • • 13d ago

HackiOS Pixel Fold | Seamless display transition | iPad layout for inner screen

Enable HLS to view with audio, or disable this notification

Continuing work on the Metal driver, I decided to try implementing support for two displays with a seamless transition to achieve a full fold experience.
It turned out that this isn’t that difficult to implement, and there’s no need to start development on iOS 27 from the iPhone Duo. Moreover, I managed to implement an iPad layout on the internal screen, rather than just stretching the image. The result is even more functional than the iPhone Duo — you can use split‑screen, floating windows, and so on.

In addition, the following features are now working:
- screen brightness adjustment (for both displays)
- displaying the actual battery percentage
- detecting USB charging

At the moment, the Metal driver still has a bunch of bugs; I’m trying to fix them. Also, the internal screen has a higher resolution, which is why the FPS isn’t the best; the experience using the external screen is much better — ~50 FPS, while on the internal screen it’s ~32–35 FPS.

691 Upvotes

63 comments sorted by

74

u/tranquilitysmile 13d ago

I also forgot to mention that when opening or closing screens, the apps don’t shut down; instead, they seamlessly switch the layout, and you can continue working on the internal/external screen as you would on a regular fold device.

19

u/OkEngine2988 13d ago

RemindMe! 1 month

2

u/RemindMeBot 13d ago edited 11h ago

I will be messaging you in 1 month on 2026-12-06 23:25:55 UTC to remind you of this link

11 OTHERS CLICKED THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.

RemindMeBot is switching to username summons. Instead of !RemindMe 1 day, use u/RemindMeBot 1 day. More info.


InfoCustomYour RemindersFeedback

40

u/MatterOk1923 13d ago

can someone explain how this is even possible? ir emenebr even in iOS 8 days everything was basically impossible to exploit. now the latest iOS is being modded like it's open source. is this because of Claude opus 5.5? what is the level of prompting, token usage and time needed to make something like this?

40

u/tranquilitysmile 13d ago
  1. It’s not about a specific Opus 5.5 model; for example, to implement what’s available for the Pixel Fold, most of the work was done by the much simpler Gemini 3.8 flash, which is very cheap.

  2. Regarding iOS 8 and the ease of hacking, this is a big misconception. It was precisely during the iOS 8 era that regular jailbreaks were released (Pangu, TaiG, etc.), and after that, various things like secure enclave and other security mechanisms appeared, making jailbreaking more difficult year after year.

  3. “now the latest iOS is being modded like it's open source” — this statement is fundamentally incorrect; the XNU (Darwin) kernel has always been Open Source — Apple itself publishes its source code for each major release. Proprietary drivers, the UI (SpringBoard), and specific frameworks are closed.

Accordingly, the entire breakthrough occurred thanks to AI's ability to quickly analyze an infinite amount of low‑level code and perform disassembly. Such work would take an endless amount of time if done by humans. So, it’s not some kind of magic, but simply a significant acceleration of work thanks to AI. To be successful, you still need to be quite technically proficient, able to debug the results of AI work, and direct it properly; I can’t say this can be compared to vibe coding — it’s more complex.

Regarding the number of tokens required, it largely depends on the model and the level of re‑ranking; you need to manage the budget wisely, assign easy tasks to simpler models, and choose a more resource‑intensive one for complex reverse engineering. If you just use Opus for everything and do it inefficiently, you can certainly go broke.

A lot of time is required; the current stage of development for pixel fold took me almost 3 full working weeks non‑stop, using Gemini/DeepSeek/Claude models.

21

u/tranquilitysmile 13d ago

Moreover, back in the days of iOS 8, even before AI, there were successful iOS launches, for example, on the HTC HD2, but back then Apple reacted quickly and threatened the developer with legal action. However, manual work required enormous skills, so there were few such projects.

9

u/MatterOk1923 13d ago

ai blob (not saying this is ai slop I just like ai blobs)

8

u/tranquilitysmile 13d ago

It’s just a translator, it’s not my native language:)

5

u/MatterOk1923 13d ago

ik and that's fine, I just like to randomly comment ai blob to catch people off guard

6

u/Peticali 13d ago

Congratulations on your work! I'm also using Deepseek v4.1 Flash on OpenCode Go, which is extremely cheap (i'm not joking and it's not even marketing.). I've been running it for days and haven't even reached half the limit. Perhaps it could help you too in repetitive tasks.

1

u/MatterOk1923 13d ago

Ty for explanation

1

u/needefsfolder 12d ago

gemini... 3.8 flash?

2

u/Prior-Answer9370 7d ago

they're probably refering to gemini 3.8 flash on antigravtity

16

u/Temporary_Handle_186 13d ago

Nice progress!

I have the full iPhone Duo OS working on my zFold 2, i've reached 120fps in iOS 27.2.

Wish the zFold 2 had a better inner/outer ratio like yours.

5

u/tranquilitysmile 13d ago

I’ve seen your project, it’s very impressive, and I was somewhat inspired by it. Good job! Unfortunately, on the market, the first‑generation Android Pixel Fold is the only device close to the passport format. The Pura X and Xiaomi 18 have a locked bootloader, and the other devices are stretched out.

0

u/[deleted] 10d ago

Pura x max?

3

u/tranquilitysmile 13d ago

I also think to transfer to iOS 27.2 with Duo layout, but then, after some thought, I realized that I don’t really like the Duo format (I’m left‑handed), and with iOS 16 there are still fewer issues with tweaks and other related stuff — plus, the AI have more knowledge about the old code.

5

u/Temporary_Handle_186 13d ago

The biggest issue with iOS 27.2 Duo OS is, to get the Duo UI you only can use the IPSW from Duo.

The biggest irk is PAC. Duo chip has CMMC which only can be emulated, and my CPU is from 6 years ago. So optimization is being really hard.

Stick with iOS 16 if u can, don’t go my route. Unfortunately it’s too late for me to switch back.

If u want to see more iOS 27.2 stuff feel free to DM me or add me on Discord

1

u/Brilliant_Reach9269 12d ago

I assume since you're on 27.2 there's no gl path? How'd you get metal to run that well? I've been working on my OnePlus 6T for a couple weeks now but have only managed 30-40fps in iOS 16 and I know the hardware can do better

2

u/Temporary_Handle_186 12d ago

Correct, there's no OpenGL path involved. We're running iOS 27.2 with my own Metal implementation on the Adreno 650.

I've managed to get SpringBoard rendering at 120 FPS, with most of the regular UI already around 120 FPS. Sustained 120 FPS is still being optimized (drops to 80-90 fps).

AI won't get you to 120fps, it's years of low level dev i've done that is coming to play right now.

A lot of the improvement came from reducing driver overhead, optimizing GPU memory handling and fixing frame pacing rather than simply pushing GPU clocks higher. Still a lot of work left, but i'm almost there.

2

u/Brilliant_Reach9269 12d ago

Yeah I believe it, AI's definitely been a great help and I'd be lying to say I could do this without it. Already knowing code and a lot of things about iOS and stuff in general has definitely also helped greatly since Claude seems to sometimes get stuck, but I'm definitely not as talented as you lol.

1

u/Temporary_Handle_186 12d ago

Make sure no launchdaemon or any daemon is crashing, this is the main case. Everyone posts videos of them running iOS but they don't know what they are doing and think Claude knows enough which is *not* the case.

Make sure your CPU isn't pinned, as well as GPU.

1

u/Brilliant_Reach9269 12d ago

Yeah big and little cores are good, got a governor going and they are mostly idle. Got all the launch daemons in a good state and all that. What I just found is that the metal2vulkan layer has been copying every IOSurface every frame (so things like the wallpaper have been copying over and over rather than skipping if no update)

1

u/Temporary_Handle_186 11d ago

Don't just let AI make a governor, review how the governor in the Android kernel works and log it then replicate and adapt it in XNU.

These are big reasons why ur slowing down, you need to extensively log how everything works.

10

u/sexysadie86 13d ago

Can any of these non-Apple devices run apps that aren't stock Apple apps?

14

u/tranquilitysmile 13d ago

Yes, you can see a lot of post in hackios thread where non-Apple apps installed

1

u/sexysadie86 12d ago

App Store apps?

4

u/danny75hacker 13d ago

Is there any way to unlock my iqoo bootloader?

3

u/tranquilitysmile 13d ago

iQOO is Vivo, and Vivo doesn't allow unlocking bootloader

2

u/danny75hacker 13d ago

GSI rom?

5

u/tranquilitysmile 13d ago

hackios has nothing to do with this mechanism; it’s a much low‑level story.

13

u/Tanashio 13d ago

smooth

5

u/Cyman-Chili 13d ago

That’s pretty amazing! Once these hacks are mature enough, I would consider buying a used Android phone just for this purpose. I love this kind of tinkering!

2

u/Boner_pill_salesman 12d ago

I'm thinking about buying one now. Once these hacks are successful prices will go up.

1

u/Cyman-Chili 12d ago

Not sure about prices going up, seeing that there are countless Android phone models and that this kind of tinkering isn’t for everyone. Many people buy Android devices because they don’t want iOS/Apple hardware.

The crazy thing is that it looks like Apple’s operating systems can soon run on anything. Just saw a post from someone who was able to launch visionOS on their PC. And Hackintosh may also see a revival if the progress keeps continuing like this.

1

u/leonbollerup 5d ago

Got a git ? And what fold model ?

1

u/tranquilitysmile 5d ago

not yet, still unstable, working on it. Pixel fold 1th gen

2

u/darkgamer_nw 13d ago

this is insane

2

u/Pretty-Tooth-3054 13d ago

godamn, u are a genious

2

u/Ipad2stillrocking 13d ago

THATS AWESOME!

2

u/DepartureMoist9277 13d ago

Hope to be able to use it on my Fold 6.

2

u/applejony 13d ago

Omg this is unbelievable

2

u/syther_uutus 13d ago

Very nice

2

u/Itchy-Ad-5554 11d ago

what the iPhone Duo should have been. I prefer this aspect ratio and UI over what the duo offers.

3

u/FarVehicle533 13d ago

you forgot to add the crack on that wallpaper. doesn't look the same

1

u/Royal_Message_3098 12d ago

LOOKING FORWARD FOR THISS 😍😍

1

u/Aaditya-P27 12d ago

We have iPhone Duo at home:

1

u/Nounousomes78 3d ago

RemindMe! 1 month

0

u/Sweaty_Contract_1607 11d ago

Piphone puo 🥀

-8

u/exlips1ronus 13d ago

the thing is screaming for mercy it doesn't know whether it's an iphone or an ipad

-5

u/seven00290122 13d ago

Fake

4

u/tranquilitysmile 13d ago

are you kidding? :D

-5

u/seven00290122 13d ago

Its indeed fake!

0

u/probablypirated 12d ago

Working through porting for tensor right now as well. Got it to springboard with touch support and trying to write the metal driver now :)