This is a sample app that shows a possible use case for HMKit. We connect to a vehicle/emulator via Bluetooth and send some commands like lock doors and turn on lights.
- Android 5.0 Lollipop or higher.
Dependencies are managed via gradle repositories.
Import the Gradle project with Android Studio 3+.
Initialise the HMKit with a certificate from the Developer Center. The flow is described in the comments of the BleExplorerActivity.java
After initialisation, the sandboxui module is loaded. All of the app logic is in that package.
The bluetooth and telematics commands are covered by instrumented tests. For them to work one needs to add his keys to androidTest/res/values/credentials.xml:
<resources> <string name="accessToken">the vehicle access token</string> <string name="deviceCert">the device cert</string> <string name="privateKey">the private key</string> <string name="issuerPublicKey">the issuer public key</string> </resources>