The BlueFletch Device ID is designed to provide a common device ID for all EMS 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.
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.
Simple installation and launching of the application will determine and set the ID for the EMS Applications to retrieve.
Initial Device Setup
The initial action 'android.intent.action.MAIN' will cause the device ID to be retrieved and properly stored for EMS to utilize. This action will allow the UI to be displayed showing the Device ID.
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.
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 EMS Portal
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