Re: Intercept AVRCP commands on OS X
Re: Intercept AVRCP commands on OS X
- Subject: Re: Intercept AVRCP commands on OS X
- From: Matthias Ringwald <email@hidden>
- Date: Tue, 30 Jul 2013 10:34:02 +0200
Hi Patrick
Here'e my guesses. I'd assume that the OS gets it's chance to handles all profile that it supports. So, it would fully handle the ACRCP commands and forward them to the daemon. In this case, you might be able to hook into that one and try to intercept the commands there (everything is setup …)
If the damon is written in Objective-C, you could do some method swizzling, if it sports symbols, you could do binary patching. Both is used heavily for iPhone Jailbreak development of system extensions ("tweaks"). The CydiaSubstrate library provides full support for method swizzling and function hooking, even for i386 and x86_64, as far as I know.
Best
Matthias
On 26.07.2013, at 11:24, Patrick <email@hidden> wrote:
> Hello everybody.
>
> I have a very basic question regarding Bluetooth on OS X. After reading quite a lot of resources about the Bluetooth stack in the past few days, including some code examples, I'm still pretty much in the dark.
>
> To not waste too much time hacking, is it even possible to intercept and handle AVRCP commands from paired headphones or are they always catched and sent to the AVRCP daemon, whether I register a delegate or not?
>
> Regards,
> Patrick
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Bluetooth-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden