Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. OpenJev(openjev.com ↗)
    12comments
  2. Jemalloc 5.4.0(github.com/jemalloc ↗)
    44comments
  3. The scourge of x86 emulation(fex-emu.com ↗)
    27comments
  4. Astra for Law(openai.com ↗)
    573comments
  5. Bonsai 2 27B: Near-Lossless Compression in a 9x Smaller Footprint(prismml.com ↗)
    134comments
  6. Bend – A language that blocks AI mistakes via proof, on CPU and GPU(bend-lang.com ↗)
    222comments
  7. Qwen 3.8 Omni Flash(qwen.ai ↗)
    82comments
  8. Hister: A private search engine for the pages you visit and the files you keep(github.com/asciimoo ↗)
    170comments
  9. Replacing Pull Requests with Delta(zed.dev ↗)
    3comments
  10. Pre-Greek: The lost language hidden within Ancient Greek(linguisticdiscovery.com ↗)
    37comments
  11. Wax motor(wikipedia.org ↗)
    70comments
  12. When the fractional part of a float fixes your shader(crocidb.com ↗)
    1comments
  13. Fujitsu launches made-in-Japan next-generation CPU FUJITSU-MONAKA(global.fujitsu ↗)
    233comments
  14. A heap overflow and SSO misconfiguration to compromise OpenAI internal repos(hacktron.ai ↗)
    155comments
  15. Microsoft exec called AI scraping 'the largest theft of labor in human history'(techcrunch.com ↗)
    9comments
  16. Shapelearn Qwen 3.8 27B (13.1 GB VRAM)(byteshape.com ↗)
    11comments
  17. How to Write with an LLM(sockpuppet.org ↗)
    103comments
  18. Ask A Monk – A digital wilderness for thoughts with no immediate answer(askamonk.online ↗)
    24comments
  19. Flet 1.0 – Build cross-platform apps in Python(flet.dev ↗)
    59comments
  20. Why Does the Universe Expand?(cosmicave.org ↗)
    57comments
  21. Telstra outage: The night a network decided the year was 2006(netnod.se ↗)
    27comments
  22. Speeding up gearhash on ARM64(sam.dev ↗)
    discuss
  23. Diplodocus, Long Thought Exclusively American, Turns Up in Spain(sci.news ↗)
    41comments
  24. Why I didn’t sign the Fields medallists’ letter(gowers.wordpress.com ↗)
    370comments
  25. Apple detectives solved mystery of ancient tree and rewrote the history of fruit(scientificamerican.com ↗)
    11comments
  26. How do we prevent mathemathics from devolving into the Medieval Era of secrecy?(mathoverflow.net ↗)
    107comments
  27. The most important product decision is what you don't build(liamnugent.me ↗)
    39comments
  28. CrowdSec Source Code Leak(crowdsec.net ↗)
    49comments
  29. How Uber Protects Against Retry Storms(uber.com ↗)
    43comments
  30. Show HN: Snapdrop: Instantly share files between devices. No setup, no signup(snapdrop.me ↗)
    37comments

Almost booting an iOS kernel in QEMU

121 pointsby 8y agoworthdoingbadly.com
19 comments
8y agoHN ↗

Interesting. I would love virtual iPhones. For testing apps, anonymously. But I doubt that I'd get an invite from Corellium, either :(

8y agoHN ↗

..but XNU is now open source.

Well XNU has always been 'open-source' [1] for some time on Intel machines but its just that ARM support remained closed (until 2017) which is why the darwin-on-arm [2] project existed. But I'm assuming that the OP means that the ARM64 code was recently open-sourced in the XNU sources[3] making a possible open-source ARM port much simpler. I still find it quite interesting to see some regained attempts in emulating iOS; with Corellium being the furthest at doing this.

[1] (https://opensource.apple.com)

[2] (https://github.com/darwin-on-arm/xnu)

[3] (https://github.com/apple/darwin-xnu/search?p=5&q=ARM64&unsco...)

8y agoHN ↗

In a way, it seems strange nobody made a full-blown iPhone/iPad iOS emulator yet. Not a simulator like the one Apple makes, but an emulator like for game systems. I would guess the amount of information available about iPhone hardware and software would make it much easier to emulate than e.g. a gamecube, Wii, PS3, etc, especially for older models. Such an emulator could obviously be used for piracy, but could also be an intersting tool for a homebrew scene (custom firmware, developing iOS apps on Linux & Windows, etc.

Is there a practical reason why this would be hard or impossible? Or is it just for fear of Apple's lawyers?

8y agoHN ↗

It seems strange to me that there are no Chinese OEMs selling mobiles with iOS. I mean, I understand it's hard, but is it THAT hard?

8y agoHN ↗

You would probably need to hack the OS to disable updates etc to prevent Apple from remotely bricking your device.

8y agoHN ↗

Wrapping it with a firewall would be the easy part.

8y agoHN ↗

That's be the easiest part. You can just grep the binary for apple domains and replace them with your own.

8y agoHN ↗

Yeah it is because the CPU and GPU are customized for Apple. You'd have to recreate them (which probably would require a F500 company like Amazon or Google) or write a translation layer similar to WINE (which would need a couple dozen expert coders). Not worth the effort for knockoff phones.

8y agoHN ↗

Knockoff iPhones would sell like hot bread.

8y agoHN ↗

You can buy them at "the market" in Shenzen. You can even put in original Apple logic board and run iOS - and have crazy things like double storage, memory cards, 3.5mm output, etc. You have to build it from parts though, no one is selling a complete product AFAIK.

8y agoHN ↗

Afaik, those are not really knockoff as in a Gameboy replica. They're still using the proprietary Apple mainboard and all for the most part. What they did to double the storage was to desolder and solder back in a different storage with different capacity with the image from the original storage cloned onto, a process which kinda costly amd very risky as the components aren't designed to be plug and play like desktop components

Ref: Youtube channel "Strange Parts"

8y agoHN ↗

There are stores selling knock-off easy to manufacture parts like body, some basic electronic components etc, and yes, as I said, the logic board itself needs to be original.

8y agoHN ↗

I would be fiercely interested in any more details around this. I'm sure many of us have seen Scotty from Strange Parts doing his headphone socket project, and the franken-phone built from spare parts, but it sounds like you're suggesting something even more than that.

Citations, please!

8y agoHN ↗

Sorry, that's personal anecdote, not something I got from youtube or articles that could be cited. See my other reply: I'm not really suggesting anything more than what you can see on Youtube, just that knock-off iPhone parts that are easy to manufacture (body, battery electronics etc) exist - not the logic board though.

8y agoHN ↗

They still can't run iOS apps from the App Store. They are encrypted when downloaded and only decrypted at runtime. Decrypted apps can be offloaded from a jailbroken phone and then re-uploaded to a pirate store though.

8y agoHN ↗

It seems Corellium (linked to from the blogpost) has done that. That said, it seems they only run iPhone 6, et al., which was jailbroken (untethered), so it's significantly easier to emulate than trying to run the only unencrypted file (kernel cache) targeting an undocumented CPU with Qemu of an iOS beta that was released a few days ago.

8y agoHN ↗

Corellium can run up to iPhone X, and certainly can run iOS 12 (Option is given for jailbroken or not jailbroken too).

Only limit which you may be thinking of is that it only supports 64-bit ARM, so no emulation of the older devices.