Skip to content

Overview

Device ID

The BlueFletch Device ID is designed to provide a common device ID for all BlueFletch Enterprise applications. This application should be the first application installed and started on newly provisioned device.

This application is designed for devices running Android 10 and above, but can be used for other Android levels.

Features

During initial execution of the application, it will attempt to retrieve the device serial number from the device. If it can not retrieve the serial number, it will generate an unique ID.

Setup

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

Intent Actions

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.

Example:

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

Init the ID

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

Example:

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

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

  • org_id: the ID of the organization as displayed within the BlueFletch Portal

Example:

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

Application Details

Package: com.bluefletch.ems.deviceid