> For the complete documentation index, see [llms.txt](https://developer.magtek.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.magtek.com/hardware/card-readers/mms-dyna-devices/emv-common-kernel/dynaflex-ii-go/documents/developers-manuals/universal-sdk-magtek-devices-programmers-manual-android/how-to-set-up-the-sdk.md).

# How to Set Up the SDK

To set up the MagTek Universal SDK library for Android, download the *1000007352 MagTek Universal SDK for MMS Devices (Android)* available from MagTek.com.

To add the MT Universal libraries to a custom software project in Android Studio, follow these steps:

* Launch Android Studio.
* Copy the following AAR file to the libs subfolder of your software project: MTUSDK.aar
* Ensure your project settings are set up correctly.
* Clean, build, and run your custom software project to make sure the library imported correctly.
* In your custom software, create an instance of MTUSDK. For examples, see the source code included with the MagTek Universal Demo project and/or the Code Examples section in this document.
* Depending on the connection types supported, the project should include the uses-features and uses- permissions as specified in the table below in its AndroidManifest.xml file. For examples, see the AndroidManifest.xml included with the MagTek Universal Demo project.

<table data-header-hidden><thead><tr><th width="140.3636474609375" valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Connection Type</td><td valign="top">AndroidManifest</td></tr><tr><td valign="top">Audio</td><td valign="top"><p>&#x3C;uses-permission android:name=<em>"android.permission.RECORD_AUDIO"</em>/></p><p>&#x3C;uses-permission android:name=<em>"android.permission.MODIFY_AUDIO_SETTINGS"</em>/></p></td></tr><tr><td valign="top">BLE BLEEMV BLEEMVT</td><td valign="top"><p>&#x3C;uses-feature android:name=<em>"android.hardware.bluetooth_le"</em>/></p><p>&#x3C;uses-permission android:name=<em>"android.permission.BLUETOOTH"</em>/></p><p>&#x3C;uses-permission android:name=<em>"android.permission.BLUETOOTH_ADMIN"</em>/></p><p>&#x3C;uses-permission android:name=<em>"android.permission.ACCESS_COARSE_LOCATION"</em>/></p><p>&#x3C;uses-permission android:name=<em>"android.permission.ACCESS_FINE_LOCATION"</em>/></p></td></tr><tr><td valign="top">Bluetooth</td><td valign="top"><p>&#x3C;uses-permission android:name=<em>"android.permission.BLUETOOTH"</em>/></p><p>&#x3C;uses-permission android:name=<em>"android.permission.BLUETOOTH_ADMIN"</em>/></p></td></tr><tr><td valign="top"><p>USB</p><p>Serial</p></td><td valign="top">&#x3C;uses-feature android:name=<em>"android.hardware.usb.host"</em> /></td></tr><tr><td valign="top">WebSocket</td><td valign="top">&#x3C;uses-permission android:name=<em>"android.permission.INTERNET"</em> /></td></tr></tbody></table>

To Run/Debug the sample code, follow these steps:

* In Android Studio, select File -> Open ...
* Select MTUSDKDemo project, click OK .
* Select Run -> Run app to run the sample code or select Run -> Debug app to run it in debug mode.&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.magtek.com/hardware/card-readers/mms-dyna-devices/emv-common-kernel/dynaflex-ii-go/documents/developers-manuals/universal-sdk-magtek-devices-programmers-manual-android/how-to-set-up-the-sdk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
