Security Enabled - NativeNov 24, 2016

Security Enabled sample application displays simple text interactions between the host device and the Gear device using secured APIs of Accessory SDK. This sample application is a companion type and is provided in two types.

Provider (Android) and Consumer (Gear)

Figure 1 Security Enabled - Provider (Android) and Consumer (Gear)
Figure 1 Security Enabled - Provider (Android) and Consumer (Gear)

This sample application has two parts:

  • SecuredProvider

    • Works in host device and has no UI.

    • Authenticates a remote Accessory Peer Agent in Gear device

    • Accepts a receiving service connection request from Gear device.

    • Replies to a receiving command from Gear device with encrypted current time stamp.

  • SecuredConsumer

    • Works in Gear device and has UI.

    • Initiates service connection request and send command to the host device.

    • Shows a received response to user.

Sender (Gear) and Receiver (Android)

Figure 2 Security Enabled - Provider (Gear) and Consumer (Android)
Figure 2 Security Enabled - Provider (Gear) and Consumer (Android)

This sample application has two parts:

  • SecuredProvider

    • Works in Gear device.

    • Authenticates a remote Accessory Peer Agent in host device.

    • Accepts a receiving service connection request from host device.

    • Replies to a receiving command from host device with encrypted current time stamp.

  • SecuredConsumer

    • Works in host device and has UI.

    • Initiates service connection request and sends command to Gear device.

    • Shows a received response to user.