Reference source code or sdks for Process for establishing a CarPlay session

I work on the android to support the Carplay.Process for establishing a CarPlay session. How can I get the reference source code or sdks for process of: 1、Enumerate (Accessory is USB Host) 2、Detect if Apple device supports CarPlay 3、Request & Perform USB Role Switch 4、Enumerate (Apple device is USB Host) 5、Establish iAP2 Session

Replies

Are you a head unit developer or app developer?