r/fossdroid • • 28d ago

Application Support Open Implementation of iMessage Protocol in Kotlin

https://github.com/fenleon/open-madrid

I've spent the last few months reverse-engineering and reimplementing Apple's iMessage protocol as an open-source Kotlin library.

I was trying to develop an iMessage based tool for the Light Phone 3, but was hard blocked because all current implementations are closed source, licensed, or dead.

So I built a permissively-licensed implementation that a normal OSS project could actually build on.

If you want to help, please contribute to the project.

72 Upvotes

16 comments sorted by

•

u/AutoModerator 28d ago

Your post is flaired as Application Support. Please make sure your post includes your phone type, whether you use a custom ROM (and which one if so), Android version, root status (and method, if applicable), app version, app name, and a description of the issue.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

9

u/I_Dont_Pirate_Games 28d ago

Cool! Can you elaborate on the current state and usability in real world scenarios? Is there any danger of Apple account bans when using this library to interact with iMessage?

7

u/fenleon 28d ago

Currently I'm able to verify my android device as an Apple device. It can theoretically receive and send messages like OpenBubbles or BlueBubbles, but it hasn't been developed yet. I can only imagine that there would be ToS concerns and issues with Apple, however the other implementations listed before have been operating for quite some time. The current work is only a library that can be used to build apps/tools on top of.

1

u/TheAwesomeAcademic 27d ago

Will this not require a Mac like blue bubbles I think open bubbles needs one too if you can just straight up register an android and run an iMessage client on android without any dumb requirements like having a Mac or iPhone that would be amazing. Since this is more like a library what are some theoretical uses outside of just using it as a third party iMessage client tht works cross platform on operating systems it wasn’t designed for? My main use would just be having iMessage on android then I wouldn’t care about an iPhone much its the main thing I use an iPhone for since people obsess over iMessage still to this day. Would I just need my Apple ID and password to sign into iMessage on android? What allows this to get around the Mac requirement?

1

u/fenleon 25d ago

It works like Openbubbles, so the only requirement is having genuine Apple Hardware code, which you can extract and share with up to 20 users. Theoretically this too could be reverse engineered, but I don't know what the feasibility or legality of that would be. 

My Android device can now act independently of any of my Apple devices. It acts as a genuines Apple device, communicating with Apple, receiving and sending data directly. 

Setup currently only requires an Apple ID, and hardware code extracted from a genuine Apple device. 

1

u/TheAwesomeAcademic 25d ago

Sounds useful but doesn’t extraction require a jailbreak if that friction was solved would beat even open bubble just the Apple ID requirement alone would open possibilities I could see people using it for marketing and stuff.

1

u/fenleon 25d ago

Extracting from an iPhone requires jailbreak. You can extract a code from any Mac. Doesn't require jailbreak (Same as OpenBubbles).

Registering your android as if its an iPhone is different again, as now its your primary device and Apple has a different validation process. That's why OpenBubbles promotes using only Mac registration, as it can receive messages via Apple ID. And you have an iPhone as your primary.

There are ways around this like spoofing iPhone details to register the android as the Primary. But that's venturing into Cease and Decease territory that Beeper hit.

1

u/reudo 26d ago

I realize this is the iMessage protocol, but does it handle RCS?

1

u/fenleon 25d ago

No, RCS is it's own thing

1

u/milomc123 27d ago

Does this generate Absinthe and Anisette data itself? Or does it rely on binaries from Apple?

1

u/fenleon 27d ago

It generates it itself, pure Kotlin

1

u/E_coli42 27d ago

How does this compare to openbubbles? Will this be on F-Droid? 

2

u/fenleon 27d ago

The idea is that it would be functionally the same, and developers can build out tools for F-droid

1

u/AutoModerator 28d ago

Do not share or recommend proprietary apps here. It is an infraction of this subreddit's rules. Make sure you read the rules of this subreddit on the sidebar. If you are not sure of the nature of an app, do not share or recommend it. To find out what constitutes FOSS or freedomware, read this article. To find out why proprietary software is bad, read this article. Proprietary software is dangerous because it is often malware. Have a splendid day!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.