# Technical Guide

## Setup <a href="#setup" id="setup"></a>

Simple installation and launching of the application will determine and set the ID for BlueFletch applications to retrieve.

### Intent Actions <a href="#intent-actions" id="intent-actions"></a>

#### **Initial Device Setup**

The initial action 'android.intent.action.MAIN' will cause the device ID to be retrieved and properly stored for BlueFletch Enterprise to utilize. This action will allow the UI to be displayed showing the Device ID.

ADB Example:

```json
adb shell am start -a android.intent.action.MAIN -n com.bluefletch.ems.deviceid/com.bluefletch.ems.deviceid.MainActivity

```

Airwatch/Workspace ONE Example:

```json
mode=explicit,action=com.bluefletch.ems.deviceid.MAIN,package=com.bluefletch.ems.deviceid,class=com.bluefletch.ems.deviceid.MainActivity,broadcast=false
```

#### **Init the ID**

The action 'com.bluefletch.ems.deviceid.ACTION\_INIT' causes the device ID to be set. The UI will not be displayed.

ADB Example:

```json
adb shell am start -a com.bluefletch.ems.deviceid.ACTION_INIT -n com.bluefletch.ems.deviceid/com.bluefletch.ems.deviceid.MainActivity
```

Airwatch/Workspace ONE Example:

```json
mode=explicit,action=com.bluefletch.ems.deviceid.ACTION_INIT,package=com.bluefletch.ems.deviceid,class=com.bluefletch.ems.deviceid.MainActivity,broadcast=false
```

#### **Rename the Device**

The action 'com.bluefletch.ems.deviceid.ACTION\_SET\_NAME' will allow for renaming a device to an organization desired name.

The action takes two parameters: **deviceName** and **org\_id**.

* **deviceName:** Represents the new name/ID. Replace the "NEWNAME" placeholder below with the organization's desired name.
* **org\_id:** Represents the ID of the organization as displayed within the BlueFletch Portal. Replace the "ORGID" placeholder below with the organization ID.

ADB Example:

```json
adb shell am start -a com.bluefletch.ems.deviceid.ACTION_SET_NAME -n com.bluefletch.ems.deviceid/com.bluefletch.ems.deviceid.MainActivity --es deviceName NEWNAME --es org_id ORGID
```

Airwatch/Workspace ONE Example:

```json
mode=explicit,action=com.bluefletch.ems.deviceid.ACTION_SET_NAME,package=com.bluefletch.ems.deviceid,class=com.bluefletch.ems.deviceid.MainActivity,extraString=deviceName=NEWNAME,extraString=org_id=ORGID,broadcast=false
```

### Application Details <a href="#application-details" id="application-details"></a>

**Package:** com.bluefletch.ems.deviceid
