Reverse-engineered MRP protobuf definitions from Apple shared libraries#2834
Open
JarekToro wants to merge 1 commit intopostlund:masterfrom
Open
Reverse-engineered MRP protobuf definitions from Apple shared libraries#2834JarekToro wants to merge 1 commit intopostlund:masterfrom
JarekToro wants to merge 1 commit intopostlund:masterfrom
Conversation
…ssages used in apple various shared libraries on mac and ios. They are 1:1 with the various read and write proto functions within the shared libs. Not all are understood some even seem like they arent used yet. A few things are new from exisiing messages and i made comments in a handful of spots.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
While reverse-engineering Apple's shared frameworks (MediaRemote.framework
and related libraries on macOS/iOS) via Ghidra, I reconstructed a much
larger set of MRP protobuf schemas than what currently exists in pyatv.
The RE work was done as part of building bunatv.
pyatv's thorough work and documentation were invaluable to me, so I wanted to share everything I found back with the
project. This PR isn't meant to be merged as-is, these definitions are
yours to use however makes sense, whether that's cherry-picking specific
messages, using them as reference, or adapting the structure.
While I can attest that within the latest apple shared libs every proto message here has specific read and write functions for converting to and from protobuf and native classes, I don't know how various messages are meant to be used, and if they are all meant for apple Tvs, and if they are supported by all devices.
If this proves useful, I've also started applying the same RE approach to the Companion protocol,
though it's slower going, the relevant code is spread across significantly
more shared libraries than MRP. Happy to share those findings too
as they come together.